aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/include
diff options
context:
space:
mode:
authorBen Goz <ben.goz@amd.com>2015-01-02 16:43:19 -0500
committerOded Gabbay <oded.gabbay@amd.com>2015-01-02 16:43:19 -0500
commit08dcc57fcd240922347c8a9f14d18e67a3f9f1a9 (patch)
tree324c02f25a64bc9caa246da8b1a8ae3b0bcf43c9 /drivers/gpu/drm/amd/include
parentfc83975348ebce07793e6b9f780edc3cbcffa9fc (diff)
drm/radeon: Initialize compute vmid
This patch moves to radeon the initialization of compute vmid. That initializations was done in kfd-->kgd interface, but doing it in radeon as part of radeon's H/W initialization routines is more appropriate. In addition, this simplifies the kfd-->kgd interface. The patch removes the function from the interface file and from the interface declaration file. The function initializes memory apertures to fixed base/limit address and non cached memory types. Signed-off-by: Ben Goz <ben.goz@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/include')
-rw-r--r--drivers/gpu/drm/amd/include/kgd_kfd_interface.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/include/kgd_kfd_interface.h b/drivers/gpu/drm/amd/include/kgd_kfd_interface.h
index cd3878fe6f77..883499740e33 100644
--- a/drivers/gpu/drm/amd/include/kgd_kfd_interface.h
+++ b/drivers/gpu/drm/amd/include/kgd_kfd_interface.h
@@ -129,9 +129,6 @@ struct kgd2kfd_calls {
129 * @set_pasid_vmid_mapping: Exposes pasid/vmid pair to the H/W for no cp 129 * @set_pasid_vmid_mapping: Exposes pasid/vmid pair to the H/W for no cp
130 * scheduling mode. Only used for no cp scheduling mode. 130 * scheduling mode. Only used for no cp scheduling mode.
131 * 131 *
132 * @init_memory: Initializes memory apertures to fixed base/limit address
133 * and non cached memory types.
134 *
135 * @init_pipeline: Initialized the compute pipelines. 132 * @init_pipeline: Initialized the compute pipelines.
136 * 133 *
137 * @hqd_load: Loads the mqd structure to a H/W hqd slot. used only for no cp 134 * @hqd_load: Loads the mqd structure to a H/W hqd slot. used only for no cp
@@ -175,7 +172,6 @@ struct kfd2kgd_calls {
175 int (*set_pasid_vmid_mapping)(struct kgd_dev *kgd, unsigned int pasid, 172 int (*set_pasid_vmid_mapping)(struct kgd_dev *kgd, unsigned int pasid,
176 unsigned int vmid); 173 unsigned int vmid);
177 174
178 int (*init_memory)(struct kgd_dev *kgd);
179 int (*init_pipeline)(struct kgd_dev *kgd, uint32_t pipe_id, 175 int (*init_pipeline)(struct kgd_dev *kgd, uint32_t pipe_id,
180 uint32_t hpd_size, uint64_t hpd_gpu_addr); 176 uint32_t hpd_size, uint64_t hpd_gpu_addr);
181 177