Re: [PATCH 1/2] drm/radeon/kms: reset ddc_bus in object header parsing

2010-05-18 Thread Rafał Miłecki
2010/5/19 Alex Deucher : > Some LVDS connectors don't have a ddc bus, so reset the > ddc bus to invalid before parsing the next connector > to avoid using stale ddc bus data.  Should fix > fdo bug 28164. It does, thanks :) Tested-by: Rafał Miłecki -- Rafał _

[PATCH 9/9] drm/i915: implement fair lru eviction

2010-05-18 Thread Daniel Vetter
Besides that this should leader to better gtt usage (by not favouring small objects) this also fixes the eviction-ping-pong-of-doom. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_gem.c | 79 +- 1 files changed, 52 insertions(+), 27 deletions(-)

[PATCH 8/9] drm/i915: prepare for fair lru eviction

2010-05-18 Thread Daniel Vetter
This does two little changes: - Add an alignment parameter for evict_something. It's not really great to whack a carefully sized hole into the gtt with the wrong alignment. Especially since the fallback path is a full evict. - With the inactive scan stuff we need to evict more that one object

[PATCH 7/9] drm: implement helper functions for scanning lru list

2010-05-18 Thread Daniel Vetter
These helper functions can be used to efficiently scan lru list for eviction. Eviction becomes a three stage process: 1. Scanning through the lru list until a suitable hole has been found. 2. Scan backwards to restore drm_mm consistency and find out which objects fall into the hole. 3. Evict the

[PATCH 6/9] drm_mm: extract check_free_mm_node

2010-05-18 Thread Daniel Vetter
There are already two copies of this logic. And the new scanning stuff will add some more. So extract it into a small helper function. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_mm.c | 71 ++ 1 files changed, 34 insertions(+), 37 deletions(

[PATCH 5/9] drm: sane naming for drm_mm.c

2010-05-18 Thread Daniel Vetter
Yeah, I've kinda noticed that fl_entry is the free stack. Still give it (and the memory node list ml_entry) decent names. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_mm.c | 72 ++--- include/drm/drm_mm.h | 11 -- 2 files changed, 42 in

[PATCH 4/9] drm: kill dead code in drm_mm.c

2010-05-18 Thread Daniel Vetter
Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_mm.c | 45 - 1 files changed, 0 insertions(+), 45 deletions(-) diff --git a/drivers/gpu/drm/drm_mm.c b/drivers/gpu/drm/drm_mm.c index b75eb55..a5a7a16 100644 --- a/drivers/gpu/drm/drm_mm.c +++ b/dr

[PATCH 3/9] drm: kill drm_mm_node->private

2010-05-18 Thread Daniel Vetter
Only ever assigned, never used. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_gem.c |4 +--- drivers/gpu/drm/ttm/ttm_bo.c |6 -- drivers/gpu/drm/ttm/ttm_bo_util.c |2 -- include/drm/drm_mm.h |1 - 4 files changed, 1 insertions(+), 12 deletions

[PATCH 2/9] drm: use list_for_each_entry in drm_mm.c

2010-05-18 Thread Daniel Vetter
Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_mm.c |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/drm_mm.c b/drivers/gpu/drm/drm_mm.c index 2ac074c..b75eb55 100644 --- a/drivers/gpu/drm/drm_mm.c +++ b/drivers/gpu/drm/drm_mm.c @@ -332,7 +332,

[PATCH 1/9] list.h: add list_for_each_entry_safe_from_reverse

2010-05-18 Thread Daniel Vetter
i915 needs this. Signed-off-by: Daniel Vetter --- include/linux/list.h | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/include/linux/list.h b/include/linux/list.h index 8392884..21cdd99 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -544,6

[PATCH 0/9] [RFC] fair-lru eviction

2010-05-18 Thread Daniel Vetter
Hi all, This patch series implements the fair-lru eviction Chris Wilson already posted with a twist. It's essentially the same idea & algorithm. Differnences versus his patch: - Doesn't do any allocations while scanning. - Implemented in drm_mm.c In other words, this should also be usable by ttm.

Re: [PATCH 0/9] [RFC] fair-lru eviction

2010-05-18 Thread Eric Anholt
On Tue, 18 May 2010 23:11:42 +0200, Daniel Vetter wrote: > Hi all, > > This patch series implements the fair-lru eviction Chris Wilson already > posted with a twist. It's essentially the same idea & algorithm. > Differnences versus his patch: > - Doesn't do any allocations while scanning. > - Im

[PATCH 0/9] [RFC] fair-lru eviction

2010-05-18 Thread Eric Anholt
next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20100518/59ec8db9/attachment.pgp>

[Bug 27901] GLSL cos/sin functions broken on Mesa R600 driver

2010-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=27901 --- Comment #3 from Conn Clark 2010-05-18 19:33:26 PDT --- Alain, Okay, The patch I just posted might fix this bug. It doesn't cause any additional errors in piglit either. I think its working right with http://github.com/jckarter/hello-gl-ch3

[Bug 27901] GLSL cos/sin functions broken on Mesa R600 driver

2010-05-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=27901 --- Comment #3 from Conn Clark 2010-05-18 19:33:26 PDT --- Alain, Okay, The patch I just posted might fix this bug. It doesn't cause any additional errors in piglit either. I think its working right with http://github.com/jckarter/hello-gl-ch3

[PATCH 2/2] drm/radeon/kms: hpd cleanup

2010-05-18 Thread Alex Deucher
- Use radeon hpd enum consistently (in both hotplug and dp) - Legacy r100 with DVI should be HPD_1 not NONE Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_dp.c |2 +- drivers/gpu/drm/radeon/radeon_atombios.c |3 +-- drivers/gpu/drm/radeon/radeon_combios.c |4 ++-

[PATCH 1/2] drm/radeon/kms: reset ddc_bus in object header parsing

2010-05-18 Thread Alex Deucher
Some LVDS connectors don't have a ddc bus, so reset the ddc bus to invalid before parsing the next connector to avoid using stale ddc bus data. Should fix fdo bug 28164. Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/radeon/radeon_atombios.c |5 ++--- 1 files chang

[Bug 27901] GLSL cos/sin functions broken on Mesa R600 driver

2010-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=27901 --- Comment #2 from Conn Clark 2010-05-18 19:25:02 PDT --- Created an attachment (id=35743) View: https://bugs.freedesktop.org/attachment.cgi?id=35743 Review: https://bugs.freedesktop.org/review?bug=27901&attachment=35743 r700_assembler.c Tri

[Bug 27901] GLSL cos/sin functions broken on Mesa R600 driver

2010-05-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=27901 --- Comment #2 from Conn Clark 2010-05-18 19:25:02 PDT --- Created an attachment (id=35743) View: https://bugs.freedesktop.org/attachment.cgi?id=35743 Review: https://bugs.freedesktop.org/review?bug=27901&attachment=35743 r700_assembler.c Tri

[git pull] drm tree for 2.6.35-rc1

2010-05-18 Thread Dave Airlie
This is a combined drm/agp tree. Highlights: core: initial dev docs, agp scratch page support kms: framebuffer cleanup + improved disconnected monitor at boot handling, lots of edid parser updates to bring us in line with the X.org code, improved fbdev handover mechanism. ttm: add AGP page poo

[Bug 28163] Static on right part of screen when 3D happens on rv350 using KMS

2010-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28163 Alex Deucher changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 28163] Static on right part of screen when 3D happens on rv350 using KMS

