]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: New debugfs interface for MMIO registers (v5)
authorTom St Denis <tom.stdenis@amd.com>
Fri, 20 Aug 2021 18:03:12 +0000 (14:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Sep 2021 20:55:11 +0000 (16:55 -0400)
commit78ffa8d34007d4b9ad37f4fd2058c8b8edd6d255
tree02f78409f50ec7b2bd9e32f3974a4184426f55d6
parentea8e943ae30eb76fab039e969ed2533ffea32f16
drm/amd/amdgpu: New debugfs interface for MMIO registers (v5)

This new debugfs interface uses an IOCTL interface in order to pass
along state information like SRBM and GRBM bank switching.  This
new interface also allows a full 32-bit MMIO address range which
the previous didn't.  With this new design we have room to grow
the flexibility of the file as need be.

(v2): Move read/write to .read/.write, fix style, add comment
      for IOCTL data structure

(v3): C style comments

(v4): use u32 in struct and remove offset variable

(v5): Drop flag clearing in op function, use 0xFFFFFFFF for broadcast
      instead of 0x3FF, use mutex for op/ioctl.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.h
drivers/gpu/drm/amd/amdgpu/amdgpu_umr.h [new file with mode: 0644]