[PATCH 0/5][-next] TTM bo reservation and fencing improvements

2010-11-17 Thread Sedat Dilek
Hi, I have tested Thomas drm-ttm(-next) patch-sets in combination with Daniel Vetter's patch-sets (series see below). No bad - no good in OpenArena-benchmark. ( It is definitely pageflip-support patches causing a slow-down of 4-5 fps... 13-14 vs. 17-18 fps on a radeon RV250 is a real difference.

PROBLEM: Registering radeon display connectors fails due to missing adapter name

2010-11-17 Thread Ari Savolainen
Registering radeon display connectors fails due to missing adapter name. The problem surfaced after this commit to Linus' kernel tree: commit 2236baa75f704851d3cd3310569058151acb1f06 Author: Jean Delvare Date: Mon Nov 15 22:40:38 2010 +0100 i2c: Sanity checks on adapter registration M

[PATCH 0/5][-next] TTM bo reservation and fencing improvements

2010-11-17 Thread Sedat Dilek
On Wed, Nov 17, 2010 at 6:44 PM, Thomas Hellstrom wrote: > On 11/17/2010 05:40 PM, Sedat Dilek wrote: >> >> Against which GIT tree is this patchset, against latest drm-next GIT they >> fail? >> Missing a patch or patchset? >> > > On top of drm-next you first need to apply > > drm/ttm: ?Fix up a t

[PATCH 0/1][-next] drm/radeon: Move over to the ttm execbuf utilities

2010-11-17 Thread Thomas Hellstrom
On 11/17/2010 08:11 PM, Jerome Glisse wrote: > On Wed, Nov 17, 2010 at 7:38 AM, Thomas Hellstrom > wrote: > >> The patch is compile-tested ony and not very intrusive. It should be applied >> on top of the latest TTM patches. >> >> Besides reduced CPU-usage on SMP kernels, there is the benefit

[PATCH] drm/radeon/kms: fix alignment when allocating buffers

2010-11-17 Thread Alex Deucher
We were previously dropping alignment requests on the floor when allocating buffers so we always ended up page aligned. Certain tiling modes on 6xx+ require larger alignment which wasn't happening before. Signed-off-by: Alex Deucher Cc: Jerome Glisse --- drivers/gpu/drm/radeon/evergreen_blit_km

[PATCH 0/5][-next] TTM bo reservation and fencing improvements

2010-11-17 Thread Thomas Hellstrom
On 11/17/2010 05:40 PM, Sedat Dilek wrote: > Against which GIT tree is this patchset, against latest drm-next GIT they > fail? > Missing a patch or patchset? > On top of drm-next you first need to apply drm/ttm: Fix up a theoretical deadlock. drm/ttm: Add a bo list reserve fastpath (need v2

[PATCH] drm/radeon/kms: register an i2c adapter name for the dp aux bus

2010-11-17 Thread Alex Deucher
This causes the connector to not be added since i2c init fails for the adapter. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=31688 Noticed by Ari Savolainen. Signed-off-by: Alex Deucher Cc: Ari Savolainen Cc: Jean Delvare Cc: stable at kernel.org --- drivers/gpu/drm/radeon/radeon_i2c.

[PATCH 0/5][-next] TTM bo reservation and fencing improvements

2010-11-17 Thread Sedat Dilek
Against which GIT tree is this patchset, against latest drm-next GIT they fail? Missing a patch or patchset? - Sedat - $ cd /mnt/sdb5/linux-kernel/drm-2.6 $ git branch * drm-next master $ git describe v2.6.34-rc5-32040-g01d5a1f $ cat patches/series drm-ttm-next/1-5-drm-ttm-Optimize-ttm_eu_ba

[PATCH v2] drm/ttm: Add a bo list reserve fastpath

2010-11-17 Thread Thomas Hellstrom
Makes it possible to reserve a list of buffer objects with a single spin lock / unlock if there is no contention. Should improve cpu usage on SMP kernels. v2: Initialize private list members on reserve and don't call ttm_bo_list_ref_sub() with zero put_count. Signed-off-by: Thomas Hellstrom ---

[PATCH 2/7] drm/i810: remove the BKL

2010-11-17 Thread Arnd Bergmann
SMP i810 systems were practically nonexistent and the configuration was not officially supported by Intel at the time when Pentium-III was common. With this change, it is still possible to build a distribution kernel that has support for SMP and includes the i810 driver without the BKL. As a preca

[PATCH] drm/radeon/kms: fix alignment when allocating buffers

2010-11-17 Thread Alex Deucher
We were previously dropping alignment requests on the floor when allocating buffers so we always ended up page aligned. Certain tiling modes on 6xx+ require larger alignment which wasn't happening before. Signed-off-by: Alex Deucher Cc: Jerome Glisse --- drivers/gpu/drm/radeon/evergreen_blit_km

[PATCH] drm/radeon/kms: register an i2c adapter name for the dp aux bus

2010-11-17 Thread Alex Deucher
This causes the connector to not be added since i2c init fails for the adapter. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=31688 Noticed by Ari Savolainen. Signed-off-by: Alex Deucher Cc: Ari Savolainen Cc: Jean Delvare Cc: sta...@kernel.org --- drivers/gpu/drm/radeon/radeon_i2c.c |

[Bug 27332] Problem with libopencascade - salome-platform

2010-11-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=27332 --- Comment #2 from Paulo César Pereira de Andrade 2010-11-17 14:55:34 PST --- Just tested with a build of salome version 5.1.4. Unlike when running on a computer with an intel card (bug #27333), it now works without setting LIBGL_ALWAYS_INDIRE

[Bug 27332] Problem with libopencascade - salome-platform

2010-11-17 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=27332 --- Comment #2 from Paulo C?sar Pereira de Andrade 2010-11-17 14:55:34 PST --- Just tested with a build of salome version 5.1.4. Unlike when running on a computer with an intel card (bug #27333), it now works without setting LIBGL_ALWAYS_INDIRE

Re: [PATCH 0/5][-next] TTM bo reservation and fencing improvements

2010-11-17 Thread Sedat Dilek
Hi, I have tested Thomas drm-ttm(-next) patch-sets in combination with Daniel Vetter's patch-sets (series see below). No bad - no good in OpenArena-benchmark. ( It is definitely pageflip-support patches causing a slow-down of 4-5 fps... 13-14 vs. 17-18 fps on a radeon RV250 is a real difference.

[PATCH] drm/i915: Fix I2C adapter registration

2010-11-17 Thread Jean Delvare
Fix many small bugs in I2C adapter registration: * Properly reject unsupported GPIO pin. * Fix improper use of I2C_NAME_SIZE (which is the size of i2c_client.name, not i2c_adapter.name.) * Prefix adapter names with "i915" so that the user knows what the I2C channel is connected to. * Fix swappe

[PATCH 0/1][-next] drm/radeon: Move over to the ttm execbuf utilities

2010-11-17 Thread Jerome Glisse
On Wed, Nov 17, 2010 at 7:38 AM, Thomas Hellstrom wrote: > The patch is compile-tested ony and not very intrusive. It should be applied > on top of the latest TTM patches. > > Besides reduced CPU-usage on SMP kernels, there is the benefit of using > shared code. Will also ease implementation of c

[PATCH 0/5][-next] TTM bo reservation and fencing improvements

2010-11-17 Thread Jerome Glisse
On Wed, Nov 17, 2010 at 7:28 AM, Thomas Hellstrom wrote: > This patch series improves on the performance and correctness of the > reserving / fencing sequence. > Reviewed-by: Jerome Glisse

PROBLEM: Registering radeon display connectors fails due to missing adapter name

2010-11-17 Thread Ari Savolainen
Registering radeon display connectors fails due to missing adapter name. The problem surfaced after this commit to Linus' kernel tree: commit 2236baa75f704851d3cd3310569058151acb1f06 Author: Jean Delvare Date: Mon Nov 15 22:40:38 2010 +0100 i2c: Sanity checks on adapter registration M

[PATCH 1/1] drm/radeon: Use the ttm execbuf utilities

2010-11-17 Thread Thomas Hellstrom
Rather than re-implementing in the Radeon driver, Use the execbuf / cs / pushbuf utilities that comes with TTM. This comes with an even greater benefit now that many spinlocks have been optimized away... Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/radeon/radeon.h|4 +- driver

[PATCH 0/1][-next] drm/radeon: Move over to the ttm execbuf utilities

2010-11-17 Thread Thomas Hellstrom
The patch is compile-tested ony and not very intrusive. It should be applied on top of the latest TTM patches. Besides reduced CPU-usage on SMP kernels, there is the benefit of using shared code. Will also ease implementation of concurrent CS due to the deadlock prevention mechanisms. If time all

[PATCH 5/5] drm/ttm/vmwgfx: Have TTM manage the validation sequence.

2010-11-17 Thread Thomas Hellstrom
Rather than having the driver supply the validation sequence, leave that responsibility to TTM. This saves some confusion and a function argument. Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/ttm/ttm_bo.c|1 + drivers/gpu/drm/ttm/ttm_execbuf_util.c |5 - drivers/g

[PATCH 4/5] drm/ttm: Improved fencing of buffer object lists

2010-11-17 Thread Thomas Hellstrom
Drastically reduce the number of spin lock / unlock operations by performing unreserving and fencing under global locks. Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/ttm/ttm_bo.c | 11 +++-- drivers/gpu/drm/ttm/ttm_execbuf_util.c | 36 ++- inc

[PATCH 3/5] drm/ttm/radeon/nouveau: Kill the bo lock in favour of a bo device fence_lock

2010-11-17 Thread Thomas Hellstrom
The bo lock used only to protect the bo sync object members, and since it is a per bo lock, fencing a buffer list will see a lot of locks and unlocks. Replace it with a per-device lock that protects the sync object members on *all* bos. Reading and setting these members will always be very quick, s

[PATCH 2/5] drm/ttm: Don't deadlock on recursive multi-bo reservations

2010-11-17 Thread Thomas Hellstrom
Add an aid for the driver to detect deadlocks on multi-bo reservations Update documentation. Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/ttm/ttm_bo.c| 15 --- include/drm/ttm/ttm_bo_driver.h | 25 ++--- 2 files changed, 34 insertions(+), 6 deletion

[PATCH 1/5] drm/ttm: Optimize ttm_eu_backoff_reservation

2010-11-17 Thread Thomas Hellstrom
Avoid the ttm_bo_unreserve() spinlocks by calling ttm_eu_backoff_reservation_locked under the lru spinlock. Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/ttm/ttm_execbuf_util.c | 15 --- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_ex

[PATCH 0/5][-next] TTM bo reservation and fencing improvements

2010-11-17 Thread Thomas Hellstrom
This patch series improves on the performance and correctness of the reserving / fencing sequence.

[PATCH][-fixes] drm/vmwgfx: Fix up an error path during bo creation

2010-11-17 Thread Thomas Hellstrom
Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c index 36e129f..5408b1b 100644 --- a/drivers/gpu/d

Re: [PATCH 0/5][-next] TTM bo reservation and fencing improvements

2010-11-17 Thread Sedat Dilek
On Wed, Nov 17, 2010 at 6:44 PM, Thomas Hellstrom wrote: > On 11/17/2010 05:40 PM, Sedat Dilek wrote: >> >> Against which GIT tree is this patchset, against latest drm-next GIT they >> fail? >> Missing a patch or patchset? >> > > On top of drm-next you first need to apply > > drm/ttm:  Fix up a th

[PATCH] drm/radeon/kms: fix tiling info on evergreen

2010-11-17 Thread Alex Deucher
We aren't currently using tiling in userspace on evergreen, but the info we currently return for the tiling info query (gb_addr_config) is no adequate for userspace tiling alignment calculations. It does not contain the bank info. Create a custom tiling info dword with all the necessary info (num

Re: [PATCH 0/1][-next] drm/radeon: Move over to the ttm execbuf utilities

2010-11-17 Thread Thomas Hellstrom
On 11/17/2010 08:11 PM, Jerome Glisse wrote: On Wed, Nov 17, 2010 at 7:38 AM, Thomas Hellstrom wrote: The patch is compile-tested ony and not very intrusive. It should be applied on top of the latest TTM patches. Besides reduced CPU-usage on SMP kernels, there is the benefit of using share

Re: [PATCH 0/1][-next] drm/radeon: Move over to the ttm execbuf utilities

2010-11-17 Thread Jerome Glisse
On Wed, Nov 17, 2010 at 7:38 AM, Thomas Hellstrom wrote: > The patch is compile-tested ony and not very intrusive. It should be applied > on top of the latest TTM patches. > > Besides reduced CPU-usage on SMP kernels, there is the benefit of using > shared code. Will also ease implementation of co

Re: [PATCH 0/5][-next] TTM bo reservation and fencing improvements

2010-11-17 Thread Jerome Glisse
On Wed, Nov 17, 2010 at 7:28 AM, Thomas Hellstrom wrote: > This patch series improves on the performance and correctness of the > reserving / fencing sequence. > Reviewed-by: Jerome Glisse ___ dri-devel mailing list dri-devel@lists.freedesktop.org http

Re: [PATCH 0/5][-next] TTM bo reservation and fencing improvements

2010-11-17 Thread Thomas Hellstrom
On 11/17/2010 05:40 PM, Sedat Dilek wrote: Against which GIT tree is this patchset, against latest drm-next GIT they fail? Missing a patch or patchset? On top of drm-next you first need to apply drm/ttm: Fix up a theoretical deadlock. drm/ttm: Add a bo list reserve fastpath (need v2 which

[PATCH] drm/radeon/kms: fix tiling info on evergreen

2010-11-17 Thread Alex Deucher
We aren't currently using tiling in userspace on evergreen, but the info we currently return for the tiling info query (gb_addr_config) is no adequate for userspace tiling alignment calculations. It does not contain the bank info. Create a custom tiling info dword with all the necessary info (num

[PATCH v2 0/2] Fix nouveau-related freezes

2010-11-17 Thread Ben Skeggs
On Tue, 2010-11-16 at 17:19 -0500, Andrew Lutomirski wrote: > On Wed, Nov 10, 2010 at 6:04 PM, Andy Lutomirski wrote: > > Nouveau takes down my system quite reliably when any hotplug event occurs. > > The bug happens because the IRQ handler didn't acknowledge the hotplug > > state until the bottom

Re: [PATCH 0/5][-next] TTM bo reservation and fencing improvements

2010-11-17 Thread Sedat Dilek
Against which GIT tree is this patchset, against latest drm-next GIT they fail? Missing a patch or patchset? - Sedat - $ cd /mnt/sdb5/linux-kernel/drm-2.6 $ git branch * drm-next master $ git describe v2.6.34-rc5-32040-g01d5a1f $ cat patches/series drm-ttm-next/1-5-drm-ttm-Optimize-ttm_eu_ba

[PATCH v2] drm/ttm: Add a bo list reserve fastpath

2010-11-17 Thread Thomas Hellstrom
Makes it possible to reserve a list of buffer objects with a single spin lock / unlock if there is no contention. Should improve cpu usage on SMP kernels. v2: Initialize private list members on reserve and don't call ttm_bo_list_ref_sub() with zero put_count. Signed-off-by: Thomas Hellstrom ---

[PATCH 2/7] drm/i810: remove the BKL

2010-11-17 Thread Arnd Bergmann
SMP i810 systems were practically nonexistent and the configuration was not officially supported by Intel at the time when Pentium-III was common. With this change, it is still possible to build a distribution kernel that has support for SMP and includes the i810 driver without the BKL. As a preca

[Bug 30152] [r300g] kwin blur effect is not working

2010-11-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=30152 --- Comment #9 from Clément 2010-11-17 07:21:47 PST --- Hi, I did a git bisect (only on src/gallium, I have some problem doing it for the whole mesa since it doesn't compile : radeong_dri.so.tmp: undefined reference to `operator delete[](void*

[Bug 30152] [r300g] kwin blur effect is not working

2010-11-17 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=30152 --- Comment #9 from Cl?ment 2010-11-17 07:21:47 PST --- Hi, I did a git bisect (only on src/gallium, I have some problem doing it for the whole mesa since it doesn't compile : radeong_dri.so.tmp: undefined reference to `operator delete[](void*

[Bug 28995] [r300g] dri rejects command buffers

2010-11-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28995 --- Comment #23 from Álmos 2010-11-17 06:36:47 PST --- nope, it's i686 on a pentium 4, which is not 64bit capable -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- Yo

[Bug 28995] [r300g] dri rejects command buffers

2010-11-17 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28995 --- Comment #23 from ?lmos 2010-11-17 06:36:47 PST --- nope, it's i686 on a pentium 4, which is not 64bit capable -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- Yo

[PATCH] drm/i915: Fix I2C adapter registration

2010-11-17 Thread Jean Delvare
Fix many small bugs in I2C adapter registration: * Properly reject unsupported GPIO pin. * Fix improper use of I2C_NAME_SIZE (which is the size of i2c_client.name, not i2c_adapter.name.) * Prefix adapter names with "i915" so that the user knows what the I2C channel is connected to. * Fix swappe

[Bug 27755] [KMS] sauerbraten crash with drmRadeonCmdBuffer: -22. -> Vertex array 0 need 83794200 dwords have 112640 dwords

2010-11-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=27755 Fabio Pedretti changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 27755] [KMS] sauerbraten crash with drmRadeonCmdBuffer: -22. -> Vertex array 0 need 83794200 dwords have 112640 dwords

2010-11-17 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=27755 Fabio Pedretti changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[PATCH 1/1] drm/radeon: Use the ttm execbuf utilities

2010-11-17 Thread Thomas Hellstrom
Rather than re-implementing in the Radeon driver, Use the execbuf / cs / pushbuf utilities that comes with TTM. This comes with an even greater benefit now that many spinlocks have been optimized away... Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/radeon/radeon.h|4 +- driver

[PATCH 0/1][-next] drm/radeon: Move over to the ttm execbuf utilities

2010-11-17 Thread Thomas Hellstrom
The patch is compile-tested ony and not very intrusive. It should be applied on top of the latest TTM patches. Besides reduced CPU-usage on SMP kernels, there is the benefit of using shared code. Will also ease implementation of concurrent CS due to the deadlock prevention mechanisms. If time all

[PATCH 5/5] drm/ttm/vmwgfx: Have TTM manage the validation sequence.

2010-11-17 Thread Thomas Hellstrom
Rather than having the driver supply the validation sequence, leave that responsibility to TTM. This saves some confusion and a function argument. Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/ttm/ttm_bo.c|1 + drivers/gpu/drm/ttm/ttm_execbuf_util.c |5 - drivers/g

[PATCH 4/5] drm/ttm: Improved fencing of buffer object lists

2010-11-17 Thread Thomas Hellstrom
Drastically reduce the number of spin lock / unlock operations by performing unreserving and fencing under global locks. Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/ttm/ttm_bo.c | 11 +++-- drivers/gpu/drm/ttm/ttm_execbuf_util.c | 36 ++- inc

[PATCH 3/5] drm/ttm/radeon/nouveau: Kill the bo lock in favour of a bo device fence_lock

2010-11-17 Thread Thomas Hellstrom
The bo lock used only to protect the bo sync object members, and since it is a per bo lock, fencing a buffer list will see a lot of locks and unlocks. Replace it with a per-device lock that protects the sync object members on *all* bos. Reading and setting these members will always be very quick, s

[PATCH 2/5] drm/ttm: Don't deadlock on recursive multi-bo reservations

2010-11-17 Thread Thomas Hellstrom
Add an aid for the driver to detect deadlocks on multi-bo reservations Update documentation. Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/ttm/ttm_bo.c| 15 --- include/drm/ttm/ttm_bo_driver.h | 25 ++--- 2 files changed, 34 insertions(+), 6 deletion

[PATCH 1/5] drm/ttm: Optimize ttm_eu_backoff_reservation

2010-11-17 Thread Thomas Hellstrom
Avoid the ttm_bo_unreserve() spinlocks by calling ttm_eu_backoff_reservation_locked under the lru spinlock. Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/ttm/ttm_execbuf_util.c | 15 --- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_ex

[PATCH 0/5][-next] TTM bo reservation and fencing improvements

2010-11-17 Thread Thomas Hellstrom
This patch series improves on the performance and correctness of the reserving / fencing sequence. ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH][-fixes] drm/vmwgfx: Fix up an error path during bo creation

