From patchwork Fri Jun 24 08:04:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christian_K=C3=B6nig?= X-Patchwork-Id: 12894091 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1AC7C433EF for ; Fri, 24 Jun 2022 08:05:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E06C58E01FA; Fri, 24 Jun 2022 04:05:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D3D218E01F6; Fri, 24 Jun 2022 04:05:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B91B78E01FA; Fri, 24 Jun 2022 04:05:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 8BE658E01F6 for ; Fri, 24 Jun 2022 04:05:02 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 05D63DC6 for ; Fri, 24 Jun 2022 08:05:02 +0000 (UTC) X-FDA: 79612393644.11.7A94204 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) by imf04.hostedemail.com (Postfix) with ESMTP id 987A840021 for ; Fri, 24 Jun 2022 08:05:01 +0000 (UTC) Received: by mail-ed1-f54.google.com with SMTP id e2so2335676edv.3 for ; Fri, 24 Jun 2022 01:05:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TEEoP8KCSv5pjlxAC2eGIjep+gJf30N0QWrbUiAblRs=; b=NsqpIeUqz6z1oXfKvdYH1/TqTFTXK9j1sJxHR/6+teGsI6wAcS38sTUENz1r/j+qWB Zx5BEXmUAQRLHC+0/WMd5cHg7pqTjt2mJsun4y65v/FkbkdUuEowB0Xeil8wiVIopW0C v7uFC+sCP7XMFz3Y74shfL8paThvoo6rqN5jyvJIG2lp6HaYqdHKi3OzUK5gdPk77trY JLyV0mg+oHiky3PUkntBd6bE+5pzI81H81uvLdg5+PBonm8eW64IOlBu28lZPhHT9xEL e7ST6iswEXQNp5oHPD8epprMYI811lDLgUfizTiIewMN4uvazsjzOwEcCSjRB0yo2rxG tMwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TEEoP8KCSv5pjlxAC2eGIjep+gJf30N0QWrbUiAblRs=; b=ckiyTDc1qoZkRqoyT9Cyy6a8r5sRAu5+49Wndc0Z1h76lYb73PNDs5S4bzCiM3i5cf gW2YOJpY87IkAPd6RCTPnZHCbwbypYUMnQ5PvvUa3mVN8qOlqk9/EiPXf3gYFZgbityu VQg7bElf9sMYg0OpZodNC9iFTGfD85in65Lm/rnfYQ2B71vqWRSPcClaDPgWnYL87lQ5 bxSsqFMUEBJq4mfl86Q+/eqjRrV3cJWKWkV0jmmSZdIe03lRGVCHBgmwgGXwZuzH8tct J07a/IDMek4U9Qc+8EscGcFCjdIGMEEc2mJyM+A4OHe4ENiKoVH3Z2haKuNiG90DEpni BYog== X-Gm-Message-State: AJIora9ANeeRWYTu1bSwH6mTdQBzo3hh5EpKkmf6KFIhqaMnkPnWasNZ feLvlkhbcPjPPAi+ZV25AAEhLkrASmA= X-Google-Smtp-Source: AGRyM1s12FOWdmvVSggeHhbhrd16lE3/DoVEUD/LwuW4RhCc+Y/hP3ZDhy6clyaoJ7ITIboMGB65hA== X-Received: by 2002:aa7:c952:0:b0:434:edcc:f247 with SMTP id h18-20020aa7c952000000b00434edccf247mr15543375edt.412.1656057901251; Fri, 24 Jun 2022 01:05:01 -0700 (PDT) Received: from able.fritz.box (p57b0bd9f.dip0.t-ipconnect.de. [87.176.189.159]) by smtp.gmail.com with ESMTPSA id c19-20020a170906155300b006fea43db5c1sm697779ejd.21.2022.06.24.01.05.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jun 2022 01:05:00 -0700 (PDT) From: " =?utf-8?q?Christian_K=C3=B6nig?= " X-Google-Original-From: =?utf-8?q?Christian_K=C3=B6nig?= To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, dri-devel@lists.freedesktop.org Cc: mhocko@suse.com, =?utf-8?q?Christian_K=C3=B6nig?= Subject: [PATCH 11/14] drm/nouveau: use drm_file_rss Date: Fri, 24 Jun 2022 10:04:41 +0200 Message-Id: <20220624080444.7619-12-christian.koenig@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220624080444.7619-1-christian.koenig@amd.com> References: <20220624080444.7619-1-christian.koenig@amd.com> MIME-Version: 1.0 ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NsqpIeUq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf04.hostedemail.com: domain of ckoenig.leichtzumerken@gmail.com designates 209.85.208.54 as permitted sender) smtp.mailfrom=ckoenig.leichtzumerken@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656057901; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=TEEoP8KCSv5pjlxAC2eGIjep+gJf30N0QWrbUiAblRs=; b=Dc9D6KmHAkyZkLSW1L0Qp2ILs0+nQV13a9dAEZCKONmxQzUsxkZvZ+SwQllUD5P+YTBk4a MBlvrqIBjG0FpCkDzz1g3TF4l2J+uDOzwtReY6sHPVvzxJZ/tSnub24ln1zGMNj1eN7h7w XkXi8xr3kp1wJI5sAie5xWikW5wOHcg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656057901; a=rsa-sha256; cv=none; b=g5DBbeemlQ7XmsQqzdeGKfjmGetbu4Vomd5xGnzKV2+swxtA3J2k/D+AVAPcvJhE8+mITU zDzF9KAnHlQgBR5SNdYIrgV5aosv344+jjHwqYGxQyXsOcY+bC3wEnr3HOqT2qmYnEJa8R JvDSHh2Eg4B168wZ90bFHO6Y3MKfH8A= X-Stat-Signature: r997im53bcqo15suju6u76rjp181p5gr X-Rspamd-Queue-Id: 987A840021 X-Rspam-User: Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NsqpIeUq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf04.hostedemail.com: domain of ckoenig.leichtzumerken@gmail.com designates 209.85.208.54 as permitted sender) smtp.mailfrom=ckoenig.leichtzumerken@gmail.com X-Rspamd-Server: rspam12 X-HE-Tag: 1656057901-253852 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This allows the OOM killer to make a better decision which process to reap. Signed-off-by: Christian König --- drivers/gpu/drm/nouveau/nouveau_drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index 561309d447e0..cc0ac7b059fe 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c @@ -1218,6 +1218,7 @@ nouveau_driver_fops = { .compat_ioctl = nouveau_compat_ioctl, #endif .llseek = noop_llseek, + .file_rss = drm_file_rss, }; static struct drm_driver