Skip to contentSkip to conversation

FAILED: patch "[PATCH] drm/amdkfd: Don't report local memory size" failed to apply to 4.0-stable tree

PATCH [email protected] 1 participant 1 message May 15, 2015

Subsystems (4)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

The patch below does not apply to the 4.0-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

Quoted 1 line

From 42e08c78360e58516b6ac8af18a75a494f2967a2 Mon Sep 17 00:00:00 2001

From: Oded Gabbay <[email protected]>
Date: Tue, 5 May 2015 11:15:07 +0300
Subject: [PATCH] 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.

drivers/gpu/drm/amd/amdkfd/kfd_topology.c +2 -2
index 661c6605d31b..e469c4b2e8cc 100644
@@ -728,9 +728,9 @@ static ssize_t node_show(struct kobject *kobj, struct attribute *attr,
 		sysfs_show_32bit_prop(buffer, "max_engine_clk_fcompute",
 			dev->gpu->kfd2kgd->get_max_engine_clock_in_mhz(
 					dev->gpu->kgd));
+
 		sysfs_show_64bit_prop(buffer, "local_mem_size",
-			dev->gpu->kfd2kgd->get_vmem_size(
-					dev->gpu->kgd));
+				(unsigned long long int) 0);
 
 		sysfs_show_32bit_prop(buffer, "fw_version",
 			dev->gpu->kfd2kgd->get_fw_version(