Bug 57772 - Openchrome detects wrong amount of video memory on KM400/KN400
Summary: Openchrome detects wrong amount of video memory on KM400/KN400
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/openchrome (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Openchrome development list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-01 13:07 UTC by Mr.Madguy
Modified: 2013-01-04 17:19 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Fix memory detection on P4M800 (1.30 KB, patch)
2012-12-11 19:33 UTC, Xavier Bachelot
no flags Details | Splinter Review
Patch update to properly detect memory on KM400. (1.31 KB, patch)
2013-01-03 13:16 UTC, James Simmons
no flags Details | Splinter Review
xorg.log (48.37 KB, text/plain)
2013-01-03 14:55 UTC, Mr.Madguy
no flags Details

Description Mr.Madguy 2012-12-01 13:07:29 UTC
I have a problem with your drivers while using ALTLinux 5.0/6.0 on computer with EliteGroup P4M800-M motherboard(even with latest BIOS 1.0e) with integrated video card VIA/S3G Unichrome(32Mb reserved in system memory). It just hung on blank screen while installing or shows incorrect picture(narrow stripe with "big" distorted cursor). But WinXP works on this computer fine even with default drivers. One man on ALTLinux support forum told me, that this problem is caused by incorrect video memory detection. He suggested to use xdriver=vesa while installing and add OPTION "VideoRAM" "32768" to xorg.com after it and it helped. I've tried to change chipset in xorg.com to some other - it didn't helped. Video memory was detected correctly, but screen stayed blank. So here is some parts of my xorg.log file that will explain you a problem. May be you can do something with it.

(--) PCI:*(0:1:0:0) 1106:7205:1106:7205 VIA Technologies, Inc. KM400/KN400/P4M800 [S3 UniChrome] rev 1, Mem @ 0xf4000000/67108864, 0xf8000000/16777216, BIOS @ 0x????????/65536

...

(II) Module openchrome: vendor="http://openchrome.org/"
	compiled for 1.6.4, module version = 0.2.904
	Module class: X.Org Video Driver
	ABI class: X.Org Video Driver, version 5.0
(II) OPENCHROME: Driver for VIA Chrome chipsets: CLE266, KM400/KN400,
	K8M800/K8N800, PM800/PM880/CN400, VM800/P4M800Pro/VN800/CN700,
	K8M890/K8N890, P4M900/VN896/CN896, CX700/VX700, P4M890, VX800, VX855
(II) Primary Device is: PCI 01@00:00:0
(!!) VIA Technologies does not support this driver in any way.
(!!) For support, please refer to http://www.openchrome.org/.
(!!) (development build, compiled on Fri Oct  9 06:29:45 2009)

...

(II) CHROME(0): VIAGetRec
(**) CHROME(0): Depth 24, (--) framebuffer bpp 32
(==) CHROME(0): RGB weight 888
(==) CHROME(0): Default visual is TrueColor
(--) CHROME(0): Chipset: KM400/KN400
(--) CHROME(0): Chipset revision: 0
(--) CHROME(0): Probed amount of VideoRAM = 1024 kB
(II) CHROME(0): Setting up default chipset options.
(II) CHROME(0): VIASetupDefaultOptions
(II) CHROME(0): Reading config file...
(**) CHROME(0): Option "VideoRAM" "32768"
(II) CHROME(0): Starting to parse config file options...
(**) CHROME(0): Setting amount of VideoRAM to 32768 kB
Comment 1 Xavier Bachelot 2012-12-11 19:33:46 UTC
Created attachment 71356 [details] [review]
Fix memory detection on P4M800
Comment 2 Xavier Bachelot 2012-12-11 19:34:33 UTC
Can you please test the attached patch ? The patch applies to git master. See http://www.openchrome.org/trac/wiki/Installation#InstallfromGIT for build directions. Once built and installed, please test the driver without an xorg conf, it should detect the amount of video ram properly.
Comment 3 Mr.Madguy 2012-12-12 16:52:50 UTC
Ok. I'll test on this weekend.
Comment 4 Mr.Madguy 2012-12-12 17:03:54 UTC
Wait a minute. As I can see, this patch is doing the same thing as config file - i.e. manually set VRAM to 16M, if detection failed. So this is not actual fix - it just hiding problem.
Comment 5 Xavier Bachelot 2012-12-12 17:42:12 UTC
No, it does exactly the contrary, it removes the hack that was in place to set the memory to 16 MB if detection fails and instead should detect the proper amount of memory in the case of a P4M800 hostbridge.
Comment 6 Mr.Madguy 2012-12-15 13:29:18 UTC
Ok. I can't test it by myself, because ALTLinux has it's own adopted version of this drivers. But I have passed your patch to ALTLinux support team and they promised, that they'll send me test version of driver in a nearest future. I hope I'll have some results on the next weekend.
Comment 7 Xavier Bachelot 2013-01-02 19:44:19 UTC
Did you had a chance to test the patch ?
Comment 8 James Simmons 2013-01-03 13:16:52 UTC
Created attachment 72446 [details] [review]
Patch update to properly detect memory on KM400.

Found a typo in the patch that can lock the X server. Please push this patch upstream for testing.
Comment 9 Mr.Madguy 2013-01-03 14:55:48 UTC
Created attachment 72458 [details]
xorg.log

I have tested previus patch today. It seems that it works. Tryed 32Mb and 64Mb VRAM and driver detected it correctly. Attaching my xorg.log for you to inspect. Don't know if last modification is nessesary. I have not patched and builded this driver by myself - ALTLinux support team done it for me. So may be they already corrected this.
Comment 10 Xavier Bachelot 2013-01-03 15:10:58 UTC
Thanks for the feedback.
Do you have a link to the package you used to test or a bug number in ALTlinux bugzilla or any other pointer so we can take a look at what you tested ?
Comment 12 James Simmons 2013-01-04 17:18:58 UTC
Excellent they fixed up the patch just like the second on. Since this now works and is checked into our master branch I'm going to close this ticket.


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.