Received: by 10.213.65.68 with SMTP id h4csp3529332imn; Mon, 9 Apr 2018 23:51:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+alO52T1kG6Dd8KXwIJmsgBVTOXhh1xjOBuST/23ZcOBP0CrvPl3uE8G9ysF2927ElINcX X-Received: by 2002:a17:902:86:: with SMTP id a6-v6mr42792299pla.298.1523343112487; Mon, 09 Apr 2018 23:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523343112; cv=none; d=google.com; s=arc-20160816; b=I/sA6N160gmSIyJ0DPYL6gDuC9ru9Icc1EHnJZc5p9I3wT3doKe+P2guiiDxgPZL9G 341RyQOK0yoYlBOLHJkE/oyxxz+AVv7AqlbiWayOuVp6VpP4ewlChXASYzekxQf10Bxw m/SLfhqW4NkZcq4Q9DusarbtgGG19vkG7cXUniILkj7Fll/dah9KxbHREZO94PwdvXio yQbGFCDfLPDq+GM/MzYZkgIdq4ZcwjAvkfgWOSs/wLKRMraVYlVQkSqy+15B167HzEN9 B/h+h0olYBBSAWslbEmDps4Hku0uBQ1eTyGwudNpp6aS8t49bDH6kXAC9bj68pOvP1kn demA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:reply-to:dkim-signature :arc-authentication-results; bh=Iqydadn6j/xo1xkfwKFgcz2tINEoHvK/Lpl01ewuUBo=; b=wSrmuwBY3EbpKv9CDDZPIRmWCakjrzjdMPxeM4xLLLMIg3ctda2KOAXLkW3SDjxQxw K/lPxo6xywZsKsavAXnxnlJVM9M+1g5okQJIx4vwlKrLIdQ2eCLEkeESU8A4mJzhox6O y9iytUTDh9q0yjF0MNroqFvP5r5+rd7xR4+dr1rpkLPyEUglrGQAnhpBuiIhnDKifdJ0 i6zgSYsgJV+xhqqFFcxt/6M8sXrVChEySXbaiOgH0Eic9EUwoyKfBuv5qtlp0ivne8fV L9b2dlFPLWz3QVFWovbkqfPD570nnLpygGg3fICvs7hn1hdiiSdVvZccsXvYinFDQBrz Wn/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Qr4U6fZM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r19si22985pfd.267.2018.04.09.23.51.15; Mon, 09 Apr 2018 23:51:52 -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=@gmail.com header.s=20161025 header.b=Qr4U6fZM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752284AbeDJGsJ (ORCPT + 99 others); Tue, 10 Apr 2018 02:48:09 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:36870 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752078AbeDJGsI (ORCPT ); Tue, 10 Apr 2018 02:48:08 -0400 Received: by mail-wm0-f41.google.com with SMTP id r131so21030920wmb.2 for ; Mon, 09 Apr 2018 23:48:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=reply-to:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=Iqydadn6j/xo1xkfwKFgcz2tINEoHvK/Lpl01ewuUBo=; b=Qr4U6fZM3CG14WtU8YjFAslfuAjhKeAohZJni6QE4zfhNSqSMCTK5pgBY8u70j0Qho /8e3EFMRRnvnZ7f7e4fV7fp/FTEEr5+ryr7ct+0zOqRxAImpnjAFDSGDisAqLAlTGp7H OfQLtj+5mn1qmVqcmX79MBZPu1x+2vOPSx7KiOVIc/poOI0HnObA7EknP76SYvFRNqHt VqxcRPLjUaAH0A5we6X7lNnQ+ubcL4/myLPc9UDjpb9k/fvs7SXLb3KHbRtrXSyt7Dkh 9dk30/qz2xbYDC38qtye3RPXrxILu4Xq5+HBi7r27W+VkvMdDQO6+eBil13rAZNNrDKh XKng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Iqydadn6j/xo1xkfwKFgcz2tINEoHvK/Lpl01ewuUBo=; b=RKXIy8n08QbkZf+g4e6Dwl5PsABZK2wy3AzG0IAm2t2uiQvQdrK5QCo/N7pHb3ubKE rOm9JywCFk3lv69C6My0ZBHwBqhiQ5YrCmjQ+DKE3bFTPzXqHK7WRuTLAhDm64zEHkRy zkAmLAiP8B6mR9IVbSlmIsn00E2EJM4D8As+4sXTb4o0npsuH1BqRTdY9jL/EcpXRN8o l7gP8PMIV+V844OfSfZIzU8X1ntc7/m7jDrqdi7IlvXKIpxqzBSY7FPnVtzfJOWNjaII jaZ1IE+6g2jWASq+1O+pRC7Fopxviu/AKozwvDJKVshwtq2etGKH5wq+SBrC+5SOdkvF KxRw== X-Gm-Message-State: ALQs6tC1pzmT7ukp+7nYwC+lJaDkSHTyGPZR4RkKAZrH9zBwE8eUyX3w mW7IqFV7kmpQ17sHRphS9px7Rqs0 X-Received: by 10.80.247.77 with SMTP id j13mr1433740edn.18.1523342886658; Mon, 09 Apr 2018 23:48:06 -0700 (PDT) Received: from ?IPv6:2a02:908:1257:4460:1ab8:55c1:a639:6740? ([2a02:908:1257:4460:1ab8:55c1:a639:6740]) by smtp.gmail.com with ESMTPSA id q10sm1552642eda.2.2018.04.09.23.48.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Apr 2018 23:48:05 -0700 (PDT) Reply-To: christian.koenig@amd.com Subject: Re: AMD graphics performance regression in 4.15 and later To: Jean-Marc Valin , christian.koenig@amd.com, airlied@linux.ie, alexander.deucher@amd.com, Felix.Kuehling@amd.com, labbott@redhat.com, akpm@linux-foundation.org, michel.daenzer@amd.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org 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> <76a30815-28e3-e798-03de-a3cdfade4c64@mozilla.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: Date: Tue, 10 Apr 2018 08:48:04 +0200 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: <76a30815-28e3-e798-03de-a3cdfade4c64@mozilla.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 09.04.2018 um 17:17 schrieb Jean-Marc Valin: > On 04/09/2018 05:42 AM, Christian König wrote: >> 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. > Do you mean just taking the 4.15 code as is and replacing > "#ifdef CONFIG_SWIOTLB" with "#if 0" in > drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c or are you talking about using a > different version of drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c ? Yes, exactly. The code then won't work any more on some ARMs or systems with more than 1TB of memory, but I don't think you care about that :) Christian. > > Jean-Marc > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel