From patchwork Tue May 31 10:00:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christian_K=C3=B6nig?= X-Patchwork-Id: 12865253 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 171AAC41535 for ; Tue, 31 May 2022 10:00:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D17EE6B0080; Tue, 31 May 2022 06:00:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CC7C36B0081; Tue, 31 May 2022 06:00:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AEECE6B0082; Tue, 31 May 2022 06:00:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 891AB6B0080 for ; Tue, 31 May 2022 06:00:23 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 4EBCA33F17 for ; Tue, 31 May 2022 10:00:23 +0000 (UTC) X-FDA: 79525593126.06.6F316BB Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) by imf24.hostedemail.com (Postfix) with ESMTP id 1CE5F18004F for ; Tue, 31 May 2022 10:00:07 +0000 (UTC) Received: by mail-ej1-f47.google.com with SMTP id jx22so25472627ejb.12 for ; Tue, 31 May 2022 03:00:22 -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=cNgj9/+7OHJrQT3mR9QjybeE31vCfgkWciXUC3xiX/GEBAYDYE8FSQ8X+Pjc7OrHQt bB1H0+txrjnAZPTqJr/f4b/HNzyjl8YXhMuDsPSO2JcV0AkdIlFDuiAFTEQUde7Wxvy6 i/+KJk7AA8gFA8Jx9hq4dcUCoRkU3kUKDF0GS5gmjC2GG2IKaH4jEPjYD2lOq6xQ3gXP lJayV2DsjpZ5AGdeXyG2r/5UEOXTfdJS/kKustEe2SRgCP9TBdtVquST4+c7JPTedgqG YnWZX3JNieyA06a9TdjixELoLmtSdprdgvgVJIx/HgGZjUfbGi7LjO5IyjRv3aXqEdnt 813A== X-Gm-Message-State: AOAM5329AYGTYvzy6rOm2DAWTeD5ohMJUUqcvqTerFxLEkVRuUo7L7Ez YQludUKzPRwSRnLY5DfUA3U= X-Google-Smtp-Source: ABdhPJzxN/Ir8FJD89b6qow8Ub7cZ5+SzEkXV/zrFCVZFTH37oV1HNV4o+OUoqVfB6+SbpZEADHJkg== 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_K=C3=B6nig?= " X-Google-Original-From: =?utf-8?q?Christian_K=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 Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="pGad9b/B"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf24.hostedemail.com: domain of ckoenig.leichtzumerken@gmail.com designates 209.85.218.47 as permitted sender) smtp.mailfrom=ckoenig.leichtzumerken@gmail.com X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 1CE5F18004F X-Stat-Signature: dpgunnynbeti6wmok6ndmk86tj75xyj6 X-HE-Tag: 1653991207-112290 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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[] = {