drm/amdgpu: set adev->num_vmhubs for gmc6,7,8
Subsystems (2)
PATCH 1/1 drm/amdgpu: set adev->num_vmhubs for gmc6,7,8
So that we properly handle them on older asics.
--- drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 2 ++ drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 2 ++ drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 2 ++ 3 files changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c +2 -0
@@ -839,6 +839,8 @@ static int gmc_v6_0_sw_init(void *handle)int dma_bits;struct amdgpu_device *adev = (struct amdgpu_device *)handle; + adev->num_vmhubs =1 ; +if (adev->flags &AMD_IS_APU ) { adev->gmc.vram_type =AMDGPU_VRAM_TYPE_UNKNOWN ; }else {
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c +2 -0
@@ -959,6 +959,8 @@ static int gmc_v7_0_sw_init(void *handle)int dma_bits;struct amdgpu_device *adev = (struct amdgpu_device *)handle; + adev->num_vmhubs =1 ; +if (adev->flags &AMD_IS_APU ) { adev->gmc.vram_type =AMDGPU_VRAM_TYPE_UNKNOWN ; }else {
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +2 -0
@@ -1079,6 +1079,8 @@ static int gmc_v8_0_sw_init(void *handle)int dma_bits;struct amdgpu_device *adev = (struct amdgpu_device *)handle; + adev->num_vmhubs =1 ; +if (adev->flags &AMD_IS_APU ) { adev->gmc.vram_type =AMDGPU_VRAM_TYPE_UNKNOWN ; }else {
Signature · 6 lines
2.20.1 _______________________________________________ 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): 20190823144514.21354-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org
Yuan, Xiaojie
Reviewed-by Xiaojie YuanBR,
Xiaojie
Quoted 58 lines · Alex Deucher
So that we properly handle them on older asics.
Fixes 3ff985485b29 ("drm/amdgpu: Export function to flush TLB of specific vm hub")Signed-off-by Alex Deucher <[email protected]>---
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 2 ++ drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 2 ++ drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 2 ++ 3 files changed, 6 insertions(+)drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c +2
-0@@ -839,6 +839,8 @@ static int gmc_v6_0_sw_init(void *handle)int dma_bits;struct amdgpu_device *adev = (struct amdgpu_device *)handle; + adev->num_vmhubs =1 ; +if (adev->flags &AMD_IS_APU ) { adev->gmc.vram_type =AMDGPU_VRAM_TYPE_UNKNOWN ; }else {drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c +2
-0@@ -959,6 +959,8 @@ static int gmc_v7_0_sw_init(void *handle)int dma_bits;struct amdgpu_device *adev = (struct amdgpu_device *)handle; + adev->num_vmhubs =1 ; +if (adev->flags &AMD_IS_APU ) { adev->gmc.vram_type =AMDGPU_VRAM_TYPE_UNKNOWN ; }else {drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +2
-0@@ -1079,6 +1079,8 @@ static int gmc_v8_0_sw_init(void *handle)int dma_bits;struct amdgpu_device *adev = (struct amdgpu_device *)handle; + adev->num_vmhubs =1 ; +if (adev->flags &AMD_IS_APU ) { adev->gmc.vram_type =AMDGPU_VRAM_TYPE_UNKNOWN ; }else {Signature · 6 lines
2.20.1 _______________________________________________ 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
A message that is not in the archive (sent off-list or not yet received): B8D97B9E-4D80-41C9-A10F-0F65F2DBE391-5C7GfCeVMHo@public.gmane.org
Christian König
Reviewed-byAm 23.08.19 um 17:21 schrieb Yuan, Xiaojie:
Quoted 59 lines
Reviewed-by Xiaojie Yuan <[email protected]>BR,
XiaojieQuoted 54 lines · Alex Deucher
So that we properly handle them on older asics.
Fixes 3ff985485b29 ("drm/amdgpu: Export function to flush TLB of specific vm hub")Signed-off-by Alex Deucher <[email protected]>---
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 2 ++ drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 2 ++ drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 2 ++ 3 files changed, 6 insertions(+)drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c +2
-0@@ -839,6 +839,8 @@ static int gmc_v6_0_sw_init(void *handle)int dma_bits;struct amdgpu_device *adev = (struct amdgpu_device *)handle; + adev->num_vmhubs =1 ; +if (adev->flags &AMD_IS_APU ) { adev->gmc.vram_type =AMDGPU_VRAM_TYPE_UNKNOWN ; }else {drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c +2
-0@@ -959,6 +959,8 @@ static int gmc_v7_0_sw_init(void *handle)int dma_bits;struct amdgpu_device *adev = (struct amdgpu_device *)handle; + adev->num_vmhubs =1 ; +if (adev->flags &AMD_IS_APU ) { adev->gmc.vram_type =AMDGPU_VRAM_TYPE_UNKNOWN ; }else {drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +2
-0@@ -1079,6 +1079,8 @@ static int gmc_v8_0_sw_init(void *handle)int dma_bits;struct amdgpu_device *adev = (struct amdgpu_device *)handle; + adev->num_vmhubs =1 ; +if (adev->flags &AMD_IS_APU ) { adev->gmc.vram_type =AMDGPU_VRAM_TYPE_UNKNOWN ; }else {Signature · 1 line
2.20.1
Quoted 8 lines
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
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx