[PATCH v2] drm/radeon/kms: remove benchmarks shorter than one page

2012-01-30 Thread Ilija Hadzic
copy_blit operation works only on integral number of pages so benchmarks shorter than one page size (4K) do not make sense v2: use RADEON_GPU_PAGE_SIZE instead of "magic" 1024 number and sweep sizes between 1x to 16x doubling the size in each iteration; we get the same coverage, as in

[PATCH] drm/radeon/kms: remove benchmarks shorter than one page

2012-01-30 Thread Ilija Hadzic
copy_blit operation works only on integral number of pages so benchmarks shorter than one page size (4K) do not make sense Signed-off-by: Ilija Hadzic --- drivers/gpu/drm/radeon/radeon_benchmark.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeo

[Bug 36782] textures on Earth in Celestia contain pixels from other windows

2012-01-30 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36782 --- Comment #4 from Alex Deucher 2012-01-30 14:08:23 PST --- Can you bisect r600g? -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug

[Bug 36782] textures on Earth in Celestia contain pixels from other windows

2012-01-30 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36782 --- Comment #3 from aceman 2012-01-30 14:03:21 PST --- It was quite good in 7.11 with R600g. But it is back with even worse effects on a nightly version before 8. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --

[PATCH] drm/radeon/kms: remove benchmarks shorter than one page

2012-01-30 Thread Ilija Hadzic
scratch this one, I've just thought of a better one (coming in a few minutes) On Mon, 30 Jan 2012, Ilija Hadzic wrote: > copy_blit operation works only on integral number of pages > so benchmarks shorter than one page size (4K) do not make sense > > Signed-off-by: Ilija Hadzic > --- > driv

Re: [PATCH] dma-buf: add dma_data_direction to unmap dma_buf_op

2012-01-30 Thread Semwal, Sumit
Hi Laurent, On Jan 30, 2012 7:48 PM, "Laurent Pinchart" < laurent.pinch...@ideasonboard.com> wrote: > > Hi Sumit, > > On Friday 27 January 2012 10:43:28 Sumit Semwal wrote: > > Some exporters may use DMA map/unmap APIs in dma-buf ops, which require > > enum dma_data_direction for both map and unma

[PATCH v2] drm/radeon/kms: remove benchmarks shorter than one page

2012-01-30 Thread Ilija Hadzic
copy_blit operation works only on integral number of pages so benchmarks shorter than one page size (4K) do not make sense v2: use RADEON_GPU_PAGE_SIZE instead of "magic" 1024 number and sweep sizes between 1x to 16x doubling the size in each iteration; we get the same coverage, as in

Re: [PATCH] drm/radeon/kms: remove benchmarks shorter than one page

2012-01-30 Thread Ilija Hadzic
scratch this one, I've just thought of a better one (coming in a few minutes) On Mon, 30 Jan 2012, Ilija Hadzic wrote: copy_blit operation works only on integral number of pages so benchmarks shorter than one page size (4K) do not make sense Signed-off-by: Ilija Hadzic --- drivers/gpu/

[PATCH] drm/radeon/kms: remove benchmarks shorter than one page

2012-01-30 Thread Ilija Hadzic
copy_blit operation works only on integral number of pages so benchmarks shorter than one page size (4K) do not make sense Signed-off-by: Ilija Hadzic --- drivers/gpu/drm/radeon/radeon_benchmark.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeo

failure on linux-3.2 and radeon kms with a FireGL V5600 on PPC64

2012-01-30 Thread acrux
On Mon, 30 Jan 2012 10:34:03 +0100 Michel D?nzer wrote: > On Son, 2012-01-29 at 23:27 +0100, acrux wrote: > > hi all, > > i'm unable to have a working Radeon KMS framebuffer with an ATI FireGL > > V5600 on my YDL Powerstation and i'm obliged to use the old > > OpenFirmware fb. > > > > That's f

failure on linux-3.2 and radeon kms with a FireGL V5600 on PPC64

2012-01-30 Thread acrux
On Mon, 30 Jan 2012 16:10:03 +0100 Andreas Schwab wrote: > Michel D?nzer writes: > > > On Mon, 2012-01-30 at 14:03 +0100, acrux wrote: > >> hi Michel, > >> thanks for your help but i'm unable to disable VGA_ARB 'cause it's > >> automatically enabled. > >> Can you suggest me a way to disable i

[PATCH] Don't build Intel DRM if $CHOST is not i?86-* or x86_64-*

2012-01-30 Thread Jeremy Huddleston
This fixes a failure in 'make check' found by the tinderbox when trying to build this code on Linux/ppc. This code is only designed to run on Intel platforms, so don't even bother building it if we're not in that set. Found-by: Tinderbox Signed-off-by: Jeremy Huddleston --- It now causes the in

failure on linux-3.2 and radeon kms with a FireGL V5600 on PPC64

2012-01-30 Thread Andreas Schwab
Michel D?nzer writes: > On Mon, 2012-01-30 at 14:03 +0100, acrux wrote: >> hi Michel, >> thanks for your help but i'm unable to disable VGA_ARB 'cause it's >> automatically enabled. >> Can you suggest me a way to disable it? >> Here my kernel config: http://cruxppc.org/~acrux/config-kms > > Mig

failure on linux-3.2 and radeon kms with a FireGL V5600 on PPC64

2012-01-30 Thread Michel Dänzer
On Mon, 2012-01-30 at 14:03 +0100, acrux wrote: > On Mon, 30 Jan 2012 10:34:03 +0100 > Michel D?nzer wrote: > > On Son, 2012-01-29 at 23:27 +0100, acrux wrote: > > > hi all, > > > i'm unable to have a working Radeon KMS framebuffer with an ATI FireGL > > > V5600 on my YDL Powerstation and i'm ob

[Bug 28426] hardware cursor corruption with radeon+kms

2012-01-30 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28426 --- Comment #16 from Michel D?nzer 2012-01-30 07:41:01 PST --- (In reply to comment #14) > It happens randomly and usualy goes away after a while. Given that this bug really seems fixed for others, and comment #7 says only a reboot helped, your

failure on linux-3.2 and radeon kms with a FireGL V5600 on PPC64

2012-01-30 Thread acrux
On Mon, 30 Jan 2012 08:58:28 -0500 Alex Deucher wrote: _omissis__ > > > > hi Michel, > > thanks for your help but i'm unable to disable VGA_ARB 'cause it's > > automatically enabled. > > Can you suggest me a way to disable it? > > Here my kernel config: http://cruxppc.org/~acrux/config-kms > > >

[PATCH] Don't build Intel DRM if $CHOST is not i?86-* or x86_64-*

2012-01-30 Thread Jeremy Huddleston
This fixes a failure in 'make check' found by the tinderbox when trying to build this code on Linux/ppc. This code is only designed to run on Intel platforms, so don't even bother building it if we're not in that set. Found-by: Tinderbox Signed-off-by: Jeremy Huddleston --- It now causes the in

DRI Support for Savage4

2012-01-30 Thread Elvis L.
Hello first of all, please excuse my possibly bad english. Im German. I wanted to install DRI-supported drivers for my Savage4 graphic-chip (Acer Aspire 1310XC Laptop). I found some in http://dri.freedesktop.org/snapshots/ and read, that I have to "./install" the common package first, after th

[PATCH] dma-buf: add dma_data_direction to unmap dma_buf_op

2012-01-30 Thread Laurent Pinchart
Hi Sumit, On Friday 27 January 2012 10:43:28 Sumit Semwal wrote: > Some exporters may use DMA map/unmap APIs in dma-buf ops, which require > enum dma_data_direction for both map and unmap operations. > > Thus, the unmap dma_buf_op also needs to have enum dma_data_direction as > a parameter. > >

[Bug 36782] textures on Earth in Celestia contain pixels from other windows

2012-01-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36782 --- Comment #4 from Alex Deucher 2012-01-30 14:08:23 PST --- Can you bisect r600g? -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug.

[Bug 36782] textures on Earth in Celestia contain pixels from other windows

2012-01-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36782 --- Comment #3 from aceman 2012-01-30 14:03:21 PST --- It was quite good in 7.11 with R600g. But it is back with even worse effects on a nightly version before 8. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --

failure on linux-3.2 and radeon kms with a FireGL V5600 on PPC64

2012-01-30 Thread acrux
On Mon, 30 Jan 2012 10:34:03 +0100 Michel D?nzer wrote: > On Son, 2012-01-29 at 23:27 +0100, acrux wrote: > > hi all, > > i'm unable to have a working Radeon KMS framebuffer with an ATI FireGL > > V5600 on my YDL Powerstation and i'm obliged to use the old > > OpenFirmware fb. > > > > That's f

[Bug 38010] DVI output not working with radeon on RV610

2012-01-30 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=38010 --- Comment #6 from darkbasic 2012-01-30 05:45:43 PST --- Sorry, I completely forgot about this bug! I will check this evening or tomorrow. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving th

DRI Support for Savage4

2012-01-30 Thread Adam Jackson
On 1/30/12 9:24 AM, Elvis L. wrote: > Hello > > first of all, please excuse my possibly bad english. Im German. > > I wanted to install DRI-supported drivers for my Savage4 graphic-chip > (Acer Aspire 1310XC Laptop). I found some in > http://dri.freedesktop.org/snapshots/ and read, that I have to >

[PATCH] drivers/gpu/drm/drm_ioc32.c: initialize all fields

2012-01-30 Thread Julia Lawall
From: Julia Lawall The c32 structure is allocated on the stack and its idx field is not initialized before copying it to user level. This patch takes the value from the result of the ioctl, as done for the other fields. Signed-off-by: Julia Lawall --- An alternative would be to change the ear

[PATCH] initialize all fields