2010-11-17 Thread Thomas Hellstrom
Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c index 36e129f..5408b1b 100644 --- a/drivers/gpu/d

[Bug 28995] [r300g] dri rejects command buffers

2010-11-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28995 --- Comment #22 from Marek Olšák 2010-11-17 03:59:52 PST --- Aren't you running an x86_64 kernel? -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assign

[Bug 28995] [r300g] dri rejects command buffers

2010-11-17 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28995 --- Comment #22 from Marek Ol??k 2010-11-17 03:59:52 PST --- Aren't you running an x86_64 kernel? -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assig

[Bug 25093] mesa demo cubemap renders incorrectly with some filter combinations.

2010-11-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=25093 Andy Furniss changed: What|Removed |Added Attachment #31208|0 |1 is obsolete|

[Bug 25093] mesa demo cubemap renders incorrectly with some filter combinations.

2010-11-17 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=25093 Andy Furniss changed: What|Removed |Added Attachment #31208|0 |1 is obsolete|

[PATCH] drm/radeon/kms: properly power up/down the eDP panel as needed (v4)

2010-11-17 Thread Alex Deucher
The eDP panel must be powered up for aux transactions, so power it up for detect and mode probe functions, otherwise power it up or down based on dpms. v2: - only mess with eDP panel on DCE4+ - only mess with eDP panel on eDP connectors, not all DP connectors v3: - be extra careful to only mess wi

[PATCH] drm/radeon/kms/atom: set sane defaults in atombios_get_encoder_mode()

2010-11-17 Thread Alex Deucher
If there was no connector mapped to the encoder, atombios_get_encoder_mode() returned 0 which is the id for DP. Return something sane instead based on the encoder id. This avoids hitting the DP paths on non-DP encoders. Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/r

[PATCH] drm/radeon/kms: properly power up/down the eDP panel as needed (v3)

2010-11-17 Thread Alex Deucher
The eDP panel must be powered up for aux transactions, so power it up for detect and mode probe functions, otherwise power it up or down based on dpms. v2: - only mess with eDP panel on DCE4+ - only mess with eDP panel on eDP connectors, not all DP connectors v3: - be extra careful to only mess wi