Skip to contentSkip to conversation

drm/radeon/audio: don't set speaker allocation on DCE4+

PATCH In review Alex Deucher 3 participants 4 messages Oct 19, 2013 – Oct 28, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon/audio: don't set speaker allocation on DCE4+

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

---
 drivers/gpu/drm/radeon/dce6_afmt.c      | 3 +++
 drivers/gpu/drm/radeon/evergreen_hdmi.c | 3 +++
 2 files changed, 6 insertions(+)
drivers/gpu/drm/radeon/dce6_afmt.c +3 -0
index 85a69d2..9fcd338 100644
@@ -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;
 
drivers/gpu/drm/radeon/evergreen_hdmi.c +3 -0
index f815c20..fe1de85 100644
@@ -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);
Signature · 1 line
1.8.3.1
#1 lore raw

2013/10/19 Alex Deucher <[email protected]>:

Quoted 2 lines

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:

Quoted 2 lines

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).

#2 lore raw
Quoted 8 lines

-----Original Message-----
From: Rafał Miłecki [mailto:[email protected]]
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+

Quoted 5 lines

2013/10/19 Alex Deucher <[email protected]>:

Quoted 2 lines

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

Quoted 6 lines
Quoted 3 lines

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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

2013/10/28 Deucher, Alexander <[email protected]>:

Quoted 8 lines
Quoted 8 lines

-----Original Message-----
From: Rafał Miłecki [mailto:[email protected]]
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+

Quoted 7 lines
Quoted 5 lines

2013/10/19 Alex Deucher <[email protected]>:

Quoted 2 lines

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.

Signature · 5 lines
Rafał
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel