[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220531100007.174649-8-christian.koenig@amd.com>
Date: Tue, 31 May 2022 12:00:01 +0200
From: "Christian König"
<ckoenig.leichtzumerken@...il.com>
To: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
intel-gfx@...ts.freedesktop.org, amd-gfx@...ts.freedesktop.org,
nouveau@...ts.freedesktop.org, linux-tegra@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-mm@...ck.org
Cc: christian.koenig@....com, alexander.deucher@....com,
daniel@...ll.ch, viro@...iv.linux.org.uk,
akpm@...ux-foundation.org, hughd@...gle.com,
andrey.grodzovsky@....com
Subject: [PATCH 07/13] drm/amdgpu: Use drm_oom_badness for amdgpu
From: Andrey Grodzovsky <andrey.grodzovsky@....com>
This allows the OOM killer to make a better decision which process to reap.
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@....com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index ebd37fb19cdb..9d6e57c93d3e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -2651,8 +2651,9 @@ static const struct file_operations amdgpu_driver_kms_fops = {
.compat_ioctl = amdgpu_kms_compat_ioctl,
#endif
#ifdef CONFIG_PROC_FS
- .show_fdinfo = amdgpu_show_fdinfo
+ .show_fdinfo = amdgpu_show_fdinfo,
#endif
+ .oom_badness = drm_oom_badness,
};
int amdgpu_file_to_fpriv(struct file *filp, struct amdgpu_fpriv **fpriv)
--
2.25.1
Powered by blists - more mailing lists