2010-05-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28163 Alex Deucher changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[PATCH 2/2] drm/radeon/kms: hpd cleanup

2010-05-18 Thread Alex Deucher
- Use radeon hpd enum consistently (in both hotplug and dp) - Legacy r100 with DVI should be HPD_1 not NONE Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_dp.c |2 +- drivers/gpu/drm/radeon/radeon_atombios.c |3 +-- drivers/gpu/drm/radeon/radeon_combios.c |4 ++-

[PATCH 1/2] drm/radeon/kms: reset ddc_bus in object header parsing

2010-05-18 Thread Alex Deucher
Some LVDS connectors don't have a ddc bus, so reset the ddc bus to invalid before parsing the next connector to avoid using stale ddc bus data. Should fix fdo bug 28164. Signed-off-by: Alex Deucher Cc: sta...@kernel.org --- drivers/gpu/drm/radeon/radeon_atombios.c |5 ++--- 1 files changed,

[Bug 28164] [KMS] No LVDS native mode available after using VGA-0

2010-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28164 Rafał Miłecki changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 28164] [KMS] No LVDS native mode available after using VGA-0

2010-05-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28164 Rafa? Mi?ecki changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 28165] New: TV-out issues

2010-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28165 Summary: TV-out issues Product: DRI Version: unspecified Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Compone

[Bug 28165] New: TV-out issues

2010-05-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28165 Summary: TV-out issues Product: DRI Version: unspecified Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Compone

[Bug 28164] [KMS] No LVDS native mode available after using VGA-0

