dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/radeon/native: Send out the full AUX address
@ 2015-08-31 15:19 Alex Deucher
  2015-08-31 15:19 ` [PATCH 2/2] drm/amdgpu/atom: " Alex Deucher
  2015-08-31 15:25 ` [PATCH 1/2] drm/radeon/native: " Christian König
  0 siblings, 2 replies; 5+ messages in thread
From: Alex Deucher @ 2015-08-31 15:19 UTC (permalink / raw)
  To: dri-devel; +Cc: Alex Deucher, stable

AUX addresses are 20 bits long. Send out the entire address instead of
just the low 16 bits.

Port of:
drm/radeon/atom: Send out the full AUX address
to radeon non-atom aux path

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
---
 drivers/gpu/drm/radeon/radeon_dp_auxch.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/radeon/radeon_dp_auxch.c b/drivers/gpu/drm/radeon/radeon_dp_auxch.c
index fcbd60b..3b0c229 100644
--- a/drivers/gpu/drm/radeon/radeon_dp_auxch.c
+++ b/drivers/gpu/drm/radeon/radeon_dp_auxch.c
@@ -116,8 +116,8 @@ radeon_dp_aux_transfer_native(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg
 	       AUX_SW_WR_BYTES(bytes));
 
 	/* write the data header into the registers */
-	/* request, addres, msg size */
-	byte = (msg->request << 4);
+	/* request, address, msg size */
+	byte = (msg->request << 4) | ((msg->address >> 16) & 0xf);
 	WREG32(AUX_SW_DATA + aux_offset[instance],
 	       AUX_SW_DATA_MASK(byte) | AUX_SW_AUTOINCREMENT_DISABLE);
 
-- 
1.8.3.1

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

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

end of thread, other threads:[~2015-09-01  4:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-31 15:19 [PATCH 1/2] drm/radeon/native: Send out the full AUX address Alex Deucher
2015-08-31 15:19 ` [PATCH 2/2] drm/amdgpu/atom: " Alex Deucher
2015-09-01  3:44   ` Zhou, Jammy
2015-09-01  4:03     ` Alex Deucher
2015-08-31 15:25 ` [PATCH 1/2] drm/radeon/native: " Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox