Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5754539ioo; Wed, 1 Jun 2022 11:52:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+plFElbpZoui4t4fisYnE2NvHUvNXjfxLnRyoeFI92usYf4dgi9M3+vwOo0Q2OBh5nmkt X-Received: by 2002:a17:90b:1d92:b0:1e3:47f2:fd03 with SMTP id pf18-20020a17090b1d9200b001e347f2fd03mr832320pjb.192.1654109557893; Wed, 01 Jun 2022 11:52:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654109557; cv=none; d=google.com; s=arc-20160816; b=jo7VYJet2yrrbtmYRLAMsvXg0Eugo2r1iK6r+EM3zlzSWebhu7EZ1sIhrhQsTL5IkB x3pGpnZnd9O4SjIntVCPfVvNGz5bUQAyDxSteyUY/il7m28GuHhS4MPMLVc62LEJ58oI nDJhb5RWeuv6Iv/+HAKSCXHCC0bggNwvOmqmf8GfdC1WmszcMbOXe2X6o7DsKDi6ZNuC OK3IovbJEfblvUsDd30ydMoxnNNy7nasGzqZBxyTIdC2keQKoRuOrG9lfLgRfGu3Xsve FUEgE5BKG0xSAW5S6jKmCPuOfgjVAjA9d603st6MWB8eiI5feBfq+cAlXHVfGn7/5TZI hiTA== 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=CBtdyMzsAJ1/aOexJ9rl7ZeO2ErFHAD5HxTQN3Dqn3Q=; b=HwFEuEX+tYsnR18xZnm9Jf8V7DN+IUv2LnEncmG33uPherTUceR10Tb9MPCa1EtxzY R6eiCrWruvZrPEoVEXcwE2p8ta2U43Nri5qovOwK7xVM3doZjU1O7A+Tz9PQqG9Sl6Mw tYzh6r0G5F0uCdKIBQOEJt0hR+NCx7Es4EjulEP3vL1Mzw055wLkUxxVgLAaHOzvvOtX I0Sq8wF7ioRG3f/1oR+rRl45Ans6lMx7OdeUOCK7WdvJ5cTs2ywAaZhr7xpZU8Auj/sf /Ebl75BUvsGeuj7NeSdoeRMqhonUFATNWBqYs74X+J44Bcf7ADCA1PjL6zmrzfTuWPGP SOIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=clhRBft+; 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 y17-20020a634b11000000b003aaf76cfd76si2962191pga.835.2022.06.01.11.52.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 11:52:37 -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=clhRBft+; 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 71BE125C40; Wed, 1 Jun 2022 11:41:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245455AbiEaKCG (ORCPT + 99 others); Tue, 31 May 2022 06:02:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245454AbiEaKA3 (ORCPT ); Tue, 31 May 2022 06:00:29 -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 E40E5880C8; Tue, 31 May 2022 03:00:24 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id t5so16807078edc.2; Tue, 31 May 2022 03:00:24 -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=CBtdyMzsAJ1/aOexJ9rl7ZeO2ErFHAD5HxTQN3Dqn3Q=; b=clhRBft+k4X+UmpE7If794qBfOtGFA7pbEByZ2pinyy2YRsA2O6lLDOynJMSIVJoFM Wvro65LH9mtebwNBzBwhrtxkvox46+r6wwZH4eYd+mYlM8gfp2s7dxCrtouRZ2HvQ9rb 5qqKVWSj4jEdYbd8S6LPV6K7PJCG4fHMCcDZkvLBlGNukalvsGNQKBVKwFWP7x+ZUNc0 mZXiAkmse4krF81HSAGDete8t78Ll4SG7G5gaBi9gesUSTbQOYIe2O3LdV31q8XNetNL YzKH8enFbBx54aGHmjR5bRjrnOqioVrO6oNE62MwqlFCmvCaYYCBPM8DqoQ36EIiOpxJ EWLw== 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=CBtdyMzsAJ1/aOexJ9rl7ZeO2ErFHAD5HxTQN3Dqn3Q=; b=Nqf67QK1xFhpnv3I+0YooXGTyza+0FyGc63aFgiOHpDkLk8bGbIdomrtXLmfObV57J DtG/u2Bh+5rHsyAPgSXG2qAnu8n7yueXB6DX9KJ55ZR8jF0TYOUk3PfMdUGqFYT9p3/q ZfGJE+x6gizeti6Fpxnw3zOWzB8kxaklkjEwyl62Tf9xHN7YrWV7l0hJJHOGLu1kuAvy GHjw2hjxUtEbcZKGwYXPJopHt3XlKOKH3bNe+lJHIjoelIbACxCoBYwVKLGYf0BG12Lp phNg4TKGFiljbQgwr6f5kgZhZYwAkjIZiI6ThDJabLKBn4PB0VKb+Hm6q2NxO1wZ7FDY ImcA== X-Gm-Message-State: AOAM533yI1m1A8r4YarlX8Wkm3XlUzAJlaVblAU/VnBoOiuImk0UeemL hG2FsgObjE/Zye8SQvbq0PLeDvUE0u1NtA== X-Received: by 2002:aa7:d285:0:b0:42d:ca4f:a046 with SMTP id w5-20020aa7d285000000b0042dca4fa046mr13232089edq.354.1653991224557; Tue, 31 May 2022 03:00:24 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 03:00:24 -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 10/13] drm/nouveau: use drm_oom_badness Date: Tue, 31 May 2022 12:00:04 +0200 Message-Id: <20220531100007.174649-11-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/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..5439b6938455 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, + .oom_badness = drm_oom_badness, }; static struct drm_driver -- 2.25.1