Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1241105lfc; Wed, 1 Jun 2022 12:48:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3SEu84IdZxKk6OVEDYuHGLO4KvYfbw78vjDW3jBYAvfDO5AOy/J9t+hi3ZDbd82GA4o0c X-Received: by 2002:a05:6a00:414c:b0:51b:bb70:e259 with SMTP id bv12-20020a056a00414c00b0051bbb70e259mr1191741pfb.77.1654112907057; Wed, 01 Jun 2022 12:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654112907; cv=none; d=google.com; s=arc-20160816; b=fQWqfJ/U2viULxYX6jiTXGvZBcQ3rTF3r1GZLZQlEvMsCzreUeRV26pPbQFjt4XcLF I0Jv2hXYpjkyPf3IxW1ZsPTBl4VqcmIzBNhP5T0YMrRtxUOQ8gQA6zeSRz3u3QBist/5 KMJfJ0WcB4dJOl3HwL/lFIRX6ujJLRcws4zdweb41xVs2ohqJfFNxr0H4OkiEN2AKons kKgwHd/Qr5qfhIVHCho8fFYyLSd0WSd8YJdTXGPS7rtqndIF0L+utvW+h2kXfnIMKgmw gJFNyE1nwRlY6ZxK816eAG9eJkGP1bspGUlNBjUamyLQgSRM81zGEysUjhzxEnLGzEPi yOMw== 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=0fF+SmUCgmGBHMWIupVoHZia80K1ptfL7PQV1qLHe5E=; b=j9swg9F/MfaFyff/n53CtNHaK4C8FMzlvlGGzKYqkG4sZ2WnXnNjxciNStE1Dm3YJq FAPK4EHZ6/Kd+E52KUxNWnqHwLOyCNWoyy1TKadfQAfSc+Gksvzi6Wyvh3xjyqMEskV3 EhYHAbupKmmruAd6XsszXjkOgSZgDELJfHuALxPYXjZ8ZDKeF/y7lKIjzs0wdTXfECV9 fhN+ljlPhfbTYJn33FKNdg6jxwCVl9TFeYPyy0wY+KmvW1KeO0ORLxHAhEyz90dqJXmh phnrSDTIsLPZpmFhWxdbFvaxWaSjjHGOWKS2NxF734LUHM0pWzh12IyAn61F3JhveFbv CLMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="pGad9b/B"; 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 y16-20020a056a001c9000b005182fda1b23si2691239pfw.236.2022.06.01.12.48.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:48:27 -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="pGad9b/B"; 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 91664B28; Wed, 1 Jun 2022 12:11:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245655AbiEaKBR (ORCPT + 99 others); Tue, 31 May 2022 06:01:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245450AbiEaKA2 (ORCPT ); Tue, 31 May 2022 06:00:28 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43FCC87A2D; Tue, 31 May 2022 03:00:23 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id f9so25641882ejc.0; Tue, 31 May 2022 03:00:23 -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=0fF+SmUCgmGBHMWIupVoHZia80K1ptfL7PQV1qLHe5E=; b=pGad9b/BwcaioFOjylZCfm5P6oSeZF3Qa2xsSM2t1mLTeOulJ6Fk7o/kQXSFGfU7lJ fp+6f/aeJYjHr4ThwoNMeFWvRYk8Xi3t4V6MuHjD4pXyJ85cRklWkQW6ame4vh7fx+mt eaMJgziirhMF0TIu3swNi0t8QcgG/D+TrXhYN/6zpOjgadE1pDN936EPEKG/3T0VKKBY eGDD/HmuCJdKW697mwOSCL+AIzK1PpEsB7W8mV3UO/gZVPIZSxHIDtHAeMFs64m0dwsi kXbIgj/gmD2mW2jfFnmLmUvUEs8rVjrgUuJi5qMnGsABI9in6Ar4JrgyhpFWFSv1YPAZ psrA== 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=0fF+SmUCgmGBHMWIupVoHZia80K1ptfL7PQV1qLHe5E=; b=nTwOKydqhN5bacDl8hSTSRxO1mPqYUXLZErC6ER51tBidOrNfuYj0CuLzySkYKkB3z NngECq4ySp5yIsE4TDxsRKv56V97PUusccFdQkDfVOSPEQFeknvcEXdfefogiqormguX PlQC90/mbZaIcBDWTA95bBA5diMz79Dll7VaLUXE9kXILsiSKZ9zu/pttLypxfVmkAee HYVoJI0T6Hb27oD1Si4iKIpuLb9QbRMVKbtfDD1YplzrVDSFmy/nf+YaDIBrKZcII/1u 2zksRBSFqJWjRXIYQxZ1XgOPHfrTkqTuOXcEv0htf5DKGJw7n1T1X2ayUVaKKD4CJPS3 XqcQ== X-Gm-Message-State: AOAM532cop1F6/v4GdW1dgs3Q7QKNp7SJV0/ymS6rXW6/p5Peq8RztW2 56+sL7d6/8zDSXZBh3MznR/eDrgR1CxM2g== X-Received: by 2002:a17:907:9482:b0:6f5:171d:f7f5 with SMTP id dm2-20020a170907948200b006f5171df7f5mr53043726ejc.68.1653991221803; Tue, 31 May 2022 03:00:21 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 03:00:21 -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 08/13] drm/radeon: use drm_oom_badness Date: Tue, 31 May 2022 12:00:02 +0200 Message-Id: <20220531100007.174649-9-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/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..7e7308c096d8 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 + .oom_badness = drm_oom_badness, }; static const struct drm_ioctl_desc radeon_ioctls_kms[] = { -- 2.25.1