Re: pata_serverworks hangs

2007-11-02 Thread Jeff Garzik

Krzysztof Oledzki wrote:

Hello,

I just tried to switch from old IDE to libata but unfortunately kernel 
(2.6.22.10) hangs during boot:


does 2.6.23.1 or 2.6.24-rc1 work?

Jeff



-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: pata_serverworks hangs

2007-11-02 Thread Krzysztof Oledzki



On Fri, 2 Nov 2007, Jeff Garzik wrote:


Krzysztof Oledzki wrote:

Hello,

I just tried to switch from old IDE to libata but unfortunately kernel 
(2.6.22.10) hangs during boot:


does 2.6.23.1 or 2.6.24-rc1 work?


Ah, I was afraid of this question. ;) This is a quite important server and 
I am not ready to put there 2.6.23.1 and especially 2.6.24-rc1. However, 
since you asked, I have no other solution than to boot it with 
2.6.23.1/2.6.24-rc1, but with init=/bin/sh and see what happen.


Thanks.

Best regards,

Krzysztof Olędzki

Re: pata_serverworks hangs

2007-11-02 Thread Alan Cox
On Fri, 2 Nov 2007 14:29:17 +0100 (CET)
Krzysztof Oledzki <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> I just tried to switch from old IDE to libata but unfortunately kernel 
> (2.6.22.10) hangs during boot:
> 
> ata1: PATA max UDMA/66 cmd 0x000101e8 ctl 0x000103ee bmdma 0x00012c40 irq 11
> ata2: DUMMY
> ata1.00: ATAPI: HL-DT-ST CD-ROM GCR-8482B, 1.00, max MWDMA2
> ara1.01: ATAPI: LITE-ON LTR-62327S, QS75, max UDMA/33
> ata1.00: configured for MWDMA2
> ata1.00: configured for UDMA/33
> scsi 2:0:0:0: CDROM HL-DT-ST CDROM GCR-8482B 1.00 PQ: 0 ANSI 5
> (kernel hangs)
> 
> Attaching lspci and dmesg from working system, with pata_serverworks 
> disabled.


Interesting. Serverworks has been fairly well behaved. You seem to have a
fairly standard CSB6 setup. Whats the motherboard and is the CSB6 one of
the RAID card options or just motherboard mounted ?
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: pata_serverworks hangs

2007-11-02 Thread Alan Cox
On Fri, 2 Nov 2007 14:29:17 +0100 (CET)
Krzysztof Oledzki <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> I just tried to switch from old IDE to libata but unfortunately kernel 
> (2.6.22.10) hangs during boot:
> 
> ata1: PATA max UDMA/66 cmd 0x000101e8 ctl 0x000103ee bmdma 0x00012c40 irq 11
> ata2: DUMMY
> ata1.00: ATAPI: HL-DT-ST CD-ROM GCR-8482B, 1.00, max MWDMA2
> ara1.01: ATAPI: LITE-ON LTR-62327S, QS75, max UDMA/33
> ata1.00: configured for MWDMA2
> ata1.00: configured for UDMA/33
> scsi 2:0:0:0: CDROM HL-DT-ST CDROM GCR-8482B 1.00 PQ: 0 ANSI 5
> (kernel hangs)
> 
> Attaching lspci and dmesg from working system, with pata_serverworks 
> disabled.

Try the following patch and let me know if it helps:


--- drivers/ata/pata_serverworks.c~ 2007-11-02 17:25:41.078936752 +
+++ drivers/ata/pata_serverworks.c  2007-11-02 17:25:41.078936752 +
@@ -274,28 +274,27 @@
 {
static const u8 dma_mode[] = { 0x77, 0x21, 0x20 };
int offset = 1 + 2 * ap->port_no - adev->devno;
-   int devbits = (2 * ap->port_no + adev->devno);
+   int devbits = 2 * ap->port_no + adev->devno;
u8 ultra;
u8 ultra_cfg;
struct pci_dev *pdev = to_pci_dev(ap->host->dev);
 
pci_read_config_byte(pdev, 0x54, &ultra_cfg);
+   pci_read_config_byte(pdev, 0x56 + ap->port_no, &ultra);
+   ultra &= ~(0x0F << (adev->devno * 4));
 
if (adev->dma_mode >= XFER_UDMA_0) {
pci_write_config_byte(pdev, 0x44 + offset,  0x20);
 
-   pci_read_config_byte(pdev, 0x56 + ap->port_no, &ultra);
-   ultra &= ~(0x0F << (ap->port_no * 4));
ultra |= (adev->dma_mode - XFER_UDMA_0)
-   << (ap->port_no * 4);
-   pci_write_config_byte(pdev, 0x56 + ap->port_no, ultra);
-
+   << (adev->devno * 4);
ultra_cfg |=  (1 << devbits);
} else {
pci_write_config_byte(pdev, 0x44 + offset,
dma_mode[adev->dma_mode - XFER_MW_DMA_0]);
ultra_cfg &= ~(1 << devbits);
}
+   pci_write_config_byte(pdev, 0x56 + ap->port_no, ultra);
pci_write_config_byte(pdev, 0x54, ultra_cfg);
 }
 
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: pata_serverworks hangs

2007-11-02 Thread Krzysztof Oledzki



On Fri, 2 Nov 2007, Alan Cox wrote:


