From patchwork Fri Jun 24 08:04:37 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: 12894087 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 ACB4EC43334 for ; Fri, 24 Jun 2022 08:05:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B95F28E01F7; Fri, 24 Jun 2022 04:04:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B1D358E01F6; Fri, 24 Jun 2022 04:04:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8D43A8E01F6; Fri, 24 Jun 2022 04:04:58 -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 627D98E01F3 for ; Fri, 24 Jun 2022 04:04:58 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 2DA42341E2 for ; Fri, 24 Jun 2022 08:04:58 +0000 (UTC) X-FDA: 79612393476.21.2E1A8FC Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) by imf13.hostedemail.com (Postfix) with ESMTP id 8B7CF200B6 for ; Fri, 24 Jun 2022 08:04:57 +0000 (UTC) Received: by mail-ed1-f54.google.com with SMTP id o9so2276362edt.12 for ; Fri, 24 Jun 2022 01:04:57 -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=ID2laRfYSApmjGzin/c5O7ZzYP1tMI9ua34YWk456Wk=; b=U7uY3MsA0DHippF6S8UKVRKmsJnNzZVtyS/oxSk8mnuxYbuH6lVcfrpX+0QqNbAzsr OHPqC1A2CJXe90yHB7/dZKLeRQkrpAbVd3R0tfpASOsFiFVpqjxyZSja4Ln6UQfGkV1F vEhUaLJqQTsf0mDlK6LHd6b+sDgfx27xoxB1E1JLj9lewb9qKNqcQpOqIQ9VN902Eeco K9AuesVMeK0hPkCglbUSWjfKsjVujF7T8cb3mCE5ZaCnxoDqUl7F2zCL64/5pa0gH7B9 1NKNHVz889djG0KWGG8iwf1I/ljLUIKtvBLVbUBVPCkEvOT+MIVlMWKc5SSwZwD6KAKU AbXA== 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=ID2laRfYSApmjGzin/c5O7ZzYP1tMI9ua34YWk456Wk=; b=rdLusYm8jSqRDIUkJZFunTAG2DaDkqY3SjE2H4EiwUfYeY3Lg2syR9ijhg7wUJGSg6 6a83tn9at5miTZQT5natSGJQ3m5x/aTR/CIaufPhphv5wyzMWBF81IIv0WKlTd6NN0JG Tcfr5k5Kc/6SN7HaSsUJu35ylT/H01SnEHheN76fh5JreU8LXbEFv993UoqqrGr5z88G zsgRDZC5qZucUB6i0ffiFUiaGJ7NjQs5dR/7Dom8e1WJMJKLequsZMfXiYYFEvi2jPr2 lFhlIUh9PVcmwCge1ecji0UH9tnButLTFlGbPp0uB6D2ZMrL6zJ0zN8bwfn53z+kZChg C4yQ== X-Gm-Message-State: AJIora/Vwa0j80ABuGSAQiprnRR7i6w9i6hGbcpUNDHG6TsXRNNlume1 EL8esMophWVaTGQ8azTPcE4= X-Google-Smtp-Source: AGRyM1vXothqzNCeq2wfXu0Iy7pDBGR1100k8JOpLZpuKKiLhk+9M6Fn95/BBmkDNLC1mjmi1D/X+w== X-Received: by 2002:a05:6402:11d1:b0:435:d76d:f985 with SMTP id j17-20020a05640211d100b00435d76df985mr7954996edw.8.1656057896438; Fri, 24 Jun 2022 01:04:56 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jun 2022 01:04:56 -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 07/14] drm/gma500: use drm_file_rss Date: Fri, 24 Jun 2022 10:04:37 +0200 Message-Id: <20220624080444.7619-8-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=1656057897; a=rsa-sha256; cv=none; b=7UV5gSa+bYt916uW04v/MLcEmUSLJmtJRE3t0S4fflSO8QGjLzzq+tYAHmvev8LOY7Qy2d ewm9IF1JwwtdXqyUWoH23NKMHQYgwUSVDav2FKXFsZKEzn3xgQ6H4LRdR8GxsYRZClnp1+ RA693jHSL0Dy0C/5B1OlHrrKVpIjPTo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656057897; 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=ID2laRfYSApmjGzin/c5O7ZzYP1tMI9ua34YWk456Wk=; b=RLoPKmPrKCTVio3CPW+Lpf1XOR0+zDjJ0nLQJzFAQAQfdD1Bpy4PKOtfC1VlhVMbqvo8A2 rxWBtTo8MSLaEQJhOg7Wol8UTOrNfA2c8Wdnzl7SMIKOk+vypM9WWw37CoZWWukg0edzjP Ivu8KeBaq5TOOKRDi9Ly9HTETOX2QF8= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=U7uY3MsA; 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: f1qbncdeukufusrkwunyenmood3fwjan X-Rspamd-Queue-Id: 8B7CF200B6 Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=U7uY3MsA; 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: 1656057897-108222 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/gma500/psb_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c index 1d8744f3e702..92c005aa6e9e 100644 --- a/drivers/gpu/drm/gma500/psb_drv.c +++ b/drivers/gpu/drm/gma500/psb_drv.c @@ -513,6 +513,7 @@ static const struct file_operations psb_gem_fops = { .mmap = drm_gem_mmap, .poll = drm_poll, .read = drm_read, + .file_rss = drm_file_rss, }; static const struct drm_driver driver = {