public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* dose not detect SATA on DELL 750 without CDROM
@ 2004-09-06  3:02 test
  0 siblings, 0 replies; only message in thread
From: test @ 2004-09-06  3:02 UTC (permalink / raw)
  To: linux-kernel


In a Dell PowerEdge 750, the SATA harddisk cannot be recognized by the
kernel (causing a kernel panic) if the cdrom drive is removed.

If the cdrom drive is put back, everything works fine!!!

These are the output before the kernel panic:

VFS: Mounted root (ext2 filesystem).
Red Hat nash version 3.5.21 starting
SCSI subsystem initialized
ata_piix: combined mode detected
ACPI: No IRQ known for interrupt pin A of device 0000:00:1f.2
ata1: PATA max UDMA/33 cdm 0x1F0 ctl 0x3F6 bmdma 0xFEA0 irq 14
ata1: port disabled. ignoring.
scsi0: ata_piix
Using cfq io scheduler
ata2: SATA max UDMA/133 cdm 0x170 ctl 0x376 bmdma 0xFEA8 irq 15
ata2: port disabled. ignoring.
scsi1 : ata_piix
VFS: Cannot open root device "LABEL=/" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)

2.4 and 2.6 have same problem.

then i find a patch for 2.4 kernel in dell:

http://linux.dell.com/blog/contributions
http://linux.dell.com/files/patches/sata/ata_piix.c.patch


and i also make a patch for 2.6 kernel:

*** ata_piix.c.orig	Mon Sep  6 22:25:32 2004
--- ata_piix.c	Mon Sep  6 22:25:43 2004
***************
*** 272,279 ****
  
  static void piix_pata_phy_reset(struct ata_port *ap)
  {
  	if (!pci_test_config_bits(ap->host_set->pdev,
! 				  &piix_enable_bits[ap->port_no])) {
  		ata_port_disable(ap);
  		printk(KERN_INFO "ata%u: port disabled. ignoring.\n", ap->id);
  		return;
--- 272,290 ----
  
  static void piix_pata_phy_reset(struct ata_port *ap)
  {
+ 	unsigned int controller;
+ 
+ 	/* In combined legacy mode, port number is not the same
+ 	 * as primary/secondary controller!
+ 	 */
+ 	switch (ap->ioaddr.cmd_addr) {
+ 		case 0x1f0: controller = 0; break;
+ 		case 0x170: controller = 1; break;
+ 		default: controller = ap->port_no;
+ 	}
+ 
  	if (!pci_test_config_bits(ap->host_set->pdev,
! 				  &piix_enable_bits[controller])) {
  		ata_port_disable(ap);
  		printk(KERN_INFO "ata%u: port disabled. ignoring.\n", ap->id);
  		return;



all works fine.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-06  3:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-06  3:02 dose not detect SATA on DELL 750 without CDROM test

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