Skip to contentSkip to conversation

drm/amdgpu: consolidate case statements

PATCH In review Alex Deucher 2 participants 4 messages Sep 29, 2021 – Sep 30, 2021

Subsystems (4)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 drm/amdgpu: consolidate case statements

IP_VERSION(11, 0, 13) does the exact same thing as IP_VERSION(11, 0, 12) so squash them together.

---
 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +0 -7
index 382cebfc2069..aaf200ec982b 100644
@@ -216,13 +216,6 @@ static int psp_v11_0_init_microcode(struct psp_context *psp)
 	case IP_VERSION(11, 0, 7):
 	case IP_VERSION(11, 0, 11):
 	case IP_VERSION(11, 0, 12):
-		err = psp_init_sos_microcode(psp, chip_name);
-		if (err)
-			return err;
-		err = psp_init_ta_microcode(psp, chip_name);
-		if (err)
-			return err;
-		break;
 	case IP_VERSION(11, 0, 13):
 		err = psp_init_sos_microcode(psp, chip_name);
 		if (err)
Signature · 1 line
2.31.1
author maintainer
#1 lore raw

PATCH 1/1 Documentation/gpu: remove spurious "+" in amdgpu.rst

Not sure why that was there. Remove it.

---
 Documentation/gpu/amdgpu.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/gpu/amdgpu.rst +2 -2
index 364680cdad2e..8ba72e898099 100644
@@ -300,8 +300,8 @@ pcie_replay_count
 .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
    :doc: pcie_replay_count
 
-+GPU SmartShift Information
-============================
+GPU SmartShift Information
+==========================
 
 GPU SmartShift information via sysfs
 
Signature · 1 line
2.31.1
Reviewed-by on v1 1/1
#2 lore raw

Re: [PATCH] Documentation/gpu: remove spurious "+" in amdgpu.rst

Am 29.09.21 um 19:45 schrieb Alex Deucher:

Quoted 3 lines

Not sure why that was there. Remove it.

Quoted 19 lines
---
  Documentation/gpu/amdgpu.rst | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/gpu/amdgpu.rst +2 -2
index 364680cdad2e..8ba72e898099 100644
@@ -300,8 +300,8 @@ pcie_replay_count
  .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
     :doc: pcie_replay_count
 
-+GPU SmartShift Information
-============================
+GPU SmartShift Information
+==========================
 
  GPU SmartShift information via sysfs
 
Reviewed-by on v1 1/1
#3 lore raw
In reply to Alex Deucher

Am 29.09.21 um 19:45 schrieb Alex Deucher:

Quoted 4 lines

IP_VERSION(11, 0, 13) does the exact same thing as IP_VERSION(11, 0, 12) so squash them together.

Quoted 22 lines
---
  drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 7 -------
  1 file changed, 7 deletions(-)
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +0 -7
index 382cebfc2069..aaf200ec982b 100644
@@ -216,13 +216,6 @@ static int psp_v11_0_init_microcode(struct psp_context *psp)
  	case IP_VERSION(11, 0, 7):
  	case IP_VERSION(11, 0, 11):
  	case IP_VERSION(11, 0, 12):
-		err = psp_init_sos_microcode(psp, chip_name);
-		if (err)
-			return err;
-		err = psp_init_ta_microcode(psp, chip_name);
-		if (err)
-			return err;
-		break;
  	case IP_VERSION(11, 0, 13):
  		err = psp_init_sos_microcode(psp, chip_name);
  		if (err)