mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: remove pd_max_batches support
remove unused pd_max_batches implementation. remove pd_max_batches support from gr_gk20a struct and sysfs Bug 200492671 Change-Id: Ibfd81a6aec88610175495018759c27341b637e52 Signed-off-by: Vinod G <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2070058 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
3856aa54d8
commit
e8b6580953
@@ -984,33 +984,6 @@ static ssize_t max_timeslice_us_store(struct device *dev,
|
||||
static DEVICE_ATTR(max_timeslice_us, ROOTRW, max_timeslice_us_read,
|
||||
max_timeslice_us_store);
|
||||
|
||||
static ssize_t pd_max_batches_store(struct device *dev,
|
||||
struct device_attribute *attr, const char *buf, size_t count)
|
||||
{
|
||||
struct gk20a *g = get_gk20a(dev);
|
||||
unsigned long val;
|
||||
|
||||
if (kstrtoul(buf, 10, &val) < 0)
|
||||
return -EINVAL;
|
||||
|
||||
if (val > 64)
|
||||
return -EINVAL;
|
||||
|
||||
g->gr.pd_max_batches = val;
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
static ssize_t pd_max_batches_read(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct gk20a *g = get_gk20a(dev);
|
||||
|
||||
return sprintf(buf, "%d\n", g->gr.pd_max_batches);
|
||||
}
|
||||
|
||||
static DEVICE_ATTR(pd_max_batches, ROOTRW, pd_max_batches_read, pd_max_batches_store);
|
||||
|
||||
static ssize_t gfxp_wfi_timeout_count_store(struct device *dev,
|
||||
struct device_attribute *attr, const char *buf, size_t count)
|
||||
{
|
||||
@@ -1174,7 +1147,6 @@ void nvgpu_remove_sysfs(struct device *dev)
|
||||
nvgpu_nvhost_remove_symlink(get_gk20a(dev));
|
||||
#endif
|
||||
|
||||
device_remove_file(dev, &dev_attr_pd_max_batches);
|
||||
device_remove_file(dev, &dev_attr_gfxp_wfi_timeout_count);
|
||||
device_remove_file(dev, &dev_attr_gfxp_wfi_timeout_unit);
|
||||
device_remove_file(dev, &dev_attr_gpu_powered_on);
|
||||
@@ -1228,7 +1200,6 @@ int nvgpu_create_sysfs(struct device *dev)
|
||||
error |= nvgpu_nvhost_create_symlink(g);
|
||||
#endif
|
||||
|
||||
error |= device_create_file(dev, &dev_attr_pd_max_batches);
|
||||
error |= device_create_file(dev, &dev_attr_gfxp_wfi_timeout_count);
|
||||
error |= device_create_file(dev, &dev_attr_gfxp_wfi_timeout_unit);
|
||||
error |= device_create_file(dev, &dev_attr_gpu_powered_on);
|
||||
|
||||
Reference in New Issue
Block a user