projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f4f46f
)
drm/radeon: Return dword offsets of address watch registers
author
Felix Kuehling
<Felix.Kuehling@amd.com>
Wed, 16 Aug 2017 03:00:00 +0000
(23:00 -0400)
committer
Oded Gabbay
<oded.gabbay@gmail.com>
Wed, 16 Aug 2017 03:00:00 +0000
(23:00 -0400)
Dword offsets are what KFD really needs and what amdgpu already returns.
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/radeon/radeon_kfd.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/radeon/radeon_kfd.c
b/drivers/gpu/drm/radeon/radeon_kfd.c
index
a2ab6dc
..
cab6c03
100644
(file)
--- a/
drivers/gpu/drm/radeon/radeon_kfd.c
+++ b/
drivers/gpu/drm/radeon/radeon_kfd.c
@@
-785,7
+785,8
@@
static uint32_t kgd_address_watch_get_offset(struct kgd_dev *kgd,
unsigned int watch_point_id,
unsigned int reg_offset)
{
- return watchRegs[watch_point_id * ADDRESS_WATCH_REG_MAX + reg_offset];
+ return watchRegs[watch_point_id * ADDRESS_WATCH_REG_MAX + reg_offset]
+ / 4;
}
static bool get_atc_vmid_pasid_mapping_valid(struct kgd_dev *kgd, uint8_t vmid)