drm/amdkfd: Fix byte align on VegaM
Subsystems (3)
PATCH 1/1 drm/amdkfd: Fix byte align on VegaM
This was missed during the addition of VegaM support
--- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +2 -1
@@ -1139,7 +1139,8 @@ int amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu( adev->asic_type !=CHIP_FIJI && adev->asic_type !=CHIP_POLARIS10 && adev->asic_type !=CHIP_POLARIS11 && - adev->asic_type != CHIP_POLARIS12) ? + adev->asic_type !=CHIP_POLARIS12 && + adev->asic_type != CHIP_VEGAM) ?VI_BO_SIZE_ALIGN :1 ; mapping_flags =AMDGPU_VM_PAGE_READABLE ;
Signature · 6 lines
2.17.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): [email protected]
Deucher, Alexander
Reviewed-by________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Russell, Kent <[email protected]>
Sent: Tuesday, July 23, 2019 10:22 AM
To: [email protected] <[email protected]>
Cc: Russell, Kent <[email protected]>
Subject: [PATCH] drm/amdkfd: Fix byte align on VegaM
This was missed during the addition of VegaM support
--- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +2 -1
@@ -1139,7 +1139,8 @@ int amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu( adev->asic_type !=CHIP_FIJI && adev->asic_type !=CHIP_POLARIS10 && adev->asic_type !=CHIP_POLARIS11 && - adev->asic_type != CHIP_POLARIS12) ? + adev->asic_type !=CHIP_POLARIS12 && + adev->asic_type != CHIP_VEGAM) ?VI_BO_SIZE_ALIGN :1 ; mapping_flags =AMDGPU_VM_PAGE_READABLE ;
--
2.17.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): BN6PR12MB1809AAB2C9A0E7629EF38014F7C70-/b2+HYfkarSEx6ez0IUAagdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Russell, Kent
Reviewed-by Alex DeucherI'll push this, I was just wondering if Felix could confirm if the TLB workaround was only for Tonga/Topaz, in which case we could check for that instead of having to expand the list in situations like this, to say "if FAMILY_VI && (TOPAZ || TONGA) then". That way it's explicitly applying the workaround to the affected ASICs instead of implicitly not-applying the workaround to unaffected ASICs.
Kent
From: Deucher, Alexander <[email protected]>
Sent: Tuesday, July 23, 2019 11:16 AM
To: Russell, Kent <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/amdkfd: Fix byte align on VegaM
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org<mailto:[email protected]>> on behalf of Russell, Kent <[email protected]<mailto:[email protected]>>
Sent: Tuesday, July 23, 2019 10:22 AM
To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Cc: Russell, Kent <[email protected]<mailto:[email protected]>>
Subject: [PATCH] drm/amdkfd: Fix byte align on VegaM
This was missed during the addition of VegaM support
--- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +2 -1
@@ -1139,7 +1139,8 @@ int amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu( adev->asic_type !=CHIP_FIJI && adev->asic_type !=CHIP_POLARIS10 && adev->asic_type !=CHIP_POLARIS11 && - adev->asic_type != CHIP_POLARIS12) ? + adev->asic_type !=CHIP_POLARIS12 && + adev->asic_type != CHIP_VEGAM) ?VI_BO_SIZE_ALIGN :1 ; mapping_flags =AMDGPU_VM_PAGE_READABLE ;
--
2.17.1
_______________________________________________
amd-gfx mailing list [email protected]<mailto:[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): BN6PR12MB16185BFAE98F2679F0B134CA85C70-/b2+HYfkarRqaFUXYJa4HgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Kuehling, Felix
Reviewed-by Alex DeucherThis was needed for VI chips before Fiji. I think that means Tonga, Topaz and Carrizo. As the list of supported ASICs keeps growing, we should change the condition to list only the chips that need the workaround, instead of adding every future chip to the list that don't.
Regards,
Felix
--
F e l i x K u e h l i n g
PMTS Software Development Engineer | Linux Compute Kernel 1 Commerce Valley Dr. East, Markham, ON L3T 7X6 Canada
(O) +1(289)695-1597
_ _ _ _____ _____ / \ | \ / | | _ \ \ _ | / A \ | \M/ | | |D) ) /|_| |
/_/ \_\ |_| |_| |_____/ |__/ \| facebook.com/AMD | amd.com
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Russell, Kent <[email protected]>
Sent: Tuesday, July 23, 2019 11:18:52 AM
To: Deucher, Alexander <[email protected]>; amd-gfx-PD4FTy7X32nrcLQh/[email protected] <[email protected]>
Subject: RE: [PATCH] drm/amdkfd: Fix byte align on VegaM
I’ll push this, I was just wondering if Felix could confirm if the TLB workaround was only for Tonga/Topaz, in which case we could check for that instead of having to expand the list in situations like this, to say “if FAMILY_VI && (TOPAZ || TONGA) then”. That way it’s explicitly applying the workaround to the affected ASICs instead of implicitly not-applying the workaround to unaffected ASICs.
Kent
From: Deucher, Alexander <[email protected]>
Sent: Tuesday, July 23, 2019 11:16 AM
To: Russell, Kent <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/amdkfd: Fix byte align on VegaM
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org<mailto:[email protected]>> on behalf of Russell, Kent <[email protected]<mailto:[email protected]>>
Sent: Tuesday, July 23, 2019 10:22 AM
To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Cc: Russell, Kent <[email protected]<mailto:[email protected]>>
Subject: [PATCH] drm/amdkfd: Fix byte align on VegaM
This was missed during the addition of VegaM support
--- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +2 -1
@@ -1139,7 +1139,8 @@ int amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu( adev->asic_type !=CHIP_FIJI && adev->asic_type !=CHIP_POLARIS10 && adev->asic_type !=CHIP_POLARIS11 && - adev->asic_type != CHIP_POLARIS12) ? + adev->asic_type !=CHIP_POLARIS12 && + adev->asic_type != CHIP_VEGAM) ?VI_BO_SIZE_ALIGN :1 ; mapping_flags =AMDGPU_VM_PAGE_READABLE ;
--
2.17.1
_______________________________________________
amd-gfx mailing list [email protected]<mailto:[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): DM6PR12MB39476BEB358FA1C7FA5734C992C70-lmeGfMZKVrF/[email protected]
Russell, Kent
Reviewed-by Alex DeucherThat was my thought too. I'll do that as a future patch.
Kent
From: Kuehling, Felix <[email protected]>
Sent: Tuesday, July 23, 2019 2:51 PM
To: Russell, Kent <[email protected]>; Deucher, Alexander <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/amdkfd: Fix byte align on VegaM
This was needed for VI chips before Fiji. I think that means Tonga, Topaz and Carrizo. As the list of supported ASICs keeps growing, we should change the condition to list only the chips that need the workaround, instead of adding every future chip to the list that don't.
Regards,
Felix
--
F e l i x K u e h l i n g
PMTS Software Development Engineer | Linux Compute Kernel 1 Commerce Valley Dr. East, Markham, ON L3T 7X6 Canada
(O) +1(289)695-1597
_ _ _ _____ _____ / \ | \ / | | _ \ \ _ | / A \ | \M/ | | |D) ) /|_| |
/_/ \_\ |_| |_| |_____/ |__/ \| facebook.com/AMD | amd.com
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org<mailto:[email protected]>> on behalf of Russell, Kent <[email protected]<mailto:[email protected]>>
Sent: Tuesday, July 23, 2019 11:18:52 AM
To: Deucher, Alexander <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Subject: RE: [PATCH] drm/amdkfd: Fix byte align on VegaM
I'll push this, I was just wondering if Felix could confirm if the TLB workaround was only for Tonga/Topaz, in which case we could check for that instead of having to expand the list in situations like this, to say "if FAMILY_VI && (TOPAZ || TONGA) then". That way it's explicitly applying the workaround to the affected ASICs instead of implicitly not-applying the workaround to unaffected ASICs.
Kent
From: Deucher, Alexander <[email protected]<mailto:[email protected]>>
Sent: Tuesday, July 23, 2019 11:16 AM
To: Russell, Kent <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>
Subject: Re: [PATCH] drm/amdkfd: Fix byte align on VegaM
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org<mailto:[email protected]>> on behalf of Russell, Kent <[email protected]<mailto:[email protected]>>
Sent: Tuesday, July 23, 2019 10:22 AM
To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Cc: Russell, Kent <[email protected]<mailto:[email protected]>>
Subject: [PATCH] drm/amdkfd: Fix byte align on VegaM
This was missed during the addition of VegaM support
--- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +2 -1
@@ -1139,7 +1139,8 @@ int amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu( adev->asic_type !=CHIP_FIJI && adev->asic_type !=CHIP_POLARIS10 && adev->asic_type !=CHIP_POLARIS11 && - adev->asic_type != CHIP_POLARIS12) ? + adev->asic_type !=CHIP_POLARIS12 && + adev->asic_type != CHIP_VEGAM) ?VI_BO_SIZE_ALIGN :1 ; mapping_flags =AMDGPU_VM_PAGE_READABLE ;
--
2.17.1
_______________________________________________
amd-gfx mailing list [email protected]<mailto:[email protected]>
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx