drm/amdgpu/si: remove unused interface which caused build issue
Subsystems (2)
PATCH 1/1 drm/amdgpu/si: remove unused interface which caused build issue
From: Huang Rui <[email protected]>
Fix commit (ed22ee2 drm/amdgpu:changes of virtualization cases probe) regression, remove si_get_virtual_caps because the callback is removed at amdgpu_asic_funcs.
--- drivers/gpu/drm/amd/amdgpu/si.c | 7 ------- 1 file changed, 7 deletions(-)
drivers/gpu/drm/amd/amdgpu/si.c +0 -7
@@ -952,12 +952,6 @@ static void si_smc_wreg(struct amdgpu_device *adev, u32 reg, u32 v)spin_unlock_irqrestore (&adev->smc_idx_lock, flags); } -static u32 si_get_virtual_caps (struct amdgpu_device *adev) -{ -/* SI does not support SR-IOV */ -return 0 ; -} -static struct amdgpu_allowed_register_entry si_allowed_read_registers[] = { {GRBM_STATUS , false}, {GB_ADDR_CONFIG , false},
@@ -1133,7 +1127,6 @@ static const struct amdgpu_asic_funcs si_asic_funcs = .get_xclk = &si_get_xclk, .set_uvd_clocks = &si_set_uvd_clocks, .set_vce_clocks = NULL, - .get_virtual_caps = &si_get_virtual_caps, };static uint32_t si_get_rev_id (struct amdgpu_device *adev)
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): 1474272705-32265-1-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org
You can add my RB
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Huang Rui
Sent: Monday, September 19, 2016 4:12 PM
To: [email protected]; Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>
Cc: Wang, Ken <[email protected]>; Huang, Ray <[email protected]>; Liu, Monk <[email protected]>
Subject: [PATCH] drm/amdgpu/si: remove unused interface which caused build issue
From: Huang Rui <[email protected]>
Fix commit (ed22ee2 drm/amdgpu:changes of virtualization cases probe) regression, remove si_get_virtual_caps because the callback is removed at amdgpu_asic_funcs.
--- drivers/gpu/drm/amd/amdgpu/si.c | 7 ------- 1 file changed, 7 deletions(-)
drivers/gpu/drm/amd/amdgpu/si.c +0 -6
@@ -952,12 +952,6 @@ static void si_smc_wreg(struct amdgpu_device *adev, u32 reg, u32 v)spin_unlock_irqrestore (&adev->smc_idx_lock, flags); } -static u32 si_get_virtual_caps(struct amdgpu_device *adev) -{ -/* SI does not support SR-IOV */ -return 0 ; -} -static struct amdgpu_allowed_register_entry si_allowed_read_registers[] = { {GRBM_STATUS , false}, {GB_ADDR_CONFIG , false},
@@ -1133,7 +1127,6 @@ static const struct amdgpu_asic_funcs si_asic_funcs = .get_xclk = &si_get_xclk, .set_uvd_clocks = &si_set_uvd_clocks, .set_vce_clocks = NULL, - .get_virtual_caps = &si_get_virtual_caps, };static uint32_t si_get_rev_id (struct amdgpu_device *adev)
--
2.7.4
_______________________________________________
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
Am 19.09.2016 um 10:11 schrieb Huang Rui:
Quoted 8 lines
From: Huang Rui <[email protected]>
Fix commit (ed22ee2 drm/amdgpu:changes of virtualization cases probe) regression, remove
si_get_virtual_capsbecause the callback is removed atamdgpu_asic_funcs.Signed-off-by Huang Rui <[email protected]>Cc Monk Liu <[email protected]>
Patch is Reviewed-by: Christian König <[email protected]>.
Please always build with all HW generations enabled to catch such errors.
Christian.
Quoted 22 lines
--- drivers/gpu/drm/amd/amdgpu/si.c | 7 ------- 1 file changed, 7 deletions(-)drivers/gpu/drm/amd/amdgpu/si.c +0
-6@@ -952,12 +952,6 @@ static void si_smc_wreg(struct amdgpu_device *adev, u32 reg, u32 v)spin_unlock_irqrestore (&adev->smc_idx_lock, flags); } -static u32 si_get_virtual_caps (struct amdgpu_device *adev) -{ -/* SI does not support SR-IOV */ -return 0 ; -} -static struct amdgpu_allowed_register_entry si_allowed_read_registers[] = { {GRBM_STATUS , false}, {GB_ADDR_CONFIG , false},
drivers/gpu/drm/amd/amdgpu/si.c static const struct amdgpu_asic_funcs si_asic_funcs = · line 1132
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/si.c +0
-1@@ -1133,7 +1127,6 @@ static const struct amdgpu_asic_funcs si_asic_funcs = .get_xclk = &si_get_xclk, .set_uvd_clocks = &si_set_uvd_clocks, .set_vce_clocks = NULL, - .get_virtual_caps = &si_get_virtual_caps, };static uint32_t si_get_rev_id (struct amdgpu_device *adev)
_______________________________________________
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): 47fdee91-13bb-ff81-2fec-762238bfa32f-5C7GfCeVMHo@public.gmane.org
Quoted 7 lines · Christian
Am 19.09.2016 um 10:11 schrieb Huang Rui:
Quoted 6 lines
From: Huang Rui <[email protected]>
Fix commit (ed22ee2 drm/amdgpu:changes of virtualization cases probe) regression, remove
si_get_virtual_capsbecause the callback is removed atamdgpu_asic_funcs.
Quoted 7 lines
Quoted 2 lines
Signed-off-by Huang Rui <[email protected]>Cc Monk Liu <[email protected]>Patch is Reviewed-by: Christian K?nig <[email protected]>.
Please always build with all HW generations enabled to catch such errors.
Yep, agree. I guess CONFIG_DRM_AMDGPU_SI might not be set as default, so some guys didn't find it.
Thanks,
Rui
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Deucher, Alexander
Reviewed-by Alex DeucherQuoted 9 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Huang Rui
Sent: Monday, September 19, 2016 4:12 AM
To: [email protected]; Deucher, Alexander; Koenig, Christian
Cc: Wang, Ken; Huang, Ray; Liu, Monk
Subject: [PATCH] drm/amdgpu/si: remove unused interface which caused build issue
Quoted 8 lines
From: Huang Rui <[email protected]>
Fix commit (ed22ee2 drm/amdgpu:changes of virtualization cases probe) regression, remove
si_get_virtual_capsbecause the callback is removed atamdgpu_asic_funcs.Signed-off-by Huang Rui <[email protected]>Cc Monk Liu <[email protected]>
Quoted 36 lines
--- drivers/gpu/drm/amd/amdgpu/si.c | 7 ------- 1 file changed, 7 deletions(-)drivers/gpu/drm/amd/amdgpu/si.c +0
-6@@ -952,12 +952,6 @@ static void si_smc_wreg(struct amdgpu_device *adev, u32 reg, u32 v)spin_unlock_irqrestore (&adev->smc_idx_lock, flags); } -static u32 si_get_virtual_caps (struct amdgpu_device *adev) -{ -/* SI does not support SR-IOV */ -return 0 ; -} -static struct amdgpu_allowed_register_entry si_allowed_read_registers[] = {drivers/gpu/drm/amd/amdgpu/si.c +0
-0{GRBM_STATUS, false}, {GB_ADDR_CONFIG, false},@@ -1133,7 +1127,6 @@ static const struct amdgpu_asic_funcs si_asic_funcs=
drivers/gpu/drm/amd/amdgpu/si.c +0
-2.get_xclk = &si_get_xclk, .set_uvd_clocks = &si_set_uvd_clocks, .set_vce_clocks = NULL, - .get_virtual_caps = &si_get_virtual_caps, };static uint32_t si_get_rev_id (struct amdgpu_device *adev) --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