From patchwork Fri Jun 24 08:04:43 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: 12894093 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 B0886CCA473 for ; Fri, 24 Jun 2022 08:05:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A33EE8E01FC; Fri, 24 Jun 2022 04:05:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 996198E01F6; Fri, 24 Jun 2022 04:05:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7E5A98E01FC; Fri, 24 Jun 2022 04:05:05 -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 64E4C8E01F6 for ; Fri, 24 Jun 2022 04:05:05 -0400 (EDT) Received: from smtpin31.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 3E21E34193 for ; Fri, 24 Jun 2022 08:05:05 +0000 (UTC) X-FDA: 79612393770.31.1384B1E Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) by imf24.hostedemail.com (Postfix) with ESMTP id EBAD9180034 for ; Fri, 24 Jun 2022 08:05:04 +0000 (UTC) Received: by mail-ej1-f48.google.com with SMTP id mf9so3200344ejb.0 for ; Fri, 24 Jun 2022 01:05:04 -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=zYeizJ3QsvNICXqczpSXbVJYn4Q15WJ3kWZARt06sMw=; b=J/wgCdTYLso/wR3DyIMcpoWNVTSy/cjwLHx9Q39+E1ZodWxIhAlJ61DCaVuR1rD/f1 pY38NwP9kY3Plwb6iN8EMe8/vG9qymIkGWF2JCZ+R7/X1R4EnwTmpYPULDKENIe2Fh6w FQCJsTwM3UQu3vJZESwvyK8+QhBWg7q572dTWiwHnN2NLv3ZwrQIiyW3sjqRVSC1nkgR oPerAY9zKue3qqTiHQ2r5ixckyjq8LP76+lkRLuVQapgOCZ4X7rOOw4Ml4021WrsttG3 2MNeb6ISLKoiQ0jg06LSWwnAoniobzMHdFdZQd7CD+Jp+dZlI40apQN+4mRvkiBAtwMN +2hw== 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=zYeizJ3QsvNICXqczpSXbVJYn4Q15WJ3kWZARt06sMw=; b=FHnlMmpSNtUC1U47JHTaiBQ1S9CuqwgpZ9rnXaDSIh9vd6Rc8xQen8SJyQNRNbFX/p b+Lo+NLq36yjmKlfO10SrKWasFcXLERbhF7Jj6Qj39k28+K677+AcMdbmUm6Ot69dDDE E/D/eRimt5LV7oZHOdBOT6kw3VrYa05tHZylKbHzSfoV98cxxEiMrM+V7iBsMEQZzn5I tdrnWazKatlek7xAFQaX5k8guhn+sewumnN+4l4eiIur29LPN2maIDwvQoFM3AutjjDj 5WTcgGM9uzh0Mzu8JNyGYNzFMQS/VaHrZs7JKENe4o6dIXSx7xIzDCF6EvEDjKX02oVI uRFw== X-Gm-Message-State: AJIora9Ht0FDJncvYx04Fy51upIpq3K71SjkUv1RoHeLNkWAyVETNFEX 2UkVddFFbJh7KTotG5BWG0g= X-Google-Smtp-Source: AGRyM1uXEIqId7b73deRFKUwrzmvPTkFA55neIHh4LETAN1AX61HEKuXSB8HtzpeXXBy1GfUk1mJtQ== X-Received: by 2002:a17:906:ee1:b0:70d:d293:7b30 with SMTP id x1-20020a1709060ee100b0070dd2937b30mr11782721eji.134.1656057903826; Fri, 24 Jun 2022 01:05:03 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jun 2022 01:05:03 -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 13/14] drm/vmwgfx: use drm_file_rss Date: Fri, 24 Jun 2022 10:04:43 +0200 Message-Id: <20220624080444.7619-14-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; imf24.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="J/wgCdTY"; spf=pass (imf24.hostedemail.com: domain of ckoenig.leichtzumerken@gmail.com designates 209.85.218.48 as permitted sender) smtp.mailfrom=ckoenig.leichtzumerken@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656057905; 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=zYeizJ3QsvNICXqczpSXbVJYn4Q15WJ3kWZARt06sMw=; b=atUUTnYBL8+s1fKLs5S/7UOaD3Hns/0X2jhJrq8C7fU9HG5C1KwxWeXx8AItOA0BjR700a mzpEIgJ6mMyZ7MXcbnlFZUc/vdCySbqFr6R2fhmVZSN0viSc5/uy8FCMYdhPUEe/9qE+0S ic0YCitFoS+ehNYCj7Tm8iS4MjzLTcE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656057905; a=rsa-sha256; cv=none; b=c/SrWm411iTYffVpPQhTUmkfOh9zasrsTwCGkLEM9kRHpZyAzuNC+4KK2IIfMWFxWhV+x9 jYU5hyq4xs0qc3N/p7P02vqct2+Oa4ezIFgJAJlXlvye733F+k10RJHPi4KDYSpqN87i0v 3O9219jSUiPaXj/9WXycLdH02XSt/FQ= X-Stat-Signature: awfr6gymj4whfm5a1ebnd3sumqux8fdq X-Rspamd-Queue-Id: EBAD9180034 X-Rspam-User: Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="J/wgCdTY"; spf=pass (imf24.hostedemail.com: domain of ckoenig.leichtzumerken@gmail.com designates 209.85.218.48 as permitted sender) smtp.mailfrom=ckoenig.leichtzumerken@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam02 X-HE-Tag: 1656057904-534651 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/vmwgfx/vmwgfx_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index 01a5b47e95f9..99bf405d31b9 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c @@ -1577,6 +1577,7 @@ static const struct file_operations vmwgfx_driver_fops = { #endif .llseek = noop_llseek, .get_unmapped_area = vmw_get_unmapped_area, + .file_rss = drm_file_rss, }; static const struct drm_driver driver = {