The patch you offer kind of late in the init processs, IMHO.
By the time chipset code is called, the driver should have "identified"
the device or marked it not present.
"piix_config_drive_for_dma" is called from ide.c's
"ide_register_subdriver" back to the ide_dmaproc and any callouts to the
chipset code.
I will look into this, but I thing something is may be kookie in your
hardware, IMHO.
Andre Hedrick
The Linux IDE guy
On Thu, 14 Oct 1999, Peter Samuelson wrote:
> A few weeks ago I sent linux-kernel an oops trace caused by boot-time
> IDE probing weirdness. Specifically Linux boots with
>
> hdb: non-IDE drive, CHS=622/64/63
>
> (hdb does not, in fact, exist at all), and in recent 2.3.x, this
> misconception causes an oops+hang just after. I still don't know why
> hdb is being "found", but I did manage to prevent the oops:
>
> --- drivers/block/piix.c.orig Fri Oct 8 06:52:02 1999
> +++ drivers/block/piix.c Fri Oct 8 08:52:39 1999
> @@ -166,6 +166,9 @@
> int a_speed = 2 << (drive_number * 4);
> int u_flag = 1 << drive_number;
>
> + if (!id)
> + return ide_dma_off_quietly;
> +
> pci_read_config_word(dev, maslave, ®4042);
> sitre = (reg4042 & 0x4000) ? 1 : 0;
> pci_read_config_word(dev, 0x44, ®44);
>
> (That was against 2.3.18ac8 or so, I believe.) So: does anyone want to
> try and debug why my piix3 seems to be telling Linux it has an hdb? I
> am happy to run test patches but I don't know enough about Linux, the
> PC BIOS or IDE to do much more by myself.
>
> --
> Peter Samuelson
> <sampo.creighton.edu!psamuels>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/