[PATCH 2/2] drm/amdgpu: init iommu after amdkfd device init

Zhang, Yifan Yifan1.Zhang at amd.com
Mon Oct 11 12:15:04 UTC 2021


[AMD Official Use Only]

Great. Thanks for testing.

-----Original Message-----
From: youling 257 <youling257 at gmail.com> 
Sent: Monday, October 11, 2021 6:20 PM
To: Zhang, Yifan <Yifan1.Zhang at amd.com>
Cc: Kuehling, Felix <Felix.Kuehling at amd.com>; amd-gfx at lists.freedesktop.org; Zhu, James <James.Zhu at amd.com>
Subject: Re: [PATCH 2/2] drm/amdgpu: init iommu after amdkfd device init

test this patch can fix my boot and suspend problem.

2021-10-11 18:03 GMT+08:00, Zhang, Yifan <Yifan1.Zhang at amd.com>:
> [Public]
>
> Hi youling,
>
> Would you pls try this patch ?
>
> BRs,
> Yifan
>
> -----Original Message-----
> From: youling 257 <youling257 at gmail.com>
> Sent: Monday, October 11, 2021 2:18 PM
> To: Zhang, Yifan <Yifan1.Zhang at amd.com>
> Cc: Kuehling, Felix <Felix.Kuehling at amd.com>; 
> amd-gfx at lists.freedesktop.org
> Subject: Re: [PATCH 2/2] drm/amdgpu: init iommu after amdkfd device 
> init
>
> drm/amdgpu: init iommu after amdkfd device init but CONFIG_AMD_IOMMU=y 
> CONFIG_AMD_IOMMU_V2=y
> [    0.203386] AMD-Vi: AMD IOMMUv2 driver by Joerg Roedel <jroedel at suse.de>
> [    0.203387] AMD-Vi: AMD IOMMUv2 functionality not available on this
> system
> [    7.622052] kfd kfd: amdgpu: Allocated 3969056 bytes on gart
> [    7.622128] kfd kfd: amdgpu: error getting iommu info. is the iommu
> enabled?
> [    7.622129] kfd kfd: amdgpu: Error initializing iommuv2
> [    7.622430] kfd kfd: amdgpu: device 1002:15d8 NOT added due to errors
>
> 2021-10-11 14:13 GMT+08:00, youling257 <youling257 at gmail.com>:
>> my kernel config CONFIG_AMD_IOMMU=y CONFIG_AMD_IOMMU_V2=y.
>> linux kernel 5.15rc2 "drm/amdgpu: move iommu_resume before ip 
>> init/resume"
>> cause my amd 3400g suspend to disk resume failed, have to press power 
>> button to force shutdown.
>> linux kernel 5.15rc5 "drm/amdgpu: init iommu after amdkfd device init"
>> cause my amd 3400g blackscreen when boot enter my userspace.
>> i need revert "drm/amdgpu: init iommu after amdkfd device init" and
>> "drm/amdgpu: move iommu_resume before ip init/resume" for my 
>> userspace, running androidx86 with mesa21.3 on amdgpu.
>>
>


More information about the amd-gfx mailing list