Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5748612ioo; Wed, 1 Jun 2022 11:43:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2p/JG1aC3kqPCzh5J6BJJauKzWLY18iCDCHS47UE4gCdSJP+lAw4uaCv2swu+hCn6b68q X-Received: by 2002:a17:902:e1cc:b0:164:1517:e8bf with SMTP id t12-20020a170902e1cc00b001641517e8bfmr837009pla.98.1654109019177; Wed, 01 Jun 2022 11:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654109019; cv=none; d=google.com; s=arc-20160816; b=vBlmYOWLWwzdaR+//1oAmWMXR1aLWBRa/RxR9b/1eR1nmoNxhfHMbX0S9LuDLnZJXe 2rhuk+4uomoPqxv4/rc3kzkbzJDKU6hF3gQY68HTSmZw4GkPWd7BMMFb+riUjdgQu47q tK4C3j7smcr2yBYg6iZ6sEhj8LFdOFh23L77S+ON3AJwvaffraOSC8ZDvEu2dajZh8+5 PN/HtAgwL3o6E9gNqIXkpoc9P6ixLcynzYiYsovr/B/hd825C0/TvKh1CZJ4L8XeopcI HIPvqcQRyeZDDDIo+/Qm1RCPD+zym3+Y0iZ7fZsAvDyo9yc53d/2NyrUQPfU9s9lQ8Qf J8Cg== 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=dox2mMkLl/5c9D2gga469zGN9zQ+j614KEWkuEZ4MV4=; b=d7NCs/u+npj5JWvGaSFy8hHbDplfRWtx8FBF20z5dlvUsyU2T9l0kmR+kWReGVwEuc UcAE0nspuGUO7voYWJuteFhXxIcRV9Ojsi6Qlxe44+kJTlJJx5SQsiu04VEZY8mlafLK MHpTNQjNSV0PL0/j36YOK7Yv4hoWu9W0RCT1nZeMrvUpbloG2QLsqkO/3UINdlhSFvlv QFOxp1wl8Ye7uFTv4CaWlqN1Scm9GmdbbnNi9JmSTJdgSzyfoylHrfrCUwmk7hDG7Y98 h9VCXN56I69Ni0Wxw6Z/LYei0iR9+GOIHTlY/SL/imNomm3DUjahj2yyNj8b9XgRRcKZ Mn0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TtHtny7N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b16-20020a056a00115000b0050de3100e2asi3330140pfm.97.2022.06.01.11.43.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 11:43:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TtHtny7N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D1EF8C8BDC; Wed, 1 Jun 2022 11:39:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245613AbiEaKB5 (ORCPT + 99 others); Tue, 31 May 2022 06:01:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245471AbiEaKAa (ORCPT ); Tue, 31 May 2022 06:00:30 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41C6284A14; Tue, 31 May 2022 03:00:29 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id t5so16807078edc.2; Tue, 31 May 2022 03:00:29 -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=dox2mMkLl/5c9D2gga469zGN9zQ+j614KEWkuEZ4MV4=; b=TtHtny7NdbtnaKMNgHxxZ1P6YiZMqlmrfAD504KQpkpUdOed8kz6s4qe73Oso8t6aL GH45XnJdlS9fPbcsu06cjzlIDPfSLe4vdmLZk7L0colYmkysDdcFQUfaXrpgfhWM8Uu9 mwNsso9fA2grp70nK3W+gfRLzK4em/GxgeHMyOxZAQwF2uHJZHUlKeoWDTsO9Pf3mIoR +MU2pw1Hj93sIubQtkBk95FwjgyvioAIuxLDOXetbKFAI5WclUufvdU4gR+xUVC90tO0 kjPZ8sljqOzsGufGGBR2iVo/n5ohkrTAeCPS+lQRYxTn5nYYxcG4Bmjfy2K5n7PsifJS ohDA== 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=dox2mMkLl/5c9D2gga469zGN9zQ+j614KEWkuEZ4MV4=; b=R9EQlfnogdhovkuWtbKi7WmNKNGzsgbZzVQcou2RUYVzeU3Z1K/Q9/0Hf/VA291VGC PJcI1he9qf43XlhXd2zDECwCEuridMqly+xh9uy00J012va49lpQX/xDBIDxKO0Gq1Hr 89H2ezS3LCdFQZshRPneapEvds22w3qMl88tY9CWlbIn/1PgZ4r/swKkLF5ylb0jR5Au a5uON4cJc9MAWGoR2n4eD785pwbtlKXH3XvsV7/i6g56lanyyzkxtA//uzh+PF1aYNwE KYcIkbTyT0ODLPgrInmMBC649i4ufFJ/IyWu4JnS70uDwXJdU1CWb4+VRiiui9czkC8h 43og== X-Gm-Message-State: AOAM533ay4mCTKdrXplfP9GfFptIV0dqH2UB+WIH6E3x6U8zFUKUOAck UZRRf92qB91xKHUnRm8wH7BPVbp6SLtYTA== X-Received: by 2002:aa7:db02:0:b0:42d:c3ba:9c86 with SMTP id t2-20020aa7db02000000b0042dc3ba9c86mr14927377eds.337.1653991228918; Tue, 31 May 2022 03:00:28 -0700 (PDT) Received: from able.fritz.box (p5b0ea02f.dip0.t-ipconnect.de. [91.14.160.47]) by smtp.gmail.com with ESMTPSA id r13-20020a056402018d00b0042617ba6389sm582062edv.19.2022.05.31.03.00.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 03:00:28 -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 Cc: christian.koenig@amd.com, alexander.deucher@amd.com, daniel@ffwll.ch, viro@zeniv.linux.org.uk, akpm@linux-foundation.org, hughd@google.com, andrey.grodzovsky@amd.com Subject: [PATCH 13/13] drm/tegra: use drm_oom_badness Date: Tue, 31 May 2022 12:00:07 +0200 Message-Id: <20220531100007.174649-14-christian.koenig@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220531100007.174649-1-christian.koenig@amd.com> References: <20220531100007.174649-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=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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/tegra/drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 9464f522e257..89ea4f658815 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c @@ -803,6 +803,7 @@ static const struct file_operations tegra_drm_fops = { .read = drm_read, .compat_ioctl = drm_compat_ioctl, .llseek = noop_llseek, + .oom_badness = drm_oom_badness, }; static int tegra_drm_context_cleanup(int id, void *p, void *data) -- 2.25.1