summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/channel.c
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2018-05-18 09:13:35 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-05-24 07:37:44 -0400
commit2788943d3871cd84ada8cfe1dc56ce4f5a1ae6ab (patch)
treea0a24e6311be9e2458476d24809ab613b62aa55d /drivers/gpu/nvgpu/common/linux/channel.c
parentd914e662aef07cc2c3c58971ad21a9cc5fa0ce4d (diff)
gpu: nvgpu: remove broken force_pramin feature
The forced PRAMIN reads and writes for sysmem buffers haven't worked in a while since the PRAMIN access code was refactored to work with vidmem-only sgt allocs. This feature was only ever meant for testing and debugging PRAMIN access and early dGPU support, but that is stable enough now so just delete the broken feature instead of fixing it. Change-Id: Ib31dae4550f3b6fea3c426a2e4ad126864bf85d2 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1723725 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/channel.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/channel.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/channel.c b/drivers/gpu/nvgpu/common/linux/channel.c
index e2a10634..727b5067 100644
--- a/drivers/gpu/nvgpu/common/linux/channel.c
+++ b/drivers/gpu/nvgpu/common/linux/channel.c
@@ -692,10 +692,6 @@ static int gk20a_submit_append_gpfifo(struct channel_gk20a *c,
692 * This path (from userspace to sysmem) is special in order to 692 * This path (from userspace to sysmem) is special in order to
693 * avoid two copies unnecessarily (from user to pipe, then from 693 * avoid two copies unnecessarily (from user to pipe, then from
694 * pipe to gpu sysmem buffer). 694 * pipe to gpu sysmem buffer).
695 *
696 * As a special case, the pipe buffer exists if PRAMIN writes
697 * are forced, although the buffers may not be in vidmem in
698 * that case.
699 */ 695 */
700 if (end > gpfifo_size) { 696 if (end > gpfifo_size) {
701 /* wrap-around */ 697 /* wrap-around */
@@ -723,8 +719,7 @@ static int gk20a_submit_append_gpfifo(struct channel_gk20a *c,
723 0, num_entries); 719 0, num_entries);
724 goto out; 720 goto out;
725 } else if (user_gpfifo) { 721 } else if (user_gpfifo) {
726 /* from userspace to vidmem or sysmem when pramin forced, use 722 /* from userspace to vidmem, use the common copy path below */
727 * the common copy path below */
728 err = copy_from_user(c->gpfifo.pipe, user_gpfifo, len); 723 err = copy_from_user(c->gpfifo.pipe, user_gpfifo, len);
729 if (err) 724 if (err)
730 return err; 725 return err;