rpms/kernel/FC-4 kernel-2.6.spec, 1.1479, 1.1480 linux-2.6-libata-intel-combined-quirk.patch, 1.2, 1.3

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Oct 19 23:38:14 UTC 2005


Author: davej

Update of /cvs/dist/rpms/kernel/FC-4
In directory cvs.devel.redhat.com:/tmp/cvs-serv13378

Modified Files:
	kernel-2.6.spec linux-2.6-libata-intel-combined-quirk.patch 
Log Message:
Update to the final upstream variant of the IDE/SATA fix.




Index: kernel-2.6.spec
===================================================================
RCS file: /cvs/dist/rpms/kernel/FC-4/kernel-2.6.spec,v
retrieving revision 1.1479
retrieving revision 1.1480
diff -u -r1.1479 -r1.1480
--- kernel-2.6.spec	19 Oct 2005 23:23:14 -0000	1.1479
+++ kernel-2.6.spec	19 Oct 2005 23:38:09 -0000	1.1480
@@ -1259,6 +1259,7 @@
 * Wed Oct 19 2005 Dave Jones <davej at redhat.com> [2.6.13-1.1532_FC4]
 - Fix CAN-2005-2973 (ipv6 infinite loop)
 - Disable ACPI burst again, it's still problematic.
+- Update to the final upstream variant of the IDE/SATA fix.
 
 * Sun Oct 16 2005 Dave Jones <davej at redhat.com> [2.6.13-1.1531_FC4]
 - Stop IDE claiming legacy ports before libata in combined mode.

linux-2.6-libata-intel-combined-quirk.patch:
 pci/quirks.c |    4 ++--
 scsi/Kconfig |    5 +++++
 2 files changed, 7 insertions(+), 2 deletions(-)

Index: linux-2.6-libata-intel-combined-quirk.patch
===================================================================
RCS file: /cvs/dist/rpms/kernel/FC-4/linux-2.6-libata-intel-combined-quirk.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- linux-2.6-libata-intel-combined-quirk.patch	17 Oct 2005 04:57:34 -0000	1.2
+++ linux-2.6-libata-intel-combined-quirk.patch	19 Oct 2005 23:38:09 -0000	1.3
@@ -1,162 +1,60 @@
 
-The patch described in commit faa725332f39329288f52b7f872ffda866ba5b09
->   [PATCH] SCSI_SATA has to be a tristate
-
-causes the PCI quirk in drivers/pci/quirk.c (quirk_intel_ide_combined)
-to disappear, unless CONFIG_SCSI_SATA==y.  This, in turn, causes all
-manner of booting and interaction problems between the IDE driver and
-libata.
-
-CONFIG_SCSI_SATA is truly a boolean option, not a tristate.
-Since the Kconfig dependencies are insufficient to describe this (2.4
-had dep_mbool), we need to resort to 'if'.
-
-This fix is twofold:
-1) Fix IDE/libata conflict by ensuring that CONFIG_SCSI_SATA symbol
-   always exists (rather than bothering with CONFIG_SCSI_SATA_MODULE).
-2) Restore CONFIG_SCSI_SATA's rightful boolean status, and employ
-   'if' to obtain the proper menu behavior.
-
-Please apply, so that people cursed with PATA/SATA "combined mode"
-can have a working configuration again.
-
-
+tree 338784dc40e0a3ec5f96f5a76c267846ad2f5e8d
+parent 47d6b08334a43fafa61a587f721fa21ef65d81be
+author Jeff Garzik <jgarzik at pobox.com> Mon, 17 Oct 2005 21:01:57 -0400
+committer Linus Torvalds <torvalds at g5.osdl.org> Tue, 18 Oct 2005 05:01:53 -0700
+
+[PATCH] Fix and clean up quirk_intel_ide_combined() configuration
+
+This change makes quirk_intel_ide_combined() dependent on the precise
+conditions under which it is needed:
+
+* IDE is built in
+* IDE SATA option is not set
+* ata_piix or ahci drivers are enabled
+
+This fixes an issue where some modular configurations would not cause
+the quirk to be enabled.
+
+Signed-off-by: Jeff Garzik <jgarzik at pobox.com>
+Signed-off-by: Linus torvalds <torvalds at osdl.org>
+
+ drivers/pci/quirks.c |    4 ++--
+ drivers/scsi/Kconfig |    5 +++++
+ 2 files changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
+--- a/drivers/pci/quirks.c
++++ b/drivers/pci/quirks.c
+@@ -1233,7 +1233,7 @@ static void __init quirk_alder_ioapic(st
+ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL,	PCI_DEVICE_ID_INTEL_EESSC,	quirk_alder_ioapic );
+ #endif
+ 
+-#ifdef CONFIG_SCSI_SATA
++#ifdef CONFIG_SCSI_SATA_INTEL_COMBINED
+ static void __devinit quirk_intel_ide_combined(struct pci_dev *pdev)
+ {
+ 	u8 prog, comb, tmp;
+@@ -1310,7 +1310,7 @@ static void __devinit quirk_intel_ide_co
+ 		request_region(0x170, 8, "libata");	/* port 1 */
+ }
+ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL,    PCI_ANY_ID,	  quirk_intel_ide_combined );
+-#endif /* CONFIG_SCSI_SATA */
++#endif /* CONFIG_SCSI_SATA_INTEL_COMBINED */
+ 
+ 
+ int pcie_mch_quirk;
 diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
 --- a/drivers/scsi/Kconfig
 +++ b/drivers/scsi/Kconfig
-@@ -437,7 +437,7 @@ config SCSI_IN2000
- source "drivers/scsi/megaraid/Kconfig.megaraid"
- 
- config SCSI_SATA
--	tristate "Serial ATA (SATA) support"
-+	bool "Serial ATA (SATA) support"
- 	depends on SCSI
- 	help
- 	  This driver family supports Serial ATA host controllers
-@@ -445,9 +445,11 @@ config SCSI_SATA
- 
- 	  If unsure, say N.
- 
-+if SCSI_SATA
-+
- config SCSI_SATA_AHCI
- 	tristate "AHCI SATA support"
--	depends on SCSI_SATA && PCI
-+	depends on SCSI && PCI
- 	help
- 	  This option enables support for AHCI Serial ATA.
- 
-@@ -455,7 +457,7 @@ config SCSI_SATA_AHCI
- 
- config SCSI_SATA_SVW
- 	tristate "ServerWorks Frodo / Apple K2 SATA support"
--	depends on SCSI_SATA && PCI
-+	depends on SCSI && PCI
- 	help
- 	  This option enables support for Broadcom/Serverworks/Apple K2
- 	  SATA support.
-@@ -464,7 +466,7 @@ config SCSI_SATA_SVW
- 
- config SCSI_ATA_PIIX
- 	tristate "Intel PIIX/ICH SATA support"
--	depends on SCSI_SATA && PCI
-+	depends on SCSI && PCI
- 	help
- 	  This option enables support for ICH5 Serial ATA.
- 	  If PATA support was enabled previously, this enables
-@@ -474,7 +476,7 @@ config SCSI_ATA_PIIX
- 
- config SCSI_SATA_MV
- 	tristate "Marvell SATA support"
--	depends on SCSI_SATA && PCI && EXPERIMENTAL
-+	depends on SCSI && PCI && EXPERIMENTAL
- 	help
- 	  This option enables support for the Marvell Serial ATA family.
- 	  Currently supports 88SX[56]0[48][01] chips.
-@@ -483,7 +485,7 @@ config SCSI_SATA_MV
- 
- config SCSI_SATA_NV
- 	tristate "NVIDIA SATA support"
--	depends on SCSI_SATA && PCI && EXPERIMENTAL
-+	depends on SCSI && PCI && EXPERIMENTAL
- 	help
- 	  This option enables support for NVIDIA Serial ATA.
- 
-@@ -491,7 +493,7 @@ config SCSI_SATA_NV
- 
- config SCSI_SATA_PROMISE
- 	tristate "Promise SATA TX2/TX4 support"
--	depends on SCSI_SATA && PCI
-+	depends on SCSI && PCI
- 	help
- 	  This option enables support for Promise Serial ATA TX2/TX4.
- 
-@@ -499,7 +501,7 @@ config SCSI_SATA_PROMISE
- 
- config SCSI_SATA_QSTOR
- 	tristate "Pacific Digital SATA QStor support"
--	depends on SCSI_SATA && PCI
-+	depends on SCSI && PCI
- 	help
- 	  This option enables support for Pacific Digital Serial ATA QStor.
- 
-@@ -507,7 +509,7 @@ config SCSI_SATA_QSTOR
- 
- config SCSI_SATA_SX4
- 	tristate "Promise SATA SX4 support"
--	depends on SCSI_SATA && PCI && EXPERIMENTAL
-+	depends on SCSI && PCI && EXPERIMENTAL
- 	help
- 	  This option enables support for Promise Serial ATA SX4.
- 
-@@ -515,7 +517,7 @@ config SCSI_SATA_SX4
- 
- config SCSI_SATA_SIL
- 	tristate "Silicon Image SATA support"
--	depends on SCSI_SATA && PCI && EXPERIMENTAL
-+	depends on SCSI && PCI && EXPERIMENTAL
- 	help
- 	  This option enables support for Silicon Image Serial ATA.
- 
-@@ -523,7 +525,7 @@ config SCSI_SATA_SIL
- 
- config SCSI_SATA_SIS
- 	tristate "SiS 964/180 SATA support"
--	depends on SCSI_SATA && PCI && EXPERIMENTAL
-+	depends on SCSI && PCI && EXPERIMENTAL
- 	help
- 	  This option enables support for SiS Serial ATA 964/180.
- 
-@@ -531,7 +533,7 @@ config SCSI_SATA_SIS
- 
- config SCSI_SATA_ULI
- 	tristate "ULi Electronics SATA support"
--	depends on SCSI_SATA && PCI && EXPERIMENTAL
-+	depends on SCSI && PCI && EXPERIMENTAL
- 	help
- 	  This option enables support for ULi Electronics SATA.
- 
-@@ -539,7 +541,7 @@ config SCSI_SATA_ULI
- 
- config SCSI_SATA_VIA
- 	tristate "VIA SATA support"
--	depends on SCSI_SATA && PCI
-+	depends on SCSI && PCI
- 	help
- 	  This option enables support for VIA Serial ATA.
- 
-@@ -547,12 +549,14 @@ config SCSI_SATA_VIA
- 
- config SCSI_SATA_VITESSE
- 	tristate "VITESSE VSC-7174 SATA support"
--	depends on SCSI_SATA && PCI
-+	depends on SCSI && PCI
- 	help
- 	  This option enables support for Vitesse VSC7174 Serial ATA.
+@@ -553,6 +553,11 @@ config SCSI_SATA_VITESSE
  
  	  If unsure, say N.
  
-+endif	# if SCSI_SATA
++config SCSI_SATA_INTEL_COMBINED
++	bool
++	depends on IDE=y && !BLK_DEV_IDE_SATA && (SCSI_SATA_AHCI || SCSI_ATA_PIIX)
++	default y
 +
  config SCSI_BUSLOGIC
  	tristate "BusLogic SCSI support"




More information about the fedora-cvs-commits mailing list