2010-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28164 --- Comment #2 from Alex Deucher 2010-05-18 14:53:36 PDT --- Created an attachment (id=35742) View: https://bugs.freedesktop.org/attachment.cgi?id=35742 Review: https://bugs.freedesktop.org/review?bug=28164&attachment=35742 possible fix This

[Bug 28164] [KMS] No LVDS native mode available after using VGA-0

2010-05-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28164 --- Comment #2 from Alex Deucher 2010-05-18 14:53:36 PDT --- Created an attachment (id=35742) View: https://bugs.freedesktop.org/attachment.cgi?id=35742 Review: https://bugs.freedesktop.org/review?bug=28164&attachment=35742 possible fix This

[Bug 28164] [KMS] No LVDS native mode available after using VGA-0

2010-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28164 --- Comment #1 from Alex Deucher 2010-05-18 14:32:47 PDT --- Please attach your xorg log and dmesg. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assi

[Bug 28164] [KMS] No LVDS native mode available after using VGA-0

2010-05-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28164 --- Comment #1 from Alex Deucher 2010-05-18 14:32:47 PDT --- Please attach your xorg log and dmesg. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the ass

[PATCH 9/9] drm/i915: implement fair lru eviction

2010-05-18 Thread Daniel Vetter
Besides that this should leader to better gtt usage (by not favouring small objects) this also fixes the eviction-ping-pong-of-doom. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_gem.c | 79 +- 1 files changed, 52 insertions(+), 27 deletions(-)

[PATCH 7/9] drm: implement helper functions for scanning lru list

2010-05-18 Thread Daniel Vetter
These helper functions can be used to efficiently scan lru list for eviction. Eviction becomes a three stage process: 1. Scanning through the lru list until a suitable hole has been found. 2. Scan backwards to restore drm_mm consistency and find out which objects fall into the hole. 3. Evict the

[PATCH 8/9] drm/i915: prepare for fair lru eviction

2010-05-18 Thread Daniel Vetter
This does two little changes: - Add an alignment parameter for evict_something. It's not really great to whack a carefully sized hole into the gtt with the wrong alignment. Especially since the fallback path is a full evict. - With the inactive scan stuff we need to evict more that one object

[PATCH 5/9] drm: sane naming for drm_mm.c

2010-05-18 Thread Daniel Vetter
Yeah, I've kinda noticed that fl_entry is the free stack. Still give it (and the memory node list ml_entry) decent names. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_mm.c | 72 ++--- include/drm/drm_mm.h | 11 -- 2 files changed, 42 in

[PATCH 6/9] drm_mm: extract check_free_mm_node

