mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/amdkfd: Update MQD management on multi XCC setup
Update MQD management for both HIQ and user-mode compute queues on a multi XCC setup. MQDs needs to be allocated, initialized, loaded and destroyed for each XCC in the KFD node. v2: squash in fix "drm/amdkfd: Fix SDMA+HIQ HQD allocation on GFX9.4.3" Signed-off-by: Mukul Joshi <mukul.joshi@amd.com> Signed-off-by: Amber Lin <Amber.Lin@amd.com> Tested-by: Amber Lin <Amber.Lin@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
74c5b85da7
commit
2f77b9a242
@@ -119,6 +119,8 @@ struct mqd_manager {
|
||||
int (*debugfs_show_mqd)(struct seq_file *m, void *data);
|
||||
#endif
|
||||
uint32_t (*read_doorbell_id)(void *mqd);
|
||||
uint64_t (*mqd_stride)(struct mqd_manager *mm,
|
||||
struct queue_properties *p);
|
||||
|
||||
struct mutex mqd_mutex;
|
||||
struct kfd_node *dev;
|
||||
@@ -164,4 +166,10 @@ bool kfd_is_occupied_sdma(struct mqd_manager *mm, void *mqd,
|
||||
uint64_t queue_address, uint32_t pipe_id,
|
||||
uint32_t queue_id);
|
||||
|
||||
void kfd_get_hiq_xcc_mqd(struct kfd_node *dev,
|
||||
struct kfd_mem_obj *mqd_mem_obj, uint32_t virtual_xcc_id);
|
||||
|
||||
uint64_t kfd_hiq_mqd_stride(struct kfd_node *dev);
|
||||
uint64_t kfd_mqd_stride(struct mqd_manager *mm,
|
||||
struct queue_properties *q);
|
||||
#endif /* KFD_MQD_MANAGER_H_ */
|
||||
|
||||
Reference in New Issue
Block a user