On Sat, Feb 02, 2008 at 07:38:43PM +0100, Marco Gerards wrote: > Hi, > > Here is a patch for testing purposes. I hope people can test this on > actual hardware. Testing will help a lot for the development of the > ATA driver. > > The code to reset the channel was removed, replace with something that > only queries the channel. Code for probing IDE Controllers on the PCI > bus is added. Channels in compatibility mode were supported and are > still supported. Now also more controllers should be used, but I > don't have boxes to test this on and qemu can't be used for this. So > please test.
You forgot to remove the `grub_disk_firmware_is_tainted' hack. That prevents biosdisk from working afterwards (but it doesn't affect my test, see below). > Please tell me (read this before testing!): > > 1) Does it work perfectly (yes/no) as in, all devices are detected and > can be accessed. If no: what's the problem. Hangs during init. Messages printed: disk/ata.c:470: PCI dev (0,6,0) compat=0 rega=0x1f0 regb=0x3f6 disk/ata.c:339: detecting device 0,0 (0x1f0, 0x3f6) disk/ata.c:376: Registers: 1 1 0 0 disk/ata.c:397: ATA detected disk/ata.c:212: Serial: 5JXEZS01 disk/ata.c:214: Firmware: 8.01 disk/ata.c:216: Model: ST340014A disk/ata.c:218: Addressing: 2 #sectors: 78165360 disk/ata.c:339: detecting device 0,1 (0x1f0, 0x3f6) disk/ata.c:376: Registers: 1 1 0 0 disk/ata.c:397: ATA detected ctrl-alt-del stops working (scrambled IDT ?) > 2) Did it work before applying this patch? (yes/no) It detected my CD drive (ata3), but was unable to access it. The following command: ls (ata3)/ just hangs, producing no debugging output, and makes ctrl-alt-del stop working as well. It _did_ archieve to make the drive spin, though. > 3) "rmmod ata", "insmod biosdisk" can you still access your disks N/A > 4) Same as 3, but before applying this patch Note: insmodding biosdisk is likely impossible when you can't access the disks ;-) When disabling `grub_disk_firmware_is_tainted', and loading both (preloaded in core.img), I can still access the hard disk via (hd0) (however, note the hard disk wasn't detected by ata.mod, only the CD). > 5) If there are problems, use: > set debug=ata > insmod ata In case this helps: grub> lspci 00:00.0 005e:10de.0 Memory Controller 00:01.0 0050:10de.0 ISA Bridge 00:01.1 0052:10de.1 Serial Bus Controller 00:02.0 005a:10de.0 Serial Bus Controller 00:02.1 005b:10de.1 Serial Bus Controller 00:04.0 0059:10de.0 Multimedia Audio Device 00:06.0 0053:10de.0 IDE Controller 00:07.0 0054:10de.0 IDE Controller 00:08.0 0055:10de.0 IDE Controller 00:09.0 005c:10de.0 PCI-PCI Bridge 00:0a.0 0057:10de.0 Unknown Bridge 00:0b.0 005d:10de.0 PCI-PCI Bridge 00:0c.0 005d:10de.0 PCI-PCI Bridge 00:0d.0 005d:10de.0 PCI-PCI Bridge 00:0e.0 005d:10de.0 PCI-PCI Bridge 00:18.0 1100:1022.0 Host Bridge 00:18.1 1101:1022.1 Host Bridge 00:18.2 1102:1022.2 Host Bridge 00:00.0 94c3:1002.0 VGA Controller 00:00.1 aa10:1002.1 Multimedia device 00:07.0 0002:1102.0 Multimedia Audio Device 00:07.1 7002:1102.1 Unknown Input Device $ sudo lspci 00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3) 00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3) 00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2) 00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2) 00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3) 00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2) 00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2) 00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3) 00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3) 00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2) 00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3) 00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3) 00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3) 00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3) 00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3) 00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration 00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map 00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller 00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control 01:00.0 VGA compatible controller: ATI Technologies Inc Unknown device 94c3 01:00.1 Audio device: ATI Technologies Inc Unknown device aa10 05:07.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 04) 05:07.1 Input device controller: Creative Labs SB Live! Game Port (rev 01) -- Robert Millan <GPLv2> I know my rights; I want my phone call! <DRM> What use is a phone call… if you are unable to speak? (as seen on /.) _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel