Skip to contentSkip to conversation

drm/amdgpu/vce4: remove interrupt mask clearance for SRIOV

PATCH In review Xiangliang.Yu 2 participants 2 messages Sep 14, 2017 1 message not in the archive

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

PATCH 1/1 drm/amdgpu/vce4: remove interrupt mask clearance for SRIOV

For SRIOV, the clearance has been moved to firmware. So don't need it any more.

---
 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/vce_v4_0.c +4 -3
index 11134d5..d5dc6ec 100644
@@ -1011,9 +1011,10 @@ static int vce_v4_0_process_interrupt(struct amdgpu_device *adev,
 {
 	DRM_DEBUG("IH: VCE\n");
 
-	WREG32_P(SOC15_REG_OFFSET(VCE, 0, mmVCE_SYS_INT_STATUS),
-			VCE_SYS_INT_STATUS__VCE_SYS_INT_TRAP_INTERRUPT_INT_MASK,
-			~VCE_SYS_INT_STATUS__VCE_SYS_INT_TRAP_INTERRUPT_INT_MASK);
+	if (!amdgpu_sriov_vf(adev))
+		WREG32_P(SOC15_REG_OFFSET(VCE, 0, mmVCE_SYS_INT_STATUS),
+			 VCE_SYS_INT_STATUS__VCE_SYS_INT_TRAP_INTERRUPT_INT_MASK,
+			 ~VCE_SYS_INT_STATUS__VCE_SYS_INT_TRAP_INTERRUPT_INT_MASK);
 
 	switch (entry->src_data[0]) {
 	case 0:
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1505375947-8318-1-git-send-email-Xiangliang.Yu-5C7GfCeVMHo@public.gmane.org

Acked-by Alex Deucher
#2 lore raw
Quoted 9 lines

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Xiangliang.Yu
Sent: Thursday, September 14, 2017 3:59 AM
To: [email protected]
Cc: Yu, Xiangliang; Liu, Leo
Subject: [PATCH] drm/amdgpu/vce4: remove interrupt mask clearance for SRIOV

Quoted 3 lines

For SRIOV, the clearance has been moved to firmware. So don't need it any more.

It would be good to check if we need this on bare metal as well. I'd like to try and keep as much code common as possible.

Quoted 1 line
Quoted 34 lines
---
 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/vce_v4_0.c +0 -3
index 11134d5..d5dc6ec 100644
@@ -1011,9 +1011,10 @@ static int vce_v4_0_process_interrupt(struct
 amdgpu_device *adev,
 {
 	DRM_DEBUG("IH: VCE\n");
 
-	WREG32_P(SOC15_REG_OFFSET(VCE, 0, mmVCE_SYS_INT_STATUS),
-
 	VCE_SYS_INT_STATUS__VCE_SYS_INT_TRAP_INTERRUPT_INT_MAS
 K,
-

~VCE_SYS_INT_STATUS__VCE_SYS_INT_TRAP_INTERRUPT_INT_MA
SK);

drivers/gpu/drm/amd/amdgpu/vce_v4_0.c +2 -0
+	if (!amdgpu_sriov_vf(adev))
+		WREG32_P(SOC15_REG_OFFSET(VCE, 0,

mmVCE_SYS_INT_STATUS),
+ VCE_SYS_INT_STATUS__VCE_SYS_INT_TRAP_INTERRUPT_INT_MASK, + ~VCE_SYS_INT_STATUS__VCE_SYS_INT_TRAP_INTERRUPT_INT_MASK);

drivers/gpu/drm/amd/amdgpu/vce_v4_0.c +0 -1
 	switch (entry->src_data[0]) {
 	case 0:
--

2.7.4

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx