Bug 21840

Summary: Cursor corruption with R100 and latest git in Fedora 10
Product: xorg Reporter: Chris Rankin <rankincj>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED INVALID QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: bdrung
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg.0.log from session with screen corruption
none
xorg.conf file
none
First screenshot of corrupted cursor
none
Second screenshot of corrupted cursor
none
Third screenshot of corrupted cursor
none
[RV730] xorg.conf
none
[RV730] Xorg.0.log
none
Corrupted screen caused by corrupted cursor none

Description Chris Rankin 2009-05-20 13:27:01 UTC
I have just tried the latest git build of xf86-drv-ati and the cursor is not being rendered in the correct place on the screen. (There is a rectangle of corruption where the cursor hotspot is.)

The latest commit that works is:

commit 1429133ffdbfe046249fcaaa4cbee432a1012e55
Author: Michel Dänzer <daenzer@vmware.com>
Date:   Mon May 18 17:59:00 2009 +0200

    EXA: Set new EXA_SUPPORTS_OFFSCREEN_OVERLAPS flag when we have a 2D engine.

so it's probably this commit which is the culprit:

commit 88a9e98341d96e5e7f48b69aed597d1bada6313a
Author: Alex Deucher <alexdeucher@gmail.com>
Date:   Tue May 19 17:11:34 2009 -0400

    Pre-atom: Improve engine clock setup code
    
    Also remove SetMemoryClk() for pre-atom cards for now
    as it requires quite a bit more asic specific work.
    To set the mclk we'll need to use the mem reset/dll tables
    in the bios.

This is my graphics card:

01:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV100 QY [Radeon 7000/VE] (prog-if 00 [VGA controller])
	Subsystem: C.P. Technology Co. Ltd Device 2072
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR+ FastB2B+ DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 66 (2000ns min), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at f0000000 (32-bit, prefetchable) [size=128M]
	Region 1: I/O ports at 9000 [size=256]
	Region 2: Memory at e8100000 (32-bit, non-prefetchable) [size=64K]
	[virtual] Expansion ROM at e8120000 [disabled] [size=128K]
	Capabilities: [58] AGP version 2.0
		Status: RQ=48 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW- AGP3- Rate=x1,x2
		Command: RQ=32 ArqSz=0 Cal=0 SBA+ AGP+ GART64- 64bit- FW- Rate=x2
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: radeonfb
Comment 1 Alex Deucher 2009-05-20 14:39:43 UTC
Are you using any of the new power management options?  Please attach your xorg log and config.
Comment 2 Chris Rankin 2009-05-23 13:22:08 UTC
Created attachment 26147 [details]
Xorg.0.log from session with screen corruption

I rebuilt the driver from scratch first, and the problem was still there. So I'm confident it's not a build error.
Comment 3 Chris Rankin 2009-05-23 13:28:33 UTC
Created attachment 26148 [details]
xorg.conf file

Additionally, when I rebooted the machine after getting this problem, I noticed that my framebuffer console had been "shifted"/"rotated" a few characters to the left.

Specifically, there was a column of text saying "StartingSt" down the RHS of the screen. Similarly, all of the "Starting sendmail" etc messages from the init.d scripts had had the "Starting" part removed.
Comment 4 Alex Deucher 2009-05-25 08:20:38 UTC
Changing the engine clock on r1xx does not work reliably at the moment.
Comment 5 Benjamin Drung 2009-06-24 17:07:05 UTC
Created attachment 27098 [details]
First screenshot of corrupted cursor
Comment 6 Benjamin Drung 2009-06-24 17:07:23 UTC
Created attachment 27099 [details]
Second screenshot of corrupted cursor
Comment 7 Benjamin Drung 2009-06-24 17:07:37 UTC
Created attachment 27100 [details]
Third screenshot of corrupted cursor
Comment 8 Benjamin Drung 2009-06-24 17:08:31 UTC
Created attachment 27101 [details]
[RV730] xorg.conf
Comment 9 Benjamin Drung 2009-06-24 17:09:10 UTC
Created attachment 27102 [details]
[RV730] Xorg.0.log
Comment 10 Benjamin Drung 2009-06-24 17:18:02 UTC
Created attachment 27103 [details]
Corrupted screen caused by corrupted cursor

I have the same problem. I am using Ubuntu 9.04 with a git snapshot of the radeon driver from 2009-06-22.

The problems started after activating DynamicPM in xorg.conf. There is no cursor corruption till the monitor goes blank (xset dpms force standby) for the first time. After then the cursor corruption occurs. Sometimes the screen gets corrupted, too. On some positions, the cursor is correct, but on others it's corrupted.
Comment 11 Adam Jackson 2018-06-12 19:09:38 UTC
Mass closure: This bug has been untouched for more than six years, and is not
obviously still valid. Please reopen this bug or file a new report if you continue to experience issues with current releases.

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.