From: =?UTF-8?Q?Christian_K=c3=b6nig?= Subject: Re: [PATCH] drm/amdgpu/gmc10: apply the 'invalidation from sdma' workaround for navi Date: Thu, 26 Sep 2019 14:29:26 +0200 Message-ID: <608f4e8a-ef35-6fbc-cda6-51c3803af014@gmail.com> References: <20190926080746.20765-1-xiaojie.yuan@amd.com> Reply-To: christian.koenig-5C7GfCeVMHo@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1169247151==" Return-path: In-Reply-To: Content-Language: en-US List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "amd-gfx" To: "Deucher, Alexander" , "Yuan, Xiaojie" , "amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org" Cc: "alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" This is a multi-part message in MIME format. --===============1169247151== Content-Type: multipart/alternative; boundary="------------F7EF14EA4E76D9D44665EAA8" Content-Language: en-US This is a multi-part message in MIME format. --------------F7EF14EA4E76D9D44665EAA8 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Stop, wait a second guys! This will disable the workaround for Navi10 and that is certainly not correct: > !(adev->asic_type >= CHIP_NAVI10 && adev->asic_type <= CHIP_NAVI12) Christian. Am 26.09.19 um 14:26 schrieb Deucher, Alexander: > Please add a patch description.  With that fixed: > Reviewed-by: Alex Deucher > ------------------------------------------------------------------------ > *From:* amd-gfx on behalf of > Yuan, Xiaojie > *Sent:* Thursday, September 26, 2019 4:09 AM > *To:* amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org > *Cc:* alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > *Subject:* Re: [PATCH] drm/amdgpu/gmc10: apply the 'invalidation from > sdma' workaround for navi > Hi Alex, > > This patch is to add the asic_type check which is missing after > drm-next branch rebase. > > BR, > Xiaojie > ------------------------------------------------------------------------ > *From:* Yuan, Xiaojie > *Sent:* Thursday, September 26, 2019 4:08 PM > *To:* amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org > *Cc:* alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org ; Yuan, Xiaojie > > *Subject:* [PATCH] drm/amdgpu/gmc10: apply the 'invalidation from > sdma' workaround for navi > Fixes: 767acabdac81 ("drm/amd/powerplay: add baco smu reset function > for smu11") > Signed-off-by: Xiaojie Yuan > --- >  drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 1 + >  1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c > b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c > index cb3f61873baa..dc2e68e019eb 100644 > --- a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c > +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c > @@ -292,6 +292,7 @@ static void gmc_v10_0_flush_gpu_tlb(struct > amdgpu_device *adev, uint32_t vmid, > >          if (!adev->mman.buffer_funcs_enabled || >              !adev->ib_pool_ready || > +           !(adev->asic_type >= CHIP_NAVI10 && adev->asic_type <= > CHIP_NAVI12) || >              adev->in_gpu_reset) { >                  gmc_v10_0_flush_vm_hub(adev, vmid, AMDGPU_GFXHUB_0, 0); > mutex_unlock(&adev->mman.gtt_window_lock); > -- > 2.20.1 > > > _______________________________________________ > amd-gfx mailing list > amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx --------------F7EF14EA4E76D9D44665EAA8 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit
Stop, wait a second guys!

This will disable the workaround for Navi10 and that is certainly not correct:
!(adev->asic_type >= CHIP_NAVI10 && adev->asic_type <= CHIP_NAVI12)

Christian.


Am 26.09.19 um 14:26 schrieb Deucher, Alexander:
Please add a patch description.  With that fixed:

Hi Alex,

This patch is to add the asic_type check which is missing after drm-next branch rebase.

BR,
Xiaojie

Fixes: 767acabdac81 ("drm/amd/powerplay: add baco smu reset function for smu11")
Signed-off-by: Xiaojie Yuan <xiaojie.yuan-5C7GfCeVMHo@public.gmane.org>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
index cb3f61873baa..dc2e68e019eb 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
@@ -292,6 +292,7 @@ static void gmc_v10_0_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid,
 
         if (!adev->mman.buffer_funcs_enabled ||
             !adev->ib_pool_ready ||
+           !(adev->asic_type >= CHIP_NAVI10 && adev->asic_type <= CHIP_NAVI12) ||
             adev->in_gpu_reset) {
                 gmc_v10_0_flush_vm_hub(adev, vmid, AMDGPU_GFXHUB_0, 0);
                 mutex_unlock(&adev->mman.gtt_window_lock);
--
2.20.1


_______________________________________________
amd-gfx mailing list
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

--------------F7EF14EA4E76D9D44665EAA8-- --===============1169247151== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KYW1kLWdmeCBt YWlsaW5nIGxpc3QKYW1kLWdmeEBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cHM6Ly9saXN0cy5m cmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9hbWQtZ2Z4 --===============1169247151==--