direct-io.hg

view patches/linux-2.6.16.13/fix-ide-cd-pio-mode.patch @ 11522:1fae74cd3963

[POWERPC][XEN] Fix infinite loop caused by hdec storm

This was the cause of the periodic hang on secondary processors that has
been holding back the submission of the SMP patch.

Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Thu Sep 14 22:06:15 2006 -0400 (2006-09-14)
parents ad33b3882867
children
line source
1 diff -ru ../pristine-linux-2.6.16.13/drivers/ide/ide-lib.c ./drivers/ide/ide-lib.c
2 --- ../pristine-linux-2.6.16.13/drivers/ide/ide-lib.c 2006-05-02 22:38:44.000000000 +0100
3 +++ ./drivers/ide/ide-lib.c 2006-05-24 18:37:05.000000000 +0100
4 @@ -410,10 +410,10 @@
5 {
6 u64 addr = BLK_BOUNCE_HIGH; /* dma64_addr_t */
8 - if (!PCI_DMA_BUS_IS_PHYS) {
9 - addr = BLK_BOUNCE_ANY;
10 - } else if (on && drive->media == ide_disk) {
11 - if (HWIF(drive)->pci_dev)
12 + if (on && drive->media == ide_disk) {
13 + if (!PCI_DMA_BUS_IS_PHYS)
14 + addr = BLK_BOUNCE_ANY;
15 + else if (HWIF(drive)->pci_dev)
16 addr = HWIF(drive)->pci_dev->dma_mask;
17 }