Bug 4354

Summary: Intel's latest video driver is broken since kernel 2.6.1x
Product: Drivers Reporter: Michel MENGIS (michel.mengis)
Component: Video(DRI - non Intel)Assignee: Adrian Bunk (bunk)
Status: REJECTED INVALID    
Severity: high    
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.11.4 Subsystem:
Regression: --- Bisected commit-id:
Attachments: Kernel's config file
module list
dmesg file
xorg log file

Description Michel MENGIS 2005-03-17 02:14:09 UTC
Distribution: FC3
Hardware Environment: Latitude D610. MB: intel 915GM
Software Environment: 
Problem Description: Intel's latest driver request remap_page_range function

Steps to reproduce: download the driver from intel's home page. Built it by
adding the drm_agp_t structure (removed since 2.6.10 from kernel tree) fix the
pci_restore_state and pci_save_state too. try to load the module after the
compilation:
o915: Unknown symbol remap_page_range
Comment 1 Michel MENGIS 2005-03-17 02:15:18 UTC
Created attachment 4737 [details]
Kernel's config file
Comment 2 Michel MENGIS 2005-03-17 02:15:54 UTC
Created attachment 4738 [details]
module list
Comment 3 Michel MENGIS 2005-03-17 02:16:26 UTC
Created attachment 4739 [details]
dmesg file
Comment 4 Michel MENGIS 2005-03-17 02:17:05 UTC
Created attachment 4740 [details]
xorg log file
Comment 5 Jesse Barnes 2005-03-17 08:38:36 UTC
You'll have to update the Intel driver to use remap_pfn_range instead.  It's 
the same as remap_page_range except that it takes a page frame number instead 
of a page.  Typical change is something like this: 
 
--- 1.21/arch/i386/pci/i386.c   2005-03-17 08:37:41 -08:00 
+++ 1.22/arch/i386/pci/i386.c   2005-03-17 08:37:41 -08:00 
@@ -295,7 +295,7 @@ 
        /* Write-combine setting is ignored, it is changed via the mtrr 
         * interfaces on this platform. 
         */ 
-       if (remap_page_range(vma, vma->vm_start, vma->vm_pgoff << PAGE_SHIFT, 
+       if (remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, 
                             vma->vm_end - vma->vm_start, 
                             vma->vm_page_prot)) 
                return -EAGAIN; 
 
Comment 6 Adrian Bunk 2005-07-15 13:01:10 UTC
Problems with external drivers don't belong here.