drm/amdgpu: consolidate case statements
Subsystems (4)
Alex Deucher
maintainerPATCH 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.
Signed-off-by Alex Deucher <[email protected]>
--- 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
@@ -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
Alex Deucher
maintainerPATCH 1/1 Documentation/gpu: remove spurious "+" in amdgpu.rst
Not sure why that was there. Remove it.
Signed-off-by Alex Deucher <[email protected]>
--- Documentation/gpu/amdgpu.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/gpu/amdgpu.rst +2 -2
@@ -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
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.
Signed-off-by Alex Deucher <[email protected]>
Reviewed-by Christian König <[email protected]>
Quoted 19 lines
--- Documentation/gpu/amdgpu.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)Documentation/gpu/amdgpu.rst +2
-2@@ -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
Am 29.09.21 um 19:45 schrieb Alex Deucher:
Quoted 4 lines
IP_VERSION(11, 0, 13)does the exact same thing asIP_VERSION(11, 0, 12)so squash them together.Signed-off-by Alex Deucher <[email protected]>
Reviewed-by Christian König <[email protected]>
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@@ -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)