From patchwork Fri Jun 24 08:04:40 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: 12894090 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 60893C43334 for ; Fri, 24 Jun 2022 08:05:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8AE108E01F9; Fri, 24 Jun 2022 04:05:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 835E58E01F6; Fri, 24 Jun 2022 04:05:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 59D678E01F9; Fri, 24 Jun 2022 04:05:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 451198E01F6 for ; Fri, 24 Jun 2022 04:05:01 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 2052A20EA8 for ; Fri, 24 Jun 2022 08:05:01 +0000 (UTC) X-FDA: 79612393602.08.BC792A3 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) by imf13.hostedemail.com (Postfix) with ESMTP id 6D1B820033 for ; Fri, 24 Jun 2022 08:05:00 +0000 (UTC) Received: by mail-ed1-f54.google.com with SMTP id o9so2276362edt.12 for ; Fri, 24 Jun 2022 01:05:00 -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=m/E6hWEFQyi25CxFeEuPVoEVkNjsUA/fW4bkRRrhTG8=; b=e8Okw9V9KyZY0LQ9UKvtkO1+tj9txF7SZgjxfu0nIPVJ7UHFSFPajh1LcrrR+mc/Ax 7Xcml0b3DTzx3T2bMsv8lp7T6q7E8SECtadIf2BbI5ZWp1CKCCjXMJ+X+N3gB+Fbk+hI b31Ng6R/qrQ8N6LOuGNRH4RuKGuBjnKOVPxxK7EXBtqVHECTyUdENgmbiNMStYeqtDEf i8j/Pv/qCpjDot+5YbNEf4ExwNPa/ehQnPHUm9ruLn2IZbJZpd2tKFDQwHw3MDtpAITE BVAJdg6xrEucAqwIZovpm02Nb/tWQUOGD/LUv75bzOhZfpRKGHx3/vDdg1//bFowy+2C xUAQ== 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=m/E6hWEFQyi25CxFeEuPVoEVkNjsUA/fW4bkRRrhTG8=; b=3sIe5GArUnDEWKUq4811zU3WU08GegE7+cCl84wo3xyerHjgxbrkLU4ohfDaXbEn7d qzxJOcxG2GvZPUZN68oh3iTtLmRV1/11Dxpp4UewSynOsg1lvthM8PFigXujp0bY2+Iv 7nuRBKtSRdy6v/FCDKVPpczSdRTviB8MBnzSEljW5EXKN5yeuo4KDDUU5qddaE7I4doH SF+1AWWFQz8iRaS7pYmHMfA7AjAwuTHDV0hJz6HRphzXk8n9j1GZNkbFdu+qNl/w5GGx Nir2IlyJ169dPx1UECan4Q19yi1af53y8ZS783LW/zJLMW3okSnqZF7FpaYTJcd9ibZ3 FkcA== X-Gm-Message-State: AJIora8quwgyu8enRoIzL3D2mDRCi/60qV162PsYwAKHz7krtbmN/gR0 +S8zMslJQrto1MzjH/byHno= X-Google-Smtp-Source: AGRyM1sPm1PtPb+HeXcaBFnsmjeMMONuCGOa4UKNnvwqlpKNsvibmM7CXbEqPCXHhwwP42+MiDXxcw== X-Received: by 2002:a05:6402:5c9:b0:420:aac6:257b with SMTP id n9-20020a05640205c900b00420aac6257bmr15655024edx.128.1656057900060; Fri, 24 Jun 2022 01:05:00 -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.04.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jun 2022 01:04:59 -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 10/14] drm/i915: use drm_file_rss Date: Fri, 24 Jun 2022 10:04:40 +0200 Message-Id: <20220624080444.7619-11-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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656057900; a=rsa-sha256; cv=none; b=tDciqj33nEtbKnqUmhQMSZdlD/qYziTTeBaMPmDzpmsqmbVjZ2L0jwu6abvl2uEmcf/eIh ljJ7fhBLXF9Mi0S6Lh5Egybe7Zq2bX5nyvu6Jex4v1KrytdVupbGBH/fsMx/TaDnpRpSQ4 Fk//5WIWDajjCz9HquO80O1fzbKUvBo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656057900; 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=m/E6hWEFQyi25CxFeEuPVoEVkNjsUA/fW4bkRRrhTG8=; b=VTIVEwWiZC0PMgoqCDjwt8ZpgQeM1tS0nWYKpPRdKopkl4tUTSd5xtWuvV2LLZiNaLyEBI R9y1esze7UyRrlKSUs3J///Yn53TA+VrgNHoZy6ayJiWN1CmMajm30qVL1AeLG+4YVkbOj ZCNsfWc6XR2nFUv84Q38h88VGtLQcIY= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=e8Okw9V9; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf13.hostedemail.com: domain of ckoenig.leichtzumerken@gmail.com designates 209.85.208.54 as permitted sender) smtp.mailfrom=ckoenig.leichtzumerken@gmail.com X-Stat-Signature: tz7rymrc65dpaab7wgqpmyqx469eyc4h X-Rspamd-Queue-Id: 6D1B820033 Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=e8Okw9V9; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf13.hostedemail.com: domain of ckoenig.leichtzumerken@gmail.com designates 209.85.208.54 as permitted sender) smtp.mailfrom=ckoenig.leichtzumerken@gmail.com X-Rspam-User: X-Rspamd-Server: rspam04 X-HE-Tag: 1656057900-118736 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/i915/i915_driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/i915_driver.c b/drivers/gpu/drm/i915/i915_driver.c index 90b0ce5051af..fc269055a07c 100644 --- a/drivers/gpu/drm/i915/i915_driver.c +++ b/drivers/gpu/drm/i915/i915_driver.c @@ -1741,6 +1741,7 @@ static const struct file_operations i915_driver_fops = { #ifdef CONFIG_PROC_FS .show_fdinfo = i915_drm_client_fdinfo, #endif + .file_rss = drm_file_rss, }; static int