Skip to content

Commit bbeb1a4

Browse files
fxkamdgregkh
authored andcommitted
drm/amdkfd: Fix scratch memory with HWS enabled
[ Upstream commit c70a362 ] Program sh_hidden_private_base_vmid correctly in the map-process PM4 packet. Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 629b3a6 commit bbeb1a4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,7 @@ static int pm_create_map_process(struct packet_manager *pm, uint32_t *buffer,
166166
packet->sh_mem_ape1_base = qpd->sh_mem_ape1_base;
167167
packet->sh_mem_ape1_limit = qpd->sh_mem_ape1_limit;
168168

169-
/* TODO: scratch support */
170-
packet->sh_hidden_private_base_vmid = 0;
169+
packet->sh_hidden_private_base_vmid = qpd->sh_hidden_private_base;
171170

172171
packet->gds_addr_lo = lower_32_bits(qpd->gds_context_area);
173172
packet->gds_addr_hi = upper_32_bits(qpd->gds_context_area);

0 commit comments

Comments
 (0)