Received: by 10.192.165.148 with SMTP id m20csp642548imm; Fri, 20 Apr 2018 12:47:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx49b0iecTTlqLAAf7CrENeQPlVZtpxo8pDInC9evo1ir69qUn9Bm7Ed7jUKc9lAopTIygkoQ X-Received: by 10.101.89.5 with SMTP id f5mr9455243pgu.428.1524253648315; Fri, 20 Apr 2018 12:47:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524253648; cv=none; d=google.com; s=arc-20160816; b=tN90ofYlfM00r9cPDquHv2uI2ZK75OHyq4o+lP1ijGw94GTVvHdMRhxxvwXqug4Pcb wZdrPmdupMhoM4ot96GYKMcxKbgjBUcapclc/ixT/BP2NOcRLM2Zr5AUwOmTRFrXSmCc ixkuzoc47+ui1faz4iyjAK/pvEZS0UnKetrL5Lc1rAtphokUEnh/YcfvrfOr14gFxmYb K9LCsAYQXr6dHPTKm9chEYYkmOZpZ03sumlFTr21cHjtH0rQr+n4k7ElhupVnIdE/Hu/ V611tiQ0t0m7VdwuKKcwInnO+1lVVv9o5u6XQ38iJ4o63B9Zjeb4Ib3CTvJUrUbv/NYT azEw== 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:organization :from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=p4LAYXJIcKhzv67xpBy6kB1dBxvRHywBYkU+kJ7d4gk=; b=GVUzYIncWqhf2xzGWHdcPNu3XEgU4Z93C+L0BcUEAW6fXlD1CW0BRhB2+aloLG5x8k M2Ui6b4MYrQelgC3cJM0lD9h5nRgnACEcAPXBEiBDWKvVvqIaLG8UCWjRlFn7saxR2S6 IYdkHfSbfiV3BKH8Ew84pKCOCQcw7N23bY90tjABcNA3CsM9MQG99UiYFtQu28+ukJd1 /euDq5JvJGncTYoiDrskiQwOU38RlGTGq1nfW7XN4HX+JWwv7xU+I7+H4PZz48R4RUf8 d79NQgEunhR+2SD4NN7ikgnifjSKRhohowS1AOH+ZqkMwSlqudl+fyjPmAhH/iPxF/IU YTFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=DG4gGZtz; 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 i198si3419528pgc.340.2018.04.20.12.46.50; Fri, 20 Apr 2018 12:47:28 -0700 (PDT) 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=DG4gGZtz; 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 S1752683AbeDTTkb (ORCPT + 99 others); Fri, 20 Apr 2018 15:40:31 -0400 Received: from mail-sn1nam01on0040.outbound.protection.outlook.com ([104.47.32.40]:24480 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751336AbeDTTk1 (ORCPT ); Fri, 20 Apr 2018 15:40:27 -0400 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=p4LAYXJIcKhzv67xpBy6kB1dBxvRHywBYkU+kJ7d4gk=; b=DG4gGZtzkpk4NdW1RkZzTMUGglObslkYqqU+NT+bbp93eDpOezvmOt3HxjZN4VwppFJcswbBuZe5U1HKVmDtwRXOuhmN0Zdm1ZksMjcVK5XKpvbf/0DlfEhduXe7nDWOiMvUOFvjnTu6xyAKqjCngCkwqxf52vfSMwFia2yP9Ec= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Felix.Kuehling@amd.com; Received: from [172.27.225.16] (165.204.55.251) by DM5PR12MB1707.namprd12.prod.outlook.com (2603:10b6:3:10f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.14; Fri, 20 Apr 2018 19:40:25 +0000 Subject: Re: AMD graphics performance regression in 4.15 and later To: =?UTF-8?Q?Michel_D=c3=a4nzer?= , =?UTF-8?Q?Christian_K=c3=b6nig?= , Gabriel C , Philip Yang Cc: Jean-Marc Valin , Dave Airlie , LKML , dri-devel@lists.freedesktop.org, alexander.deucher@amd.com, Andrew Morton , Linus Torvalds References: <9ca940f1-7f21-c420-de45-13d72e783ab6@amd.com> <6cebabff-908f-5ebe-4252-760773c4cd6f@amd.com> <312ed341-7052-a61e-331f-d1e8fd5b477e@mozilla.com> <77866d66-2728-8295-d7ee-9975dbf64b99@mozilla.com> <55e1712b-6567-50c5-3789-53dd1ccddb94@gmail.com> <2a864040-3888-c30a-2fab-6ff637dddda4@daenzer.net> From: Felix Kuehling Organization: AMD Inc. Message-ID: <35c599a3-0042-4f00-52e4-9d17164b93b1@amd.com> Date: Fri, 20 Apr 2018 15:40:20 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <2a864040-3888-c30a-2fab-6ff637dddda4@daenzer.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-CA X-Originating-IP: [165.204.55.251] X-ClientProxiedBy: YQBPR0101CA0024.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00::37) To DM5PR12MB1707.namprd12.prod.outlook.com (2603:10b6:3:10f::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7153060)(7193020);SRVR:DM5PR12MB1707; X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB1707;3:K88xQScIF/f45hrwiHnr24IQsk7M17rb28lrr0YUPWm7dBtephtCn2jdC0KJR1q8vxnm7m4o+TJC65h0fznifKKKrFzkw/zCEEFLoQOFkL+FV3yvOmMGCjGe4K7fj2VHlDD66TtEtFHlzmsJSjQV1wtTZdmyzshKGyMRQBCxpryGxktDZY+fFnFbfdjXn8xWx3MALm8Qn9cva7Lb5zTsjSLi544Ln4bkvdRin4znWk3Edvtu91nqu1a+SjyTveIw;25:luqbznTnTI4VzBpTGfzIKT7HvB9MMoMYeLV+e6TgJ3JqKYdN6Uv2iw6wc6IE9L0Gau01tyDDYNbdtSvFNhqrl25Gze1DYmjJuvVi0IGGET1Ijn6+gcK7cxadpAtJdd6Q5vANx0ChkYOTpcs9xyuNZryQGRdxjN2bvaMfMoRbfmO/U9N6gjmVQZRrGUF5he8+mnghfTmW/cCIuZW1lImF+CO42v37TzaXH9V1/SvQt9p/tSUmwimZkssA08XJuGARBCXaT6JYlHm4joGjGAALHvvun/T9gepUUk1+O6wXZPb9zNxHCc7LobpMKNiuwvm3mP6r5OMBmmqjQe+gRuQpqQ==;31:zU0R58gg3QUoNLS0x/rp1bH50iMD8lHPpc3575RF/N/jhNTr4fiyYUD3PwPWobVV661sVFxCsUfikBhDbbNF3gkJjkmVIzQpWiECn+KVaXXh8U3jiPFIHX4yLhC+d7ItGPsndHvKXbq7N/EkkoN1s3OP5UcdzIyJIYClzpEa9Ai7e06Aqt1SjHIVQRjYrcwVWkCPk1EI9T0D1l+fSxlMbrAeyIR2+MlJCmbxF+qDFyc= X-MS-TrafficTypeDiagnostic: DM5PR12MB1707: X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB1707;20:nPC/Z3sncVZVjcDIZUT2Eof1as/D4QRXa6oZArM2bDQJBM3kjFIGS4tg2Z/FsXtqnfoRlg98bT2Icc31JPUQ67LdbxF0rZRkuAAJ82BNkD5UNV6hGhjruqctHvl4XlMR+VbO4jO28RA+6d14OEJWhIDaOMcRJGHJvNKVru/vsO06IbXJ3OycgxNJcplOlsVbBdqaKXyg38m63lXHfywl9wAcQsnuG3xkC5Hn5MSsjuvXSssYUVcTPxKGiEvit6k2Ko6fDtHYhqLtZtyCuGipd9kEmlb0eHSpLeXJHV9Voc6ohnYdBchmTE2lzL1VxdaVJ9U+zG35/CEggduAgy7P5zTwPGeVRLy1xLTAFkZK9XwEJFtwghP3lt9ewrLXY/KhrCB+p121Z/6eoR0jyu727+mSGZvoFGXGi3MyfLzrup8ku7fXUfAnEmGfGS8CQIa5GT8vTivnxwILXwmuMc3NMybFAi8nn/3GZHFVjKnlpFMhKrz1AqHvBSd2EDulHzJX;4:mOZd0UJlHjNG5sPbqY5jzl8l0eJlORThMnY1ePdVMqGRX7ACMgodAnaxd3DXB/nUF/EYhB2OAU+ducQsNDP+0rI/LRbqsUNWD1UP+XDcoGuKrNbcvvnhbp1nv75vx5RAW+uQgYqzkgVQ1ToHFNwkRQCqFqVGNlPaa23g+e5m/L4LFlgLbJBE4svzQqBataB0Gr+gIATeRSGxbfRyEcf5LVx6vVR6GnGdkp3SVtsUQbuHoOv0oqpuoRByqGK5JRhAG5OtyJQOsdUWPFX7rcuh02vnVShTZIafARD1tKhFNQPxyjTbzxmWpYDMN26Ukhx8jyQKIKEzg/cXugNhuWf7QPl8q1/rVcPZN0x2AO4e4Ii6BLC6tX57dbgUqMViNsX6 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85827821059158)(126947320029983)(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231232)(944501397)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011);SRVR:DM5PR12MB1707;BCL:0;PCL:0;RULEID:;SRVR:DM5PR12MB1707; X-Forefront-PRVS: 0648FCFFA8 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(396003)(376002)(346002)(366004)(39380400002)(39860400002)(377424004)(69234005)(51914003)(93886005)(25786009)(6636002)(229853002)(6666003)(476003)(53936002)(16526019)(59450400001)(36916002)(6246003)(956004)(4326008)(478600001)(2906002)(39060400002)(50466002)(36756003)(23676004)(7736002)(16576012)(316002)(44832011)(2616005)(6306002)(52146003)(6486002)(26005)(305945005)(110136005)(65956001)(66066001)(77096007)(65806001)(64126003)(58126008)(186003)(31696002)(54906003)(2486003)(8676002)(575784001)(76176011)(11346002)(966005)(2870700001)(47776003)(65826007)(81166006)(52116002)(446003)(5660300001)(53546011)(386003)(3846002)(31686004)(86362001)(6116002)(72206003)(8936002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR12MB1707;H:[172.27.225.16];FPR:;SPF:None;LANG:en;MLV:ovrnspm;PTR:InfoNoRecords; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyTUIxNzA3OzIzOjdlZkVKbEdJSlZVV0MrWks0bXhzYnlDK1dQ?= =?utf-8?B?anFDVXlEaFdvdTNPb2tyV0tUWUtVYTBNK1JTK2Y4dEpUdXVhL1IxSVdWZlJh?= =?utf-8?B?NHBsZHl1Q2JrZEtoNHA2d3J2ZmtUVitBUnNIRlQrd2I3UU5PZWJteEFYUHlq?= =?utf-8?B?cmVyTUNJY1AyRGlyZm5SVG1pcjc5RU45NzRqMHphazR4RDlraEdyRlhraVM4?= =?utf-8?B?a21KVmxMTFBsYTlyOCt6RVYwZFZIMDNjYXFSM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/fZUjQfbSf5MC9nI3H604zpeMhUTGTY4Ms+aODoTqlb8p58Pb7cDo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB1707;7:PN6F3sNbu7j4OkO80a5WXNuHSl+/wgMLPc9ovwA0EtsUK3U3DKuBO8xePB4qY/ZyiXU9cth50lf7WQ7Fw4VrUvKhUllXwIrxmph8TDONGiRIaFyKU5Sz8LoG2bNGVo97swduvjBjVk1MGFj/RZ/51bBBAHRG2P4oJoV1Nai2xzXLb7AF95X6HnOzBGnoKUBAvdYXpb2FYBBKZ6MTjWiNZdkVYhPwFh6ikI0yQKoJcIl+fEO0syFgtxfptsHSOEd6;20:BGiZmTtInm1TnYgu/0Wc4EJ2iwzybY+0fhRC8klIxG3FrBiq0YEkdrOpsg/oItV3PFvMDHkoKMvEsyNP6jieTW+GfxroppuFbGuFm6GXldFl1L1ty99L01JgAEmCoIn3YzNcQivHPIWCao9pXqpxNPO8tyEaEcz1bt116jMIrc9DQbJ4fExBbjN4/VIqla19HsVW8uSbW1A7sSYSEGjGuB2+Tba7xXasIYg+pypmQcxY10E1aAvEhS9HT8kXByH0 X-MS-Office365-Filtering-Correlation-Id: 4a27eda8-38e4-412b-3414-08d5a6f69073 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2018 19:40:25.0927 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4a27eda8-38e4-412b-3414-08d5a6f69073 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1707 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [+Philip] On 2018-04-20 10:47 AM, Michel Dänzer wrote: > On 2018-04-11 11:37 AM, Christian König wrote: >> Am 11.04.2018 um 06:00 schrieb Gabriel C: >>> 2018-04-09 11:42 GMT+02:00 Christian König >>> : >>>> Am 07.04.2018 um 00:00 schrieb Jean-Marc Valin: >>>>> Hi Christian, >>>>> >>>>> Thanks for the info. FYI, I've also opened a Firefox bug for that at: >>>>> https://bugzilla.mozilla.org/show_bug.cgi?id=1448778 >>>>> Feel free to comment since you have a better understanding of what's >>>>> going on. >>>>> >>>>> One last question: right now I'm running 4.15.0 with the "offending" >>>>> patch reverted. Is that safe to run or are there possible bad >>>>> interactions with other changes. >>>> That should work without problems. >>>> >>>> But I just had another idea as well, if you want you could still test >>>> the >>>> new code path which will be using in 4.17. >>>> >>> While Firefox may do some strange things is not about only Firefox. >>> >>> With your patches my EPYC box is unusable with  4.15++ kernels. >>> The whole Desktop is acting weird.  This one is using >>> an Cape Verde PRO [Radeon HD 7750/8740 / R7 250E] GPU. >>> >>> Box is  2 * EPYC 7281 with 128 GB ECC RAM >>> >>> Also a 14C Xeon box with a HD7700 is broken same way. >> The hardware is irrelevant for this. We need to know what software stack >> you use on top of it. >> >> E.g. desktop environment/Mesa and DDX version etc... >> >>> Everything breaks in X .. scrolling , moving windows , flickering etc. >>> >>> >>> reverting f4c809914a7c3e4a59cf543da6c2a15d0f75ee38 and >>> 648bc3574716400acc06f99915815f80d9563783 >>> from an 4.15 kernel makes things work again. >>> >>> >>>> Backporting all the detection logic is to invasive, but you could >>>> just go >>>> into drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c and forcefull use the other >>>> code path. >>>> >>>> Just look out for "#ifdef CONFIG_SWIOTLB" checks and disable those. >>>> >>> Well you really can't be serious about these suggestions ? Are you ? >>> >>> Telling peoples to #if 0 random code is not a solution. >> That is for testing and not a permanent solution. >> >>> You broke existsing working userland with your patches and at least >>> please fix that for 4.16. >>> >>> I can help testing code for 4.17/++ if you wish but that is >>> *different* storry. >> Please test Alex's amd-staging-drm-next branch from >> git://people.freedesktop.org/~agd5f/linux. > I think we're still missing something here. > > I'm currently running 4.16.2 + the DRM subsystem changes which are going > into 4.17 (so I have the changes Christian is referring to) with a > Kaveri APU, and I'm seeing similar symptoms as described by Jean-Marc. > Some observations: > > Firefox, Thunderbird, or worst, gnome-shell, can freeze for up to on the > order of a minute, during which the kernel is spending most of one > core's cycles inside alloc_pages (__alloc_pages_nodemask to be more > precise), called from ttm_alloc_new_pages. Philip debugged a similar problem with a KFD memory stress test about two weeks ago, where the kernel was seemingly stuck in an infinite loop trying to allocate huge pages. I'm pasting his analysis for the record: > [...] it uses huge_flags GFP_TRANSHUGE to call alloc_pages(), this > seems a corner case inside __alloc_pages_slowpath(), it never exits > but goes to retry path every time. It can reclaim pages and > did_some_progress (as a result, no_progress_loops is reset to 0 every > loop, never reach MAX_RECLAIM_RETRIES) but cannot finish huge page > allocations under this specific memory pressure.  As a workaround to unblock our release branch testing we removed transparent huge page allocation from  ttm_get_pages. We're seeing this as far back as 4.13 on our release branch. If we're really talking about the same problem, I don't think it's caused by recent page allocator changes, but rather exposed by recent TTM changes. Regards,   Felix > > At least in the case of Firefox, this happens due to Mesa internal BO > allocations for glTex(Sub)Image, so it's not obvious that Firefox is > doing something wrong. > > I never noticed this before this week. Before, I was running 4.15.y + > DRM subsystem changes from 4.16. Maybe something has changed in core > code, trying harder to allocate huge pages. > > > Maybe TTM should only try to use any huge pages that happen to be > available, not spend any (/ "too much"?) additional effort trying to > free up huge pages? > >