: i810fb fixes
PATCH 5/5 : i810fb fixes
1. Fixed cursor corruption if acceleration is enabled
2. Round up fields in var instead of rounding down
3. Set capabilities flags
4. Added myself to the MAINTAINERS file for i810fb
Tony
MAINTAINERS | 6 +++ drivers/video/Kconfig | 4 +- drivers/video/i810/i810_dvt.c | 14 +++---- drivers/video/i810/i810_main.c | 72 ++++++++++++++++++++++++----------------- 4 files changed, 59 insertions(+), 37 deletions(-)
MAINTAINERS +6 -0
@@ -1060,6 +1060,12 @@ M: [email protected] L: [email protected] S: Maintained +INTEL 810/815 FRAMEBUFFER DRIVER +P: Antonino Daplas +M: [email protected] +L: [email protected] +S: Maintained + INTEL APIC/IOAPIC, LOWLEVEL X86 SMP SUPPORT P: Ingo Molnar M: [email protected]
drivers/video/Kconfig +3 -1
@@ -457,7 +457,9 @@ config FB_RIVA_DEBUG config FB_I810 tristate "Intel 810/815 support (EXPERIMENTAL)" - depends on FB && AGP && AGP_INTEL && EXPERIMENTAL && PCI + depends on FB && EXPERIMENTAL && PCI + select AGP + select AGP_INTEL help This driver supports the on-board graphics built in to the Intel 810 and 815 chipsets. Say Y if you have and plan to use such a board.
drivers/video/i810/i810_dvt.c +7 -7
@@ -193,19 +193,19 @@ struct mode_registers std_modes[] = {void round_off_xres (u32 *xres) { -if (*xres <800 ) +if (*xres <=640 ) *xres =640 ; -if (*xres <1024 && *xres >=800 ) +else if (*xres <=800 ) *xres =800 ; -if (*xres <1152 && *xres >=1024 ) +else if (*xres <=1024 ) *xres =1024 ; -if (*xres <1280 && *xres >=1152 ) +else if (*xres <=1152 ) *xres =1152 ; -if (*xres <1600 && *xres >=1280 ) +else if (*xres <=1280 ) *xres =1280 ; -if (*xres >=1600 ) +else *xres =1600 ; -} +}inline void round_off_yres (u32 *xres,u32 *yres) {
drivers/video/i810/i810_main.c +43 -29
167 lines not on this page · raw message
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
Quoted 5 lines · Antonino A. Daplas
...
drivers/video/Kconfig +0
-0@@ -457,7 +457,9 @@ config FB_RIVA_DEBUG
drivers/video/Kconfig config FB_RIVA_DEBUG · line 465
Quoted 10 lines
drivers/video/Kconfig +3
-1config FB_I810 tristate "Intel 810/815 support (EXPERIMENTAL)" - depends on FB && AGP && AGP_INTEL && EXPERIMENTAL && PCI + depends on FB && EXPERIMENTAL && PCI + select AGP + select AGP_INTEL help This driver supports the on-board graphics built in to the Intel 810 and 815 chipsets. Say Y if you have and plan to use such a board.
This is wrong.
If you select something, you have to ensure that the dependencies of what you select are fulfilled.
Since AGP_INTEL depends on X86 && !X86_64 , you must add this to the dependencies of FB_I810 if it selects AGP_INTEL.
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 6 lines · Adrian Bunk
If you select something, you have to ensure that the dependencies of what you select are fulfilled.
Since
AGP_INTELdepends on X86 && !X86_64 , you must add this to the dependencies ofFB_I810if it selectsAGP_INTEL.
Thanks. Incremental patch included.
Tony
1. Make i810fb depend on X86 but not X86_64
2. Fixed typo in i810_init_monspecs(). Reported by Manuel Lauss <[email protected]>.
---
drivers/video/i810/i810_main.c +1 -1
@@ -1656,7 +1656,7 @@ static void __devinit i810_init_monspecs info->monspecs.hfmax = hsync2;if (!info->monspecs.hfmin) info->monspecs.hfmin = hsync1; -if (hsync1 < hsync2) +if (hsync2 < hsync1) info->monspecs.hfmin = hsync2;if (!vsync1)
drivers/video/Kconfig +1 -1
@@ -457,7 +457,7 @@ config FB_RIVA_DEBUG config FB_I810 tristate "Intel 810/815 support (EXPERIMENTAL)" - depends on FB && EXPERIMENTAL && PCI + depends on FB && EXPERIMENTAL && PCI && X86 select AGP select AGP_INTEL help
Oops, forgot the X86_64 dependency.
Tony
1. Make i810fb depend on X86 but not X86_64
2. Fixed typo in i810_init_monspecs(). Reported by Manuel Lauss <[email protected]>.
---
drivers/video/i810/i810_main.c +1 -1
@@ -1656,7 +1656,7 @@ static void __devinit i810_init_monspecs info->monspecs.hfmax = hsync2;if (!info->monspecs.hfmin) info->monspecs.hfmin = hsync1; -if (hsync1 < hsync2) +if (hsync2 < hsync1) info->monspecs.hfmin = hsync2;if (!vsync1)
drivers/video/Kconfig +1 -1
@@ -457,7 +457,7 @@ config FB_RIVA_DEBUG config FB_I810 tristate "Intel 810/815 support (EXPERIMENTAL)" - depends on FB && EXPERIMENTAL && PCI + depends on FB && EXPERIMENTAL && PCI && X86 && !X86_64 select AGP select AGP_INTEL help