Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3831117iog; Tue, 28 Jun 2022 03:48:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v5HZyO/ovAQfPQvVlpd9+KRT6v9T9DjLTAKtuNNLHL7/LOIDg43X4CWqgt+cILbJEhwjBq X-Received: by 2002:a17:902:82c3:b0:16b:844b:a5e2 with SMTP id u3-20020a17090282c300b0016b844ba5e2mr4166116plz.37.1656413294669; Tue, 28 Jun 2022 03:48:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656413294; cv=none; d=google.com; s=arc-20160816; b=iRyJDlLPTbrXxqpz73gwjJB3EBiu4HOX65GE0vvEpdwQXPXguTiBPLslErm/bMlN7p PB9K1CsjVv1Rm75wi1k+28EE9utQ1RlSw1mGzdtzjPz8n6jLjX5QhR9KOmYyrFC9tHzO eb9+c/KCFYZ2eXIWMautJpIh+29QkVSaqg7dbnLMboq1hotD2NQ1an3Opr7kO6Y1HKm2 b/S82DTuakd6LKB0e5XgH3uQ2rcrQmFlVMt/17cx5WxO1WHUWRk6EaIKZg5/JQ/gp65+ Kn1/ATheAsKM7eHGt69DawM4qQPKAkM8FcoT0WWgFi7Ji9E95BJ/BNLvz/AJDdA8g3e7 x7QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :message-id:dkim-signature; bh=GCsmhwxPKBHJ46dWmiVRWHiUT3ks2E1dAcyONJ6hmBo=; b=D2XMQQdt0R6QhmBfXnefl950+O9SUbt3V969h1FTz5W8jXVSOyVqM13lxBEVtlyKal dPnnbQLVr7rrFx9M/i6kqL7ywqGu7eJDS+522Fm8v3xV5ELafXaV4Rtmuhp1QZFURmnV //Je1nljp+y2bGv0DRRzcFYOHUODGFFX6+DSAq8lN/qO9RxqTk50o8dnTTFn+RQB5jVu luIIBKmr7ozOzMPujVu8M1DVlxc6G178OddKikpioufqd8zOIEp0KSXRroHfb93JJmLs jU9Et1SQ9lokDs48wqC8vKVPUwEgxKiPJhZiozuFAimfqXA6ON2+/wOwuNqN9aen6gg2 tV6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=osKoUFpD; 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=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m19-20020a056a00081300b00525626fe8c0si20881700pfk.365.2022.06.28.03.47.49; Tue, 28 Jun 2022 03:48:14 -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=@mailbox.org header.s=mail20150812 header.b=osKoUFpD; 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=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344933AbiF1Ke4 (ORCPT + 99 others); Tue, 28 Jun 2022 06:34:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344922AbiF1Kez (ORCPT ); Tue, 28 Jun 2022 06:34:55 -0400 Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [IPv6:2001:67c:2050:0:465::101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37F5531394; Tue, 28 Jun 2022 03:34:54 -0700 (PDT) Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4LXLZL2bFCz9sbl; Tue, 28 Jun 2022 12:34:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1656412490; h=from:from: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; bh=GCsmhwxPKBHJ46dWmiVRWHiUT3ks2E1dAcyONJ6hmBo=; b=osKoUFpDaV9Xn6/YR52+bC3Tp28nCtNfV1JX5uc6mV+dvDRWGRuKf/MHczF+HeCF4rqvR7 mezcwxwPkJRVbqBszbnVuriVCGDFFqb56FfwdDKZl6ybcE1cZhXjAEVbKEzu/c9i+avuJy lLhvsIRSB4qRpw7QlHM89oMr1xADNSThQcLNaR0vCS79jfevUDcDgd+uYUamRsUMkX+xHh T58dZSzAHkXHgmwp1SyMUhnYq7ZVj6wokc/STn8FlrgS1dFtokX/XxUiId1/ylmbG7yicV CTJOo7cvhVVQ+tSZZmZsMfvlZhAuTHjdcj6XiuHiWgfBRE7IdRMx6quP7QoJ/w== Message-ID: <9d02d901-8015-dc02-250b-97ed1cfa16c2@mailbox.org> Date: Tue, 28 Jun 2022 12:34:48 +0200 MIME-Version: 1.0 Subject: Re: [PATCH 09/14] drm/radeon: use drm_oom_badness Content-Language: en-CA To: =?UTF-8?Q?Christian_K=c3=b6nig?= , 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?= References: <20220624080444.7619-1-christian.koenig@amd.com> <20220624080444.7619-10-christian.koenig@amd.com> From: =?UTF-8?Q?Michel_D=c3=a4nzer?= In-Reply-To: <20220624080444.7619-10-christian.koenig@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-RS-META: cutc5b13i4ckkykp1cme1mpqiajc1ikh X-MBO-RS-ID: dec7526ba758fff16cd X-Rspamd-Queue-Id: 4LXLZL2bFCz9sbl X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On 2022-06-24 10:04, Christian König wrote: > This allows the OOM killer to make a better decision which process to reap. > > Signed-off-by: Christian König > --- > drivers/gpu/drm/radeon/radeon_drv.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c > index 956c72b5aa33..11d310cdd2e8 100644 > --- a/drivers/gpu/drm/radeon/radeon_drv.c > +++ b/drivers/gpu/drm/radeon/radeon_drv.c > @@ -550,6 +550,7 @@ static const struct file_operations radeon_driver_kms_fops = { > #ifdef CONFIG_COMPAT > .compat_ioctl = radeon_kms_compat_ioctl, > #endif > + .file_rss = drm_file_rss, > }; > > static const struct drm_ioctl_desc radeon_ioctls_kms[] = { Shortlog should now say "use drm_file_rss", right? -- Earthling Michel Dänzer | https://redhat.com Libre software enthusiast | Mesa and Xwayland developer