Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp164718iog; Fri, 24 Jun 2022 01:18:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vinFZ7vghiwVNWDJsofwQjiogK0/ws58Q4GUARWsmsAqLL8dEGWWzswKj+o7sWZMc35Tbv X-Received: by 2002:a17:90b:4d05:b0:1e0:b53:f4a3 with SMTP id mw5-20020a17090b4d0500b001e00b53f4a3mr2627217pjb.3.1656058721322; Fri, 24 Jun 2022 01:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656058721; cv=none; d=google.com; s=arc-20160816; b=hy+YXH42wcLQElN9Ky6gyCCcRJk5zvW+KTUx2EmrAkroabZ1PzRjnVC9u0SYAj8nJo KSTsR2Bchn8OnXXVXhRdmk5k5y8Ob1bzTxDyUyll4q9Nxg5keDdipWfO2x1VMJJLoW1c KjfWqjfM0z6dStUw4thcZzFcbbCDxssCthqWPdb9le540ERp+pfdWqOSDEVU+Yxdnhzh HALM619SmC9KG589/oMrllWNlIo9CCDIGBjOaSlgoBi/0xdKHFR4Z0Z6eDHHeFpZkv+e 13d8s7UerVgeMqZQq6im5kbhUzFDRhDbJ9G3CP3LufvhX5+a7CAp7QuAoV2l1yCA/LQQ wsHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ID2laRfYSApmjGzin/c5O7ZzYP1tMI9ua34YWk456Wk=; b=UislS+HlLJOnNUeaSpw0r+Pn6UUiXHWuwqoVLH1lRpje9aGinsTJjlKhet8qsFg2rv O1AkUNDOTZQoDk6lxCEa2E/TNdZzRlObJDd6aRP4jNoQt4Fqn76u/vzzHOwART1DFRJs 0B/0L7d5mPyyFPKkO9V+LWHNYG9YCl6LOeaYK22eWfUTicKVxj8fDtqGNphkvTUZTDcu edJIXCGKhI1M816ODUIIPh6f4fJUYLNYmkhC+Qfc0FUP8nSM1nwnTMph5mAYzgNQnzud t15sapXnQl4aJIHUcmtn0fn1Xp94NhPBqZ9W1H/2uDOvjs/0iXj+QnX0/IBh3cQSVEVF e8Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=U7uY3MsA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d9-20020a636809000000b0040cf878fc67si1877172pgc.717.2022.06.24.01.18.28; Fri, 24 Jun 2022 01:18:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=U7uY3MsA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231394AbiFXIFm (ORCPT + 99 others); Fri, 24 Jun 2022 04:05:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230418AbiFXIFB (ORCPT ); Fri, 24 Jun 2022 04:05:01 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7FBC6DB21; Fri, 24 Jun 2022 01:04:57 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id e2so2336029edv.3; 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=aNZm7aVbX8lW2nnYZgqV5Nd3i4XyVaz3Hb/d08kJmsfaP/dOOlIkrGRLYNYE0aofBC h9BPwaJj8sBXgmpw2lJI1YTyKBNZ7BnWf+dX4VvextoN7Y2xgzYuPiqVKZA/hBPDzfeZ kKwv/u+sEXPCT+tWVONg5VOzssMtSfGJxoKi29N6oXX29epmD8Tw1LdimBrRyRo6oPLx pXy6dLyQWpRHY+UGpx0AVNU60e97P/0IyA2SBV88ORvK8VebO8zxJ5ABbSjXTXTxumGi SN8tmkuZGJoQvCfyaXvoETC4Lx2pHgsaXKFjbQWp3MP9FpdHTjf4ACrZiF6AjYfxpnqX FAlg== X-Gm-Message-State: AJIora+LGN64mXmWaWaAl+BHyITyKkpxca5W2rZ0oEi2LckSscgI3tdo xZE9zlSSjL/wECgCBp7bQHKs+1wvGCM= 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=20K=C3=B6nig?=" X-Google-Original-From: =?UTF-8?q?Christian=20K=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=20K=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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 = { -- 2.25.1