else if (nice < 0)+ priority = AMDGPU_CTX_PRIORITY_HIGH;+ }gpu_context = calloc(1, sizeof(struct amdgpu_context));if (!gpu_context)return -ENOMEM;----
主 题:Re: 回复: Re: 回复: Re: [PATCH libdrm 1/2] amdgpu: fix parameter of amdgpu_cs_ctx_create2 日 期:2024-01-09 17:36 发件人:maraeo 收件人:Christian König;
int p = -1.
u
IORITY=-512.
>
> As far as I can see that is how it is supposed to be used.
>
> Regards,
> Christian.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *主 题:*Re: 回复: Re: [PATCH libdrm 1/2] amdgpu: fix parameter of
> amdgpu_cs_ctx_create2
> *日 期:*2024-0
kernel function amdgpu_ctx_priority_permit, if
priority is greater
than 0, and this process has not CAP_SYS_NICE capibility or
DRM_MASTER permission,
this process will be exited.
Correct, that's intentional.
Regards,
Christian.
*主 题:*Re: [PATCH libdrm 1/2] amdgpu: fix parameter of
amdgp
suggestion?
主 题:Re: 回复: Re: [PATCH libdrm 1/2] amdgpu: fix parameter of amdgpu_cs_ctx_create2 日 期:2024-01-09 15:15 发件人:Christian König 收件人:李真能;Marek Olsak;Pierre-Eric Pelloux-Prayer;dri-devel;amd-gfx;
Am 09.01.24 um 02:50 schrieb 李真能:
When the priority value is passed to the kernel, the
or
DRM_MASTER permission,
this process will be exited.
Correct, that's intentional.
Regards,
Christian.
*主 题:*Re: [PATCH libdrm 1/2] amdgpu: fix parameter of
amdgpu_cs_ctx_create2
*日 期:*2024-01-09 00:28
*发件人:*Christian König
*收件人:*李真能;Marek Olsak;Pierre-Eric Pelloux-Prayer;dr
ll be exited.
主 题:Re: [PATCH libdrm 1/2] amdgpu: fix parameter of amdgpu_cs_ctx_create2 日 期:2024-01-09 00:28 发件人:Christian König 收件人:李真能;Marek Olsak;Pierre-Eric Pelloux-Prayer;dri-devel;amd-gfx;
Am 08.01.24 um 10:40 schrieb Zhenneng Li:> In order to pass the correct priority paramete
Am 08.01.24 um 10:40 schrieb Zhenneng Li:
In order to pass the correct priority parameter to the kernel,
we must change priority type from uint32_t to int32_t.
Hui what? Why should it matter if the parameter is signed or not?
That doesn't seem to make sense.
Regards,
Christian.
Signed-off-
In order to pass the correct priority parameter to the kernel,
we must change priority type from uint32_t to int32_t.
Signed-off-by: Zhenneng Li
---
amdgpu/amdgpu.h| 2 +-
amdgpu/amdgpu_cs.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/amdgpu/amdgpu.h b/amdgpu/amdgp