* [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported IOCTLs
@ 2025-07-08 4:22 Geoffrey McRae
2025-07-08 7:01 ` Christian König
0 siblings, 1 reply; 9+ messages in thread
From: Geoffrey McRae @ 2025-07-08 4:22 UTC (permalink / raw)
To: Felix.Kuehling
Cc: alexander.deucher, christian.koenig, amd-gfx, dri-devel,
Geoffrey McRae
Some kfd ioctls may not be available depending on the kernel version the
user is running, as such we need to report -ENOTTY so userland can
determine the cause of the ioctl failure.
Signed-off-by: Geoffrey McRae <geoffrey.mcrae@amd.com>
---
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
index a2149afa5803..36396b7318e7 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
@@ -3253,8 +3253,10 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
int retcode = -EINVAL;
bool ptrace_attached = false;
- if (nr >= AMDKFD_CORE_IOCTL_COUNT)
+ if (nr >= AMDKFD_CORE_IOCTL_COUNT) {
+ retcode = -ENOTTY;
goto err_i1;
+ }
if ((nr >= AMDKFD_COMMAND_START) && (nr < AMDKFD_COMMAND_END)) {
u32 amdkfd_size;
@@ -3267,8 +3269,10 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
asize = amdkfd_size;
cmd = ioctl->cmd;
- } else
+ } else {
+ retcode = -ENOTTY;
goto err_i1;
+ }
dev_dbg(kfd_device, "ioctl cmd 0x%x (#0x%x), arg 0x%lx\n", cmd, nr, arg);
--
2.43.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported IOCTLs
2025-07-08 4:22 [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported IOCTLs Geoffrey McRae
@ 2025-07-08 7:01 ` Christian König
2025-07-08 9:12 ` McRae, Geoffrey
0 siblings, 1 reply; 9+ messages in thread
From: Christian König @ 2025-07-08 7:01 UTC (permalink / raw)
To: Geoffrey McRae, Felix.Kuehling; +Cc: alexander.deucher, amd-gfx, dri-devel
On 08.07.25 06:22, Geoffrey McRae wrote:
> Some kfd ioctls may not be available depending on the kernel version the
> user is running, as such we need to report -ENOTTY so userland can
> determine the cause of the ioctl failure.
In general sounds like a good idea, but ENOTTY is potentially a bit misleading.
We usually use EOPNOTSUPP for that even if its not the original meaning of that error code.
Regards,
Christian.
>
> Signed-off-by: Geoffrey McRae <geoffrey.mcrae@amd.com>
> ---
> drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> index a2149afa5803..36396b7318e7 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> @@ -3253,8 +3253,10 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
> int retcode = -EINVAL;
> bool ptrace_attached = false;
>
> - if (nr >= AMDKFD_CORE_IOCTL_COUNT)
> + if (nr >= AMDKFD_CORE_IOCTL_COUNT) {
> + retcode = -ENOTTY;
> goto err_i1;
> + }
>
> if ((nr >= AMDKFD_COMMAND_START) && (nr < AMDKFD_COMMAND_END)) {
> u32 amdkfd_size;
> @@ -3267,8 +3269,10 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
> asize = amdkfd_size;
>
> cmd = ioctl->cmd;
> - } else
> + } else {
> + retcode = -ENOTTY;
> goto err_i1;
> + }
>
> dev_dbg(kfd_device, "ioctl cmd 0x%x (#0x%x), arg 0x%lx\n", cmd, nr, arg);
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported IOCTLs
2025-07-08 7:01 ` Christian König
@ 2025-07-08 9:12 ` McRae, Geoffrey
2025-07-08 15:10 ` Deucher, Alexander
0 siblings, 1 reply; 9+ messages in thread
From: McRae, Geoffrey @ 2025-07-08 9:12 UTC (permalink / raw)
To: Koenig, Christian, Kuehling, Felix
Cc: Deucher, Alexander, amd-gfx@lists.freedesktop.org,
dri-devel@lists.freedesktop.org
[-- Attachment #1: Type: text/plain, Size: 2579 bytes --]
[AMD Official Use Only - AMD Internal Distribution Only]
I am happy to use EOPNOTSUPP but I must point out that this is not the pattern used across the kernel, the standard is to use ENOTTY, which is also the default that fs/ioctl.c returns when no handler is present. Userspace tooling such as strace and glibc specifically expectect ENOTTY to indicate invalid or unsupported IOCTL.
________________________________
From: Koenig, Christian <Christian.Koenig@amd.com>
Sent: Tuesday, 8 July 2025 5:01 PM
To: McRae, Geoffrey <Geoffrey.McRae@amd.com>; Kuehling, Felix <Felix.Kuehling@amd.com>
Cc: Deucher, Alexander <Alexander.Deucher@amd.com>; amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>; dri-devel@lists.freedesktop.org <dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported IOCTLs
On 08.07.25 06:22, Geoffrey McRae wrote:
> Some kfd ioctls may not be available depending on the kernel version the
> user is running, as such we need to report -ENOTTY so userland can
> determine the cause of the ioctl failure.
In general sounds like a good idea, but ENOTTY is potentially a bit misleading.
We usually use EOPNOTSUPP for that even if its not the original meaning of that error code.
Regards,
Christian.
>
> Signed-off-by: Geoffrey McRae <geoffrey.mcrae@amd.com>
> ---
> drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> index a2149afa5803..36396b7318e7 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> @@ -3253,8 +3253,10 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
> int retcode = -EINVAL;
> bool ptrace_attached = false;
>
> - if (nr >= AMDKFD_CORE_IOCTL_COUNT)
> + if (nr >= AMDKFD_CORE_IOCTL_COUNT) {
> + retcode = -ENOTTY;
> goto err_i1;
> + }
>
> if ((nr >= AMDKFD_COMMAND_START) && (nr < AMDKFD_COMMAND_END)) {
> u32 amdkfd_size;
> @@ -3267,8 +3269,10 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
> asize = amdkfd_size;
>
> cmd = ioctl->cmd;
> - } else
> + } else {
> + retcode = -ENOTTY;
> goto err_i1;
> + }
>
> dev_dbg(kfd_device, "ioctl cmd 0x%x (#0x%x), arg 0x%lx\n", cmd, nr, arg);
>
[-- Attachment #2: Type: text/html, Size: 4740 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported IOCTLs
2025-07-08 9:12 ` McRae, Geoffrey
@ 2025-07-08 15:10 ` Deucher, Alexander
2025-07-09 4:56 ` Lazar, Lijo
0 siblings, 1 reply; 9+ messages in thread
From: Deucher, Alexander @ 2025-07-08 15:10 UTC (permalink / raw)
To: McRae, Geoffrey, Koenig, Christian, Kuehling, Felix
Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
[-- Attachment #1: Type: text/plain, Size: 3350 bytes --]
[Public]
I seem to recall -ENOTSUPP being frowned upon for IOCTLs.
Alex
From: McRae, Geoffrey <Geoffrey.McRae@amd.com>
Sent: Tuesday, July 8, 2025 5:13 AM
To: Koenig, Christian <Christian.Koenig@amd.com>; Kuehling, Felix <Felix.Kuehling@amd.com>
Cc: Deucher, Alexander <Alexander.Deucher@amd.com>; amd-gfx@lists.freedesktop.org; dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported IOCTLs
[AMD Official Use Only - AMD Internal Distribution Only]
I am happy to use EOPNOTSUPP but I must point out that this is not the pattern used across the kernel, the standard is to use ENOTTY, which is also the default that fs/ioctl.c returns when no handler is present. Userspace tooling such as strace and glibc specifically expectect ENOTTY to indicate invalid or unsupported IOCTL.
________________________________
From: Koenig, Christian <Christian.Koenig@amd.com<mailto:Christian.Koenig@amd.com>>
Sent: Tuesday, 8 July 2025 5:01 PM
To: McRae, Geoffrey <Geoffrey.McRae@amd.com<mailto:Geoffrey.McRae@amd.com>>; Kuehling, Felix <Felix.Kuehling@amd.com<mailto:Felix.Kuehling@amd.com>>
Cc: Deucher, Alexander <Alexander.Deucher@amd.com<mailto:Alexander.Deucher@amd.com>>; amd-gfx@lists.freedesktop.org<mailto:amd-gfx@lists.freedesktop.org> <amd-gfx@lists.freedesktop.org<mailto:amd-gfx@lists.freedesktop.org>>; dri-devel@lists.freedesktop.org<mailto:dri-devel@lists.freedesktop.org> <dri-devel@lists.freedesktop.org<mailto:dri-devel@lists.freedesktop.org>>
Subject: Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported IOCTLs
On 08.07.25 06:22, Geoffrey McRae wrote:
> Some kfd ioctls may not be available depending on the kernel version the
> user is running, as such we need to report -ENOTTY so userland can
> determine the cause of the ioctl failure.
In general sounds like a good idea, but ENOTTY is potentially a bit misleading.
We usually use EOPNOTSUPP for that even if its not the original meaning of that error code.
Regards,
Christian.
>
> Signed-off-by: Geoffrey McRae <geoffrey.mcrae@amd.com<mailto:geoffrey.mcrae@amd.com>>
> ---
> drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> index a2149afa5803..36396b7318e7 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> @@ -3253,8 +3253,10 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
> int retcode = -EINVAL;
> bool ptrace_attached = false;
>
> - if (nr >= AMDKFD_CORE_IOCTL_COUNT)
> + if (nr >= AMDKFD_CORE_IOCTL_COUNT) {
> + retcode = -ENOTTY;
> goto err_i1;
> + }
>
> if ((nr >= AMDKFD_COMMAND_START) && (nr < AMDKFD_COMMAND_END)) {
> u32 amdkfd_size;
> @@ -3267,8 +3269,10 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
> asize = amdkfd_size;
>
> cmd = ioctl->cmd;
> - } else
> + } else {
> + retcode = -ENOTTY;
> goto err_i1;
> + }
>
> dev_dbg(kfd_device, "ioctl cmd 0x%x (#0x%x), arg 0x%lx\n", cmd, nr, arg);
>
[-- Attachment #2: Type: text/html, Size: 8419 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported IOCTLs
2025-07-08 15:10 ` Deucher, Alexander
@ 2025-07-09 4:56 ` Lazar, Lijo
2025-07-09 8:39 ` Christian König
0 siblings, 1 reply; 9+ messages in thread
From: Lazar, Lijo @ 2025-07-09 4:56 UTC (permalink / raw)
To: Deucher, Alexander, McRae, Geoffrey, Koenig, Christian,
Kuehling, Felix
Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
On 7/8/2025 8:40 PM, Deucher, Alexander wrote:
> [Public]
>
>
> I seem to recall -ENOTSUPP being frowned upon for IOCTLs.
>
>
Going by documentation -
https://dri.freedesktop.org/docs/drm/gpu/drm-uapi.html
EOPNOTSUPP:
Feature (like PRIME, modesetting, GEM) is not supported by the driver.
"Note that ENOTTY has the slightly unintuitive meaning of “this IOCTL
does not exist”, and is used exactly as such in DRM"
Since KFD ioctls could eventually be supported in drm node, it seems
better to go with ENOTTY.
Thanks,
Lijo
>
> Alex
>
>
>
> *From:*McRae, Geoffrey <Geoffrey.McRae@amd.com>
> *Sent:* Tuesday, July 8, 2025 5:13 AM
> *To:* Koenig, Christian <Christian.Koenig@amd.com>; Kuehling, Felix
> <Felix.Kuehling@amd.com>
> *Cc:* Deucher, Alexander <Alexander.Deucher@amd.com>; amd-
> gfx@lists.freedesktop.org; dri-devel@lists.freedesktop.org
> *Subject:* Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported
> IOCTLs
>
>
>
> [AMD Official Use Only - AMD Internal Distribution Only]
>
>
>
> I am happy to use EOPNOTSUPP but I must point out that this is not the
> pattern used across the kernel, the standard is to use ENOTTY, which is
> also the default that fs/ioctl.c returns when no handler is present.
> Userspace tooling such as strace and glibc specifically expectect ENOTTY
> to indicate invalid or unsupported IOCTL.
>
> ------------------------------------------------------------------------
>
> *From:*Koenig, Christian <Christian.Koenig@amd.com
> <mailto:Christian.Koenig@amd.com>>
> *Sent:* Tuesday, 8 July 2025 5:01 PM
> *To:* McRae, Geoffrey <Geoffrey.McRae@amd.com
> <mailto:Geoffrey.McRae@amd.com>>; Kuehling, Felix
> <Felix.Kuehling@amd.com <mailto:Felix.Kuehling@amd.com>>
> *Cc:* Deucher, Alexander <Alexander.Deucher@amd.com
> <mailto:Alexander.Deucher@amd.com>>; amd-gfx@lists.freedesktop.org
> <mailto:amd-gfx@lists.freedesktop.org> <amd-gfx@lists.freedesktop.org
> <mailto:amd-gfx@lists.freedesktop.org>>; dri-devel@lists.freedesktop.org
> <mailto:dri-devel@lists.freedesktop.org> <dri-
> devel@lists.freedesktop.org <mailto:dri-devel@lists.freedesktop.org>>
> *Subject:* Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported
> IOCTLs
>
>
>
> On 08.07.25 06:22, Geoffrey McRae wrote:
>> Some kfd ioctls may not be available depending on the kernel version the
>> user is running, as such we need to report -ENOTTY so userland can
>> determine the cause of the ioctl failure.
>
> In general sounds like a good idea, but ENOTTY is potentially a bit
> misleading.
>
> We usually use EOPNOTSUPP for that even if its not the original meaning
> of that error code.
>
> Regards,
> Christian.
>
>>
>> Signed-off-by: Geoffrey McRae <geoffrey.mcrae@amd.com <mailto:geoffrey.mcrae@amd.com>>
>> ---
>> drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 8 ++++++--
>> 1 file changed, 6 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
>> index a2149afa5803..36396b7318e7 100644
>> --- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
>> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
>> @@ -3253,8 +3253,10 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
>> int retcode = -EINVAL;
>> bool ptrace_attached = false;
>>
>> - if (nr >= AMDKFD_CORE_IOCTL_COUNT)
>> + if (nr >= AMDKFD_CORE_IOCTL_COUNT) {
>> + retcode = -ENOTTY;
>> goto err_i1;
>> + }
>>
>> if ((nr >= AMDKFD_COMMAND_START) && (nr < AMDKFD_COMMAND_END)) {
>> u32 amdkfd_size;
>> @@ -3267,8 +3269,10 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
>> asize = amdkfd_size;
>>
>> cmd = ioctl->cmd;
>> - } else
>> + } else {
>> + retcode = -ENOTTY;
>> goto err_i1;
>> + }
>>
>> dev_dbg(kfd_device, "ioctl cmd 0x%x (#0x%x), arg 0x%lx\n", cmd, nr, arg);
>>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported IOCTLs
2025-07-09 4:56 ` Lazar, Lijo
@ 2025-07-09 8:39 ` Christian König
2025-07-09 9:01 ` Lazar, Lijo
0 siblings, 1 reply; 9+ messages in thread
From: Christian König @ 2025-07-09 8:39 UTC (permalink / raw)
To: Lazar, Lijo, Deucher, Alexander, McRae, Geoffrey, Kuehling, Felix
Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
On 09.07.25 06:56, Lazar, Lijo wrote:
> On 7/8/2025 8:40 PM, Deucher, Alexander wrote:
>> [Public]
>>
>>
>> I seem to recall -ENOTSUPP being frowned upon for IOCTLs.
>>
>>
> Going by documentation -
> https://dri.freedesktop.org/docs/drm/gpu/drm-uapi.html
>
Good point.
> EOPNOTSUPP:
> Feature (like PRIME, modesetting, GEM) is not supported by the driver.
>
> "Note that ENOTTY has the slightly unintuitive meaning of “this IOCTL
> does not exist”, and is used exactly as such in DRM"
>
> Since KFD ioctls could eventually be supported in drm node,
That's certainly not going to happen.
We are currently in the process of deprecating the KFD IOCTLs and either using the existing DRM render node ones or coming up with new IOCTL/additions to the existing ones.
Background is that some of the KFD IOCTLs have design flaws which are unfix able.
Regards,
Christian.
> it seems
> better to go with ENOTTY.
>
> Thanks,
> Lijo
>
>>
>> Alex
>>
>>
>>
>> *From:*McRae, Geoffrey <Geoffrey.McRae@amd.com>
>> *Sent:* Tuesday, July 8, 2025 5:13 AM
>> *To:* Koenig, Christian <Christian.Koenig@amd.com>; Kuehling, Felix
>> <Felix.Kuehling@amd.com>
>> *Cc:* Deucher, Alexander <Alexander.Deucher@amd.com>; amd-
>> gfx@lists.freedesktop.org; dri-devel@lists.freedesktop.org
>> *Subject:* Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported
>> IOCTLs
>>
>>
>>
>> [AMD Official Use Only - AMD Internal Distribution Only]
>>
>>
>>
>> I am happy to use EOPNOTSUPP but I must point out that this is not the
>> pattern used across the kernel, the standard is to use ENOTTY, which is
>> also the default that fs/ioctl.c returns when no handler is present.
>> Userspace tooling such as strace and glibc specifically expectect ENOTTY
>> to indicate invalid or unsupported IOCTL.
>>
>> ------------------------------------------------------------------------
>>
>> *From:*Koenig, Christian <Christian.Koenig@amd.com
>> <mailto:Christian.Koenig@amd.com>>
>> *Sent:* Tuesday, 8 July 2025 5:01 PM
>> *To:* McRae, Geoffrey <Geoffrey.McRae@amd.com
>> <mailto:Geoffrey.McRae@amd.com>>; Kuehling, Felix
>> <Felix.Kuehling@amd.com <mailto:Felix.Kuehling@amd.com>>
>> *Cc:* Deucher, Alexander <Alexander.Deucher@amd.com
>> <mailto:Alexander.Deucher@amd.com>>; amd-gfx@lists.freedesktop.org
>> <mailto:amd-gfx@lists.freedesktop.org> <amd-gfx@lists.freedesktop.org
>> <mailto:amd-gfx@lists.freedesktop.org>>; dri-devel@lists.freedesktop.org
>> <mailto:dri-devel@lists.freedesktop.org> <dri-
>> devel@lists.freedesktop.org <mailto:dri-devel@lists.freedesktop.org>>
>> *Subject:* Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported
>> IOCTLs
>>
>>
>>
>> On 08.07.25 06:22, Geoffrey McRae wrote:
>>> Some kfd ioctls may not be available depending on the kernel version the
>>> user is running, as such we need to report -ENOTTY so userland can
>>> determine the cause of the ioctl failure.
>>
>> In general sounds like a good idea, but ENOTTY is potentially a bit
>> misleading.
>>
>> We usually use EOPNOTSUPP for that even if its not the original meaning
>> of that error code.
>>
>> Regards,
>> Christian.
>>
>>>
>>> Signed-off-by: Geoffrey McRae <geoffrey.mcrae@amd.com <mailto:geoffrey.mcrae@amd.com>>
>>> ---
>>> drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 8 ++++++--
>>> 1 file changed, 6 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
>>> index a2149afa5803..36396b7318e7 100644
>>> --- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
>>> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
>>> @@ -3253,8 +3253,10 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
>>> int retcode = -EINVAL;
>>> bool ptrace_attached = false;
>>>
>>> - if (nr >= AMDKFD_CORE_IOCTL_COUNT)
>>> + if (nr >= AMDKFD_CORE_IOCTL_COUNT) {
>>> + retcode = -ENOTTY;
>>> goto err_i1;
>>> + }
>>>
>>> if ((nr >= AMDKFD_COMMAND_START) && (nr < AMDKFD_COMMAND_END)) {
>>> u32 amdkfd_size;
>>> @@ -3267,8 +3269,10 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
>>> asize = amdkfd_size;
>>>
>>> cmd = ioctl->cmd;
>>> - } else
>>> + } else {
>>> + retcode = -ENOTTY;
>>> goto err_i1;
>>> + }
>>>
>>> dev_dbg(kfd_device, "ioctl cmd 0x%x (#0x%x), arg 0x%lx\n", cmd, nr, arg);
>>>
>>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported IOCTLs
2025-07-09 8:39 ` Christian König
@ 2025-07-09 9:01 ` Lazar, Lijo
2025-08-05 19:56 ` Deucher, Alexander
0 siblings, 1 reply; 9+ messages in thread
From: Lazar, Lijo @ 2025-07-09 9:01 UTC (permalink / raw)
To: Christian König, Deucher, Alexander, McRae, Geoffrey,
Kuehling, Felix
Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
On 7/9/2025 2:09 PM, Christian König wrote:
> On 09.07.25 06:56, Lazar, Lijo wrote:
>> On 7/8/2025 8:40 PM, Deucher, Alexander wrote:
>>> [Public]
>>>
>>>
>>> I seem to recall -ENOTSUPP being frowned upon for IOCTLs.
>>>
>>>
>> Going by documentation -
>> https://dri.freedesktop.org/docs/drm/gpu/drm-uapi.html
>>
>
> Good point.
>
>> EOPNOTSUPP:
>> Feature (like PRIME, modesetting, GEM) is not supported by the driver.
>>
>> "Note that ENOTTY has the slightly unintuitive meaning of “this IOCTL
>> does not exist”, and is used exactly as such in DRM"
>>
>> Since KFD ioctls could eventually be supported in drm node,
>
> That's certainly not going to happen.
>
> We are currently in the process of deprecating the KFD IOCTLs and either using the existing DRM render node ones or coming up with new IOCTL/additions to the existing ones.
>
I really meant to convey this to justify using drm documentation as the
background for picking error codes for KFD ones also. At least for any
new error code returns, definitions will remain consistent across both.
Thanks,
Lijo
> Background is that some of the KFD IOCTLs have design flaws which are unfix able.
>
> Regards,
> Christian.
>
>> it seems
>> better to go with ENOTTY.
>>
>> Thanks,
>> Lijo
>>
>>>
>>> Alex
>>>
>>>
>>>
>>> *From:*McRae, Geoffrey <Geoffrey.McRae@amd.com>
>>> *Sent:* Tuesday, July 8, 2025 5:13 AM
>>> *To:* Koenig, Christian <Christian.Koenig@amd.com>; Kuehling, Felix
>>> <Felix.Kuehling@amd.com>
>>> *Cc:* Deucher, Alexander <Alexander.Deucher@amd.com>; amd-
>>> gfx@lists.freedesktop.org; dri-devel@lists.freedesktop.org
>>> *Subject:* Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported
>>> IOCTLs
>>>
>>>
>>>
>>> [AMD Official Use Only - AMD Internal Distribution Only]
>>>
>>>
>>>
>>> I am happy to use EOPNOTSUPP but I must point out that this is not the
>>> pattern used across the kernel, the standard is to use ENOTTY, which is
>>> also the default that fs/ioctl.c returns when no handler is present.
>>> Userspace tooling such as strace and glibc specifically expectect ENOTTY
>>> to indicate invalid or unsupported IOCTL.
>>>
>>> ------------------------------------------------------------------------
>>>
>>> *From:*Koenig, Christian <Christian.Koenig@amd.com
>>> <mailto:Christian.Koenig@amd.com>>
>>> *Sent:* Tuesday, 8 July 2025 5:01 PM
>>> *To:* McRae, Geoffrey <Geoffrey.McRae@amd.com
>>> <mailto:Geoffrey.McRae@amd.com>>; Kuehling, Felix
>>> <Felix.Kuehling@amd.com <mailto:Felix.Kuehling@amd.com>>
>>> *Cc:* Deucher, Alexander <Alexander.Deucher@amd.com
>>> <mailto:Alexander.Deucher@amd.com>>; amd-gfx@lists.freedesktop.org
>>> <mailto:amd-gfx@lists.freedesktop.org> <amd-gfx@lists.freedesktop.org
>>> <mailto:amd-gfx@lists.freedesktop.org>>; dri-devel@lists.freedesktop.org
>>> <mailto:dri-devel@lists.freedesktop.org> <dri-
>>> devel@lists.freedesktop.org <mailto:dri-devel@lists.freedesktop.org>>
>>> *Subject:* Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported
>>> IOCTLs
>>>
>>>
>>>
>>> On 08.07.25 06:22, Geoffrey McRae wrote:
>>>> Some kfd ioctls may not be available depending on the kernel version the
>>>> user is running, as such we need to report -ENOTTY so userland can
>>>> determine the cause of the ioctl failure.
>>>
>>> In general sounds like a good idea, but ENOTTY is potentially a bit
>>> misleading.
>>>
>>> We usually use EOPNOTSUPP for that even if its not the original meaning
>>> of that error code.
>>>
>>> Regards,
>>> Christian.
>>>
>>>>
>>>> Signed-off-by: Geoffrey McRae <geoffrey.mcrae@amd.com <mailto:geoffrey.mcrae@amd.com>>
>>>> ---
>>>> drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 8 ++++++--
>>>> 1 file changed, 6 insertions(+), 2 deletions(-)
>>>>
>>>> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
>>>> index a2149afa5803..36396b7318e7 100644
>>>> --- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
>>>> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
>>>> @@ -3253,8 +3253,10 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
>>>> int retcode = -EINVAL;
>>>> bool ptrace_attached = false;
>>>>
>>>> - if (nr >= AMDKFD_CORE_IOCTL_COUNT)
>>>> + if (nr >= AMDKFD_CORE_IOCTL_COUNT) {
>>>> + retcode = -ENOTTY;
>>>> goto err_i1;
>>>> + }
>>>>
>>>> if ((nr >= AMDKFD_COMMAND_START) && (nr < AMDKFD_COMMAND_END)) {
>>>> u32 amdkfd_size;
>>>> @@ -3267,8 +3269,10 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
>>>> asize = amdkfd_size;
>>>>
>>>> cmd = ioctl->cmd;
>>>> - } else
>>>> + } else {
>>>> + retcode = -ENOTTY;
>>>> goto err_i1;
>>>> + }
>>>>
>>>> dev_dbg(kfd_device, "ioctl cmd 0x%x (#0x%x), arg 0x%lx\n", cmd, nr, arg);
>>>>
>>>
>>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported IOCTLs
2025-07-09 9:01 ` Lazar, Lijo
@ 2025-08-05 19:56 ` Deucher, Alexander
2025-08-05 20:41 ` Felix Kuehling
0 siblings, 1 reply; 9+ messages in thread
From: Deucher, Alexander @ 2025-08-05 19:56 UTC (permalink / raw)
To: Lazar, Lijo, Koenig, Christian, McRae, Geoffrey, Kuehling, Felix
Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
[Public]
> -----Original Message-----
> From: Lazar, Lijo <Lijo.Lazar@amd.com>
> Sent: Wednesday, July 9, 2025 5:02 AM
> To: Koenig, Christian <Christian.Koenig@amd.com>; Deucher, Alexander
> <Alexander.Deucher@amd.com>; McRae, Geoffrey
> <Geoffrey.McRae@amd.com>; Kuehling, Felix <Felix.Kuehling@amd.com>
> Cc: amd-gfx@lists.freedesktop.org; dri-devel@lists.freedesktop.org
> Subject: Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported
> IOCTLs
>
>
>
> On 7/9/2025 2:09 PM, Christian König wrote:
> > On 09.07.25 06:56, Lazar, Lijo wrote:
> >> On 7/8/2025 8:40 PM, Deucher, Alexander wrote:
> >>> [Public]
> >>>
> >>>
> >>> I seem to recall -ENOTSUPP being frowned upon for IOCTLs.
> >>>
> >>>
> >> Going by documentation -
> >> https://dri.freedesktop.org/docs/drm/gpu/drm-uapi.html
> >>
> >
> > Good point.
> >
> >> EOPNOTSUPP:
> >> Feature (like PRIME, modesetting, GEM) is not supported by the driver.
> >>
> >> "Note that ENOTTY has the slightly unintuitive meaning of “this IOCTL
> >> does not exist”, and is used exactly as such in DRM"
> >>
> >> Since KFD ioctls could eventually be supported in drm node,
> >
> > That's certainly not going to happen.
> >
> > We are currently in the process of deprecating the KFD IOCTLs and either using
> the existing DRM render node ones or coming up with new IOCTL/additions to the
> existing ones.
> >
>
> I really meant to convey this to justify using drm documentation as the background
> for picking error codes for KFD ones also. At least for any new error code returns,
> definitions will remain consistent across both.
In this case, I think -ENOTTY makes sense per the documentation. Patch is:
Acked-by: Alex Deucher <alexander.deucher@amd.com>
>
> Thanks,
> Lijo
>
> > Background is that some of the KFD IOCTLs have design flaws which are unfix
> able.
> >
> > Regards,
> > Christian.
> >
> >> it seems
> >> better to go with ENOTTY.
> >>
> >> Thanks,
> >> Lijo
> >>
> >>>
> >>> Alex
> >>>
> >>>
> >>>
> >>> *From:*McRae, Geoffrey <Geoffrey.McRae@amd.com>
> >>> *Sent:* Tuesday, July 8, 2025 5:13 AM
> >>> *To:* Koenig, Christian <Christian.Koenig@amd.com>; Kuehling, Felix
> >>> <Felix.Kuehling@amd.com>
> >>> *Cc:* Deucher, Alexander <Alexander.Deucher@amd.com>; amd-
> >>> gfx@lists.freedesktop.org; dri-devel@lists.freedesktop.org
> >>> *Subject:* Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for
> >>> unsupported IOCTLs
> >>>
> >>>
> >>>
> >>> [AMD Official Use Only - AMD Internal Distribution Only]
> >>>
> >>>
> >>>
> >>> I am happy to use EOPNOTSUPP but I must point out that this is not
> >>> the pattern used across the kernel, the standard is to use ENOTTY,
> >>> which is also the default that fs/ioctl.c returns when no handler is present.
> >>> Userspace tooling such as strace and glibc specifically expectect
> >>> ENOTTY to indicate invalid or unsupported IOCTL.
> >>>
> >>> --------------------------------------------------------------------
> >>> ----
> >>>
> >>> *From:*Koenig, Christian <Christian.Koenig@amd.com
> >>> <mailto:Christian.Koenig@amd.com>>
> >>> *Sent:* Tuesday, 8 July 2025 5:01 PM
> >>> *To:* McRae, Geoffrey <Geoffrey.McRae@amd.com
> >>> <mailto:Geoffrey.McRae@amd.com>>; Kuehling, Felix
> >>> <Felix.Kuehling@amd.com <mailto:Felix.Kuehling@amd.com>>
> >>> *Cc:* Deucher, Alexander <Alexander.Deucher@amd.com
> >>> <mailto:Alexander.Deucher@amd.com>>; amd-gfx@lists.freedesktop.org
> >>> <mailto:amd-gfx@lists.freedesktop.org>
> >>> <amd-gfx@lists.freedesktop.org
> >>> <mailto:amd-gfx@lists.freedesktop.org>>;
> >>> dri-devel@lists.freedesktop.org
> >>> <mailto:dri-devel@lists.freedesktop.org> <dri-
> >>> devel@lists.freedesktop.org
> >>> <mailto:dri-devel@lists.freedesktop.org>>
> >>> *Subject:* Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for
> >>> unsupported IOCTLs
> >>>
> >>>
> >>>
> >>> On 08.07.25 06:22, Geoffrey McRae wrote:
> >>>> Some kfd ioctls may not be available depending on the kernel
> >>>> version the user is running, as such we need to report -ENOTTY so
> >>>> userland can determine the cause of the ioctl failure.
> >>>
> >>> In general sounds like a good idea, but ENOTTY is potentially a bit
> >>> misleading.
> >>>
> >>> We usually use EOPNOTSUPP for that even if its not the original
> >>> meaning of that error code.
> >>>
> >>> Regards,
> >>> Christian.
> >>>
> >>>>
> >>>> Signed-off-by: Geoffrey McRae <geoffrey.mcrae@amd.com
> >>>> <mailto:geoffrey.mcrae@amd.com>>
> >>>> ---
> >>>> drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 8 ++++++--
> >>>> 1 file changed, 6 insertions(+), 2 deletions(-)
> >>>>
> >>>> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> >>>> b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> >>>> index a2149afa5803..36396b7318e7 100644
> >>>> --- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> >>>> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> >>>> @@ -3253,8 +3253,10 @@ static long kfd_ioctl(struct file *filep,
> >>>> unsigned int cmd, unsigned long arg)
> >>>> int retcode = -EINVAL;
> >>>> bool ptrace_attached = false;
> >>>>
> >>>> - if (nr >= AMDKFD_CORE_IOCTL_COUNT)
> >>>> + if (nr >= AMDKFD_CORE_IOCTL_COUNT) {
> >>>> + retcode = -ENOTTY;
> >>>> goto err_i1;
> >>>> + }
> >>>>
> >>>> if ((nr >= AMDKFD_COMMAND_START) && (nr <
> >>>> AMDKFD_COMMAND_END)) {
> >>>> u32 amdkfd_size;
> >>>> @@ -3267,8 +3269,10 @@ static long kfd_ioctl(struct file *filep,
> >>>> unsigned int cmd, unsigned long arg)
> >>>> asize = amdkfd_size;
> >>>>
> >>>> cmd = ioctl->cmd;
> >>>> - } else
> >>>> + } else {
> >>>> + retcode = -ENOTTY;
> >>>> goto err_i1;
> >>>> + }
> >>>>
> >>>> dev_dbg(kfd_device, "ioctl cmd 0x%x (#0x%x), arg 0x%lx\n",
> >>>> cmd, nr, arg);
> >>>>
> >>>
> >>
> >
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported IOCTLs
2025-08-05 19:56 ` Deucher, Alexander
@ 2025-08-05 20:41 ` Felix Kuehling
0 siblings, 0 replies; 9+ messages in thread
From: Felix Kuehling @ 2025-08-05 20:41 UTC (permalink / raw)
To: Deucher, Alexander, Lazar, Lijo, Koenig, Christian,
McRae, Geoffrey
Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
On 2025-08-05 15:56, Deucher, Alexander wrote:
> [Public]
>
>> -----Original Message-----
>> From: Lazar, Lijo <Lijo.Lazar@amd.com>
>> Sent: Wednesday, July 9, 2025 5:02 AM
>> To: Koenig, Christian <Christian.Koenig@amd.com>; Deucher, Alexander
>> <Alexander.Deucher@amd.com>; McRae, Geoffrey
>> <Geoffrey.McRae@amd.com>; Kuehling, Felix <Felix.Kuehling@amd.com>
>> Cc: amd-gfx@lists.freedesktop.org; dri-devel@lists.freedesktop.org
>> Subject: Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported
>> IOCTLs
>>
>>
>>
>> On 7/9/2025 2:09 PM, Christian König wrote:
>>> On 09.07.25 06:56, Lazar, Lijo wrote:
>>>> On 7/8/2025 8:40 PM, Deucher, Alexander wrote:
>>>>> [Public]
>>>>>
>>>>>
>>>>> I seem to recall -ENOTSUPP being frowned upon for IOCTLs.
>>>>>
>>>>>
>>>> Going by documentation -
>>>> https://dri.freedesktop.org/docs/drm/gpu/drm-uapi.html
>>>>
>>> Good point.
>>>
>>>> EOPNOTSUPP:
>>>> Feature (like PRIME, modesetting, GEM) is not supported by the driver.
>>>>
>>>> "Note that ENOTTY has the slightly unintuitive meaning of “this IOCTL
>>>> does not exist”, and is used exactly as such in DRM"
>>>>
>>>> Since KFD ioctls could eventually be supported in drm node,
>>> That's certainly not going to happen.
>>>
>>> We are currently in the process of deprecating the KFD IOCTLs and either using
>> the existing DRM render node ones or coming up with new IOCTL/additions to the
>> existing ones.
>> I really meant to convey this to justify using drm documentation as the background
>> for picking error codes for KFD ones also. At least for any new error code returns,
>> definitions will remain consistent across both.
> In this case, I think -ENOTTY makes sense per the documentation. Patch is:
> Acked-by: Alex Deucher <alexander.deucher@amd.com>
I agree.
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
>
>
>> Thanks,
>> Lijo
>>
>>> Background is that some of the KFD IOCTLs have design flaws which are unfix
>> able.
>>> Regards,
>>> Christian.
>>>
>>>> it seems
>>>> better to go with ENOTTY.
>>>>
>>>> Thanks,
>>>> Lijo
>>>>
>>>>> Alex
>>>>>
>>>>>
>>>>>
>>>>> *From:*McRae, Geoffrey <Geoffrey.McRae@amd.com>
>>>>> *Sent:* Tuesday, July 8, 2025 5:13 AM
>>>>> *To:* Koenig, Christian <Christian.Koenig@amd.com>; Kuehling, Felix
>>>>> <Felix.Kuehling@amd.com>
>>>>> *Cc:* Deucher, Alexander <Alexander.Deucher@amd.com>; amd-
>>>>> gfx@lists.freedesktop.org; dri-devel@lists.freedesktop.org
>>>>> *Subject:* Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for
>>>>> unsupported IOCTLs
>>>>>
>>>>>
>>>>>
>>>>> [AMD Official Use Only - AMD Internal Distribution Only]
>>>>>
>>>>>
>>>>>
>>>>> I am happy to use EOPNOTSUPP but I must point out that this is not
>>>>> the pattern used across the kernel, the standard is to use ENOTTY,
>>>>> which is also the default that fs/ioctl.c returns when no handler is present.
>>>>> Userspace tooling such as strace and glibc specifically expectect
>>>>> ENOTTY to indicate invalid or unsupported IOCTL.
>>>>>
>>>>> --------------------------------------------------------------------
>>>>> ----
>>>>>
>>>>> *From:*Koenig, Christian <Christian.Koenig@amd.com
>>>>> <mailto:Christian.Koenig@amd.com>>
>>>>> *Sent:* Tuesday, 8 July 2025 5:01 PM
>>>>> *To:* McRae, Geoffrey <Geoffrey.McRae@amd.com
>>>>> <mailto:Geoffrey.McRae@amd.com>>; Kuehling, Felix
>>>>> <Felix.Kuehling@amd.com <mailto:Felix.Kuehling@amd.com>>
>>>>> *Cc:* Deucher, Alexander <Alexander.Deucher@amd.com
>>>>> <mailto:Alexander.Deucher@amd.com>>; amd-gfx@lists.freedesktop.org
>>>>> <mailto:amd-gfx@lists.freedesktop.org>
>>>>> <amd-gfx@lists.freedesktop.org
>>>>> <mailto:amd-gfx@lists.freedesktop.org>>;
>>>>> dri-devel@lists.freedesktop.org
>>>>> <mailto:dri-devel@lists.freedesktop.org> <dri-
>>>>> devel@lists.freedesktop.org
>>>>> <mailto:dri-devel@lists.freedesktop.org>>
>>>>> *Subject:* Re: [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for
>>>>> unsupported IOCTLs
>>>>>
>>>>>
>>>>>
>>>>> On 08.07.25 06:22, Geoffrey McRae wrote:
>>>>>> Some kfd ioctls may not be available depending on the kernel
>>>>>> version the user is running, as such we need to report -ENOTTY so
>>>>>> userland can determine the cause of the ioctl failure.
>>>>> In general sounds like a good idea, but ENOTTY is potentially a bit
>>>>> misleading.
>>>>>
>>>>> We usually use EOPNOTSUPP for that even if its not the original
>>>>> meaning of that error code.
>>>>>
>>>>> Regards,
>>>>> Christian.
>>>>>
>>>>>> Signed-off-by: Geoffrey McRae <geoffrey.mcrae@amd.com
>>>>>> <mailto:geoffrey.mcrae@amd.com>>
>>>>>> ---
>>>>>> drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 8 ++++++--
>>>>>> 1 file changed, 6 insertions(+), 2 deletions(-)
>>>>>>
>>>>>> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
>>>>>> b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
>>>>>> index a2149afa5803..36396b7318e7 100644
>>>>>> --- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
>>>>>> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
>>>>>> @@ -3253,8 +3253,10 @@ static long kfd_ioctl(struct file *filep,
>>>>>> unsigned int cmd, unsigned long arg)
>>>>>> int retcode = -EINVAL;
>>>>>> bool ptrace_attached = false;
>>>>>>
>>>>>> - if (nr >= AMDKFD_CORE_IOCTL_COUNT)
>>>>>> + if (nr >= AMDKFD_CORE_IOCTL_COUNT) {
>>>>>> + retcode = -ENOTTY;
>>>>>> goto err_i1;
>>>>>> + }
>>>>>>
>>>>>> if ((nr >= AMDKFD_COMMAND_START) && (nr <
>>>>>> AMDKFD_COMMAND_END)) {
>>>>>> u32 amdkfd_size;
>>>>>> @@ -3267,8 +3269,10 @@ static long kfd_ioctl(struct file *filep,
>>>>>> unsigned int cmd, unsigned long arg)
>>>>>> asize = amdkfd_size;
>>>>>>
>>>>>> cmd = ioctl->cmd;
>>>>>> - } else
>>>>>> + } else {
>>>>>> + retcode = -ENOTTY;
>>>>>> goto err_i1;
>>>>>> + }
>>>>>>
>>>>>> dev_dbg(kfd_device, "ioctl cmd 0x%x (#0x%x), arg 0x%lx\n",
>>>>>> cmd, nr, arg);
>>>>>>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2025-08-05 20:41 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-08 4:22 [PATCH v2 1/1] drm/amdkfd: return -ENOTTY for unsupported IOCTLs Geoffrey McRae
2025-07-08 7:01 ` Christian König
2025-07-08 9:12 ` McRae, Geoffrey
2025-07-08 15:10 ` Deucher, Alexander
2025-07-09 4:56 ` Lazar, Lijo
2025-07-09 8:39 ` Christian König
2025-07-09 9:01 ` Lazar, Lijo
2025-08-05 19:56 ` Deucher, Alexander
2025-08-05 20:41 ` Felix Kuehling
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).