fedora-cvs-commits@redhat.com
[Top] [All Lists]

rpms/kernel/devel linux-2.6-debug-pm-pci.patch, NONE, 1.1 kernel-2.6.spe

Subject: rpms/kernel/devel linux-2.6-debug-pm-pci.patch, NONE, 1.1 kernel-2.6.spec, 1.2002, 1.2003
From:
Date: Wed, 1 Mar 2006 15:51:06 -0500
Author: davej

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

Modified Files:
        kernel-2.6.spec 
Added Files:
        linux-2.6-debug-pm-pci.patch 
Log Message:
tweak PCI config space restore to not do so much, and log what it is doing
for further investigation.


linux-2.6-debug-pm-pci.patch:
 pci.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

--- NEW FILE linux-2.6-debug-pm-pci.patch ---
--- linux-2.6.15.noarch/drivers/pci/pci.c~      2006-03-01 15:41:00.000000000 
-0500
+++ linux-2.6.15.noarch/drivers/pci/pci.c       2006-03-01 15:47:37.000000000 
-0500
@@ -454,9 +454,17 @@ int 
 pci_restore_state(struct pci_dev *dev)
 {
        int i;
+       int val;
 
-       for (i = 0; i < 16; i++)
-               pci_write_config_dword(dev,i * 4, dev->saved_config_space[i]);
+       for (i = 0; i < 16; i++) {
+               pci_read_config_dword(dev, i * 4, &val);
+               if (val != dev->saved_config_space[i]) {
+                       printk (KERN_DEBUG "PM: Writing back config space on 
device %s at offset %x. (Was %x, writing %x)\n",
+                                               pci_name(dev), i,
+                                               val, (int) 
dev->saved_config_space[i]);
+                       pci_write_config_dword(dev,i * 4, 
dev->saved_config_space[i]);
+               }
+       }
        return 0;
 }
 


Index: kernel-2.6.spec
===================================================================
RCS file: /cvs/dist/rpms/kernel/devel/kernel-2.6.spec,v
retrieving revision 1.2002
retrieving revision 1.2003
diff -u -r1.2002 -r1.2003
--- kernel-2.6.spec     1 Mar 2006 20:07:16 -0000       1.2002
+++ kernel-2.6.spec     1 Mar 2006 20:51:03 -0000       1.2003
@@ -312,6 +312,7 @@
 Patch1031: linux-2.6-debug-periodic-slab-check.patch
 Patch1032: linux-2.6-debug-boot-delay.patch
 Patch1033: linux-2.6-debug-must_check.patch
+Patch1034: linux-2.6-debug-pm-pci.patch
 
 # Restrict /dev/mem usage.
 Patch1050: linux-2.6-devmem.patch
@@ -840,6 +841,7 @@
 %patch1031 -p1
 %patch1032 -p1
 %patch1033 -p1
+%patch1034 -p1
 
 #
 # Make /dev/mem a need-to-know function 

-- 
fedora-cvs-commits mailing list
fedora-cvs-commits@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-cvs-commits

<Prev in Thread] Current Thread [Next in Thread>
  • rpms/kernel/devel linux-2.6-debug-pm-pci.patch, NONE, 1.1 kernel-2.6.spec, 1.2002, 1.2003, fedora-cvs-commits <=