All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <christian.koenig@amd.com>
To: Felix Kuehling <felix.kuehling@amd.com>, amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/1] drm/amdkfd: Enable userptr support when KFD is enabled
Date: Mon, 18 Jan 2021 15:53:13 +0100	[thread overview]
Message-ID: <30326fb3-a772-e297-af3f-bfb970bcf275@amd.com> (raw)
In-Reply-To: <b94a787c-f7f2-1141-c7df-c0950f8d1904@amd.com>

Am 18.01.21 um 15:37 schrieb Felix Kuehling:
> Am 2021-01-18 um 2:53 a.m. schrieb Christian König:
>> Am 15.01.21 um 19:24 schrieb Felix Kuehling:
>>> ROCm user mode depends on userptr support. Without it, KFD is basically
>>> useless.
>>>
>>> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
>>> ---
>>>    drivers/gpu/drm/amd/amdkfd/Kconfig | 1 +
>>>    1 file changed, 1 insertion(+)
>>>
>>> diff --git a/drivers/gpu/drm/amd/amdkfd/Kconfig
>>> b/drivers/gpu/drm/amd/amdkfd/Kconfig
>>> index e8fb10c41f16..2800b2bb2522 100644
>>> --- a/drivers/gpu/drm/amd/amdkfd/Kconfig
>>> +++ b/drivers/gpu/drm/amd/amdkfd/Kconfig
>>> @@ -8,5 +8,6 @@ config HSA_AMD
>>>        depends on DRM_AMDGPU && (X86_64 || ARM64 || PPC64)
>>>        imply AMD_IOMMU_V2 if X86_64
>>>        select MMU_NOTIFIER
>>> +    select DRM_AMDGPU_USERPTR
>> I think we should rather make that a depends on. Otherwise we select a
>> visible config option.
> I was considering that. The problem with that is, that the HSA_AMD
> option won't even show up in menuconfig unless DRM_AMDGPU_USERPTR is
> selected. I'd rather always show the HSA_AMD option and select what it
> needs.
>
> Is there a good reason why AMDGPU_USERPTR is a "visible" config option?
> What would be a reason for a user to deliberately disable this?

The problem is the MMU notifier dependency, not everybody wants its.

I'm just not sure if it's legal to forcefully select a visible config 
option. E.g. what happens if an user unselects DRM_AMDGPU_USERPTR after 
it was selected here?

Regards,
Christian.

>
> Regards,
>    Felix
>
>
>> Christian.
>>
>>>        help
>>>          Enable this if you want to use HSA features on AMD GPU devices.

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

  reply	other threads:[~2021-01-18 14:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-15 18:24 [PATCH 1/1] drm/amdkfd: Enable userptr support when KFD is enabled Felix Kuehling
2021-01-18  7:53 ` Christian König
2021-01-18 14:37   ` Felix Kuehling
2021-01-18 14:53     ` Christian König [this message]
2021-01-18 14:55       ` Felix Kuehling
2021-01-18 14:56         ` Christian König
2021-01-18 15:04 ` Christian König
2021-01-18 16:16   ` Felix Kuehling

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=30326fb3-a772-e297-af3f-bfb970bcf275@amd.com \
    --to=christian.koenig@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=felix.kuehling@amd.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.