mirror of
https://github.com/torvalds/linux.git
synced 2026-04-30 04:22:32 -04:00
drm/amdkfd: Check preemption status on all XCDs
This patch adds the following functionality: - Check the queue preemption status on all XCDs in a partition for GFX 9.4.3. - Update the queue preemption debug message to print the queue doorbell id for which preemption failed. - Change the signature of check preemption failed function to return a bool instead of uint32_t and pass the MQD manager as an argument. Suggested-by: Jay Cornwall <jay.cornwall@amd.com> Signed-off-by: Mukul Joshi <mukul.joshi@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
26d97182bb
commit
0991a4c192
@@ -119,7 +119,7 @@ struct mqd_manager {
|
||||
#if defined(CONFIG_DEBUG_FS)
|
||||
int (*debugfs_show_mqd)(struct seq_file *m, void *data);
|
||||
#endif
|
||||
uint32_t (*check_preemption_failed)(void *mqd);
|
||||
bool (*check_preemption_failed)(struct mqd_manager *mm, void *mqd);
|
||||
uint64_t (*mqd_stride)(struct mqd_manager *mm,
|
||||
struct queue_properties *p);
|
||||
|
||||
@@ -198,4 +198,6 @@ void kfd_get_hiq_xcc_mqd(struct kfd_node *dev,
|
||||
uint64_t kfd_hiq_mqd_stride(struct kfd_node *dev);
|
||||
uint64_t kfd_mqd_stride(struct mqd_manager *mm,
|
||||
struct queue_properties *q);
|
||||
bool kfd_check_hiq_mqd_doorbell_id(struct kfd_node *node, uint32_t doorbell_id,
|
||||
uint32_t inst);
|
||||
#endif /* KFD_MQD_MANAGER_H_ */
|
||||
|
||||
Reference in New Issue
Block a user