From patchwork Fri Jun 24 08:04:44 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: 12894094 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 4920BC43334 for ; Fri, 24 Jun 2022 08:05:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E01BC8E01FD; Fri, 24 Jun 2022 04:05:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D64568E01F6; Fri, 24 Jun 2022 04:05:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AF5188E01FD; Fri, 24 Jun 2022 04:05:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 978DB8E01F6 for ; Fri, 24 Jun 2022 04:05:06 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 6D88833C7C for ; Fri, 24 Jun 2022 08:05:06 +0000 (UTC) X-FDA: 79612393812.26.1BACD61 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) by imf30.hostedemail.com (Postfix) with ESMTP id 161A380035 for ; Fri, 24 Jun 2022 08:05:05 +0000 (UTC) Received: by mail-ej1-f53.google.com with SMTP id lw20so3108025ejb.4 for ; Fri, 24 Jun 2022 01:05:05 -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=EK5bTabBrzOC4s5o5qACkkoAhewHbBIhpYTiUtnXhVE=; b=JwN96QcsgT/HsX0Xpol3mA630eF5N5PgavN/AUY9qBXwAsuVmy5cd/GZroEBwxc86X ZaDki0JPCb7oEXIMUIfGTswi25k7wAP19cnFbDOv/5t9BukJv9rDcgt58DFQ74NADH2u CYXiAOkYs3SpdYAaOxY3UUVCX6ptHEJ6TRdbP7p4or3Zgu3/WAjyLLMK5jZ7vcqCp7eW EZMJA+g9/yiNDw7fyROAvFU5wIayjnD37MVXkIpRkTRGWcd7zygExPX5kLKinTCY8K/T 5pdb6n5eb6/P1j1smDPETJawXNBlVLLfjUdE34ynUZs+JMkdILaXVbWdyIS5dNH8CO+w oVxw== 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=EK5bTabBrzOC4s5o5qACkkoAhewHbBIhpYTiUtnXhVE=; b=KA76mcH1rwWjf6YRNqCK5BPSejV+57sYLpyJvt+bhXicjPDPgf0nbL8ADVirg3rNxR SCx4b0MrA+x5QngpP+oLWPMfuB1glPYAdZqm1VBcJKseOSGIVcjNnCuEIEBRDxYKFU+B EsTs+If0mVEl/I+OjcGqI5OUEXb8eE8ueDrha02rcloEvmgnlO5JmsyhirC/tJaLkTay UJdsUlRo/GPhEYSospcz6HAZoqnXL2O2ei0D2nEOu4AN+ayPLNdwQcvwpbwIhH/V5ozg QK5Ag+79mWrHUmnOoWV3jHet7vNiQUvwrfey4WKt8doxO53GYWT9RxQHCdaLM3q6FqjQ bkMA== X-Gm-Message-State: AJIora+lWZsl5OfR9jAL+N/BKTlAQkrCcUlgdmh6W1eZH7AakbBXX3BF duOZZhaElvFp5kqOBSZ7070= X-Google-Smtp-Source: AGRyM1tgbH7HQwAMplhNlcow9evBtQqHgtM4KLSWjdQaSt6HlGVy+kDMyMimMYEkA9mtx94cpAF30g== X-Received: by 2002:a17:906:7a54:b0:722:e8e3:ef60 with SMTP id i20-20020a1709067a5400b00722e8e3ef60mr11829570ejo.453.1656057904986; Fri, 24 Jun 2022 01:05:04 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jun 2022 01:05:04 -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 14/14] drm/tegra: use drm_file_rss Date: Fri, 24 Jun 2022 10:04:44 +0200 Message-Id: <20220624080444.7619-15-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; imf30.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=JwN96Qcs; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf30.hostedemail.com: domain of ckoenig.leichtzumerken@gmail.com designates 209.85.218.53 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=1656057906; 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=EK5bTabBrzOC4s5o5qACkkoAhewHbBIhpYTiUtnXhVE=; b=Six7+jGMGrIYLPGH5zp3M54SeAtDiFhy7m5E6waIOOD2iHcYb7sVWJNhgZXyVkQDVnb4Ha yLLZVN9kLVkSSAh6rBlg92216Zl2Pv5jNuE51GavLW07IPAOQPqsgmNtiK654eoKz1MWXr R7JwLTSbfnQ+zhoupShadq5yqgolG5s= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656057906; a=rsa-sha256; cv=none; b=thOvbrrEf6vzPCHX2RM6ZOX82iNZyafAGkqaDsJ43qK8bxx5dJMSqLAY2vLk4UbhAawpZZ vEXw1vGMeImFHVxLCorESpVuJYXjOV0PuhUBzyQ4KoLgSlnOxSZbO9TdzQJvEu96FJQ2Y8 unH64j3aLhxOc2TXhOO2GC3VkccoEME= X-Stat-Signature: 18y47wo6u3hotjy8jmqtgrwffx6hksgf X-Rspamd-Queue-Id: 161A380035 X-Rspam-User: Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=JwN96Qcs; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf30.hostedemail.com: domain of ckoenig.leichtzumerken@gmail.com designates 209.85.218.53 as permitted sender) smtp.mailfrom=ckoenig.leichtzumerken@gmail.com X-Rspamd-Server: rspam12 X-HE-Tag: 1656057905-367881 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/tegra/drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 4cdc8faf798f..cc0c2fc57250 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c @@ -804,6 +804,7 @@ static const struct file_operations tegra_drm_fops = { .read = drm_read, .compat_ioctl = drm_compat_ioctl, .llseek = noop_llseek, + .file_rss = drm_file_rss, }; static int tegra_drm_context_cleanup(int id, void *p, void *data)