ttm use pages don't need to populate?

2010-06-28 Thread Yuan, Shengquan
ttm_tt_set_user has "ttm->state = tt_unbound" which will cause the following ttm_tt_populate return directly because of bellow check: if (ttm->state != tt_unpopulated) return 0; Does it mean we don't need to populate user pages? Here is the patch if it is not the case Tha

[Bug 28774] RS780: No picture over HDMI

2010-06-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28774 --- Comment #11 from Alex Deucher 2010-06-28 22:38:29 PDT --- On avivo chips, the display regs start at 0x6000 (crtcs/grph/cur/etc.) and the output regs start at 0x7000 (dacs/dig/etc.). They only relevant register in your dump that's different i

[Bug 28774] RS780: No picture over HDMI

2010-06-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28774 --- Comment #11 from Alex Deucher 2010-06-28 22:38:29 PDT --- On avivo chips, the display regs start at 0x6000 (crtcs/grph/cur/etc.) and the output regs start at 0x7000 (dacs/dig/etc.). They only relevant register in your dump that's different

Problems with alpha/pci + radeon/ttm

2010-06-28 Thread Michael Cree
On 28/06/10 11:14, Dave Airlie wrote: > The bus error is caused by the kernel, its something alpha specific > with how mmap works, > I'm not sure if alpha needs some special mmap flags or something, Neither am I. All I know is that Alpha reorders CPU instructions more aggressively than most othe

[Bug 27858] [r300g] Panzers II crashes in wine

2010-06-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=27858 --- Comment #6 from Marek Olšák 2010-06-28 18:11:27 PDT --- Could you test the game with latest mesa git? There are some new fixes. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail b

[Bug 27858] [r300g] Panzers II crashes in wine

2010-06-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=27858 --- Comment #6 from Marek Ol??k 2010-06-28 18:11:27 PDT --- Could you test the game with latest mesa git? There are some new fixes. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail

[Bug 28630] [r300g] tiling / texture transfer crash in World of Warcraft

2010-06-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28630 --- Comment #4 from Marek Olšák 2010-06-28 17:02:00 PDT --- I believe the "data" pointer is not valid. I have committed some fixes, can you please test latest mesa git? -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email

[Bug 28630] [r300g] tiling / texture transfer crash in World of Warcraft

2010-06-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28630 --- Comment #4 from Marek Ol??k 2010-06-28 17:02:00 PDT --- I believe the "data" pointer is not valid. I have committed some fixes, can you please test latest mesa git? -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=emai

[PATCH 05/16] trivial: use ARRAY_SIZE

2010-06-28 Thread Kulikov Vasiliy
Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x). Signed-off-by: Kulikov Vasiliy --- drivers/gpu/drm/i915/intel_tv.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c index 6d553c2..d2d4e40 100644 --- a/drive

[PATCH 04/16] trivial: use ARRAY_SIZE

2010-06-28 Thread Kulikov Vasiliy
Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x). Signed-off-by: Kulikov Vasiliy --- drivers/gpu/drm/i915/intel_sdvo.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index 76993ac..03c231b 100644 --

[PATCH 03/16] trivial: use ARRAY_SIZE

2010-06-28 Thread Kulikov Vasiliy
Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x). Signed-off-by: Kulikov Vasiliy --- drivers/gpu/drm/drm_edid.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index c198186..da06476 100644 --- a/drivers/gpu/drm

[Bug 28771] Vsync always on

2010-06-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28771 --- Comment #3 from Jesse Barnes 2010-06-28 15:41:03 PDT --- Oh, for the DRI2 radeon driver you'll probably need to add an explicit option somewhere; maybe the code path that used to check the vblank_mode flags is no longer called. See intel_sc

[Bug 28771] Vsync always on

2010-06-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28771 --- Comment #3 from Jesse Barnes 2010-06-28 15:41:03 PDT --- Oh, for the DRI2 radeon driver you'll probably need to add an explicit option somewhere; maybe the code path that used to check the vblank_mode flags is no longer called. See intel_sc

[PATCH -next] drm: ttm_page_alloc, fix all sparse warnings

2010-06-28 Thread Randy Dunlap
From: Randy Dunlap Fix all sparse warnings in ttm_page_alloc.c. Signed-off-by: Randy Dunlap Cc: David Airlie Cc: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/ttm/ttm_page_alloc.c |8 1 file changed, 4 insertions(+), 4 deletions(-) drivers/gpu/drm/ttm/ttm_page_allo

[PATCH -next] drm: ttm_page_alloc, fix all sparse warnings

2010-06-28 Thread Randy Dunlap
From: Randy Dunlap Fix all sparse warnings in ttm_page_alloc.c. Signed-off-by: Randy Dunlap Cc: David Airlie Cc: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/ttm/ttm_page_alloc.c |8 1 file changed, 4 insertions(+), 4 deletions(-) drivers/gpu/drm/ttm/ttm_page_a

