public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.5.37 oopses at boot in ide_toggle_bounce
@ 2002-09-21 12:11 Andries.Brouwer
  2002-09-22 19:54 ` Thunder from the hill
  2002-09-23  7:41 ` Jens Axboe
  0 siblings, 2 replies; 9+ messages in thread
From: Andries.Brouwer @ 2002-09-21 12:11 UTC (permalink / raw)
  To: linux-kernel

2.5.37 oopses at boot in ide_toggle_bounce().
With

--- linux-2.5.37/linux/drivers/ide/ide-lib.c    Sat Sep 21 11:39:48 2002
+++ linux-2.5.37a/linux/drivers/ide/ide-lib.c   Sat Sep 21 14:06:45 2002
@@ -394,7 +394,7 @@
        if (on && drive->media == ide_disk) {
                if (!PCI_DMA_BUS_IS_PHYS)
                        addr = BLK_BOUNCE_ANY;
-               else
+               else if (HWIF(drive)->pci_dev)
                        addr = HWIF(drive)->pci_dev->dma_mask;
        }

it boots for me. I have not investigated a proper fix.

Andries

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: 2.5.37 oopses at boot in ide_toggle_bounce
@ 2002-09-30 18:30 Andries.Brouwer
  0 siblings, 0 replies; 9+ messages in thread
From: Andries.Brouwer @ 2002-09-30 18:30 UTC (permalink / raw)
  To: aebr, axboe; +Cc: Andries.Brouwer, linux-kernel

> Does it work in 2.4.20-pre-ac?


In 2.4.20-pre8 and in 2.5.33 the disks on a HPT366 are
detected without CONFIG_BLK_DEV_HPT366 being present.
Look at 2.4.20-pre8 in ide-pci.c and find an explicit list
ide_pci_chipsets that is walked by ide_scan_pcidev().

In 2.4.20-pre8ac2 and in 2.5.38 this HPT366 is not seen
without CONFIG_BLK_DEV_HPT366. The routine ide_scan_pcidev()
in setup-pci.c walks a list ide_pci_drivers that is
initially empty. HPT366 will only add itself when hpt366.c
is present and its hpt366_ide_init() invokes
ide_pci_register_driver().


So, all is well in both worlds, but one has to add
CONFIG_BLK_DEV_HPT366=y to .config now.
Long ago that would cause corruption, but so far
I have not seen any bad effects with recent kernels.

All the best - Andries

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-09-30 18:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-21 12:11 2.5.37 oopses at boot in ide_toggle_bounce Andries.Brouwer
2002-09-22 19:54 ` Thunder from the hill
2002-09-23  7:41 ` Jens Axboe
2002-09-23 10:01   ` Andries Brouwer
2002-09-23 10:02     ` Jens Axboe
2002-09-23 10:04       ` Jens Axboe
2002-09-30  1:59       ` Andries Brouwer
2002-09-30 13:51         ` Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2002-09-30 18:30 Andries.Brouwer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox