Page 10 of 12

Re: AHCI

Posted: Sat Sep 11, 2021 11:40 pm
by rgimad
punk_joker wrote:As I see in Windows device manager this motherboard has 5 AHCI controllers.
Maybe I should implement working with all ahci controllers, not only first one.

Re: AHCI

Posted: Sun Sep 12, 2021 12:35 am
by hidnplayr
rgimad wrote:Maybe I should implement working with all ahci controllers, not only first one.
I too would appreciate that :D

I have for example some PCI add-on cards that would otherwise give trouble, and probably some untested hardware with multiple AHCI controllers as well ;)

Re: AHCI

Posted: Wed Sep 15, 2021 11:06 am
by punk_joker
rgimad wrote:Maybe I should implement working with all ahci controllers, not only first one.
Do you going to implement it in near future? If not, I'll start work on it.

Re: AHCI

Posted: Wed Sep 15, 2021 5:53 pm
by rgimad
punk_joker wrote:
rgimad wrote:Maybe I should implement working with all ahci controllers, not only first one.
Do you going to implement it in near future? If not, I'll start work on it.
I’m busy at the university now, so I have no time. So yes, you can work on it.

Re: AHCI

Posted: Sun Sep 19, 2021 10:55 am
by Leency
punk_joker wrote:On my PC, in UEFI mode doesn’t find AHCI controller. In non UEFI mode, driver found controller, but I don’t see partition. What information I should provide for debugging?
Btw, does the old driver from Serge working on your PC?

Re: AHCI

Posted: Sun Sep 19, 2021 12:33 pm
by punk_joker
Leency wrote:Btw, does the old driver from Serge working on your PC?
I couldn't generate device list with Devman for Serge's driver.

Re: AHCI

Posted: Mon Sep 20, 2021 12:05 am
by Leency
punk_joker wrote:
Leency wrote:Btw, does the old driver from Serge working on your PC?
I couldn't generate device list with Devman for Serge's driver.
I mean /kolibrios/drivers/achi/

Re: AHCI

Posted: Sun Oct 17, 2021 1:17 am
by punk_joker
#9219 use name sdX instead of hdX for AHCI SATA drives
Motivatios:
1. easier to understand drive is IDE or SATA.
2. fix issue: http://bugs.kolibrios.org/view.php?id=143

Re: AHCI

Posted: Mon Nov 01, 2021 11:54 pm
by punk_joker
Finally, today I started work on improving AHCI driver. Now it works with 5 controllers well in QEMU. Each controller has disk with 1 FAT partition. But it doesn't work on my PC yet,so I keep working. Probably tomorrow, I'll share test image.

Re: AHCI

Posted: Tue Nov 02, 2021 12:42 am
by Leency
punk_joker
Great news!

Re: AHCI

Posted: Tue Nov 02, 2021 1:27 am
by punk_joker
First version, support up to 8 disks (tested only 5). It works in my case.
Test image

Next steps:
  • Clean code
  • Dynamic allocate memory for founded disks

Re: AHCI

Posted: Tue Nov 02, 2021 11:32 am
by rgimad
punk_joker wrote:First version, support up to 8 disks (tested only 5). It works in my case.
Test image

Next steps:
  • Clean code
  • Dynamic allocate memory for founded disks
8 disks or controllers?

Re: AHCI

Posted: Tue Nov 02, 2021 11:58 am
by punk_joker
Need to double check, but probably yes, you are right. 8 controllers. I tested with 8 controllers, and each controller has 1 disk.

Re: AHCI

Posted: Tue Nov 02, 2021 1:01 pm
by punk_joker
I remembered. Now, limit is 8 disks and 8 controllers. Because I allocated memory for 8 controllers, and limited counter to 8 disks.

Re: AHCI

Posted: Tue Nov 02, 2021 4:04 pm
by punk_joker
Could someone test FS speed with same disk in AHCI and IDE compatibility mode?
I don't have any PC with IDE mode.