drm/radeon: Add init interrupt kfd->kgd interface
authorOded Gabbay <oded.gabbay@gmail.com>
Thu, 5 Mar 2015 13:13:18 +0000 (15:13 +0200)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 19 May 2015 09:13:39 +0000 (12:13 +0300)
This patch adds a new interface function to the kfd->kgd interface.
The function is kgd_init_interrupts() and its function is to
initialize a pipe's interrupts.

The function currently enables the timestamp interrupt and the
bad opcode interrupt.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/include/kgd_kfd_interface.h
drivers/gpu/drm/radeon/cik_reg.h
drivers/gpu/drm/radeon/cikd.h
drivers/gpu/drm/radeon/radeon_kfd.c

index dabd944..4ea21ae 100644 (file)
@@ -144,6 +144,8 @@ struct kfd2kgd_calls {
        int (*init_pipeline)(struct kgd_dev *kgd, uint32_t pipe_id,
                                uint32_t hpd_size, uint64_t hpd_gpu_addr);
 
+       int (*init_interrupts)(struct kgd_dev *kgd, uint32_t pipe_id);
+
        int (*hqd_load)(struct kgd_dev *kgd, void *mqd, uint32_t pipe_id,
                        uint32_t queue_id, uint32_t __user *wptr);
 
Simple merge
Simple merge
Simple merge