[Openchrome-devel] [Bug 95146] No mouse cursor (invisible) with DVI cable
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu May 19 10:13:29 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=95146
--- Comment #2 from caozong <caozong at iscas.ac.cn> ---
I have some updates.
First,I have 4 kinds of environments:
vx900 KMS, vx900 UMS, cn700 KMS(bug), cn700 UMS.
And I tried to print all values of cursor-related registers
(PRIM_HI_FBOFFSET, PRIM_HI_CTRL, HI_FBOFFSET, HI_CONTROL).
I found that the cn700 platform use HI_FBOFFSET and HI_CONTROL which are for
second display to show cursor. And the others' value is 0. (the result is in
the attachment)
Then I check the code in drm-openchrome/driver/gpu/drm/via/via_crtc.c
/* Program the offset and turn on Hardware icon Cursor */
if (iga->index) {
VIA_WRITE(HI_FBOFFSET, iga->cursor_kmap.bo->offset);
VIA_WRITE(HI_CONTROL, 0xB6000005);
}else {
VIA_WRITE(PRIM_HI_FBOFFSET, iga->cursor_kmap.bo->offset);
VIA_WRITE(PRIM_HI_CTRL, 0x36000005);
}
On cn700, it's "else" that always takes place. The register for second display
is never set.
So I simply change the condition into true. HI_FBOFFSET and HI_CONTROL are set
correctly, but cursor is still not showing.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/openchrome-devel/attachments/20160519/9340ee24/attachment-0001.html>
More information about the Openchrome-devel
mailing list