2012-01-30 Thread Julia Lawall
This patch fixes a case where a structure field is not initialized before the structureis copied to user level. The semantic match that finds this problem is as follows (http://coccinelle.lip6.fr/). It uses other references to the same structure in the current file to find the set of fields that

[PATCH -next] vgaarb.h: fix build warnings

2012-01-30 Thread Randy Dunlap
red inside parameter list include/linux/vgaarb.h:140:37: warning: 'struct pci_dev' declared inside parameter list Signed-off-by: Randy Dunlap Cc: David Airlie Cc: dri-devel at lists.freedesktop.org --- include/linux/vgaarb.h |2 ++ 1 file changed, 2 insertions(+) -

question about drivers/gpu/drm/drm_ioc32.c

2012-01-30 Thread Julia Lawall
On Mon, 30 Jan 2012, Dave Airlie wrote: > On Sat, Jan 28, 2012 at 7:28 PM, Julia Lawall wrote: >> In the function compat_drm_getclient, I have the impression that the >> structure c32 is copied to user level with the field idx uninitialized? > > Looks like it alright, > > care to send a patch? W

[PATCH -next] vgaarb.h: fix build warnings

2012-01-30 Thread Randy Dunlap
red inside parameter list include/linux/vgaarb.h:140:37: warning: 'struct pci_dev' declared inside parameter list Signed-off-by: Randy Dunlap Cc: David Airlie Cc: dri-devel@lists.freedesktop.org --- include/linux/vgaarb.h |2 ++ 1 file changed, 2 insertions(+) --- linux-n

failure on linux-3.2 and radeon kms with a FireGL V5600 on PPC64

2012-01-30 Thread Michel Dänzer
On Son, 2012-01-29 at 23:27 +0100, acrux wrote: > hi all, > i'm unable to have a working Radeon KMS framebuffer with an ATI FireGL > V5600 on my YDL Powerstation and i'm obliged to use the old > OpenFirmware fb. > > That's from my dmesg [1]: > > [...] > vgaarb: device added: PCI::f1:00.0,de

question about drivers/gpu/drm/drm_ioc32.c

2012-01-30 Thread Dave Airlie
On Sat, Jan 28, 2012 at 7:28 PM, Julia Lawall wrote: > In the function compat_drm_getclient, I have the impression that the > structure c32 is copied to user level with the field idx uninitialized? Looks like it alright, care to send a patch? Dave.

Re: DRI Support for Savage4

2012-01-30 Thread Adam Jackson
On 1/30/12 9:24 AM, Elvis L. wrote: Hello first of all, please excuse my possibly bad english. Im German. I wanted to install DRI-supported drivers for my Savage4 graphic-chip (Acer Aspire 1310XC Laptop). I found some in http://dri.freedesktop.org/snapshots/ and read, that I have to "./install"

[git pull] drm fixes

2012-01-30 Thread Dave Airlie
Hi Linus, just some misc fixes that built up over the weekend, nothing too major or serious, one revert from Daniel after testing -rc1 on old hw. Dave. The following changes since commit 0a9626575400879d1d5e6bc8768188b938d7c501: Merge tag 'driver-core-3.3-rc1-bugfixes' of git://git.kernel.

DRI Support for Savage4

2012-01-30 Thread Elvis L.
Hello first of all, please excuse my possibly bad english. Im German. I wanted to install DRI-supported drivers for my Savage4 graphic-chip (Acer Aspire 1310XC Laptop). I found some in http://dri.freedesktop.org/snapshots/ and read, that I have to "./install" the common package first, after t

failure on linux-3.2 and radeon kms with a FireGL V5600 on PPC64

2012-01-30 Thread Alex Deucher
2012/1/30 acrux : > On Mon, 30 Jan 2012 10:34:03 +0100 > Michel D?nzer wrote: > >> On Son, 2012-01-29 at 23:27 +0100, acrux wrote: >> > hi all, >> > i'm unable to have a working Radeon KMS framebuffer with an ATI FireGL >> > V5600 on my YDL Powerstation and i'm obliged to use the old >> > OpenFirm

Re: libdrm fails 'make check' in tinderbox (was Re: [ANNOUNCE] libdrm 2.4.30)

2012-01-30 Thread Eric Anholt
On Sat, 28 Jan 2012 19:30:39 -0800, Jeremy Huddleston wrote: > Maybe I'm missing something here... > > Shouldn't I be able to build and test support for Intel even if I've > got an nVidia card in my box now? Or is this support for Intel CPUs > rather than Intel GPUs? Intel GPUs only exist on I

libdrm fails 'make check' in tinderbox (was Re: [ANNOUNCE] libdrm 2.4.30)

2012-01-30 Thread Eric Anholt
PUs? Intel GPUs only exist on Intel CPUs (or bridge chipsets). -- 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/20120130/9dca2722/attachment.pgp>

[Bug 38010] DVI output not working with radeon on RV610

2012-01-30 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=38010 --- Comment #5 from Rafa? Mi?ecki 2012-01-30 00:22:39 PST --- darkbasic: I've request to you, could you try switching to some updated kernel and trying radeon.audio=1 option in GRUB? In case of 3.0, please use 3.0.18 or newer. In case of 3.1, p

Re: failure on linux-3.2 and radeon kms with a FireGL V5600 on PPC64

2012-01-30 Thread acrux
On Mon, 30 Jan 2012 16:10:03 +0100 Andreas Schwab wrote: > Michel Dänzer writes: > > > On Mon, 2012-01-30 at 14:03 +0100, acrux wrote: > >> hi Michel, > >> thanks for your help but i'm unable to disable VGA_ARB 'cause it's > >> automatically enabled. > >> Can you suggest me a way to disable i

Re: failure on linux-3.2 and radeon kms with a FireGL V5600 on PPC64

2012-01-30 Thread acrux
On Mon, 30 Jan 2012 10:34:03 +0100 Michel Dänzer wrote: > On Son, 2012-01-29 at 23:27 +0100, acrux wrote: > > hi all, > > i'm unable to have a working Radeon KMS framebuffer with an ATI FireGL > > V5600 on my YDL Powerstation and i'm obliged to use the old > > OpenFirmware fb. > > > > That's f

[Bug 28426] hardware cursor corruption with radeon+kms

2012-01-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28426 --- Comment #16 from Michel Dänzer 2012-01-30 07:41:01 PST --- (In reply to comment #14) > It happens randomly and usualy goes away after a while. Given that this bug really seems fixed for others, and comment #7 says only a reboot helped, your

Re: failure on linux-3.2 and radeon kms with a FireGL V5600 on PPC64

2012-01-30 Thread Andreas Schwab
Michel Dänzer writes: > On Mon, 2012-01-30 at 14:03 +0100, acrux wrote: >> hi Michel, >> thanks for your help but i'm unable to disable VGA_ARB 'cause it's >> automatically enabled. >> Can you suggest me a way to disable it? >> Here my kernel config: http://cruxppc.org/~acrux/config-kms > > Mig

Re: failure on linux-3.2 and radeon kms with a FireGL V5600 on PPC64

2012-01-30 Thread Michel Dänzer
On Mon, 2012-01-30 at 14:03 +0100, acrux wrote: > On Mon, 30 Jan 2012 10:34:03 +0100 > Michel Dänzer wrote: > > On Son, 2012-01-29 at 23:27 +0100, acrux wrote: > > > hi all, > > > i'm unable to have a working Radeon KMS framebuffer with an ATI FireGL > > > V5600 on my YDL Powerstation and i'm ob

question about drivers/gpu/drm/drm_ioc32.c

2012-01-30 Thread devendra.aaru
On Mon, Jan 30, 2012 at 5:28 AM, Julia Lawall wrote: > On Mon, 30 Jan 2012, Dave Airlie wrote: > >> On Sat, Jan 28, 2012 at 7:28 PM, Julia Lawall >> wrote: >>> >>> In the function compat_drm_getclient, I have the impression that the >>> structure c32 is copied to user level with the field idx uni

Re: failure on linux-3.2 and radeon kms with a FireGL V5600 on PPC64

2012-01-30 Thread acrux
On Mon, 30 Jan 2012 08:58:28 -0500 Alex Deucher wrote: _omissis__ > > > > hi Michel, > > thanks for your help but i'm unable to disable VGA_ARB 'cause it's > > automatically enabled. > > Can you suggest me a way to disable it? > > Here my kernel config: http://cruxppc.org/~acrux/config-kms > > >

Re: [PATCH] dma-buf: add dma_data_direction to unmap dma_buf_op

2012-01-30 Thread Laurent Pinchart
Hi Sumit, On Friday 27 January 2012 10:43:28 Sumit Semwal wrote: > Some exporters may use DMA map/unmap APIs in dma-buf ops, which require > enum dma_data_direction for both map and unmap operations. > > Thus, the unmap dma_buf_op also needs to have enum dma_data_direction as > a parameter. > >

Re: failure on linux-3.2 and radeon kms with a FireGL V5600 on PPC64

2012-01-30 Thread Alex Deucher
2012/1/30 acrux : > On Mon, 30 Jan 2012 10:34:03 +0100 > Michel Dänzer wrote: > >> On Son, 2012-01-29 at 23:27 +0100, acrux wrote: >> > hi all, >> > i'm unable to have a working Radeon KMS framebuffer with an ATI FireGL >> > V5600 on my YDL Powerstation and i'm obliged to use the old >> > OpenFirm

[Bug 38010] DVI output not working with radeon on RV610

2012-01-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38010 --- Comment #6 from darkbasic 2012-01-30 05:45:43 PST --- Sorry, I completely forgot about this bug! I will check this evening or tomorrow. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving th

Re: failure on linux-3.2 and radeon kms with a FireGL V5600 on PPC64

2012-01-30 Thread acrux
On Mon, 30 Jan 2012 10:34:03 +0100 Michel Dänzer wrote: > On Son, 2012-01-29 at 23:27 +0100, acrux wrote: > > hi all, > > i'm unable to have a working Radeon KMS framebuffer with an ATI FireGL > > V5600 on my YDL Powerstation and i'm obliged to use the old > > OpenFirmware fb. > > > > That's f

Re: question about drivers/gpu/drm/drm_ioc32.c

2012-01-30 Thread devendra.aaru
On Mon, Jan 30, 2012 at 5:28 AM, Julia Lawall wrote: > On Mon, 30 Jan 2012, Dave Airlie wrote: > >> On Sat, Jan 28, 2012 at 7:28 PM, Julia Lawall >> wrote: >>> >>> In the function compat_drm_getclient, I have the impression that the >>> structure c32 is copied to user level with the field idx uni

[PATCH] initialize all fields

2012-01-30 Thread Julia Lawall
This patch fixes a case where a structure field is not initialized before the structureis copied to user level. The semantic match that finds this problem is as follows (http://coccinelle.lip6.fr/). It uses other references to the same structure in the current file to find the set of fields that

[PATCH] drivers/gpu/drm/drm_ioc32.c: initialize all fields

2012-01-30 Thread Julia Lawall
From: Julia Lawall The c32 structure is allocated on the stack and its idx field is not initialized before copying it to user level. This patch takes the value from the result of the ioctl, as done for the other fields. Signed-off-by: Julia Lawall --- An alternative would be to change the ear

Re: question about drivers/gpu/drm/drm_ioc32.c

2012-01-30 Thread Julia Lawall
On Mon, 30 Jan 2012, Dave Airlie wrote: On Sat, Jan 28, 2012 at 7:28 PM, Julia Lawall wrote: In the function compat_drm_getclient, I have the impression that the structure c32 is copied to user level with the field idx uninitialized? Looks like it alright, care to send a patch? What shoul

Re: question about drivers/gpu/drm/drm_ioc32.c

2012-01-30 Thread Dave Airlie
On Sat, Jan 28, 2012 at 7:28 PM, Julia Lawall wrote: > In the function compat_drm_getclient, I have the impression that the > structure c32 is copied to user level with the field idx uninitialized? Looks like it alright, care to send a patch? Dave. __

[git pull] drm fixes

2012-01-30 Thread Dave Airlie
Hi Linus, just some misc fixes that built up over the weekend, nothing too major or serious, one revert from Daniel after testing -rc1 on old hw. Dave. The following changes since commit 0a9626575400879d1d5e6bc8768188b938d7c501: Merge tag 'driver-core-3.3-rc1-bugfixes' of git://git.kernel.

Re: failure on linux-3.2 and radeon kms with a FireGL V5600 on PPC64

2012-01-30 Thread Michel Dänzer
On Son, 2012-01-29 at 23:27 +0100, acrux wrote: > hi all, > i'm unable to have a working Radeon KMS framebuffer with an ATI FireGL > V5600 on my YDL Powerstation and i'm obliged to use the old > OpenFirmware fb. > > That's from my dmesg [1]: > > [...] > vgaarb: device added: PCI::f1:00.0,de

[Bug 38010] DVI output not working with radeon on RV610

2012-01-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38010 --- Comment #5 from Rafał Miłecki 2012-01-30 00:22:39 PST --- darkbasic: I've request to you, could you try switching to some updated kernel and trying radeon.audio=1 option in GRUB? In case of 3.0, please use 3.0.18 or newer. In case of 3.1, pl