which makes an NULL dereference in case fpriv is NULL.
Reported-by: kernel test robot
Closes:
https://lore.kernel.org/oe-kbuild-all/202507090525.9rdwghz3-...@intel.com/
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-
Fix undefined reference to amdgpu_mqd_info_fops during
debugfs_create_file if DEBUG_FS=n
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
b/drivers/gpu/drm
the client and create a symlink back
to the parent drm device from each client.
Signed-off-by: Sunil Khatri
Reviewed-by: Christian König
---
drivers/gpu/drm/drm_debugfs.c | 81 +++
drivers/gpu/drm/drm_file.c| 11 +
include/drm/drm_debugfs.h | 11
Add debugfs support for mqd for each queue of the client.
The address exposed to debugfs could be used to dump
the mqd.
Signed-off-by: Sunil Khatri
Reviewed-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 52 +++
drivers/gpu/drm/amd/amdgpu
_root, hence to handle drm bridge
debugfs add a new function which call drm_bridge_debugfs_params where
drm_debugfs_root is accessible.
Suggested-by: Christian König
Signed-off-by: Sunil Khatri
---
drivers/accel/drm_accel.c | 16 ---
drivers/gpu/drm/drm_debugfs.c
Add a debugfs file under the client directory which shares
the root page table base address of the VM.
This address could be used to dump the pagetable for debug
memory issues.
Signed-off-by: Sunil Khatri
Reviewed-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 52
the amdgpu_vm_init
Sunil Khatri (4):
drm: move drm based debugfs funcs to drm_debugfs.c
drm: add debugfs support on per client-id basis
drm/amdgpu: add debugfs support for VM pagetable per client
drm/amdgpu: add support of debugfs for mqd information
drivers/accel/drm_accel.c
Add a debugfs file under the client directory which shares
the root page table base address of the VM.
This address could be used to dump the pagetable for debug
memory issues.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 52 +
drivers/gpu
Add debugfs support for mqd for each queue of the client.
The address exposed to debugfs could be used to dump
the mqd.
Signed-off-by: Sunil Khatri
Reviewed-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 52 +++
drivers/gpu/drm/amd/amdgpu
the client and create a symlink back
to the parent drm device from each client.
Signed-off-by: Sunil Khatri
Reviewed-by: Christian König
---
drivers/gpu/drm/drm_debugfs.c | 81 +++
drivers/gpu/drm/drm_file.c| 9
include/drm/drm_debugfs.h | 11
moving the debugfs related information to
drm_debugfs.c
Sunil Khatri (4):
drm: move drm based debugfs funcs to drm_debugfs.c
drm: add debugfs support on per client-id basis
drm/amdgpu: add debugfs support for VM pagetable per client
drm/amdgpu: add support of debugfs for mqd information
igned-off-by: Sunil Khatri
---
drivers/accel/drm_accel.c | 16
drivers/gpu/drm/drm_debugfs.c | 32 ++--
drivers/gpu/drm/drm_drv.c | 14 --
drivers/gpu/drm/drm_internal.h | 6 ++
include/drm/drm_accel.h| 5 -
includ
igned-off-by: Sunil Khatri
---
drivers/accel/drm_accel.c | 16
drivers/gpu/drm/drm_debugfs.c | 32 ++--
drivers/gpu/drm/drm_drv.c | 14 --
drivers/gpu/drm/drm_internal.h | 6 ++
include/drm/drm_accel.h| 5 -
includ
the client and create a symlink back
to the parent drm device from each client.
Signed-off-by: Sunil Khatri
Reviewed-by: Christian König
---
drivers/gpu/drm/drm_debugfs.c | 81 +++
drivers/gpu/drm/drm_file.c| 9
include/drm/drm_debugfs.h | 11
Add a debugfs file under the client directory which shares
the root page table base address of the VM.
This address could be used to dump the pagetable for debug
memory issues.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 52 +
drivers/gpu
Add debugfs support for mqd for each queue of the client.
The address exposed to debugfs could be used to dump
the mqd.
Signed-off-by: Sunil Khatri
Reviewed-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 52 +++
drivers/gpu/drm/amd/amdgpu
Add debugfs support for mqd for each queue of the client.
The address exposed to debugfs could be used to dump
the mqd.
Signed-off-by: Sunil Khatri
Reviewed-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 52 +++
drivers/gpu/drm/amd/amdgpu
Move the debugfs accel driver code to the drm layer
and it is an intermediate step to move all debugfs
related handling into drm_debugfs.c
Signed-off-by: Sunil Khatri
Reviewed-by: Christian König
---
drivers/accel/drm_accel.c | 16
drivers/gpu/drm/drm_drv.c | 6
: Christian König
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/drm_debugfs.c | 28 ++--
drivers/gpu/drm/drm_drv.c | 18 --
drivers/gpu/drm/drm_internal.h | 6 ++
include/drm/drm_drv.h | 14 --
4 files changed, 40 insertions
Add a debugfs file under the client directory which shares
the root page table base address of the VM.
This address could be used to dump the pagetable for debug
memory issues.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 52 +
drivers/gpu
the client and create a symlink back
to the parent drm device from each client.
Signed-off-by: Sunil Khatri
Reviewed-by: Christian König
---
drivers/gpu/drm/drm_debugfs.c | 81 +++
drivers/gpu/drm/drm_file.c| 9
include/drm/drm_debugfs.h | 11
Add a debugfs file under the client directory which shares
the root page table base address of the VM.
This address could be used to dump the pagetable for debug
memory issues.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +-
drivers/gpu/drm/amd/amdgpu
: Christian König
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/drm_debugfs.c | 33 +++--
drivers/gpu/drm/drm_drv.c | 19 +--
drivers/gpu/drm/drm_internal.h | 6 ++
include/drm/drm_drv.h | 19 +--
4 files changed, 51
the client and create a symlink back
to the parent drm device from each client.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/drm_debugfs.c | 80 +++
drivers/gpu/drm/drm_file.c| 9
include/drm/drm_debugfs.h | 11 +
include/drm/drm_file.h
Add debugfs support for mqd for each queue of the client.
The address exposed to debugfs could be used to dump
the mqd.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 52 +++
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h | 1 +
2 files changed, 53
Move the debugfs accel driver code to the drm layer
and it is an intermediate step to move all debugfs
related handling into drm_debugfs.c
Signed-off-by: Sunil Khatri
---
drivers/accel/drm_accel.c | 16
drivers/gpu/drm/drm_drv.c | 6 +-
include/drm/drm_accel.h | 5
base address of the VM under
the client-id node along with the process information
in debugfs.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 58 -
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 4 +-
3
move the debugfs accel driver code to the drm layer.
This is first inline change to move the debugfs
related changes for drm to drm_debugfs.c
Signed-off-by: Sunil Khatri
---
drivers/accel/drm_accel.c | 16
drivers/gpu/drm/drm_drv.c | 6 +-
include/drm/drm_accel.h | 5
add mqd support based on queue of for each client-id
so the gpu address could be used to dump the mqd.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 52 +++
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h | 1 +
2 files changed, 53 insertions
.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/drm_debugfs.c | 26 ++
drivers/gpu/drm/drm_file.c| 6 ++
include/drm/drm_debugfs.h | 11 +++
include/drm/drm_file.h| 7 +++
4 files changed, 50 insertions(+)
diff --git a/drivers/gpu/drm
: Christian König
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/drm_debugfs.c | 37 --
drivers/gpu/drm/drm_drv.c | 19 ++---
drivers/gpu/drm/drm_internal.h | 6 ++
include/drm/drm_drv.h | 24 --
4 files changed
base address of the VM under
the client-id node along with the process information
in debugfs.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 58 -
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 4 +-
3
add mqd support based on queue of for each client-id
so the gpu address could be used to dump the mqd.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 50 +++
1 file changed, 50 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/drm_debugfs.c | 32
drivers/gpu/drm/drm_file.c| 10 ++
include/drm/drm_debugfs.h | 12
include/drm/drm_file.h| 7 +++
4 files changed, 61 insertions(+)
diff --git a
client in the root directory
which is dri.
Suggested-by: Christian König
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/drm_debugfs.c | 22 ++
drivers/gpu/drm/drm_drv.c | 11 ---
drivers/gpu/drm/drm_internal.h | 6 ++
include/drm/drm_drv.h | 10
.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/drm_debugfs.c | 37 +++
drivers/gpu/drm/drm_file.c| 10 ++
include/drm/drm_debugfs.h | 12
include/drm/drm_device.h | 4
include/drm/drm_file.h| 7 +++
5 files
add mqd support based on queue of for each client-id
so the gpu address could be used to dump the mqd.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 50 +++
1 file changed, 50 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
base address of the VM under
the client-id node along with the process information
in debugfs.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 58 -
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 4 +-
3
ing
support is added based on per client-id as that is a unique no across
devices and unlike PID it is more reliable.
Sunil Khatri (4):
drm: move debugfs functionality from drm_drv.c to drm_debugfs.c
drm: add debugfs support on per client-id basis
drm/amdgpu: add debugfs support for VM pageta
client in the root directory
which is dri.
Suggested-by: Christian König
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/drm_debugfs.c | 22 ++
drivers/gpu/drm/drm_drv.c | 11 ---
drivers/gpu/drm/drm_internal.h | 6 ++
include/drm/drm_drv.h | 10
-
Sunil Khatri (2):
drm/debugfs: add client-id to the debugfs entry
drm: add debugfs support on per client-id basis
drivers/gpu/drm/drm_debugfs.c | 10 ++
drivers/gpu/drm/drm_file.c| 26 ++
include/drm/drm_device.h | 4
include/drm
.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/drm_debugfs.c | 1 +
drivers/gpu/drm/drm_file.c| 26 ++
include/drm/drm_device.h | 4
include/drm/drm_file.h| 7 +++
4 files changed, 38 insertions(+)
diff --git a/drivers/gpu/drm/drm_debugfs.c
pid is not always the right choice for fd to track
the caller and hence adding drm client-id to the
print which is unique for a drm client and can be
used by driver in debugging
One of the use is to further enhance debugging for
amdgpu driver based on client-id.
Signed-off-by: Sunil Khatri
add support to add a directory for each client-id
per drm node based on drm-file.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/drm_file.c | 11 +++
include/drm/drm_file.h | 7 +++
2 files changed, 18 insertions(+)
diff --git a/drivers/gpu/drm/drm_file.c b/drivers/gpu/drm
Each drm node is associated with a unique client-id.
Adding root page table base address of the VM under
the client-id node in debugfs.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 14 +-
drivers/gpu/drm
:~# cat /sys/kernel/debug/dri/0/client-8/pt_base
81febdc000
root@amd-X570-AORUS-ELITE:~# cat /sys/kernel/debug/dri/0/client-9/pt_base
81febb2000
root@amd-X570-AORUS-ELITE:~# cat /sys/kernel/debug/dri/0/client-10/pt_base
81febaf000
Sunil Khatri (2):
drm: add debugfs support per client-id
amdgpu
Add client id the for each userq_mgr which is
created per fd to track which fd is for which client
that could be used in debugfs entry to derive
information like vm and mqd.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 1 +
drivers/gpu/drm/amd/amdgpu
.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
index d6ae9974c952..5576ed0b508f 100644
--- a/drivers/gpu/drm/amd
fix the indentation
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c:6992 gfx_v11_ip_dump
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
| Reported-by: kernel test robot
| Reported-by: Dan Carpenter
| Closes: https://lore.kernel.org/r/202505071619.7shtlpng-...@intel.com/
Signed-off-by: Sunil Khatri
fix the indentation
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c:6992 gfx_v11_ip_dump
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
| Reported-by: kernel test robot
| Reported-by: Dan Carpenter
| Closes: https://lore.kernel.org/r/202505071619.7shtlpng-...@intel.com/
Signed-off-by: Sunil Khatri
log context:seqno of the fence during timeout rather
than logging fence pointer.
Cc: Tvrtko Ursulin
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
b
log context:seqno of the fence during timeout rather
than logging fence pointer.
Cc: Tvrtko Ursulin
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
b
drm_file will be used in usermode queues code to
enable better process information in logging and hence
add drm_file part of the userq_mgr struct.
update the drm_file pointer in userq_mgr for each
amdgpu_driver_open_kms.
Signed-off-by: Sunil Khatri
Reviewed-by: Tvrtko Ursulin
---
drivers/gpu
change the DRM_ERROR to drm_file_err to add process name
and pid to the logging.
Signed-off-by: Sunil Khatri
Reviewed-by: Tvrtko Ursulin
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 52 +++
1 file changed, 29 insertions(+), 23 deletions(-)
diff --git a/drivers/gpu/drm
change the DRM_ERROR to drm_file_err to add process name
and pid to the logging.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 52 +++
1 file changed, 29 insertions(+), 23 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
[amdgpu]] *ERROR* Not suspending
userqueue, timeout waiting for comm:systemd-logind pid:1058
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 21 ---
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu
update the functions in amdgpu_userqueues.c from
DRM_DBG_DRIVER to drm_dbg_driver so multi gpu instance
can be logged in.
Signed-off-by: Sunil Khatri
Reviewed-by: Tvrtko Ursulin
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions
)
remove drm_print.h
v7: Use va_format and %pV to concatenate fmt and vargs (Jani Nikula)
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/drm_file.c | 34 ++
include/drm/drm_file.h | 3 +++
2 files changed, 37 insertions(+)
diff --git a/drivers/gpu/drm/drm_file.c
ent: Unset ... Failed to evict userqueue
Signed-off-by: Sunil Khatri
Reviewed-by: Tvrtko Ursulin
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 21 ---
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
b/drivers/gpu/drm/
)
remove drm_print.h
v7: Use va_format and %pV to concatenate fmt and vargs (Jani Nikula)
v8: Code formatting and typos (Ursulin tvrtko)
Signed-off-by: Sunil Khatri
Reviewed-by: Tvrtko Ursulin
---
drivers/gpu/drm/drm_file.c | 34 ++
include/drm/drm_file.h | 3
change the DRM_ERROR to drm_file_err to ad process name
and pid to the logging.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 52 +++
1 file changed, 29 insertions(+), 23 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
)
remove drm_print.h
v7: Use va_format and %pV to concatenate fmt and vargs (Jani Nikula)
v8: Code formatting and typos (Ursulin tvrtko)
Signed-off-by: Sunil Khatri
Reviewed-by: Tvrtko Ursulin
---
drivers/gpu/drm/drm_file.c | 34 ++
include/drm/drm_file.h | 3
update the functions in amdgpu_userqueues.c from
DRM_DBG_DRIVER to drm_dbg_driver so multi gpu instance
can be logged in.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd
drm_file will be used in usermode queues code to
enable better process information in logging and hence
add drm_file part of the userq_mgr struct.
update the drm_file pointer in userq_mgr for each
amdgpu_driver_open_kms.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
Add context and seqno of the fence in error logging
rather than printing fence ptr.
Suggested-by: Pierre-Eric Pelloux-Prayer
Suggested-by: Tvrtko Ursulin
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 6 --
1 file changed, 4 insertions(+), 2 deletions
Fix the below warning.
scheduler/sched_main.c:397: warning: Function parameter or struct member
'result' not described in 'drm_sched_job_done'
Reviewed-by: Tvrtko Ursulin
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/scheduler/sched_main.c | 1 +
1 file changed, 1 insert
Add context and seqno of the fence in error logging
rather than printing fence ptr.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
b/drivers
Fix the below warning message.
radeon/radeon_cs.c:418: warning: Excess function parameter 'backoff'
description in 'radeon_cs_parser_fini'
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/radeon/radeon_cs.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/r
-logind pid:1058
[ 42.825082] [drm:amdgpu_userqueue_suspend [amdgpu]] *ERROR* Not suspending
userqueue, timeout waiting for comm:systemd-logind pid:1058
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 14 --
1 file changed, 8 insertions(+), 6 deletions
Fix the below warning.
scheduler/sched_main.c:397: warning: Function parameter or struct member
'result' not described in 'drm_sched_job_done'
Reviewed-by: Tvrtko Ursulin
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/scheduler/sched_main.c | 1 +
1 file changed, 1 insert
fix the below warning messages:
ttm/ttm_bo.c:1098: warning: Function parameter or struct member 'hit_low' not
described in 'ttm_bo_swapout_walk'
ttm/ttm_bo.c:1098: warning: Function parameter or struct member 'evict_low' not
described in 'ttm_bo_swapout
Fix the below warning.
scheduler/sched_main.c:397: warning: Function parameter or struct member
'result' not described in 'drm_sched_job_done'
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/scheduler/sched_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drive
drm_file will be used in usermode queues code to
enable better process information in logging and hence
add drm_file part of the userq_mgr struct.
update the drm_file pointer in userq_mgr for each
amdgpu_driver_open_kms.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
Signed-off-by: Sunil Khatri
---
include/drm/drm_file.h | 37 +
1 file changed, 37 insertions(+)
diff --git a/include/drm/drm_file.h b/include/drm/drm_file.h
index 94d365b22505..856b38e996c7 100644
--- a/include/drm/drm_file.h
+++ b/include/drm/drm_file.h
@@ -446,6
update the functions in amdgpu_userqueues.c from
DRM_DBG_DRIVER to drm_dbg_driver so multi gpu instance
can be logged in.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd
update the functions in amdgpu_userqueues.c from
DRM_DBG_DRIVER to drm_dbg_driver so multi gpu instance
can be logged in.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd
-logind pid:1058
[ 42.825082] [drm:amdgpu_userqueue_suspend [amdgpu]] *ERROR* Not suspending
userqueue, timeout waiting for comm:systemd-logind pid:1058
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 14 --
1 file changed, 8 insertions(+), 6 deletions
drm_file will be used in usermode queues code to
enable better process information in logging and hence
add drm_file part of the userq_mgr struct.
update the drm_file pointer in userq_mgr for each
amdgpu_driver_open_kms.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
Add a drm helper macro which append the process information for
the drm_file over drm_err.
Signed-off-by: Sunil Khatri
---
include/drm/drm_file.h | 38 ++
1 file changed, 38 insertions(+)
diff --git a/include/drm/drm_file.h b/include/drm/drm_file.h
index
change the DRM_ERROR to drm_file_err to ad process name
and pid to the logging.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 52 +++
1 file changed, 29 insertions(+), 23 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
change the DRM_ERROR to drm_file_err to ad process name
and pid to the logging.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 52 +++
1 file changed, 29 insertions(+), 23 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
update the functions in amdgpu_userqueues.c from
DRM_DBG_DRIVER to drm_dbg_driver so multi gpu instance
can be logged in.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd
-logind pid:1058
[ 42.825082] [drm:amdgpu_userqueue_suspend [amdgpu]] *ERROR* Not suspending
userqueue, timeout waiting for comm:systemd-logind pid:1058
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 14 --
1 file changed, 8 insertions(+), 6 deletions
drm_file will be used in usermode queues code to
enable better process information in logging and hence
add drm_file part of the userq_mgr struct.
update the drm_file pointer in userq_mgr for each
amdgpu_driver_open_kms.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
Add a drm helper macro which append the process information for
the drm_file over drm_err.
Signed-off-by: Sunil Khatri
---
include/drm/drm_file.h | 41 +
1 file changed, 41 insertions(+)
diff --git a/include/drm/drm_file.h b/include/drm/drm_file.h
index
] [drm:amdgpu_userqueue_suspend [amdgpu]] *ERROR* Not suspending
userqueue, timeout waiting for comm:systemd-logind pid:1058
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 14 --
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu
drm_file will be used in usermode queues code to
enable better process information in logging and hence
add drm_file part of the userq_mgr struct.
update the drm_file pointer in userq_mgr for each
amdgpu_driver_open_kms.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
change the DRM_ERROR to drm_file_err which gives the drm device
information too which is useful in case of multiple GPU's and also
add process information.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 59 +++
1 file changed, 33 inser
Add a drm helper function which get the process information for
the drm_file and append the process information using the existing
drm_err.
Signed-off-by: Sunil Khatri
---
include/drm/drm_file.h | 40
1 file changed, 40 insertions(+)
diff --git a
change the DRM_ERROR to drm_err which gives the drm device
information too which is useful in case of multiple GPU's.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 75 ++-
1 file changed, 41 insertions(+), 34 deletions(-)
diff --git a/dr
drm_file will be used in usermode queues code to
enable better process information in logging and hence
add drm_file part of the userq_mgr struct.
update the drm_file pointer in userq_mgr for each
amdgpu_driver_open_kms.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
Add helper function which get the process information for
the drm_file and updates the user provided character buffer
with the information of process name and pid as a string.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/drm_file.c | 34 ++
include/drm
] [drm:amdgpu_userqueue_suspend [amdgpu]] *ERROR* Not suspending
userqueue, timeout waiting for comm:systemd-logind pid:1058
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 47 +++
1 file changed, 39 insertions(+), 8 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu
drm_file will be used in usermode queues code to
enable better process information in logging and hence
add drm_file part of the userq_mgr struct.
update the drm_file pointer in userq_mgr for each
amdgpu_driver_open_kms.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
] [drm:amdgpu_userqueue_suspend [amdgpu]] *ERROR* Not suspending
userqueue, timeout waiting for comm:systemd-logind pid:1058
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 45 +++
1 file changed, 37 insertions(+), 8 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu
Add helper function which get the process information for
the drm_file and updates the user provided character buffer
with the information of process name and pid as a string.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/drm_file.c | 30 ++
include/drm/drm_file.h
Add helper function which get the process information for
the drm_file and updates the user provided character buffer
with the information of process name and pid as a string.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/drm_file.c | 30 ++
include/drm/drm_file.h
Add the pid and the process name of the process
with the userq manager which could be used in
debugging and understanding error messages better.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 8
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.h | 2 ++
2
add process and pid information in the userqueue error
logging to make it more useful in resolving the error
by logs.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 18 --
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu
In mes_userq_resume calls mes_userq_map which set the
queue_active state to true if it succeed and from the resume
we dont need to explicitly set the queue state.
Signed-off-by: Sunil Khatri
---
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c | 1 -
1 file changed, 1 deletion(-)
diff --git a
1 - 100 of 534 matches
Mail list logo