Re: kernel 2.6.25 with ide driver cs5520 does not boot.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: TAKADA Yoshihito <takada@...>
Cc: <linux-kernel@...>, <linux-ide@...>
Date: Wednesday, May 14, 2008 - 6:28 pm

On Wednesday 14 May 2008, Bartlomiej Zolnierkiewicz wrote:

[...]

Please also try 2.6.26-rc2 without the above patch but with the following
patch applied instead - according to comments in OpenFirmware & pata_cs5520
code 0x60 register contains bus-master enable bit, it could be that it was
left disabled by BIOS and we need to explicitely enable it (if somebody has
CX5510 or CX5520 datasheet please verify this + send me a copy if possible).

---
 drivers/ide/pci/cs5520.c |    8 ++++++++
 1 file changed, 8 insertions(+)

Index: b/drivers/ide/pci/cs5520.c
===================================================================
--- a/drivers/ide/pci/cs5520.c
+++ b/drivers/ide/pci/cs5520.c
@@ -147,6 +147,7 @@ static int __devinit cs5520_init_one(str
 {
 	const struct ide_port_info *d = &cyrix_chipsets[id->driver_data];
 	u8 idx[4] = { 0xff, 0xff, 0xff, 0xff };
+	u8 pcicfg;
 
 	ide_setup_pci_noise(dev, d);
 
@@ -163,6 +164,13 @@ static int __devinit cs5520_init_one(str
 		return -ENODEV;
 	}
 
+	pci_read_config_byte(dev, 0x60, &pcicfg);
+
+	if ((pcicfg & 0x40) == 0) {
+		printk(KERN_WARNING "cs5520: DMA mode disabled. Enabling.\n");
+		pci_write_config_byte(dev, 0x60, pcicfg | 0x40);
+	}
+
 	/*
 	 *	Now the chipset is configured we can let the core
 	 *	do all the device setup for us

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
kernel 2.6.25 with ide driver cs5520 does not boot., TAKADA Yoshihito, (Thu May 8, 3:58 am)
Re: kernel 2.6.25 with ide driver cs5520 does not boot., Bartlomiej Zolnierkiewicz..., (Thu May 8, 9:07 am)
Re: kernel 2.6.25 with ide driver cs5520 does not boot., TAKADA Yoshihito, (Thu May 8, 10:22 pm)
Re: kernel 2.6.25 with ide driver cs5520 does not boot., Bartlomiej Zolnierkiewicz..., (Fri May 9, 5:27 am)
Re: kernel 2.6.25 with ide driver cs5520 does not boot., TAKADA Yoshihito, (Fri May 9, 8:56 am)
Re: kernel 2.6.25 with ide driver cs5520 does not boot., Bartlomiej Zolnierkiewicz..., (Wed May 14, 4:44 pm)
Re: kernel 2.6.25 with ide driver cs5520 does not boot., TAKADA Yoshihito, (Sun May 18, 12:37 am)
Re: kernel 2.6.25 with ide driver cs5520 does not boot., Bartlomiej Zolnierkiewicz..., (Sun May 18, 2:14 pm)
Re: kernel 2.6.25 with ide driver cs5520 does not boot., Bartlomiej Zolnierkiewicz..., (Wed May 14, 6:28 pm)
Re: kernel 2.6.25 with ide driver cs5520 does not boot., TAKADA Yoshihito, (Fri May 30, 1:01 am)
Re: kernel 2.6.25 with ide driver cs5520 does not boot., Bartlomiej Zolnierkiewicz..., (Wed Jun 11, 4:27 pm)