Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e4ac5e4f55f55b16e084a46b1b8e233f490ba701
Commit:     e4ac5e4f55f55b16e084a46b1b8e233f490ba701
Parent:     a030ce4477baa06dd9c037ccd3c8d171aac9ed44
Author:     Dave Jones <[EMAIL PROTECTED]>
AuthorDate: Sun Feb 4 17:37:42 2007 -0500
Committer:  Dave Jones <[EMAIL PROTECTED]>
CommitDate: Sun Feb 4 17:37:42 2007 -0500

    [AGPGART] Don't try to remap i810 registers on resume.
    
    We don't unmap them on the suspend path, so on resume
    trying to remap will fail, and then result in an
    oops the next time something tries to access them.
    
    Signed-off-by: Dave Jones <[EMAIL PROTECTED]>
---
 drivers/char/agp/intel-agp.c |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c
index 4e455f0..49cf7e2 100644
--- a/drivers/char/agp/intel-agp.c
+++ b/drivers/char/agp/intel-agp.c
@@ -124,13 +124,15 @@ static int intel_i810_configure(void)
 
        current_size = A_SIZE_FIX(agp_bridge->current_size);
 
-       pci_read_config_dword(intel_i810_private.i810_dev, I810_MMADDR, &temp);
-       temp &= 0xfff80000;
-
-       intel_i810_private.registers = ioremap(temp, 128 * 4096);
        if (!intel_i810_private.registers) {
-               printk(KERN_ERR PFX "Unable to remap memory.\n");
-               return -ENOMEM;
+               pci_read_config_dword(intel_i810_private.i810_dev, I810_MMADDR, 
&temp);
+               temp &= 0xfff80000;
+
+               intel_i810_private.registers = ioremap(temp, 128 * 4096);
+               if (!intel_i810_private.registers) {
+                       printk(KERN_ERR PFX "Unable to remap memory.\n");
+                       return -ENOMEM;
+               }
        }
 
        if ((readl(intel_i810_private.registers+I810_DRAM_CTL)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to