Patch

From PrgmrWiki

so sata_mv doesn't recognise my adaptec card... I'm guessing it is the right driver, just needs the PCI id 'cause it works fine in CentOS, just not in the xen.org kernel.

I could try to backport: http://www.mail-archive.com/mm-commits@vger.kernel.org/msg19427.html


floren attenburger said:

+       /* Adaptec 1430SA */
+       { PCI_VDEVICE(ADAPTEC2, 0x0243), chip_7042 },
+

so just guessing I want something like:

*** sata_mv.c.orig	2009-04-05 22:42:56.000000000 -0700
--- sata_mv.c	2009-04-05 22:51:13.000000000 -0700
***************
*** 545,550 ****
--- 545,551 ----
  	{PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x6081), 0, 0, chip_608x},
  
  	{PCI_DEVICE(PCI_VENDOR_ID_ADAPTEC2, 0x0241), 0, 0, chip_604x},
+ 	{PCI_DEVICE(PCI_VENDOR_ID_ADAPTEC2, 0x0243), 0, 0, chip_7042},
  	{}			/* terminate list */
  };


but that would mostly be flying blind, and I figure the redhat guys are better at this than I am.


(ok, I lie, I'm testing this first but I am guessing it's not going to work.)


so I'm downloading the RHEL src: ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/kernel-2.6.18-128.1.1.el5.src.rpm


I believe I need to add the following patches from the specfile in the following order:

# SATA Bits
Patch2200: linux-2.6-sata-promise-pata-ports.patch   #pata, skipping
Patch2201: linux-2.6-sata-ahci-suspend.patch         #not ahci skipping
Patch2202: linux-2.6-sata-sas-adapters-support.patch  #applying
Patch21214: linux-2.6-sata-timeout-boot-message.patch  #skipping
Patch21216: linux-2.6-sata-ahci-support-ahci-class-code.patch   #skipping
Patch21217: linux-2.6-sata-support-legacy-ide-mode-of-sb600-sata.patch  #skipping
Patch21479: linux-2.6-sata-move-sata-drivers-to-drivers-ata.patch

pain in the assrej

***************
*** 123,145 ****
  obj-$(CONFIG_SCSI_FCAL)               += fcal.o
  obj-$(CONFIG_SCSI_LASI700)    += 53c700.o lasi700.o
  obj-$(CONFIG_SCSI_NSP32)      += nsp32.o
- obj-$(CONFIG_SCSI_IPR)                += libata.o ipr.o
  obj-$(CONFIG_SCSI_IBMVSCSI)   += ibmvscsi/
- obj-$(CONFIG_SCSI_SATA_AHCI)  += libata.o ahci.o
- obj-$(CONFIG_SCSI_SATA_SVW)   += libata.o sata_svw.o
- obj-$(CONFIG_SCSI_ATA_PIIX)   += libata.o ata_piix.o
- obj-$(CONFIG_SCSI_SATA_PROMISE)       += libata.o sata_promise.o
- obj-$(CONFIG_SCSI_SATA_QSTOR) += libata.o sata_qstor.o
- obj-$(CONFIG_SCSI_SATA_SIL)   += libata.o sata_sil.o
- obj-$(CONFIG_SCSI_SATA_SIL24) += libata.o sata_sil24.o
- obj-$(CONFIG_SCSI_SATA_VIA)   += libata.o sata_via.o
- obj-$(CONFIG_SCSI_SATA_VITESSE)       += libata.o sata_vsc.o
- obj-$(CONFIG_SCSI_SATA_SIS)   += libata.o sata_sis.o
- obj-$(CONFIG_SCSI_SATA_SX4)   += libata.o sata_sx4.o
- obj-$(CONFIG_SCSI_SATA_NV)    += libata.o sata_nv.o
- obj-$(CONFIG_SCSI_SATA_ULI)   += libata.o sata_uli.o
- obj-$(CONFIG_SCSI_SATA_MV)    += libata.o sata_mv.o
- obj-$(CONFIG_SCSI_PDC_ADMA)   += libata.o pdc_adma.o
  obj-$(CONFIG_SCSI_HPTIOP)     += hptiop.o
  obj-$(CONFIG_SCSI_STEX)               += stex.o
  
--- 123,130 ----
  obj-$(CONFIG_SCSI_FCAL)               += fcal.o
  obj-$(CONFIG_SCSI_LASI700)    += 53c700.o lasi700.o
  obj-$(CONFIG_SCSI_NSP32)      += nsp32.o
+ obj-$(CONFIG_SCSI_IPR)                += ipr.o
  obj-$(CONFIG_SCSI_IBMVSCSI)   += ibmvscsi/
  obj-$(CONFIG_SCSI_HPTIOP)     += hptiop.o
  obj-$(CONFIG_SCSI_STEX)               += stex.o


Patch21480: linux-2.6-sata-super-jumbo-update.patch

as far as I can tell 21480 is the one i want... it adds support for my card. I might be able to stop here

Patch21651: linux-2.6-sata-combined-mode-regression-fix.patch
Patch21677: linux-2.6-sata-add-hitachi-to-ncq-blacklist.patch
Patch21687: linux-2.6-sata-regression-in-support-for-third-party-module.patch

Patch21760: linux-2.6-scsi-sata-raid-150-4-6-do-not-support-64-bit-dma.patch Patch21809: linux-2.6-sata-libata-probing-fixes-and-other-cleanups.patch Patch21924: linux-2.6-misc-intel-tolapai-sata-and-i2c-support.patch

Patch22242: linux-2.6-sata-rhel5-2-general-kernel-prep.patch Patch22243: linux-2.6-sata-rhel5-2-driver-update.patch

Patch22391: linux-2.6-sata-combined-mode-fix-for-5-2.patch Patch22432: linux-2.6-libata-sata_nv-may-send-cmds-with-duplicate-tags.patch Patch22433: linux-2.6-libata-sata_nv-un-blacklist-hitachi-drives.patch Patch22512: linux-2.6-ata-fix-sata-ide-mode-bug-upon-resume.patch Patch22528: linux-2.6-sata-sb700-sb800-64bit-dma-support.patch Patch22567: linux-2.6-sata-update-sata_svw.patch Patch22985: linux-2.6-sata-update-driver-to-2-6-26-rc5.patch Patch22986: linux-2.6-sata-prep-work-for-rhel5-3.patch Patch23373: linux-2.6-sata-libata-is-broken-with-large-disks.patch Patch23445: linux-2.6-ata-libata-sata_nv-hard-reset-mcp55.patch



skipping to 

linux-2.6-sata-super-jumbo-update.patch


and I fail