Bug 92957

Summary: [Patch] VIASave and VIARestore Functions Complete Rewrite
Product: xorg Reporter: Kevin Brace <kevinbrace>
Component: Driver/openchromeAssignee: Openchrome development list <openchrome-devel>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: medium CC: kevinbrace
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
This patch completely rewrites VIASave and VIARestore functions.
none
This patch completely rewrites VIASave and VIARestore functions none

Description Kevin Brace 2015-11-15 06:11:42 UTC
Created attachment 119669 [details]
This patch completely rewrites VIASave and VIARestore functions.

Completely rewrites VIASave and VIARestore functions inside via_vgahw.c.
It now saves and restores virtually all VIA Technologies defined 
extended VGA registers. The previous code did not save all extended VGA 
registers, so many registers were not being restored at all.
That being said, Chrome 9 HD HDMI or DisplayPort registers are not 
being saved or restored in this patch.
    The compiled device driver was tested on the following computer.

 - Epic 1314 laptop (MSI VR321 laptop equivalent, VN896 chipset) 
   with Lubuntu 12.04 i386
Comment 1 Kevin Brace 2015-12-04 05:28:33 UTC
Created attachment 120322 [details] [review]
This patch completely rewrites VIASave and VIARestore functions

Completely rewrites VIASave and VIARestore functions inside via_vgahw.c.
It now saves and restores virtually all VIA Technologies defined extended VGA registers.
The previous code did not save all extended VGA registers, so many registers were not being restored at all.
That being said, Chrome 9 HD HDMI or DisplayPort registers are not being saved or restored since they cannot be accessed via VGA I/O ports.
    The compiled device driver was tested on the following computer.

 - Epic 1314 laptop (MSI VR321 laptop equivalent, VN896 chipset)
   with Lubuntu 12.04 i386
Comment 2 Kevin Brace 2016-05-20 17:32:26 UTC
Fixed by commit 0d3c0deb72f5cce55be18bdf89e389eb4df71e13.

https://cgit.freedesktop.org/openchrome/xf86-video-openchrome/commit/?id=0d3c0deb72f5cce55be18bdf89e389eb4df71e13

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.