On Fri, 2 Nov 2007 14:29:17 +0100 (CET)
Krzysztof Oledzki <[EMAIL PROTECTED]> wrote:


Hello,

I just tried to switch from old IDE to libata but unfortunately kernel
(2.6.22.10) hangs during boot:

ata1: PATA max UDMA/66 cmd 0x000101e8 ctl 0x000103ee bmdma 0x00012c40 irq 11
ata2: DUMMY
ata1.00: ATAPI: HL-DT-ST CD-ROM GCR-8482B, 1.00, max MWDMA2
ara1.01: ATAPI: LITE-ON LTR-62327S, QS75, max UDMA/33
ata1.00: configured for MWDMA2
ata1.00: configured for UDMA/33
scsi 2:0:0:0: CDROM HL-DT-ST CDROM GCR-8482B 1.00 PQ: 0 ANSI 5
(kernel hangs)

Attaching lspci and dmesg from working system, with pata_serverworks
disabled.



Interesting. Serverworks has been fairly well behaved. You seem to have a
fairly standard CSB6 setup. Whats the motherboard


RIOWORKS PDRCA

and is the CSB6 one of the RAID card options or just motherboard mounted 
?


No additional RAID, only two cdroms connected to the motherboard. BTW: I 
also have the output from old IDE if that may help:


hde: HL-DT-ST CD-ROM GCR-8482B, ATAPI CD/DVD-ROM drive
hdf: LITE-ON LTR-52327S, ATAPI CD/DVD-ROM drive
ide2 at 0x1e8-0x1ef,0x3ee on irq 11
SvrWks CSB6: IDE controller at PCI slot :00:0f.1
SvrWks CSB6: chipset revision 160
SvrWks CSB6: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x2c50-0x2c57, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0x2c58-0x2c5f, BIOS settings: hdc:pio, hdd:DMA
Probing IDE interface ide0...
Probing IDE interface ide1...
Probing IDE interface ide0...
Probing IDE interface ide1...
hde: ATAPI 48X CD-ROM drive, 128kB Cache, DMA
Uniform CD-ROM driver Revision: 3.20
hdf: ATAPI 52X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)


Best regards,

Krzysztof Olędzki

Re: pata_serverworks hangs

2007-11-09 Thread Krzysztof Oledzki



On Fri, 2 Nov 2007, Alan Cox wrote:


On Fri, 2 Nov 2007 14:29:17 +0100 (CET)
Krzysztof Oledzki <[EMAIL PROTECTED]> wrote:


Hello,

I just tried to switch from old IDE to libata but unfortunately kernel
(2.6.22.10) hangs during boot:

ata1: PATA max UDMA/66 cmd 0x000101e8 ctl 0x000103ee bmdma 0x00012c40 irq 11
ata2: DUMMY
ata1.00: ATAPI: HL-DT-ST CD-ROM GCR-8482B, 1.00, max MWDMA2
ara1.01: ATAPI: LITE-ON LTR-62327S, QS75, max UDMA/33
ata1.00: configured for MWDMA2
ata1.01: configured for UDMA/33
scsi 2:0:0:0: CDROM HL-DT-ST CDROM GCR-8482B 1.00 PQ: 0 ANSI 5
(kernel hangs)

Attaching lspci and dmesg from working system, with pata_serverworks
disabled.


Try the following patch and let me know if it helps:


It did not help. :( System still hangs exactly like before.


Best regards,

Krzysztof Oledzki
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: pata_serverworks hangs

2007-11-09 Thread Krzysztof Oledzki



On Fri, 2 Nov 2007, Jeff Garzik wrote:


Krzysztof Oledzki wrote:

Hello,

I just tried to switch from old IDE to libata but unfortunately kernel 
(2.6.22.10) hangs during boot:


does 2.6.23.1 or 2.6.24-rc1 work?


No. :( I checked 2.6.23.1 and 2.6.24-rc2 (with recent Alan's 
pata_serverworks fix).


Best regards,

Krzysztof Olędzki

Re: pata_serverworks hangs

2007-11-13 Thread Krzysztof Oledzki



On Fri, 9 Nov 2007, Krzysztof Oledzki wrote:




On Fri, 2 Nov 2007, Alan Cox wrote:


On Fri, 2 Nov 2007 14:29:17 +0100 (CET)
Krzysztof Oledzki <[EMAIL PROTECTED]> wrote:


Hello,

I just tried to switch from old IDE to libata but unfortunately kernel
(2.6.22.10) hangs during boot:

ata1: PATA max UDMA/66 cmd 0x000101e8 ctl 0x000103ee bmdma 0x00012c40 irq 
11

ata2: DUMMY
ata1.00: ATAPI: HL-DT-ST CD-ROM GCR-8482B, 1.00, max MWDMA2
ara1.01: ATAPI: LITE-ON LTR-62327S, QS75, max UDMA/33
ata1.00: configured for MWDMA2
ata1.01: configured for UDMA/33
scsi 2:0:0:0: CDROM HL-DT-ST CDROM GCR-8482B 1.00 PQ: 0 ANSI 5
(kernel hangs)

Attaching lspci and dmesg from working system, with pata_serverworks
disabled.


Try the following patch and let me know if it helps:


It did not help. :( System still hangs exactly like before.


I'm willing to test more patches if that's possible. ;)

Best regards,

Krzysztof Oledzki
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html