pre-nv50 KMS
Hi, all
I'm trying to implement kms for pre-nv50 in last cuples of days. My current work[1] is based on the code of nv50 kms & ddx. Basicly, I just blindly port the code to kernel land :). I think I'm getting very close to working state, but it still doesn't work.
Current state:
1) vbios parser is synced with ddx
2) i2c works
3) Something shows on internel LVDS panel and external DVI flat panel, but the image is distorted. If I connect the monitor with my latop via the VGA port and resolution is higher then 1028x1024, it will say no signal. At lower resultion it shows distorted image. My monitor native resolution is 1920x1080. You get some idea and know what is going wrong. I did check the mode_state of ddx and kms, the are almostly the same except the fb_start and cursor_offset are different as expected.
[1] git://anongit.freedesktop.org/~jinghua/drm modesetting-gem branch
Signature · 1 line
Luo Jinghua
A message that is not in the archive (sent off-list or not yet received): beb59a440905230149m2edc3f6ak3c61a45820a66c5f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 7 lines · Luo Jinghua
Hi, all
I'm trying to implement kms for pre-nv50 in last cuples of days. My current work[1] is based on the code of nv50 kms & ddx. Basicly, I just blindly port the code to kernel land :). I think I'm getting very close to working state, but it still doesn't work.
Quoted 11 lines
Current state:
1) vbios parser is synced with ddx
2) i2c works
3) Something shows on internel LVDS panel and external DVI flat panel, but the image is distorted. If I connect the monitor with my latop via the VGA port and resolution is higher then 1028x1024, it will say no signal. At lower resultion it shows distorted image. My monitor native resolution is 1920x1080. You get some idea and know what is going wrong. I did check themode_stateof ddx and kms, the are almostly the same except thefb_startandcursor_offsetare different as expected.
The VGA test is done with C51(GeForce 6100, 10de:0242) not my laptop. LVDS & DVI test is done with GeForce Go 7300.
Signature · 5 lines
Luo Jinghua _______________________________________________ Nouveau mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 7 lines · Luo Jinghua
Hi, all
I'm trying to implement kms for pre-nv50 in last cuples of days. My current work[1] is based on the code of nv50 kms & ddx. Basicly, I just blindly port the code to kernel land :). I think I'm getting very close to working state, but it still doesn't work.
Quoted 12 lines
Current state:
1) vbios parser is synced with ddx
2) i2c works
3) Something shows on internel LVDS panel and external DVI flat panel, but the image is distorted. If I connect the monitor with my latop via the VGA port and resolution is higher then 1028x1024, it will say no signal. At lower resultion it shows distorted image. My monitor native resolution is 1920x1080. You get some idea and know what is going wrong. I did check themode_stateof ddx and kms, the are almostly the same except thefb_startandcursor_offsetare different as expected.
I get kms working on my C51 & Go 7300 now.
Remain issues:
1) LVDS' resolution is stuck at 640x480
2) Cursor doesn't work on C51
Signature · 5 lines
Luo Jinghua _______________________________________________ Nouveau mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): beb59a440905230900x302478aoc3e9377c45d32b78-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
The C51 has a very strange HW cursor issue, so that is not surprising.
Bug is http://bugs.freedesktop.org/show_bug.cgi?id=15758
Maarten.
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc0905231011l28981a5dpea5480636444a7d4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 4 lines · Maarten Maathuis
The C51 has a very strange HW cursor issue, so that is not surprising.
The DDX driver work pretty well here. My C51 is a Geforce 6100 not the motioned Geforce 6150. It guess it's my fault instead of the hardware.
Quoted 2 lines
Maarten.
Signature · 1 line
Luo Jinghua
Quoted 6 lines
I get kms working on my C51 & Go 7300 now.
Remain issues:
1) LVDS' resolution is stuck at 640x480
2) Cursor doesn't work on C51
The first issue is fixed now. I forget to add panel's native mode to probed mode list.
Signature · 5 lines
Luo Jinghua _______________________________________________ Nouveau mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): beb59a440905240227u181f817ck33274c4f2a755be3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
It is possible that the DDX is now masking the problem very well, if only your C51 has this cursor issue then i would really suspect this kind of bug.
Maarten.
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc0905240803m54402ce1r9754a6bafaf36c48-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 4 lines · Maarten Maathuis
It is possible that the DDX is now masking the problem very well, if only your C51 has this cursor issue then i would really suspect this kind of bug.
The issue is fixed now. Ben Skeggs lastest commit[1] fixed the issue in DDX driver by disabling bios parser and don't run the bios byte code. I thought I have areadly have the same commit it in my local tree. Actually, I did have the fix but revert it later. So, my drm tree should work well on nv40 now. For pre-nv40, I don't have any of them. I can't test.
Signature · 1 line
Luo Jinghua
A message that is not in the archive (sent off-list or not yet received): beb59a440905241701p4d25cf00jb059efdf187c41a7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 6 lines · Luo Jinghua
Quoted 4 lines · Maarten Maathuis
It is possible that the DDX is now masking the problem very well, if only your C51 has this cursor issue then i would really suspect this kind of bug.
Quoted 6 lines
The issue is fixed now. Ben Skeggs lastest commit[1] fixed the issue in DDX driver by disabling bios parser and don't run the bios byte code. I thought I have areadly have the same commit it in my local tree. Actually, I did have the fix but revert it later. So, my drm tree should work well on nv40 now. For pre-nv40, I don't have any of them. I can't test.
It'll likely work well everywhere except nv4 if my own pre-nv5x kms code is any indication. I've got fixes to TTM for nv4 in my kernel tree I'll post sometime this week.
Ben.
A message that is not in the archive (sent off-list or not yet received): 1243210441.2864.5.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/[email protected]
Quoted 4 lines
It'll likely work well everywhere except nv4 if my own pre-nv5x kms code is any indication. I've got fixes to TTM for nv4 in my kernel tree I'll post sometime this week.
I'll try your tree once you published it. I get another issue, the DDX driver don't hide the cursor on leaving vt and left the cursor on my fb console. It may be already fixed in your local tree.
Signature · 5 lines
Luo Jinghua _______________________________________________ Nouveau mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): beb59a440905241908la3eb9b2ma158b402912b288e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 8 lines · Luo Jinghua
Quoted 4 lines
It'll likely work well everywhere except nv4 if my own pre-nv5x kms code is any indication. I've got fixes to TTM for nv4 in my kernel tree I'll post sometime this week.
I'll try your tree once you published it. I get another issue, the DDX driver don't hide the cursor on leaving vt and left the cursor on my fb console. It may be already fixed in your local tree.
Mmm, the DDX I was using was the same as what's now in git, so it'd be something on the kernel side. The cursor was hidden for me when I dropped back to a console however.
Testing would be good though, I don't have a (working) pre-nv5x laptop to test LVDS on anymore. Otherwise, from nv4 right through to nv4x seems good.
Ben.
Quoted 2 lines
A message that is not in the archive (sent off-list or not yet received): 1243220467.19524.1.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/[email protected]
Quoted 7 lines
Quoted 3 lines
I'll try your tree once you published it. I get another issue, the DDX driver don't hide the cursor on leaving vt and left the cursor on my fb console. It may be already fixed in your local tree.
Mmm, the DDX I was using was the same as what's now in git, so it'd be something on the kernel side. The cursor was hidden for me when I dropped back to a console however.
I did add some debug prints to drmmode_display.c. On leaving vt, drmmode_hide_cursor never be called, the cursor isn't hidden.
I think it should be a right fix by adding xf86_hide_cursors into NVLeaveVT. I have checked the intel driver. They also disable cursors on leaving vt. I attached a patch which implements this idea.
Quoted 4 lines
Testing would be good though, I don't have a (working) pre-nv5x laptop to test LVDS on anymore. Otherwise, from nv4 right through to nv4x seems good.
I happen to have a nv40 laptop. I'm happy to test your kms tree on my laptop:).
Signature · 1 line
Luo Jinghua
From 055a8ff31709d8df284aec2065280d499741499b Mon Sep 17 00:00:00 2001
From: Luo Jinghua <[email protected]>
Date: Mon, 25 May 2009 20:47:28 +0800
Subject: [PATCH] Hide cursors on leaving VT
Otherwise the X cursor will not be hidden on my fb console. I have checked intel DDX driver. They also hide cursors on their LeaveVT handler.
--- src/nv_driver.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
src/nv_driver.c +2 -0
@@ -726,6 +726,8 @@ NVLeaveVT(int scrnIndex, int flags)NVRestore (pScrn); elseNV50ReleaseDisplay (pScrn ); + }else { +xf86_hide_cursors (pScrn); } }
Signature · 1 line
1.6.3
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau