Bug 11985 - VGA port fail to output video on RV370 system with git driver of randr-1.2 branch
Summary: VGA port fail to output video on RV370 system with git driver of randr-1.2 br...
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: git
Hardware: All Linux (All)
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-13 19:09 UTC by LisaWu
Modified: 2007-08-14 20:46 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Set initial value for registers FP_HORZ_STRETCH & FP_VERT_STRETCH (1.81 KB, patch)
2007-08-13 19:31 UTC, LisaWu
no flags Details | Splinter Review

Description LisaWu 2007-08-13 19:09:35 UTC
connect DFP & CRT monitor to DVI & VGA port of RV370, set video output mode to 1280x1024, VGA port fail to output video in this case.

It's because registers FP_HORZ_STRETCH & FP_VERT_STRETCH are not properly initialized in the driver when VGA port is controlled by CRTC1.

I suggest initialize these two registers in the function RADEONInitCrtcRegisters and set initial value by RADEONRestoreCrtcRegisters. it's actually how the driver initialize them in master branch.
Comment 1 LisaWu 2007-08-13 19:31:18 UTC
Created attachment 11129 [details] [review]
Set initial value for registers FP_HORZ_STRETCH & FP_VERT_STRETCH
Comment 2 Alex Deucher 2007-08-14 06:44:43 UTC
I'll take a look at this tonight.  So I assume RMX must always be programmed for crtc1 regardless of whether it's being used or not?  Thanks Lisa.
Comment 3 LisaWu 2007-08-14 18:56:23 UTC
when DFP is connected, BIOS will auto enable RMX stretch for display. however, for RV370, crtc1 is connected to VGA port, enable RMX stretch on this port may cause trouble to CRT monitors. It's better to program FP_HORZ_STRETCH & FP_VERT_STRETCH in driver to ensure both VGA and DFP monitors work properly.
Comment 4 Alex Deucher 2007-08-14 20:46:16 UTC
fixed in git:
5b4a04c23e3f1ec2490418b111f417c16463c709

Thanks!


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.