Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5332777ioo; Wed, 1 Jun 2022 03:23:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1tygPuz947K9etNBMmpoxmF23HX9nMkx+YOA3MVoBMdzRW/ZjBbYbNjCayYDseP7y6RCu X-Received: by 2002:a17:907:2d86:b0:6ff:14d1:b29d with SMTP id gt6-20020a1709072d8600b006ff14d1b29dmr30371248ejc.17.1654079019290; Wed, 01 Jun 2022 03:23:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654079019; cv=none; d=google.com; s=arc-20160816; b=shmaI8GFS/i2AQpTclGwma5LuR3p1Q5cobUXrWzvm5aD76K/zoahUtbNCSF3fqI8QI DBiwVeTgbGNj0fXBuwlH4WrRMF3gbQxCm2Kaln6jk5kn+kdXwJJSOWzNRg2+47Utwjkq QIwBwRMkxZP5bEIuszL5jmC8w1JhLjcOzifBZWLZ8D1rZtbdkM6Yurcmu+Pyjjf57Phu ewFBScY4596EYTjZtEYLDMoic/u3GPLrCSLD4B8OCbDyQZvwMSk/z1mGuDPAYUkL851z TghXvWTy70LEHlRR3IGVLB1gHY8EUWO1owpTc/A6R0nPPLy0jiQO/8meccfwgkMbA1aI xLRQ== 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=JruBtp3H6AJykO9OR/eL1GiHC7q7udWmPGM/sruwocU=; b=JxHp3Tg29nxx1n4iTwZer0yjdf0bZwjMArV0e55Da4KvgRKSNtuOhln4AVWEB0yAAt keaUNLPeJVSG3yuC+bu54ZIdkH7Ho9cAZMC5g2tO2iE8F1Bu1ZDf4p0PW6nJRAhsftql q8Yyh12jfXO42VLrQPkmZQszlIlLda0VlftD5OLjJShq0m3BUqA8gPZgolbfz9MFSNR8 XR4/nfBZP7Y0TBdlStcGcSb4QP3QUzhtqyuH3p2BcWAr4HIuA25lXwLTzYzN1UfWTE9c XgTqu1k5ejLGoUz7nug4ZnuR4KWZ8sOPr5VmJyqROK3K6UsgMlctkIXumuLzl7DX9UII eBNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gblxCfTt; 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 y22-20020a170906071600b007067e9562c1si1279713ejb.347.2022.06.01.03.23.12; Wed, 01 Jun 2022 03:23:39 -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=gblxCfTt; 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 S244578AbiEaKCb (ORCPT + 99 others); Tue, 31 May 2022 06:02:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245461AbiEaKA3 (ORCPT ); Tue, 31 May 2022 06:00:29 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 632C0880C7; Tue, 31 May 2022 03:00:27 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id er5so16782195edb.12; Tue, 31 May 2022 03:00:27 -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=JruBtp3H6AJykO9OR/eL1GiHC7q7udWmPGM/sruwocU=; b=gblxCfTt5pOw7A9YHZEJV+r2VG2ChUPoOQENqtkp2cD9u6jNXJgjxv2GFFFMsM/j1v Q2bAWtuYoHVtOWqHe7hjKmrV3TsMB+pNFCxXxg98Hxoy145vOkyrtRBbQ1b4zZpA+A1+ m3vrIpLanU3qXFTpv1WHgWerwCM08gLxzMyuLrfLY2BLdTpWmtpZZCIA8VnGVxQPJSGw xqv5Ii2BDXG3LKm7eR73P/dCNDyy1at1PARvuyUQJ4QUTBg+DKyDnVUw6Iop+kGwRAzR hJvsA8R/+LW94eBMAMh3wccqPVIx8QKXEc5XbXbso3UNdF0HbknOCrBEyS28rXYGBpJ4 wTKQ== 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=JruBtp3H6AJykO9OR/eL1GiHC7q7udWmPGM/sruwocU=; b=FU0CaP1yyNOiUsROoOGnE/GK2s/hqKZMFHlJhUAgsLPCB3qEYItB6R7D1Kjm6v/T+E zum1YSidMEMbK6cZNH3ty8eorbktpCQgiKuW/OVLXoOMiInins7NoI7NkrYleizQ698c hh5WHfAKgRvF9UoXkNb13D2Hr+9ZHmBj1iNWjIE7oy0VNYWNq5j0hbk3JjtV5iReUeLy Ixfw14MhPg7Jy16I5LVvCseQ66sN69+upFxOXsfu/yNpIV0EJ0Rlo9A8labBjO9etHJL thNlelDrwvI8R8RgXk7FyMFOCpFl8abmH9UpNKMSkr1lxCfbETxsaOGIP9Vfmcjecciz aG1w== X-Gm-Message-State: AOAM532yIh4+RSgwwzUBRLyNrCcqzR3QF4foOkP/J1Jozk4tGazrYyAN aWkSk1gOICm39QkHUH+Hz/Rby0HZmUrofw== X-Received: by 2002:a05:6402:350b:b0:42d:d565:a62a with SMTP id b11-20020a056402350b00b0042dd565a62amr7607557edd.172.1653991225974; Tue, 31 May 2022 03:00:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 03:00:25 -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 11/13] drm/omap: use drm_oom_badness Date: Tue, 31 May 2022 12:00:05 +0200 Message-Id: <20220531100007.174649-12-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=-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/omapdrm/omap_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c index eaf67b9e5f12..ca2c484f48ca 100644 --- a/drivers/gpu/drm/omapdrm/omap_drv.c +++ b/drivers/gpu/drm/omapdrm/omap_drv.c @@ -684,6 +684,7 @@ static const struct file_operations omapdriver_fops = { .poll = drm_poll, .read = drm_read, .llseek = noop_llseek, + .oom_badness = drm_oom_badness, }; static const struct drm_driver omap_drm_driver = { -- 2.25.1