2010-05-18 Thread Daniel Vetter
There are already two copies of this logic. And the new scanning stuff will add some more. So extract it into a small helper function. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_mm.c | 71 ++ 1 files changed, 34 insertions(+), 37 deletions(

[PATCH 4/9] drm: kill dead code in drm_mm.c

2010-05-18 Thread Daniel Vetter
Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_mm.c | 45 - 1 files changed, 0 insertions(+), 45 deletions(-) diff --git a/drivers/gpu/drm/drm_mm.c b/drivers/gpu/drm/drm_mm.c index b75eb55..a5a7a16 100644 --- a/drivers/gpu/drm/drm_mm.c +++ b/dr

[PATCH 3/9] drm: kill drm_mm_node->private

2010-05-18 Thread Daniel Vetter
Only ever assigned, never used. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_gem.c |4 +--- drivers/gpu/drm/ttm/ttm_bo.c |6 -- drivers/gpu/drm/ttm/ttm_bo_util.c |2 -- include/drm/drm_mm.h |1 - 4 files changed, 1 insertions(+), 12 deletions

[PATCH 2/9] drm: use list_for_each_entry in drm_mm.c

2010-05-18 Thread Daniel Vetter
Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_mm.c |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/drm_mm.c b/drivers/gpu/drm/drm_mm.c index 2ac074c..b75eb55 100644 --- a/drivers/gpu/drm/drm_mm.c +++ b/drivers/gpu/drm/drm_mm.c @@ -332,7 +332,

[PATCH 1/9] list.h: add list_for_each_entry_safe_from_reverse

2010-05-18 Thread Daniel Vetter
i915 needs this. Signed-off-by: Daniel Vetter --- include/linux/list.h | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/include/linux/list.h b/include/linux/list.h index 8392884..21cdd99 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -544,6

[PATCH 0/9] [RFC] fair-lru eviction

2010-05-18 Thread Daniel Vetter
Hi all, This patch series implements the fair-lru eviction Chris Wilson already posted with a twist. It's essentially the same idea & algorithm. Differnences versus his patch: - Doesn't do any allocations while scanning. - Implemented in drm_mm.c In other words, this should also be usable by ttm.

[Bug 28164] New: [KMS] No LVDS native mode available after using VGA-0

2010-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28164 Summary: [KMS] No LVDS native mode available after using VGA-0 Product: DRI Version: unspecified Platform: Other OS/Version: All Status: NEW Severity: normal Priori

[Bug 28164] New: [KMS] No LVDS native mode available after using VGA-0

2010-05-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28164 Summary: [KMS] No LVDS native mode available after using VGA-0 Product: DRI Version: unspecified Platform: Other OS/Version: All Status: NEW Severity: normal Priori

[Bug 28163] New: Static on right part of screen when 3D happens on rv350 using KMS

2010-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28163 Summary: Static on right part of screen when 3D happens on rv350 using KMS Product: DRI Version: unspecified Platform: Other OS/Version: All Status: NEW S

[Bug 28163] New: Static on right part of screen when 3D happens on rv350 using KMS

2010-05-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28163 Summary: Static on right part of screen when 3D happens on rv350 using KMS Product: DRI Version: unspecified Platform: Other OS/Version: All Status: NEW S

[Bug 28136] [r300g] Running celestia full-screen puts a starry window in the top-left corner of an otherwise blank screen

2010-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28136 --- Comment #1 from Marek Olšák 2010-05-18 09:43:06 PDT --- I cannot reproduce it here (X Server 1.7.x). It appears to be related to a bug in some other system component, maybe something with X/DRI2. -- Configure bugmail: https://bugs.freedeskt

[Bug 28136] [r300g] Running celestia full-screen puts a starry window in the top-left corner of an otherwise blank screen

2010-05-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28136 --- Comment #1 from Marek Ol??k 2010-05-18 09:43:06 PDT --- I cannot reproduce it here (X Server 1.7.x). It appears to be related to a bug in some other system component, maybe something with X/DRI2. -- Configure bugmail: https://bugs.freedesk

[Bug 28154] [r300g] Freeorion crash when fleet icon is clicked

2010-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28154 Pavel Ondračka changed: What|Removed |Added URL||http://sourceforge.net/proj

[Bug 28154] [r300g] Freeorion crash when fleet icon is clicked

2010-05-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28154 Pavel Ondra?ka changed: What|Removed |Added URL||http://sourceforge.net/proj

[Bug 28154] New: [r300g] Freeorion crash when fleet icon is clicked

2010-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28154 Summary: [r300g] Freeorion crash when fleet icon is clicked Product: Mesa Version: git Platform: Other OS/Version: All Status: NEW Severity: normal Priority: medium

[Bug 28154] New: [r300g] Freeorion crash when fleet icon is clicked

2010-05-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28154 Summary: [r300g] Freeorion crash when fleet icon is clicked Product: Mesa Version: git Platform: Other OS/Version: All Status: NEW Severity: normal Priority: medium

[Bug 24322] [r300, r300g]mesa-7.6 & 7.7 show bogus rendering wih boswars game

2010-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=24322 Marek Olšák changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|

[Bug 24322] [r300, r300g]mesa-7.6 & 7.7 show bogus rendering wih boswars game

2010-05-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=24322 Marek Ol??k changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|

[Bug 24322] [r300, r300g]mesa-7.6 & 7.7 show bogus rendering wih boswars game

2010-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=24322 --- Comment #14 from Fabio Pedretti 2010-05-18 01:21:04 PDT --- (In reply to comment #13) > Could you please test r300g now? On my RV530 both r300/r300g are working fine. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=em

[Bug 24322] [r300, r300g]mesa-7.6 & 7.7 show bogus rendering wih boswars game

2010-05-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=24322 --- Comment #14 from Fabio Pedretti 2010-05-18 01:21:04 PDT --- (In reply to comment #13) > Could you please test r300g now? On my RV530 both r300/r300g are working fine. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=em

[PATCH] drm/radeon/kms/combios: match lvds panel info parsing to ddx

2010-05-18 Thread Alex Deucher
Should work better on some panels. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_combios.c | 26 ++ 1 files changed, 14 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_combios.c b/drivers/gpu/drm/radeon/radeon_combios.c index

[PATCH] drm/radeon/kms/atom: fix typo in LVDS panel info parsing

2010-05-18 Thread Alex Deucher
Fixes LVDS issues on some laptops; notably laptops with 2048x1536 panels. Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/radeon/radeon_atombios.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/driver