| From 759c409c570141e8941eb629ab555519c8552bd0 Mon Sep 17 00:00:00 2001 |
| From: Rob Clark <robdclark@chromium.org> |
| Date: Tue, 13 Apr 2021 13:45:00 -0700 |
| Subject: [PATCH] CHROMIUM: drm/msm: Enable eviction by default |
| |
| Upstream I took the conservative approach of not enabling eviction by |
| default. Because the various generations of supported devices are |
| paired with at least three different possible iommus, I wanted a chance |
| to get some more testing on older devices before flipping the switch. |
| |
| For CrOS this is not a constraint, so enable by default. If we uncover |
| any issues we can revert this commit. |
| |
| Signed-off-by: Rob Clark <robdclark@chromium.org> |
| |
| BUG=b:193895128 |
| TEST=loop of crostini.SecureCopyPaste.* |
| |
| Change-Id: Ib45adfdf5030c62859328e8618604d3da8dac129 |
| Disallow-Recycled-Builds: test-failures |
| Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3687491 |
| Commit-Queue: Douglas Anderson <dianders@chromium.org> |
| Tested-by: Rob Clark <robdclark@chromium.org> |
| Reviewed-by: Douglas Anderson <dianders@chromium.org> |
| Auto-Submit: Rob Clark <robdclark@chromium.org> |
| --- |
| drivers/gpu/drm/msm/msm_gem_shrinker.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/drivers/gpu/drm/msm/msm_gem_shrinker.c b/drivers/gpu/drm/msm/msm_gem_shrinker.c |
| index 1de14e67f96b02012be0c205faf6fbb65ca0f8f1..051bdbc093cf99657b44671a12a317fcd5fefd96 100644 |
| --- a/drivers/gpu/drm/msm/msm_gem_shrinker.c |
| +++ b/drivers/gpu/drm/msm/msm_gem_shrinker.c |
| @@ -15,7 +15,7 @@ |
| /* Default disabled for now until it has some more testing on the different |
| * iommu combinations that can be paired with the driver: |
| */ |
| -static bool enable_eviction = false; |
| +static bool enable_eviction = true; |
| MODULE_PARM_DESC(enable_eviction, "Enable swappable GEM buffers"); |
| module_param(enable_eviction, bool, 0600); |
| |
| -- |
| 2.38.1.584.g0f3c55d4c2-goog |
| |