drm/amdgpu: Add kgd kfd interface get_tile_config() v2
v2: * Removed amdgpu_amdkfd prefix from static functions * Documented get_tile_config in kgd_kfd_interface.h Signed-off-by: Yong Zhao <yong.zhao@amd.com> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Acked-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
This commit is contained in:
parent
6a1c951069
commit
fb31a0c92f
3 changed files with 66 additions and 0 deletions
|
|
@ -87,6 +87,17 @@ struct kgd2kfd_shared_resources {
|
|||
size_t doorbell_start_offset;
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct kfd2kgd_calls
|
||||
*
|
||||
|
|
@ -131,6 +142,8 @@ struct kgd2kfd_shared_resources {
|
|||
* @set_scratch_backing_va: Sets VA for scratch backing memory of a VMID.
|
||||
* Only used for no cp scheduling mode
|
||||
*
|
||||
* @get_tile_config: Returns GPU-specific tiling mode information
|
||||
*
|
||||
* This structure contains function pointers to services that the kgd driver
|
||||
* provides to amdkfd driver.
|
||||
*
|
||||
|
|
@ -204,6 +217,7 @@ struct kfd2kgd_calls {
|
|||
enum kgd_engine_type type);
|
||||
void (*set_scratch_backing_va)(struct kgd_dev *kgd,
|
||||
uint64_t va, uint32_t vmid);
|
||||
int (*get_tile_config)(struct kgd_dev *kgd, struct tile_config *config);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue