Received: by 10.223.148.5 with SMTP id 5csp7732314wrq; Thu, 18 Jan 2018 08:50:34 -0800 (PST) X-Google-Smtp-Source: ACJfBoucXSab6ybED0PuX/ZQthrqzcQ1PjrNo8mY7NtCYY2tmMUIs5U99w6JLphRW5GXYg7w7si7 X-Received: by 10.98.11.17 with SMTP id t17mr6328306pfi.201.1516294234770; Thu, 18 Jan 2018 08:50:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516294234; cv=none; d=google.com; s=arc-20160816; b=h+6TvoowtAZW5t9zRlPWOszc+ofBU0JqILVFE1Fes93OGVKj+DMZ+kzZzjh63wPL38 h37fm6l4gCIHfHO9+Umt8CqffnlSpZMATXkXuu2djmiqiqBJnk8/4MES7tuIL97N8eYH vY+eYM6dGJ7U0atVruxaEf1fymEkMLmPWZc9rvxoDgAZrd1AKf3q7zd5NY2LuL4MwG+a u2VUeyQW/HCPZDNoc4k6XOuM247fMBPOSmRblDERYCtAhfHy3cD03OKx1c4hdU3ntFEk u2SQvgdiMqyq7UKiCe4eetnvrB+j+YJFaW2UNfbGSlJ50j+DEq/BuHuRIuQ/0QpC83+N pyaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=8FODef69BiyINdH/L8rD5PiQYifv2VgvJOCBPfnYNn0=; b=R1VPy5jiaGtIqQ2npN/IoZvr72EFk6OYtdjVMeqQR+3CQFrL2AQyevjS1ytdmUOJsp uA5wn1XnirnP/gChBKlp1jHsB3H5dRR0gAduqC+fuBQeIz/K8il54ncSoKOAAyphIoXJ qdTN0eMb5m86qNBsLa54tmHobQ//bHwLqh3+LlhOdDTtBqzo4jgcksxe4Bjv4mHxpdqm hj4mcvVcfR3XrGC7eloh1AziS2K+bX4XBpHjj5WK0DaZK9MiWd561i2vxbqmCva0/g5f ucS81RA0xGIVGmnfq4Nvd2AMe1ItaltxsaRvjWgjvL22BDJIujJeC/9Aw0YDGnH0kyIU lFtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=KFEOXcn+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7-v6si20696plw.173.2018.01.18.08.50.20; Thu, 18 Jan 2018 08:50:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=KFEOXcn+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755027AbeARQtf (ORCPT + 99 others); Thu, 18 Jan 2018 11:49:35 -0500 Received: from mail-co1nam03on0043.outbound.protection.outlook.com ([104.47.40.43]:55424 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753361AbeARQta (ORCPT ); Thu, 18 Jan 2018 11:49:30 -0500 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: , , , CC: , Andrey Grodzovsky 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 Content-Type: text/plain 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:HGnWJCALs+wg26ZRl0LLAd9+u0/xcd4xCS4sDAyb5xdUwfUReJS0732jT4aEZAf5JRZJUEy1IDD1611G32gsOrDrJ1qwecYwnbIqzqgipt+/nDe+gE628tCMOqkR1E2aVv+NYQL7jLDjRWEcomnDN17yZYZAzlAimU1RGfh1Q9BAq2Zkx7oevNQFw1CvQWyOlRJc+qHgq4PKMvZKS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xn5C2G0EJXGvK4PdyMBfthdvwEugrw0tBj46OQXcxZa8htWXYslYlmBihwdfogw/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?kFbK5MRkBnGQS93S2i6oiTuM79LO1u50cmeHpu52pFTancLL92E9b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xIJEptgmaSSYOTREfL4d3HeRlXYz5gIL7f4IcpNAgocMjua278NYD 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.7.4