Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp158474iog; Fri, 24 Jun 2022 01:07:52 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vqqF/zIqo8lsX0j/UaAQ1JdYgHUU88NZusEnCxB3vdRLJw7fn7uIV+761H5z+H0Vgh5nRI X-Received: by 2002:a05:6a00:2995:b0:525:398b:8585 with SMTP id cj21-20020a056a00299500b00525398b8585mr16950782pfb.7.1656058072172; Fri, 24 Jun 2022 01:07:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656058072; cv=none; d=google.com; s=arc-20160816; b=NDpye3Mbq3xTDsWzgXx5XG3MAvStTvZduS4gRXLv7cQRfw7gJOYFxy0taPqi8+UPRV M8vbmIzpnzAhHQdp5gg7tZ5SXfBbyPhtkRsZlFxVrEg5zmRT8ohwGNSWjdcDrMzaDSuY IAO0izeSWIWMJgmmxPDkjLFOCeGBjt5uQqe1ks2X/45NrLcxcP4Q1ZDVinGolUEPD/aQ iyVwSrzqTCjIM7P83JWp/EW4JnE2/cvPv+d+lL5kaQhfbLOn/qI5QY6EmC5a4DiYWDch hrvAQPi8eILKVtsnkHDHsIrsrAXA/J6KV6qL80yDT0UhQNp8lrKZSB/C2Y9AR8XDRqEF FFhQ== 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=TEEoP8KCSv5pjlxAC2eGIjep+gJf30N0QWrbUiAblRs=; b=XHOcP6sJppAPo2GoGyEHe7a8cWNNkwK0LO3d1lPyX+NUcJmtewrEhEjYUTEEH2fGJz xT4LDGVW2skDgU1+bYQV+u+1jh25zOLftNJPWmJK7pR75VigKDkuu6BudtIuJ9j5bSot WOPF0BykBMavj1PPRU0RgR5ghqXUtlTCf/ZRhcdUgVFQVve0ooEwFTulfd+mIz3M4TaQ cYPyslYjt9+6jMFV2JsjXkz1Ud9ykhHjqsLCjFL5aLMRtjA+oTij9IUJjcr1xka7rYY4 daTUR0sFvlKxNTo743/gPXLV8FdEB+NwgEBLbkzPNdPtuUiAt0rrv78/DYDvQzaggn7D XHQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NsqpIeUq; 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 s133-20020a632c8b000000b0040d98671b7esi2970pgs.575.2022.06.24.01.07.38; Fri, 24 Jun 2022 01:07:52 -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=NsqpIeUq; 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 S231655AbiFXIGO (ORCPT + 99 others); Fri, 24 Jun 2022 04:06:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231267AbiFXIFQ (ORCPT ); Fri, 24 Jun 2022 04:05:16 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FCE36E788; Fri, 24 Jun 2022 01:05:01 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id z7so2267681edm.13; Fri, 24 Jun 2022 01:05:01 -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=TEEoP8KCSv5pjlxAC2eGIjep+gJf30N0QWrbUiAblRs=; b=NsqpIeUqz6z1oXfKvdYH1/TqTFTXK9j1sJxHR/6+teGsI6wAcS38sTUENz1r/j+qWB Zx5BEXmUAQRLHC+0/WMd5cHg7pqTjt2mJsun4y65v/FkbkdUuEowB0Xeil8wiVIopW0C v7uFC+sCP7XMFz3Y74shfL8paThvoo6rqN5jyvJIG2lp6HaYqdHKi3OzUK5gdPk77trY JLyV0mg+oHiky3PUkntBd6bE+5pzI81H81uvLdg5+PBonm8eW64IOlBu28lZPhHT9xEL e7ST6iswEXQNp5oHPD8epprMYI811lDLgUfizTiIewMN4uvazsjzOwEcCSjRB0yo2rxG tMwA== 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=TEEoP8KCSv5pjlxAC2eGIjep+gJf30N0QWrbUiAblRs=; b=486lAxdeXKRPNWmkCvEekzcz//SwRoOc70xCI/eB45iCbudC++2AEs6SQU7CCo43qW ngXGqz3yfxsHgYCbsbMDCWlh5MjWkm/HTydJ+sjSoN5nCPcooUYWyjgMLfrwS7UWRkRg GDrE4UD/0Qm38sV8j+rCCpYcQtCW+XEfw8NiiJTz60dlceYH3Yuhz0V2QBXBEYQfSYTB hdX8upnoftXmo2PcLllOMSGr7WE74kbTtn8s5LqxB05faeZ2o1iH7cwcyvAom1ZVAWYW cmhxwnj4wARLbzvhklZ5h/7cWbqronQlAB8FuXA0YwbecRffrCbFwM0RuY9DGzi4O+h+ utHw== X-Gm-Message-State: AJIora+3EI9Uw/I4YKMVFIF/3hYm5Cqx8MstvsqoS61SaJb69oi8mtNB t963w7QoYlKO74UHyAcS7UwKRCwXvG4= X-Received: by 2002:aa7:c952:0:b0:434:edcc:f247 with SMTP id h18-20020aa7c952000000b00434edccf247mr15543375edt.412.1656057901251; Fri, 24 Jun 2022 01:05:01 -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.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jun 2022 01:05:00 -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 11/14] drm/nouveau: use drm_file_rss Date: Fri, 24 Jun 2022 10:04:41 +0200 Message-Id: <20220624080444.7619-12-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/nouveau/nouveau_drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index 561309d447e0..cc0ac7b059fe 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c @@ -1218,6 +1218,7 @@ nouveau_driver_fops = { .compat_ioctl = nouveau_compat_ioctl, #endif .llseek = noop_llseek, + .file_rss = drm_file_rss, }; static struct drm_driver -- 2.25.1