Received: by 10.223.176.5 with SMTP id f5csp4260485wra; Tue, 30 Jan 2018 04:43:44 -0800 (PST) X-Google-Smtp-Source: AH8x226L6WhwJ0085/sKYi/iPkdId/neNBb3xKm/bjR1j9XGLHEeoKp9myKu2mxzREe+tZdvMgBt X-Received: by 10.98.222.198 with SMTP id h189mr30687388pfg.150.1517316224340; Tue, 30 Jan 2018 04:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517316224; cv=none; d=google.com; s=arc-20160816; b=VXlEj3JT13w3PVXrd/Me1Z2Nm96Z6r+vbnvaiTwVg6SMYJ9N4ed0IWm2Q+Y9Af+Tiy 5WL553pkJzNi2e/bD6pSCg1nrpdDMzIt7VI7veBb/Aeld6zvSMQocLmOZ1HTZvQVxU2u yCkMmFKHxkakhTFe4vnwewGGN5Og7j/VtMDUPkFMQ6m3heRO/cgdGhnl6nYQwuyAYjth 0WjLYWYCcTpgdf7YTQNVPERS210Gtx5mmzKeya4uWpA5/OHlM81L4MTkyBaYFf00QdFV hEhekvwYX18IPRIW5MPO/oKh+4zmJW/A87hlgyTZ8CbsAB98LrGjoFTDfrCWw1zrlUTt RWtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature:arc-authentication-results; bh=ywlSSP/3vsu7oaNcJpJX6MMr3ecXOyBSmTxz6FvuBo8=; b=OOAOFC/Ei6zwXieCowhEqTWWChBl2fw/Lb3b0kWTOj9Hs9k2punSTznC2TpaI9DIas vKZlS1bIqnMyswMkMCqeqVP6kYtTWriGdyqWBdjpBTFImO9IuYgl5IJ4xBwMAquVn/6I fQ/UUEOekZoWJcpXCfbm57vV5GXOkhwopYEuD1yTPFIbjR9Qi4834AGMJjoT75bLnZYT FBlHkHzWcXHQEAShzS5oehicECyPCPT6YuzdnkoUxFEMqamYj4/BXJWeSLWg+nPc3tyM uu3yePuVrre61QguKv/wsxbEIoCC+fSo8iwvfYjPje4woWlr29trrhW76D+FAPx3sShW Bxbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=EqoxqvRl; 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 e4si9177511pgs.271.2018.01.30.04.43.29; Tue, 30 Jan 2018 04:43:44 -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=EqoxqvRl; 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 S1751934AbeA3Mmv (ORCPT + 99 others); Tue, 30 Jan 2018 07:42:51 -0500 Received: from mail-sn1nam02on0045.outbound.protection.outlook.com ([104.47.36.45]:24064 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751831AbeA3Mmt (ORCPT ); Tue, 30 Jan 2018 07:42:49 -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=ywlSSP/3vsu7oaNcJpJX6MMr3ecXOyBSmTxz6FvuBo8=; b=EqoxqvRlQN7W0/XKU037s9C6ydDnD4lJ/7wU6pysDzdL1wCdUl8yYuZpiniB5w9bhZk5Eg14Pz1gyp0LZ4DslCz2NQlTyixyDr8TqZLd/P0qSwsB4ZNs9sv0BaRpDTuz8P76H0W/8t4BZoOAjiqEXr2v5e82R/CM/xIzjtetyws= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Andrey.Grodzovsky@amd.com; Received: from [172.27.224.115] (165.204.55.251) by BN6PR1201MB0115.namprd12.prod.outlook.com (10.174.114.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Tue, 30 Jan 2018 12:42:48 +0000 Subject: Re: [PATCH 4/4] drm/amdgpu: Use drm_oom_badness for amdgpu. To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, Christian.Koenig@amd.com References: <1516294072-17841-1-git-send-email-andrey.grodzovsky@amd.com> <1516294072-17841-5-git-send-email-andrey.grodzovsky@amd.com> <20180130092413.GD25930@phenom.ffwll.local> From: Andrey Grodzovsky Message-ID: <1670268a-863f-2a95-fd1d-f59e5ebdfcb3@amd.com> Date: Tue, 30 Jan 2018 07:42:46 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20180130092413.GD25930@phenom.ffwll.local> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [165.204.55.251] X-ClientProxiedBy: BN4PR12CA0015.namprd12.prod.outlook.com (10.164.241.25) To BN6PR1201MB0115.namprd12.prod.outlook.com (10.174.114.140) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b5d1fce3-8ca4-4cbd-ccf0-08d567def815 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:BN6PR1201MB0115; X-Microso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crEyTrKqdub+Nih+KycnhyLZQcBINjl12RL7+Hpm6yrNEw+hYVSOIvvwCORZPBV8bmj8wLd1WQUIzbtGzyItw0q3pHM/gsNkH+BKd6gnAn26TjX1k+jo4LKmNnOIuo09wvpxp/lascHEbZDg1byLxnW97bG+eN+kYhSwtukA7JEA55Ofri3cphkMXT4a0roX0bUBaVoEvB4MCDZIeBcGKHvc9yqeVFpaQyHqpdiq6agjWA2/9IeFjdiwQU0v7XJeJ60duOURY/NaEUa4HmtQHHaiD4CRNGob4iqUP6s4+I3wRrR0PCJWgvrU84u0sHiVdukyt3EJGtKpRbXu45kKyjIT849lUiGJsCVod2jZDcnBr41mjlI150d8vqBgpbwwvZj6t2R5hQ9;4:0hVe6qOdAVeSDgmFsd5gHZn4Ic/aEiftFWyDPEShXUFVF5ImuESfFF5z5BoOUzb7NveKILnqIa643HxP0ibi2L4aaiRDCQVH136MYbUrCEHnp29jEGWGlCn/KWL3c0bQY41LItl9X/b+10/pBmJj0Re7/DDlXwhNya6DbzjLc5h8N2OwHNi9QalYNxjB+vt9X1UOIQ1vjk1zosNMB6iv69Nvsyy9bnEWov+BXTieu3eprb+yzdD54hStfjVcWCo8RR8Zjk+dyC5HNd8U2/NkPblBzpnYBN1rwUTfA4odY62PnyZEFZ7BW43QUt3mL5Ru X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(3231101)(944501161)(6055026)(6041288)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:BN6PR1201MB0115;BCL:0;PCL:0;RULEID:;SRVR:BN6PR1201MB0115; X-Forefront-PRVS: 0568F32D91 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(39860400002)(39380400002)(396003)(346002)(366004)(376002)(189003)(199004)(58126008)(2950100002)(16576012)(5660300001)(316002)(65826007)(97736004)(6636002)(90366009)(53936002)(6486002)(31686004)(229853002)(72206003)(83506002)(6246003)(478600001)(305945005)(86362001)(230700001)(2906002)(25786009)(575784001)(7736002)(26005)(106356001)(386003)(64126003)(53546011)(50466002)(47776003)(81166006)(3846002)(6116002)(8936002)(65806001)(66066001)(105586002)(65956001)(81156014)(67846002)(36756003)(68736007)(16526019)(52146003)(76176011)(23676004)(8676002)(2486003)(31696002)(77096007)(52116002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR1201MB0115;H:[172.27.224.115];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjEyMDFNQjAxMTU7MjM6NnZmRlc4Sm1FeTVJUlZSSmVFelVMb0lx?= =?utf-8?B?bXUwTU5FWGVGNTZncUJleTl1N2NHZ21hTVVibU8xLzZxWXhLVDJLM21SRVN3?= =?utf-8?B?VnlOaHZrYzR6VldJR04vMHR2cmthbUhaSG52RC9ycG4vOStBbGRVZkhHQzNv?= =?utf-8?B?TmJNK0I2eG45dXRQeno2ckhGTjd5OVoyS3FteWJSVk14TE5kaHlQN3QrRDVn?= =?utf-8?B?ZzNoVDE0UDR0N3FzdFFvTjdUS3RNMk1XVnUrYzZ3bVRvZ3BadXhoVERvbnRi?= =?utf-8?B?Q3ptMFl4aHBVK1B4ZmZFYVhPdkYwZmR5d3l1eVRRWUZzWVZZODBKY29LV3ll?= =?utf-8?B?cDB4b0ZUUXVWb0RKUndmRVloaXBtUjlJQ2hZT2JlR0RKVXdNbmNhWVdKUEk3?= =?utf-8?B?RURTRStNWHhQMmUvVitwVkxGZk80cXp1RUtFY1k4WTVCUWR6dVlFVm03cGE3?= =?utf-8?B?bjdMN3A3Nktxb2VuOEkycUJLemFtdEZBb3B6eFlpY3BPQzFsN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LLJbP4sBl306URqKCfIrdlV0JAUtCp1HY5PULfKsTAXyW7BiFwvEwExZqBeqRBWwYJ95BXF+OBYSEoaY1zVy+NRCHww=;24:vub7qhRaKx3d/RsHIWv4aTSd3Um4Yewn076NevrsHFd+C1Ar7gdNM824aueyZh7Y7UNKtVoANRdcDQxpTYX+mWy3fbaSaIwkl+/iBhZkAsk=;7:iAev0eNACOdWgu7fp3bg3FUQMquppAmdJzDYvTCb1pYnsACCFHQAjyP88JhE/8f+SFEw9Mgs/H61CZy/6jpfJS2bPwWvx3sIRbsLPw/zah4E/W8Xy0G2TVmPoqL2RZs2jYEMHoleRKUeTiKmPgx66o3rwS1bkVPDh3IUZyy4HAGSmn3Z23RLsORdgdMTKfZ/TRUe2+h+mLSzIHc3JeL3sg74TwFkIklGzMyq5sgAe1h+Lp+iWgSRp5g2lVOz2o0e SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN6PR1201MB0115;20:2DeXj8CuNuSjTpjNb57Nk6d1DpDnRGXXrgH8iyqEs8DCPRm1RaEwEtSgxhv7wERCog9eB8HCA/GVOznFLBj16IPKXcfJ6pZlGqRS1GJnSv0r5olI6sLZdVWtflq/2MaFtbkggg9k6dqVK0KlDbp6m1fOXImj2O42bR2sZKqdepq8oqE5tTS8KYyLHZltUNhVdf/8ry/3HqzVhcIQ3pQKINJVB09REN6j6OWTmKJU/UUlujqWlJVEk3qb2laoQ4TE X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2018 12:42:48.1839 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b5d1fce3-8ca4-4cbd-ccf0-08d567def815 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1201MB0115 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org That definitely what I planned, just didn't want to clutter the RFC with multiple repeated changes. Thanks, Andrey On 01/30/2018 04:24 AM, Daniel Vetter wrote: > On Thu, Jan 18, 2018 at 11:47:52AM -0500, Andrey Grodzovsky wrote: >> 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, > Would be neat if we could roll this out for all gem drivers (once it's no > longer an RFC ofc). > -Daniel