Fixed this problems in #9272. punk_joker, please test work of this new trunk revison on your hardware with multiple controllers and disks on them. I dont have such hardware.rgimad wrote:Your commit is very strange, for example in ahci_find_cmdslot, ahci_read, ahci_write why you use sd1_data (data of 1st ahci controller) ? It's incorrect, this functions are called not only for disks on 1st ahci controller. Also, uninformative naming: SD_DATA - it is not Sata Disk data, its data related to ahci controller.
AHCI
-
The best way to predict the future is to create it.
I will test later. You can test in Qemu
Example, how to add multiple controllers:
-boot a \
-drive id=disk1,file=disk1.raw,if=none,format=raw \
-drive id=disk2,file=disk2.raw,if=none,format=raw \
-drive id=disk3,file=disk3.raw,if=none,format=raw \
-drive id=disk10,file=disk10.raw,if=none,format=raw \
-device ich9-ahci,id=ahci1 \
-device ich9-ahci,id=ahci2 \
-device ide-hd,drive=disk1,bus=ahci1.0 \
-device ide-hd,drive=disk3,bus=ahci2.0 \
-device nvme,serial=deadbeef,drive=disk2 \
-device ide-hd,drive=disk10,bus=ide.0 \
-fda kolibri.img \
-m 512M
In example, I added 2 ahci controllers, 1 ide and 1 nvme
Example, how to add multiple controllers:
Spoiler:
qemu-system-x86_64 \-boot a \
-drive id=disk1,file=disk1.raw,if=none,format=raw \
-drive id=disk2,file=disk2.raw,if=none,format=raw \
-drive id=disk3,file=disk3.raw,if=none,format=raw \
-drive id=disk10,file=disk10.raw,if=none,format=raw \
-device ich9-ahci,id=ahci1 \
-device ich9-ahci,id=ahci2 \
-device ide-hd,drive=disk1,bus=ahci1.0 \
-device ide-hd,drive=disk3,bus=ahci2.0 \
-device nvme,serial=deadbeef,drive=disk2 \
-device ide-hd,drive=disk10,bus=ide.0 \
-fda kolibri.img \
-m 512M
to infinity and beyond
Tested on my PC. Partitions are detected, and I can open them correctly.
to infinity and beyond
Good, thanks for information
The best way to predict the future is to create it.
Tested on my PC. Issue is also soled, thanks.
Из хаоса в космос
УРА! СЛАВА RGIMAD!!! Я ТАК ДОЛГО ЖДАЛ!!!
Who is online
Users browsing this forum: No registered users and 0 guests