[patch] drm/nouveau: off by one in init_i2c_device_find()

2010-05-25 Thread Dan Carpenter
dcb->i2c[] has DCB_MAX_NUM_I2C_ENTRIES entries. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index e7e69cc..bf92a1e 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c @@ -8

[PATCH] drm/edid: Allow non-fatal checksum errors in CEA blocks

2010-05-25 Thread Adam Jackson
Switches will try to update the topology address and not correctly fix up the checksum, so just let it slide. https://bugs.freedesktop.org/28229 Signed-off-by: Adam Jackson --- drivers/gpu/drm/drm_edid.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/dr

Re: build warning in radeon/atombios_crtc.c: pll' may be used uninitialized

2010-05-25 Thread Alex Deucher
On Tue, May 25, 2010 at 4:25 PM, Stefan Richter wrote: > Hi, > > seen with gcc 4.3.4 in current git (although 2.6.34 should show that > too): > > drivers/gpu/drm/radeon/atombios_crtc.c: In function 'atombios_crtc_set_pll': > drivers/gpu/drm/radeon/atombios_crtc.c:684: warning: 'pll' may be used >

[Bug 25616] X1600:M56P Second suspend hangs the system

2010-05-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=25616 Andrea Iob changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: [PATCH] drm/radeon/kms: suppress a build warning (unused variable)

2010-05-25 Thread Alex Deucher
On Tue, May 25, 2010 at 5:03 PM, Stefan Richter wrote: > At least 'make CONFIG_DEBUG_SECTION_MISMATCH=y' causes >  drivers/gpu/drm/radeon/atombios_crtc.c: In function 'atombios_crtc_set_pll': >  drivers/gpu/drm/radeon/atombios_crtc.c:684: warning: 'pll' may be used > uninitialized in this functio

This set of drm patches implements support for 1D and 2D tiling on

2010-05-25 Thread Alex Deucher
First two patches enable scanout from tiled surfaces. Third patch updates the CS checker to deal properly with tiling. Fourth patch fixes surface checking for both tiled and non-tiled pitch, height, and offset alignment. Fifth patch adds a new info query for the MC tile config which is required for

[PATCH 1/5] drm/radeon/kms: Add crtc tiling setup support for r6xx/r7xx

2010-05-25 Thread Alex Deucher
Needed for scanning out of a tiled buffer. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c | 15 +++ drivers/gpu/drm/radeon/r500_reg.h |5 + 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b

[PATCH 2/5] drm/radeon/kms: Add crtc tiling setup support for evergreen

2010-05-25 Thread Alex Deucher
Needed for scanning out of a tiled buffer. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c |5 + drivers/gpu/drm/radeon/evergreen_reg.h |5 + 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/g

[PATCH 3/5] drm/radeon/kms: add tiling support to the cs checker for r6xx/r7xx

2010-05-25 Thread Alex Deucher
Check for relocs for DB_DEPTH_INFO, CB_COLOR*_INFO, and texture resources. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600_cs.c | 57 ++ drivers/gpu/drm/radeon/r600d.h |6 2 files changed, 57 insertions(+), 6 deletions(-) diff --git a

[PATCH 4/5] drm/radeon/kms: fix CS alignment checking for tiling

2010-05-25 Thread Alex Deucher
Covers, depth, cb, and textures. Hopefully I got this right. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600_cs.c | 172 ++--- 1 files changed, 139 insertions(+), 33 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/

[PATCH 5/5] drm/radeon/kms/r6xx+: add query for tile config

2010-05-25 Thread Alex Deucher
Userspace needs this information to access tiled buffers via the CPU. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c |1 + drivers/gpu/drm/radeon/r600.c |2 +- drivers/gpu/drm/radeon/radeon.h |3 +++ drivers/gpu/drm/radeon/radeon_drv.c |3 ++- drive

[PATCH 0/5] Add tiling support for r6xx/r7xx

2010-05-25 Thread Alex Deucher
This set of drm patches implements support for 1D and 2D tiling on r6xx/r7xx chips and lays the groundwork for evergreen tiling support. First two patches enable scanout from tiled surfaces. Third patch updates the CS checker to deal properly with tiling. Fourth patch fixes surface checking for bo

[PATCH 0/3] Add r6xx/r7xx tiling support to mesa

2010-05-25 Thread Alex Deucher
These patches along with the drm and ddx patches enable tiling on r6xx/r7xx hardware. Alex ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH 1/3] r600: add span support for 2D tiling

2010-05-25 Thread Alex Deucher
Requires tiling config ioctl support from the drm to use. kms only. Signed-off-by: Alex Deucher --- .../drivers/dri/radeon/radeon_common_context.c |9 +- .../drivers/dri/radeon/radeon_common_context.h |7 + src/mesa/drivers/dri/radeon/radeon_screen.h|7 + src/mesa/dri

[PATCH 2/3] r600: add new relocs for tiling support

2010-05-25 Thread Alex Deucher
Signed-off-by: Alex Deucher --- src/mesa/drivers/dri/r600/r600_blit.c | 20 +++-- src/mesa/drivers/dri/r600/r700_chip.c | 37 +++- 2 files changed, 39 insertions(+), 18 deletions(-) diff --git a/src/mesa/drivers/dri/r600/r600_blit.c b/src/mesa/drivers

[PATCH 3/3] r600: add support for getting the tiling config via drm ioctl

2010-05-25 Thread Alex Deucher
Needed for the the 2D tiling span functions. Signed-off-by: Alex Deucher --- src/mesa/drivers/dri/radeon/radeon_screen.c | 53 +++ 1 files changed, 53 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/

[PATCH 0/2] Add r6xx/r7xx tiling support to the ddx

2010-05-25 Thread Alex Deucher
These patches along with the drm and mesa patches enable tiling on r6xx/r7xx hardware. Alex ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH 1/2] r6xx/r7xx: add support for tiling with kms

2010-05-25 Thread Alex Deucher
Requires radeon drm 2.5.0 and updated mesa. Signed-off-by: Alex Deucher --- src/drmmode_display.c |7 ++- src/r600_exa.c|3 + src/r600_state.h |3 + src/r6xx_accel.c | 12 -- src/radeon.h |6 +++ src/radeon_dri2.c | 10 - src/radeon_exa.

[PATCH 2/2] r6xx/r7xx: default to micro (1D) tiling for now

2010-05-25 Thread Alex Deucher
SW de-tiling used in the r600c 3D driver has issues with certain configurations. Signed-off-by: Alex Deucher --- src/radeon_dri2.c | 32 +--- 1 files changed, 25 insertions(+), 7 deletions(-) diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c index d10d9a8..0811bb1

[git pull] drm fixes

2010-05-25 Thread Dave Airlie
Hi Linus, just some minor drm/agp fixes, nothing too serious, AGP s/r regression, HDMI EDID regression fix. Dave. The following changes since commit b486787ee4797d6e42a9bd3a6f079385ad0f4472: Alex Deucher (1): drm/radeon/kms/pm/r600: select the mid clock mode for single head low prof

[Bug 28229] Radeon driver not detecting HDMI monitor correctly when using KMS

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

[Bug 26852] Build libkms against in-tree xf86drm.h

2010-05-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=26852 --- Comment #3 from Christopher James Halse Rogers 2010-05-25 23:35:04 PDT --- So, until there's an actual kernel incompatibility introduced for which runtime detection in libkms is necessary, is there any reason not to apply this patch? Buil

[PATCH -next] nouveau: fix acpi_lid_open undefined

2010-05-25 Thread Dave Airlie
On Mon, 2010-05-24 at 07:17 -0700, Randy Dunlap wrote: > On 05/24/10 06:59, Matthew Garrett wrote: > > On Mon, May 24, 2010 at 06:53:51AM -0700, Randy Dunlap wrote: > >> On 05/24/10 05:56, Matthew Garrett wrote: > >>> Won't this result in a behavioural difference? The desirable outcome is > >> > >

[PATCH -next] nouveau: fix acpi_lid_open undefined

2010-05-25 Thread Nigel Cunningham
Hi. On 25/05/10 08:47, Dave Airlie wrote: > On Mon, 2010-05-24 at 07:17 -0700, Randy Dunlap wrote: >> On 05/24/10 06:59, Matthew Garrett wrote: >>> On Mon, May 24, 2010 at 06:53:51AM -0700, Randy Dunlap wrote: On 05/24/10 05:56, Matthew Garrett wrote: > Won't this result in a behavioural

[patch] drm/nouveau: off by one in init_i2c_device_find()

2010-05-25 Thread Dan Carpenter
dcb->i2c[] has DCB_MAX_NUM_I2C_ENTRIES entries. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index e7e69cc..bf92a1e 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c @@ -8

[PATCH] drm/edid: Allow non-fatal checksum errors in CEA blocks

2010-05-25 Thread Adam Jackson
Switches will try to update the topology address and not correctly fix up the checksum, so just let it slide. https://bugs.freedesktop.org/28229 Signed-off-by: Adam Jackson --- drivers/gpu/drm/drm_edid.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/dr

build warning in radeon/atombios_crtc.c: pll' may be used uninitialized

2010-05-25 Thread Alex Deucher
On Tue, May 25, 2010 at 4:25 PM, Stefan Richter wrote: > Hi, > > seen with gcc 4.3.4 in current git (although 2.6.34 should show that > too): > > drivers/gpu/drm/radeon/atombios_crtc.c: In function 'atombios_crtc_set_pll': > drivers/gpu/drm/radeon/atombios_crtc.c:684: warning: 'pll' may be used >

[Bug 25616] X1600:M56P Second suspend hangs the system

2010-05-25 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=25616 Andrea Iob changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[PATCH] drm/radeon/kms: suppress a build warning (unused variable)

2010-05-25 Thread Alex Deucher
On Tue, May 25, 2010 at 5:03 PM, Stefan Richter wrote: > At least 'make CONFIG_DEBUG_SECTION_MISMATCH=y' causes > ?drivers/gpu/drm/radeon/atombios_crtc.c: In function 'atombios_crtc_set_pll': > ?drivers/gpu/drm/radeon/atombios_crtc.c:684: warning: 'pll' may be used > uninitialized in this functio

This set of drm patches implements support for 1D and 2D tiling on

2010-05-25 Thread Alex Deucher
First two patches enable scanout from tiled surfaces. Third patch updates the CS checker to deal properly with tiling. Fourth patch fixes surface checking for both tiled and non-tiled pitch, height, and offset alignment. Fifth patch adds a new info query for the MC tile config which is required for

[PATCH 1/5] drm/radeon/kms: Add crtc tiling setup support for r6xx/r7xx

2010-05-25 Thread Alex Deucher
Needed for scanning out of a tiled buffer. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c | 15 +++ drivers/gpu/drm/radeon/r500_reg.h |5 + 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b

[PATCH 2/5] drm/radeon/kms: Add crtc tiling setup support for evergreen

2010-05-25 Thread Alex Deucher
Needed for scanning out of a tiled buffer. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c |5 + drivers/gpu/drm/radeon/evergreen_reg.h |5 + 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/g

[PATCH 3/5] drm/radeon/kms: add tiling support to the cs checker for r6xx/r7xx

2010-05-25 Thread Alex Deucher
Check for relocs for DB_DEPTH_INFO, CB_COLOR*_INFO, and texture resources. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600_cs.c | 57 ++ drivers/gpu/drm/radeon/r600d.h |6 2 files changed, 57 insertions(+), 6 deletions(-) diff --git a

[PATCH 4/5] drm/radeon/kms: fix CS alignment checking for tiling

2010-05-25 Thread Alex Deucher
Covers, depth, cb, and textures. Hopefully I got this right. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600_cs.c | 172 ++--- 1 files changed, 139 insertions(+), 33 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/

[PATCH 5/5] drm/radeon/kms/r6xx+: add query for tile config

2010-05-25 Thread Alex Deucher
Userspace needs this information to access tiled buffers via the CPU. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c |1 + drivers/gpu/drm/radeon/r600.c |2 +- drivers/gpu/drm/radeon/radeon.h |3 +++ drivers/gpu/drm/radeon/radeon_drv.c |3 ++- drive

[PATCH 0/5] Add tiling support for r6xx/r7xx

2010-05-25 Thread Alex Deucher
This set of drm patches implements support for 1D and 2D tiling on r6xx/r7xx chips and lays the groundwork for evergreen tiling support. First two patches enable scanout from tiled surfaces. Third patch updates the CS checker to deal properly with tiling. Fourth patch fixes surface checking for bo

[PATCH 0/3] Add r6xx/r7xx tiling support to mesa

2010-05-25 Thread Alex Deucher
These patches along with the drm and ddx patches enable tiling on r6xx/r7xx hardware. Alex

[PATCH 1/3] r600: add span support for 2D tiling

2010-05-25 Thread Alex Deucher
Requires tiling config ioctl support from the drm to use. kms only. Signed-off-by: Alex Deucher --- .../drivers/dri/radeon/radeon_common_context.c |9 +- .../drivers/dri/radeon/radeon_common_context.h |7 + src/mesa/drivers/dri/radeon/radeon_screen.h|7 + src/mesa/dri

[PATCH 2/3] r600: add new relocs for tiling support

2010-05-25 Thread Alex Deucher
Signed-off-by: Alex Deucher --- src/mesa/drivers/dri/r600/r600_blit.c | 20 +++-- src/mesa/drivers/dri/r600/r700_chip.c | 37 +++- 2 files changed, 39 insertions(+), 18 deletions(-) diff --git a/src/mesa/drivers/dri/r600/r600_blit.c b/src/mesa/drivers

[PATCH 3/3] r600: add support for getting the tiling config via drm ioctl

2010-05-25 Thread Alex Deucher
Needed for the the 2D tiling span functions. Signed-off-by: Alex Deucher --- src/mesa/drivers/dri/radeon/radeon_screen.c | 53 +++ 1 files changed, 53 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/

[PATCH 0/2] Add r6xx/r7xx tiling support to the ddx

2010-05-25 Thread Alex Deucher
These patches along with the drm and mesa patches enable tiling on r6xx/r7xx hardware. Alex

[PATCH 1/2] r6xx/r7xx: add support for tiling with kms

2010-05-25 Thread Alex Deucher
Requires radeon drm 2.5.0 and updated mesa. Signed-off-by: Alex Deucher --- src/drmmode_display.c |7 ++- src/r600_exa.c|3 + src/r600_state.h |3 + src/r6xx_accel.c | 12 -- src/radeon.h |6 +++ src/radeon_dri2.c | 10 - src/radeon_exa.

[PATCH 2/2] r6xx/r7xx: default to micro (1D) tiling for now

2010-05-25 Thread Alex Deucher
SW de-tiling used in the r600c 3D driver has issues with certain configurations. Signed-off-by: Alex Deucher --- src/radeon_dri2.c | 32 +--- 1 files changed, 25 insertions(+), 7 deletions(-) diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c index d10d9a8..0811bb1

[Bug 28229] Radeon driver not detecting HDMI monitor correctly when using KMS

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

[Bug 26852] Build libkms against in-tree xf86drm.h

2010-05-25 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=26852 --- Comment #3 from Christopher James Halse Rogers 2010-05-25 23:35:04 PDT --- So, until there's an actual kernel incompatibility introduced for which runtime detection in libkms is necessary, is there any reason not to apply this patch? Buil

build warning in radeon/atombios_crtc.c: pll' may be used uninitialized

2010-05-25 Thread Stefan Richter
Hi, seen with gcc 4.3.4 in current git (although 2.6.34 should show that too): drivers/gpu/drm/radeon/atombios_crtc.c: In function 'atombios_crtc_set_pll': drivers/gpu/drm/radeon/atombios_crtc.c:684: warning: 'pll' may be used uninitialized in this function

[PATCH] drm/radeon/kms: suppress a build warning (unused variable)

2010-05-25 Thread Stefan Richter
At least 'make CONFIG_DEBUG_SECTION_MISMATCH=y' causes drivers/gpu/drm/radeon/atombios_crtc.c: In function 'atombios_crtc_set_pll': drivers/gpu/drm/radeon/atombios_crtc.c:684: warning: 'pll' may be used uninitialized in this function which has the looks of a falso positive. Add a default: cas