Skip to content

Commit 42e08c7

Browse files
committed
drm/amdkfd: Don't report local memory size
This patch sets the local memory size that is reported to userspace to 0. This is done to make sure that userspace won't try to allocate local memory for HSA. As long as amdkfd doesn't support allocating local memory for HSA, we need this patch. Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com> Cc: stable@vger.kernel.org Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 1e5ec95 commit 42e08c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/amd/amdkfd/kfd_topology.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,9 +728,9 @@ static ssize_t node_show(struct kobject *kobj, struct attribute *attr,
728728
sysfs_show_32bit_prop(buffer, "max_engine_clk_fcompute",
729729
dev->gpu->kfd2kgd->get_max_engine_clock_in_mhz(
730730
dev->gpu->kgd));
731+
731732
sysfs_show_64bit_prop(buffer, "local_mem_size",
732-
dev->gpu->kfd2kgd->get_vmem_size(
733-
dev->gpu->kgd));
733+
(unsigned long long int) 0);
734734

735735
sysfs_show_32bit_prop(buffer, "fw_version",
736736
dev->gpu->kfd2kgd->get_fw_version(

0 commit comments

Comments
 (0)