All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/radeon/audio: don't set speaker allocation on DCE4+
@ 2013-10-19  0:01 Alex Deucher
  2013-10-28  9:24 ` Rafał Miłecki
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Deucher @ 2013-10-19  0:01 UTC (permalink / raw)
  To: dri-devel; +Cc: Alex Deucher

It causes hangs on some asics.  Disable on DCE6+ as well
just to be on the safe side.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/radeon/dce6_afmt.c      | 3 +++
 drivers/gpu/drm/radeon/evergreen_hdmi.c | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/radeon/dce6_afmt.c b/drivers/gpu/drm/radeon/dce6_afmt.c
index 85a69d2..9fcd338 100644
--- a/drivers/gpu/drm/radeon/dce6_afmt.c
+++ b/drivers/gpu/drm/radeon/dce6_afmt.c
@@ -113,6 +113,9 @@ void dce6_afmt_write_speaker_allocation(struct drm_encoder *encoder)
 	u8 *sadb;
 	int sad_count;
 
+	/* XXX: setting this register causes hangs on some asics */
+	return;
+
 	if (!dig->afmt->pin)
 		return;
 
diff --git a/drivers/gpu/drm/radeon/evergreen_hdmi.c b/drivers/gpu/drm/radeon/evergreen_hdmi.c
index f815c20..fe1de85 100644
--- a/drivers/gpu/drm/radeon/evergreen_hdmi.c
+++ b/drivers/gpu/drm/radeon/evergreen_hdmi.c
@@ -67,6 +67,9 @@ static void dce4_afmt_write_speaker_allocation(struct drm_encoder *encoder)
 	u8 *sadb;
 	int sad_count;
 
+	/* XXX: setting this register causes hangs on some asics */
+	return;
+
 	list_for_each_entry(connector, &encoder->dev->mode_config.connector_list, head) {
 		if (connector->encoder == encoder)
 			radeon_connector = to_radeon_connector(connector);
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/radeon/audio: don't set speaker allocation on DCE4+
  2013-10-19  0:01 [PATCH] drm/radeon/audio: don't set speaker allocation on DCE4+ Alex Deucher
@ 2013-10-28  9:24 ` Rafał Miłecki
  2013-10-28 13:00   ` Deucher, Alexander
  0 siblings, 1 reply; 4+ messages in thread
From: Rafał Miłecki @ 2013-10-28  9:24 UTC (permalink / raw)
  To: Alex Deucher; +Cc: Alex Deucher, dri-devel

2013/10/19 Alex Deucher <alexdeucher@gmail.com>:
> It causes hangs on some asics.  Disable on DCE6+ as well
> just to be on the safe side.

Did you get any reports about that? Or is that based only on mine comment:

> I noticed some hangs on BARTS too, let me test this solution on DCE5.
> Maybe it's not just DCE3.2.

(After some testing that hangs were not likely related to the HDMI/audio stuff).

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH] drm/radeon/audio: don't set speaker allocation on DCE4+
  2013-10-28  9:24 ` Rafał Miłecki
@ 2013-10-28 13:00   ` Deucher, Alexander
  2013-10-28 13:13     ` Rafał Miłecki
  0 siblings, 1 reply; 4+ messages in thread
From: Deucher, Alexander @ 2013-10-28 13:00 UTC (permalink / raw)
  To: Rafał Miłecki, Alex Deucher; +Cc: dri-devel

> -----Original Message-----
> From: Rafał Miłecki [mailto:zajec5@gmail.com]
> Sent: Monday, October 28, 2013 5:24 AM
> To: Alex Deucher
> Cc: dri-devel; Deucher, Alexander
> Subject: Re: [PATCH] drm/radeon/audio: don't set speaker allocation on
> DCE4+
> 
> 2013/10/19 Alex Deucher <alexdeucher@gmail.com>:
> > It causes hangs on some asics.  Disable on DCE6+ as well
> > just to be on the safe side.
> 
> Did you get any reports about that? Or is that based only on mine comment:

Yes, I had some reports of hangs on newer chips for some people as well.  I'm not sure if it was directly correlated, but seemed like the safe thing to at this point in the kernel cycle.

Alex

> 
> > I noticed some hangs on BARTS too, let me test this solution on DCE5.
> > Maybe it's not just DCE3.2.
> 
> (After some testing that hangs were not likely related to the HDMI/audio
> stuff).

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/radeon/audio: don't set speaker allocation on DCE4+
  2013-10-28 13:00   ` Deucher, Alexander
@ 2013-10-28 13:13     ` Rafał Miłecki
  0 siblings, 0 replies; 4+ messages in thread
From: Rafał Miłecki @ 2013-10-28 13:13 UTC (permalink / raw)
  To: Deucher, Alexander; +Cc: dri-devel

2013/10/28 Deucher, Alexander <Alexander.Deucher@amd.com>:
>> -----Original Message-----
>> From: Rafał Miłecki [mailto:zajec5@gmail.com]
>> Sent: Monday, October 28, 2013 5:24 AM
>> To: Alex Deucher
>> Cc: dri-devel; Deucher, Alexander
>> Subject: Re: [PATCH] drm/radeon/audio: don't set speaker allocation on
>> DCE4+
>>
>> 2013/10/19 Alex Deucher <alexdeucher@gmail.com>:
>> > It causes hangs on some asics.  Disable on DCE6+ as well
>> > just to be on the safe side.
>>
>> Did you get any reports about that? Or is that based only on mine comment:
>
> Yes, I had some reports of hangs on newer chips for some people as well.  I'm not sure if it was directly correlated, but seemed like the safe thing to at this point in the kernel cycle.

Too bad :( I'll see what I can reproduce with my cards.

-- 
Rafał
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-28 13:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-19  0:01 [PATCH] drm/radeon/audio: don't set speaker allocation on DCE4+ Alex Deucher
2013-10-28  9:24 ` Rafał Miłecki
2013-10-28 13:00   ` Deucher, Alexander
2013-10-28 13:13     ` Rafał Miłecki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.