amd-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: youling 257 <youling257@gmail.com>
To: "Zhang, Yifan" <Yifan1.Zhang@amd.com>
Cc: "Kuehling, Felix" <Felix.Kuehling@amd.com>,
	 "amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>,
	"Zhu, James" <James.Zhu@amd.com>
Subject: Re: [PATCH 2/2] drm/amdgpu: init iommu after amdkfd device init
Date: Mon, 11 Oct 2021 18:20:14 +0800	[thread overview]
Message-ID: <CAOzgRdZmOcg19wL00u-S6MSCwBufJBzpVDo2mQYKiReF7JE0Zw@mail.gmail.com> (raw)
In-Reply-To: <BN6PR12MB1187E3D949682D0714EA6253C1B59@BN6PR12MB1187.namprd12.prod.outlook.com>

test this patch can fix my boot and suspend problem.

2021-10-11 18:03 GMT+08:00, Zhang, Yifan <Yifan1.Zhang@amd.com>:
> [Public]
>
> Hi youling,
>
> Would you pls try this patch ?
>
> BRs,
> Yifan
>
> -----Original Message-----
> From: youling 257 <youling257@gmail.com>
> Sent: Monday, October 11, 2021 2:18 PM
> To: Zhang, Yifan <Yifan1.Zhang@amd.com>
> Cc: Kuehling, Felix <Felix.Kuehling@amd.com>; amd-gfx@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@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@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.
>>
>

  reply	other threads:[~2021-10-11 13:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-28  8:28 [PATCH 1/2] drm/amdkfd: remove redundant iommu cleanup code Yifan Zhang
2021-09-28  8:28 ` [PATCH 2/2] drm/amdgpu: init iommu after amdkfd device init Yifan Zhang
2021-09-28 15:41   ` Felix Kuehling
2021-09-29 13:18     ` Zhu, James
2021-10-04  9:42       ` Zhang, Yifan
2021-10-04 15:00         ` Felix Kuehling
2021-10-04 16:56           ` Zhu, James
2021-10-11  6:13   ` youling257
2021-10-11  6:17     ` youling 257
2021-10-11  6:37       ` Zhang, Yifan
2021-10-11 10:03       ` Zhang, Yifan
2021-10-11 10:20         ` youling 257 [this message]
2021-10-11 12:15           ` Zhang, Yifan
2021-09-30 21:18 ` [PATCH 1/2] drm/amdkfd: remove redundant iommu cleanup code Zhu, James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOzgRdZmOcg19wL00u-S6MSCwBufJBzpVDo2mQYKiReF7JE0Zw@mail.gmail.com \
    --to=youling257@gmail.com \
    --cc=Felix.Kuehling@amd.com \
    --cc=James.Zhu@amd.com \
    --cc=Yifan1.Zhang@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).