rpms/kernel/F-8 linux-2.6-pci-dont-size-transparent-bridges.patch, NONE, 1.1 linux-2.6-sched-disable-precise-accounting.patch, NONE, 1.1 kernel.spec, 1.261, 1.262

Chuck Ebbert (cebbert) fedora-extras-commits at redhat.com
Wed Nov 14 01:05:18 UTC 2007


Author: cebbert

Update of /cvs/pkgs/rpms/kernel/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6257

Modified Files:
	kernel.spec 
Added Files:
	linux-2.6-pci-dont-size-transparent-bridges.patch 
	linux-2.6-sched-disable-precise-accounting.patch 
Log Message:
* Tue Nov 13 2007 Chuck Ebbert <cebbert at redhat.com>
- Disable precise CPU time accounting, fixing a divide-by-zero bug.
- Disable transparent PCI bridge resizing.


linux-2.6-pci-dont-size-transparent-bridges.patch:

--- NEW FILE linux-2.6-pci-dont-size-transparent-bridges.patch ---
From: Gary Hade <garyhade at us.ibm.com>
Date: Wed, 3 Oct 2007 22:55:51 +0000 (-0700)
Subject: PCI: remove transparent bridge sizing
X-Git-Tag: v2.6.24-rc1~1393^2~7
X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=8fa5913d54f3b1e09948e6a0db34da887e05ff1f

[bz 375821?]

PCI: remove transparent bridge sizing

Remove transparent bridge sizing.

Due to code in pci_read_bridge_bases() [drivers/pci/probe.c] the child
bus of a transparent bridge already has access to the parent bus
resources so transparent bridge sizing appears unnecessary.  The bridge
sizing includes alignment and granularity adjustments that can cause
significantly more memory to be reserved from the parant bus than
required by devices on the child bus and allotted by _CRS.

Signed-off-by: Gary Hade <gary.hade at us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
---

diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c
index 5e5191e..401e03c 100644
--- a/drivers/pci/setup-bus.c
+++ b/drivers/pci/setup-bus.c
@@ -472,7 +472,12 @@ void pci_bus_size_bridges(struct pci_bus *bus)
 		break;
 
 	case PCI_CLASS_BRIDGE_PCI:
+		/* don't size subtractive decoding (transparent)
+		 * PCI-to-PCI bridges */
+		if (bus->self->transparent)
+			break;
 		pci_bridge_check_ranges(bus);
+		/* fall through */
 	default:
 		pbus_size_io(bus);
 		/* If the bridge supports prefetchable range, size it

linux-2.6-sched-disable-precise-accounting.patch:

--- NEW FILE linux-2.6-sched-disable-precise-accounting.patch ---
---
 kernel/sched_fair.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.23.noarch.orig/kernel/sched_fair.c
+++ linux-2.6.23.noarch/kernel/sched_fair.c
@@ -93,7 +93,7 @@ unsigned int sysctl_sched_features __rea
 		SCHED_FEAT_FAIR_SLEEPERS	*1 |
 		SCHED_FEAT_SLEEPER_AVG		*0 |
 		SCHED_FEAT_SLEEPER_LOAD_AVG	*1 |
-		SCHED_FEAT_PRECISE_CPU_LOAD	*1 |
+		SCHED_FEAT_PRECISE_CPU_LOAD	*0 |
 		SCHED_FEAT_START_DEBIT		*1 |
 		SCHED_FEAT_SKIP_INITIAL		*0;
 


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-8/kernel.spec,v
retrieving revision 1.261
retrieving revision 1.262
diff -u -r1.261 -r1.262
--- kernel.spec	13 Nov 2007 22:01:31 -0000	1.261
+++ kernel.spec	14 Nov 2007 01:04:44 -0000	1.262
@@ -722,6 +722,7 @@
 Patch1515: linux-2.6-lirc.patch
 
 Patch1600: linux-2.6-params-sysfs-skip-missing-period.patch
+Patch1610: linux-2.6-pci-dont-size-transparent-bridges.patch
 
 #nouveau + drm fixes
 Patch1800: drm-mm-git.patch
@@ -746,6 +747,8 @@
 # cputime accounting is broken, fix is in 2.6.24
 Patch2220: linux-2.6-sched-keep-stime-monotonic.patch
 Patch2221: linux-2.6-sched-keep-utime-monotonic.patch
+# precise CPU accounting causes divide by zero
+Patch2230: linux-2.6-sched-disable-precise-accounting.patch
 
 %endif
 
@@ -1185,6 +1188,8 @@
 ApplyPatch linux-2.6-irq-synchronization.patch
 # don't create bogus sysfs files
 ApplyPatch linux-2.6-params-sysfs-skip-missing-period.patch
+# don't resize transparent bridges
+ApplyPatch linux-2.6-pci-dont-size-transparent-bridges.patch
 
 #
 # SCSI Bits.
@@ -1381,6 +1386,8 @@
 # cputime accounting fix, fixes "task using 9999% of CPU"
 ApplyPatch linux-2.6-sched-keep-utime-monotonic.patch
 ApplyPatch linux-2.6-sched-keep-stime-monotonic.patch
+# precise cpu time accounting causes divide by zero
+ApplyPatch linux-2.6-sched-disable-precise-accounting.patch
 
 # END OF PATCH APPLICATIONS
 
@@ -1979,6 +1986,10 @@
 
 %changelog
 * Tue Nov 13 2007 Chuck Ebbert <cebbert at redhat.com>
+- Disable precise CPU time accounting, fixing a divide-by-zero bug.
+- Disable transparent PCI bridge resizing.
+
+* Tue Nov 13 2007 Chuck Ebbert <cebbert at redhat.com>
 - Add touchpad support for Dell Vostro 1400 and Thinkpad R61 (#375471)
 
 * Tue Nov 13 2007 Chuck Ebbert <cebbert at redhat.com>




More information about the fedora-extras-commits mailing list