From patchwork Thu Jan 18 16:47:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Grodzovsky X-Patchwork-Id: 10173711 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2903960230 for ; Thu, 18 Jan 2018 16:49:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18CBD20572 for ; Thu, 18 Jan 2018 16:49:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C48F27C0B; Thu, 18 Jan 2018 16:49:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9D8F620572 for ; Thu, 18 Jan 2018 16:49:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0A6246E6A5; Thu, 18 Jan 2018 16:49:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0041.outbound.protection.outlook.com [104.47.40.41]) by gabe.freedesktop.org (Postfix) with ESMTPS id 223676E6A5; Thu, 18 Jan 2018 16:49:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=8FODef69BiyINdH/L8rD5PiQYifv2VgvJOCBPfnYNn0=; b=KFEOXcn+NUrBLlA6hnDPI8fC8l7bBs5rRJrDLAeQiH/5aDr3/foiRy6cOVM96iE00mVqdBj6WPTwbj+nYmOLGvI0XSjH60uwlpdSq+nDSXpqQ3h864IAQnC6vOYSKqETcMKfM08jo/fg7S5kfEkBwDC0H5zJspjrXj7jhyZ36nA= Received: from BN6PR1201CA0017.namprd12.prod.outlook.com (10.174.238.27) by MWHPR1201MB0064.namprd12.prod.outlook.com (10.174.98.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Thu, 18 Jan 2018 16:49:28 +0000 Received: from CO1NAM03FT036.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::202) by BN6PR1201CA0017.outlook.office365.com (2603:10b6:405:4c::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Thu, 18 Jan 2018 16:49:27 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by CO1NAM03FT036.mail.protection.outlook.com (10.152.80.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.345.12 via Frontend Transport; Thu, 18 Jan 2018 16:49:27 +0000 Received: from agrodzovsky-All-Series.amd.com (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.361.1; Thu, 18 Jan 2018 10:49:24 -0600 From: Andrey Grodzovsky To: , , , Subject: [PATCH 4/4] drm/amdgpu: Use drm_oom_badness for amdgpu. Date: Thu, 18 Jan 2018 11:47:52 -0500 Message-ID: <1516294072-17841-5-git-send-email-andrey.grodzovsky@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516294072-17841-1-git-send-email-andrey.grodzovsky@amd.com> References: <1516294072-17841-1-git-send-email-andrey.grodzovsky@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39380400002)(39860400002)(346002)(376002)(396003)(2980300002)(428003)(199004)(189003)(2950100002)(86362001)(16586007)(53416004)(104016004)(575784001)(68736007)(105586002)(48376002)(50466002)(106466001)(2201001)(305945005)(54906003)(356003)(77096007)(26005)(6666003)(110136005)(5660300001)(53936002)(316002)(97736004)(7696005)(51416003)(4326008)(76176011)(2906002)(72206003)(36756003)(47776003)(478600001)(50226002)(8676002)(81166006)(81156014)(8936002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR1201MB0064; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT036; 1:U5kpUtJ+xp5fASnfmIWIob7MEpXkYsOmeI/T78bvbyYA6y6icq5k1MQS1m1pOEupf9NHXEfTWHyuMmWqnMQ3i6LiTzic7ONHO1CLEmH0hEZdX74eKqOskRKtA1+/1UPU X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1089fbf5-16be-4dc1-be95-08d55e937027 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060); SRVR:MWHPR1201MB0064; X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0064; 3: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s6n0BAqugVnmel5gz8p4rCx8wmnk8Q6T+3z+mNFUX3JIZxcIJAPFBqgAPoX+QUyGo0cQzML/w0DhjaH7an4YdxTovYg1YItD8qTleC+sp8PCbw3Ut8weCx9oDaRuV8xXcqLVHY4/V+TZDXQjkxXVnJZdzf7cfaT87NgeLimPKYHRJyqsAUp0R4XNYuiLgHRCSu2gu2i+SAbrWEa7xn5C2G0EJXGvK4PdyMBfthdvwEugrw0tBj46OQXcxZa8htWXYslYlmBihwdfogw/NRE9wsiSMrnyXXpyLEJB8ETfGthA6p01iY4mF21mzjFAuy37bNFW+W8tuqM9kqcGgjlbK/O0zRPGr/WXXu/9LQnFJCLsnLzb/3asfKvuClmKCvDoivG7yGAK7SpdL9t3QiMdK8I0hkJIIsbb2XWX+hXcHZ5Lz7S90zIYlqZ4LnoAA/8 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3231023)(944501161)(93006095)(93003095)(10201501046)(3002001)(6055026)(6041268)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:MWHPR1201MB0064; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:MWHPR1201MB0064; X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0064; 4:qag671hCbWlyouUOZXf2XN2S2T6/ufqjwhWroHJWUtgYn+P7PR3ByWjzqqiEse8xifdi0Z7BlbXJYO3JK4E+ONw5Mo3g3ESvJi17nLjZslQEJbu8iR8x4/XA5QfozzY6VWAdC09E6/IrG8pW/D3Atl3NKmoV7CEV/XvTMB5pCVodSuJ8sEqZX0pO9Ci48YhK9eIZK5LgYiMPbiwNgGtKUKY5mBdlXUKstW1OZTEToLt7NU/dTKKGq+4BoheNMDpaFX4Sq23pv5V7zR+lFdZYo5rJ5upttqVjjb4ZmIZ6Jj7pm+MlIrcP9fnvgG9A9mbb X-Forefront-PRVS: 05568D1FF7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR1201MB0064; 23:1scDSNEq5bvcNotFZASc3GoE5zeKZgWc2QCIM+f?= =?us-ascii?Q?kFbK5MRkBnGQS93S2i6oiTuM79LO1u50cmeHpu52pFTancLL92E9b8/TQq3i?= =?us-ascii?Q?lxZsGFwuaotbRcBunTANaoV5o36be7/QWyXp3cD5ZLMX84Eplr+pCZvvhwM/?= =?us-ascii?Q?dCJRjya+PtUaYtZ73M4L11ZkQp37ue2xdgypxs2BJ0ApyGheLshvbh0J6Z/+?= =?us-ascii?Q?SaB2r1k3MxsvuIFJyFpLQLGTIARR1hu8GoccaXA8ppUltoIYhq6DQt7p31ub?= =?us-ascii?Q?6MifwWaD8qSUeSZIU/ZRroTbXkurP/vij2ZD0h5/2eHPaxIzs0DJGMG31ZKQ?= =?us-ascii?Q?bNo1w7m3JYox+RrrS9Jsk3C8mWx72pWDV+MC71zPI+DtRkDll3B+TIVdKvla?= =?us-ascii?Q?mkHsikpi7i0Im6VAD0IJ1rPdK/eC/6hradI2+Xd5HeBn7TkswuWtVxSGYH0V?= =?us-ascii?Q?WsP4PzHH/ZHcolzEVUZYVVpRVATIsCfChs4Dz5WBZRQAcm40mvu8aF4R6293?= =?us-ascii?Q?ES4qAYXuzixOU/LpSshy6O1AL0pgw5P0/1iTnJQ2COO7iVZWMaR/3YN0WcNF?= =?us-ascii?Q?loYqbCpqUf2/kl65lVMAH4LKpuMPEwL8MHbtmUePDiSh8AZb0ySGa1rNrySi?= =?us-ascii?Q?oYwbbW4jmrPuj7irBk7vQZUTZywW8K74DcCCBxwABKxVVqe9M3B2/QWOMHcP?= =?us-ascii?Q?QhfShZVvjram7vCxQDsKR9UEVq5IP1MoMMoVFzneywfDv7mPnk28hmtg7j6t?= =?us-ascii?Q?I5Fg/h/9QWCFTOkjLW1gI1ymAiJKKJrnK2q07M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TszW30KuEv4vFwI=; 7:DHDKu3LlsdozImQXwnJza/pW5OqPP8FO9esErta7oj1reZKQmS6HJDOUeQchbF/gtKdrx7tv2VTUCkn1HrOIAGqDQnhZSFgIl0UdcMS5iti4ehRu/wgFU9SRsJ5KR96I93HJtGoBkeO3gMpGZqejIexBIf+thRp8ElaEroDcH43lo8DnrU4LjxgvVaNvR5l1BHFaaZng0Z3xIJEptgmaSSYOTREfL4d3HeRlXYz5gIL7f4IcpNAgocMjua278NYD SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0064; 20:bS4Adev1ZLp0aq2VtbZyp4+TtzbHxlpLGXLFdh0yBN3A39VdwKtvL5jPzB6GRyQK30XHQxjJZBl9K9CPmJ73/9/jfcgjsht20j7jRKe1tm9/Ju3ICVurcCU3lyMQnIwz7SzS9yJRq3SGtFbqyufZzeqZIeWeMxorq+mh9yaTVDYFFC5LWCcSXfKzFsPOM45rV1dEFDXf9MExtwhj9SJecJ/znmdfNfxdJo4tHa03nCWfO20CdSGzC7QLZE6MB/Fh X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2018 16:49:27.5774 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1089fbf5-16be-4dc1-be95-08d55e937027 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB0064 Cc: Christian.Koenig@amd.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 46a0c93..6a733cdc8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -828,6 +828,7 @@ static const struct file_operations amdgpu_driver_kms_fops = { #ifdef CONFIG_COMPAT .compat_ioctl = amdgpu_kms_compat_ioctl, #endif + .oom_file_badness = drm_oom_badness, }; static bool