[Bug 28671] Seg. fault and Oops with Radeon KMS (v2.6.34) on PPC ATI Radeon AGP r420 JH.

2010-06-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28671 --- Comment #26 from Alex Deucher 2010-06-28 14:09:52 PDT --- Ideally you'd test both a digital and analog monitor on both ports and make sure it works on each. Can you attach your xorg log and dmesg from the final version of the patch? Also, m

[Bug 28671] Seg. fault and Oops with Radeon KMS (v2.6.34) on PPC ATI Radeon AGP r420 JH.

2010-06-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28671 --- Comment #26 from Alex Deucher 2010-06-28 14:09:52 PDT --- Ideally you'd test both a digital and analog monitor on both ports and make sure it works on each. Can you attach your xorg log and dmesg from the final version of the patch? Also,

[Bug 28671] Seg. fault and Oops with Radeon KMS (v2.6.34) on PPC ATI Radeon AGP r420 JH.

2010-06-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28671 --- Comment #25 from Brett Witherspoon 2010-06-28 13:51:33 PDT --- Ok seems to work well. How will I know when we have the correct combinations for the connector table? It seems that multiple combinations work. -- Configure bugmail: https://bu

[Bug 28671] Seg. fault and Oops with Radeon KMS (v2.6.34) on PPC ATI Radeon AGP r420 JH.

2010-06-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28671 --- Comment #25 from Brett Witherspoon 2010-06-28 13:51:33 PDT --- Ok seems to work well. How will I know when we have the correct combinations for the connector table? It seems that multiple combinations work. -- Configure bugmail: https://bu

[Bug 28630] [r300g] tiling / texture transfer crash in World of Warcraft

2010-06-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28630 --- Comment #3 from Chris Rankin 2010-06-28 13:49:19 PDT --- In src/gallium/drivers/r300/r300_context.c static void r300_flush_cb(void *data) { struct r300_context* const cs_context_copy = data; cs_context_copy->context.flush(&cs_conte

[Bug 28630] [r300g] tiling / texture transfer crash in World of Warcraft

2010-06-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28630 --- Comment #3 from Chris Rankin 2010-06-28 13:49:19 PDT --- In src/gallium/drivers/r300/r300_context.c static void r300_flush_cb(void *data) { struct r300_context* const cs_context_copy = data; cs_context_copy->context.flush(&cs_conte

[Bug 28771] Vsync always on

2010-06-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28771 --- Comment #2 from Sven Arvidsson 2010-06-28 13:18:51 PDT --- Yes, I'm using git master, so they're both there. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You

[Bug 28771] Vsync always on

2010-06-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28771 --- Comment #2 from Sven Arvidsson 2010-06-28 13:18:51 PDT --- Yes, I'm using git master, so they're both there. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You

[Bug 28630] [r300g] tiling / texture transfer crash in World of Warcraft

2010-06-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28630 --- Comment #2 from Chris Rankin 2010-06-28 13:15:33 PDT --- Created an attachment (id=36584) --> (https://bugs.freedesktop.org/attachment.cgi?id=36584) Recent backtrace using mesa git with -gdwarf-2 -- Configure bugmail: https://bugs.freedes

[Bug 28630] [r300g] tiling / texture transfer crash in World of Warcraft

2010-06-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28630 --- Comment #2 from Chris Rankin 2010-06-28 13:15:33 PDT --- Created an attachment (id=36584) --> (https://bugs.freedesktop.org/attachment.cgi?id=36584) Recent backtrace using mesa git with -gdwarf-2 -- Configure bugmail: https://bugs.freedes

[Bug 28800] New: [r300c] Texture corruption with World of Warcraft

2010-06-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28800 Summary: [r300c] Texture corruption with World of Warcraft Product: Mesa Version: git Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW Severity: normal Prio

[Bug 28800] New: [r300c] Texture corruption with World of Warcraft

2010-06-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28800 Summary: [r300c] Texture corruption with World of Warcraft Product: Mesa Version: git Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW Severity: normal Prio

Re: Problems with alpha/pci + radeon/ttm

2010-06-28 Thread Richard Henderson
On 06/28/2010 02:03 AM, Michael Cree wrote: > On 28/06/10 11:14, Dave Airlie wrote: >> The bus error is caused by the kernel, its something alpha specific >> with how mmap works, >> I'm not sure if alpha needs some special mmap flags or something, > > Neither am I. All I know is that Alpha reorde

[Bug 28771] Vsync always on

2010-06-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28771 --- Comment #1 from Jesse Barnes 2010-06-28 09:31:56 PDT --- You need both: commit 234286c0f8b7d30ed49223c648d4c73c1a517ab3 Author: Jesse Barnes Date: Thu Apr 22 12:47:41 2010 -0700 DRI2: add config query extension and commit 45e2b51c

