PIO mode of sata_sil.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Hi,

  I have a defective device, ARAID 99 2000 (RAID0 mode).  
I want to use this RAID system connected with the Sil3112A PCI
card.  However, this RAID system does not work on DMA mode.  

  So I modified the kernel code (sata_sil.c) to use the PIO 
mode as follows. However, the kernel reports `kernel NULL pointer 
dereference at virtual address 0000002c' in the dmesg.  The
screen shot is here:
  http://www.a.phys.nagoya-u.ac.jp/~cyamauch/p1030021.jpg


  Doesn't Sil3112A support PIO mode?


*** /usr/src/linux-2.4.31/drivers/scsi/sata_sil.c._orig_	Wed Jun  1 09:56:34 2005
--- /usr/src/linux-2.4.31/drivers/scsi/sata_sil.c	Wed Feb 22 08:49:03 2006
***************
*** 67,72 ****
--- 67,73 ----
  	SIL_INTR_STEERING	= (1 << 1),
  	SIL_QUIRK_MOD15WRITE	= (1 << 0),
  	SIL_QUIRK_UDMA5MAX	= (1 << 1),
+ 	SIL_QUIRK_ARAID		= (1 << 2),
  };
  
  static int sil_init_one (struct pci_dev *pdev, const struct pci_device_id *ent);
***************
*** 106,111 ****
--- 107,113 ----
  	{ "ST380011ASL",	SIL_QUIRK_MOD15WRITE },
  	{ "ST3120022ASL",	SIL_QUIRK_MOD15WRITE },
  	{ "ST3160021ASL",	SIL_QUIRK_MOD15WRITE },
+ 	{ "ASI ARAID99 2000",	SIL_QUIRK_ARAID },
  	{ "Maxtor 4D060H3",	SIL_QUIRK_UDMA5MAX },
  	{ }
  };
***************
*** 345,350 ****
--- 347,360 ----
  		ap->udma_mask &= ATA_UDMA5;
  		return;
  	}
+ 
+ 	if (quirks & SIL_QUIRK_ARAID) {
+ 		printk(KERN_INFO "ata%u(%u): applying ASI ARAID99 errata fix %s\n",
+ 		       ap->id, dev->devno, s);
+ 		ap->udma_mask = 0;
+ 		ap->mwdma_mask = 0;
+ 		return;
+ 	}
  }
  
  static int sil_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)


==  Chisato Yamauchi  =================================
-
: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux