Skip to content

Commit

Permalink
Revert "Revert "Revert "drm/amdkfd: Change vega10_noretry default to …
Browse files Browse the repository at this point in the history
…1"""

This reverts commit 57e56ac.

Change-Id: I3e184e532d65d69deec31d7aa3877124f6537b3c
Signed-off-by: Yong Zhao <yong.zhao@amd.com>
  • Loading branch information
Yong Zhao committed Mar 20, 2018
1 parent d44196b commit 438fbec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v9.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ static int update_qpd_v9(struct device_queue_manager *dqm,
qpd->sh_mem_config =
SH_MEM_ALIGNMENT_MODE_UNALIGNED <<
SH_MEM_CONFIG__ALIGNMENT_MODE__SHIFT;
if (vega10_noretry &&
!dqm->dev->device_info->is_need_iommu_device)
if (vega10_noretry)
qpd->sh_mem_config |=
1 << SH_MEM_CONFIG__RETRY_DISABLE__SHIFT;

Expand Down
4 changes: 2 additions & 2 deletions drivers/gpu/drm/amd/amdkfd/kfd_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ module_param(ignore_crat, int, 0444);
MODULE_PARM_DESC(ignore_crat,
"Ignore CRAT table during KFD initialization (0 = use CRAT (default), 1 = ignore CRAT)");

int vega10_noretry = 1;
int vega10_noretry;
module_param_named(noretry, vega10_noretry, int, 0644);
MODULE_PARM_DESC(noretry,
"Set sh_mem_config.retry_disable on Vega10 (0 = retry enabled, 1 = retry disabled (default))");
"Set sh_mem_config.retry_disable on Vega10 (0 = retry enabled (default), 1 = retry disabled)");

int priv_cp_queues;
module_param(priv_cp_queues, int, 0644);
Expand Down

0 comments on commit 438fbec

Please sign in to comment.