[Bug 28771] Vsync always on

2010-06-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28771 --- Comment #1 from Jesse Barnes 2010-06-28 09:31:56 PDT --- You need both: commit 234286c0f8b7d30ed49223c648d4c73c1a517ab3 Author: Jesse Barnes Date: Thu Apr 22 12:47:41 2010 -0700 DRI2: add config query extension and commit 45e2b51c

Problems with alpha/pci + radeon/ttm

2010-06-28 Thread Dave Airlie
On Sun, Jun 27, 2010 at 8:46 PM, Michael Cree wrote: > On 27/06/10 16:20, FUJITA Tomonori wrote: >> >> On Thu, 24 Jun 2010 21:51:40 +1200 >> Michael Cree ?wrote: >> > Is this a regression (what kernel version worked)? > > Seems that the IOMMU can't find 128 pages. It's likely due to: >

Problems with alpha/pci + radeon/ttm

2010-06-28 Thread Richard Henderson
On 06/28/2010 02:03 AM, Michael Cree wrote: > On 28/06/10 11:14, Dave Airlie wrote: >> The bus error is caused by the kernel, its something alpha specific >> with how mmap works, >> I'm not sure if alpha needs some special mmap flags or something, > > Neither am I. All I know is that Alpha reorde

[PATCH 05/16] trivial: use ARRAY_SIZE

2010-06-28 Thread Kulikov Vasiliy
Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x). Signed-off-by: Kulikov Vasiliy --- drivers/gpu/drm/i915/intel_tv.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c index 6d553c2..d2d4e40 100644 --- a/drive

[PATCH 04/16] trivial: use ARRAY_SIZE

2010-06-28 Thread Kulikov Vasiliy
Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x). Signed-off-by: Kulikov Vasiliy --- drivers/gpu/drm/i915/intel_sdvo.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index 76993ac..03c231b 100644 --

[PATCH 03/16] trivial: use ARRAY_SIZE

2010-06-28 Thread Kulikov Vasiliy
Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x). Signed-off-by: Kulikov Vasiliy --- drivers/gpu/drm/drm_edid.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index c198186..da06476 100644 --- a/drivers/gpu/drm

Re: Problems with alpha/pci + radeon/ttm

2010-06-28 Thread Michael Cree
On 28/06/10 11:14, Dave Airlie wrote: The bus error is caused by the kernel, its something alpha specific with how mmap works, I'm not sure if alpha needs some special mmap flags or something, Neither am I. All I know is that Alpha reorders CPU instructions more aggressively than most other a

Re: Problems with alpha/pci + radeon/ttm

2010-06-28 Thread Dave Airlie
On Sun, Jun 27, 2010 at 8:46 PM, Michael Cree wrote: > On 27/06/10 16:20, FUJITA Tomonori wrote: >> >> On Thu, 24 Jun 2010 21:51:40 +1200 >> Michael Cree  wrote: >> > Is this a regression (what kernel version worked)? > > Seems that the IOMMU can't find 128 pages. It's likely due to: >

Re: Problems with alpha/pci + radeon/ttm

2010-06-28 Thread Michael Cree
On 27/06/10 16:20, FUJITA Tomonori wrote: On Thu, 24 Jun 2010 21:51:40 +1200 Michael Cree wrote: Is this a regression (what kernel version worked)? Seems that the IOMMU can't find 128 pages. It's likely due to: - out of the IOMMU space (possibly someone doesn't free the IOMMU space). or

Re: Problems with alpha/pci + radeon/ttm

2010-06-28 Thread Matt Turner
On Sun, Jun 27, 2010 at 12:20 AM, FUJITA Tomonori wrote: > On Thu, 24 Jun 2010 10:53:52 -0400 > Matt Turner wrote: > >> > Seems that the IOMMU can't find 128 pages. It's likely due to: >> > >> > - out of the IOMMU space (possibly someone doesn't free the IOMMU >> >  space). >> > >> > or >> > >> >

Re: Problems with alpha/pci + radeon/ttm

2010-06-28 Thread FUJITA Tomonori
On Thu, 24 Jun 2010 21:51:40 +1200 Michael Cree wrote: > >> Is this a regression (what kernel version worked)? > >> > >> Seems that the IOMMU can't find 128 pages. It's likely due to: > >> > >> - out of the IOMMU space (possibly someone doesn't free the IOMMU > >> space). > >> > >> or > >> > >>

Re: Problems with alpha/pci + radeon/ttm

2010-06-28 Thread FUJITA Tomonori
On Thu, 24 Jun 2010 10:53:52 -0400 Matt Turner wrote: > > Seems that the IOMMU can't find 128 pages. It's likely due to: > > > > - out of the IOMMU space (possibly someone doesn't free the IOMMU > >  space). > > > > or > > > > - the mapping parameters (such as align) aren't appropriate so the > >