summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYong Zhao <yong.zhao@amd.com>2016-08-24 12:46:54 -0400
committerYong Zhao <yong.zhao@amd.com>2016-08-24 14:37:20 -0400
commit0e38828557dc7dbeadd6cc7fe2a020649ada4832 (patch)
tree1f55def2427cb108baf4fa78cbd559d35b56f0c9 /drivers
parent30477597e9e676ef6351b60d5d28b17834bf0ec4 (diff)
drm/amdkfd: Add kgd kfd interface get_tile_config()
Change-Id: Id6f21b8e0c5fb04ee9178c6f0d6fef555abab4d4 Signed-off-by: Yong Zhao <yong.zhao@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/include/kgd_kfd_interface.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/include/kgd_kfd_interface.h b/drivers/gpu/drm/amd/include/kgd_kfd_interface.h
index 1b2b0920082d..3d9dd0967842 100644
--- a/drivers/gpu/drm/amd/include/kgd_kfd_interface.h
+++ b/drivers/gpu/drm/amd/include/kgd_kfd_interface.h
@@ -122,6 +122,17 @@ struct kgd2kfd_shared_resources {
uint64_t gpuvm_size;
};
+struct tile_config {
+ uint32_t *tile_config_ptr;
+ uint32_t *macro_tile_config_ptr;
+ uint32_t num_tile_configs;
+ uint32_t num_macro_tile_configs;
+
+ uint32_t gb_addr_config;
+ uint32_t num_banks;
+ uint32_t num_ranks;
+};
+
/*
* Allocation flag domains currently only VRAM and GTT domain supported
*/
@@ -341,6 +352,8 @@ struct kfd2kgd_calls {
int (*submit_ib)(struct kgd_dev *kgd, enum kgd_engine_type engine,
uint32_t vmid, uint64_t gpu_addr,
uint32_t *ib_cmd, uint32_t ib_len);
+ int (*get_tile_config)(struct kgd_dev *kgd,
+ struct tile_config *config);
};
/**