Received: by 10.213.65.68 with SMTP id h4csp2744558imn; Mon, 9 Apr 2018 08:21:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx48grOxGoNOJGaBFQLb0jw5z6+Zr2aRN6LDUbAVgw3a1H1tTM/dtnNgOkq+UNtqXbmOnLDmw X-Received: by 2002:a17:902:8a93:: with SMTP id p19-v6mr40333276plo.256.1523287311470; Mon, 09 Apr 2018 08:21:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523287311; cv=none; d=google.com; s=arc-20160816; b=VEUGs4TaCTaeAeNCtrEq1rkHCCMm60fRuyYH+ObV7Ofj1IGELytHiyhUqNBLwd5WZh fGwUHyw356XzAOjH6OJbZ+z+PskywqfQ1U9NEWm09nV7KPxIR4JX/wZCzafQh3QyPMvC 0ROvM3Je7IsXUvIUC4dHFlTrLHDmhT/QXdPi55yTWAMIBvWq8YvKi1GyuMsfxqGTVvuW VppJNTo0FjQUUyqzz4pSVu5oO4p/35NXTWHB328uoy6bAFbourkpCPPIyvYMs7tKAGX9 mQulBKhcEwPSY1d4E5Pv0JjNJBhFEJXYDbCscsCp4ardInS8hFXhd7bPa5n6Pa3z8ZrK Zy3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature :arc-authentication-results; bh=r8KUN/1EYsnGBXoIXgykRao6Q7kl3iS5bnkkx+KJ+5U=; b=th25ylMD2yIdC5E1T4bGWzKyi6mS3P4cuv5N84S5RU1D68mjrY8vTRNqKxFJo+3YM/ 38S/wAo7GAyu/9BVKsmAs2oJ/1+FscR/9pr+8waG0LcMSqC8vgCy86GPHrKfLCAkeebt sEJbKtPO9psPxfPLBiUfMdC5xCRaUS9hbMYdAXaQR2slaVHCGsZVfTIgmx+lakoosaat 7ypS/DvzJi5Gn7nAJQhAFSYm42Y6BgaOjlEL3Eaze4/dWB5lCJgYvfbkq2JVPI179BXu obP2PO+n68vpxCDJ3DNPw9e1U5u7yNeJDMXoQuVCqkOR3GNNmyvvsY0pSdbrZX2QKFTe pWXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mozilla.com header.s=google header.b=RIJ1zqjy; 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=NONE dis=NONE) header.from=mozilla.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a25si411394pfc.409.2018.04.09.08.21.13; Mon, 09 Apr 2018 08:21:51 -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=@mozilla.com header.s=google header.b=RIJ1zqjy; 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=NONE dis=NONE) header.from=mozilla.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753118AbeDIPRs (ORCPT + 99 others); Mon, 9 Apr 2018 11:17:48 -0400 Received: from mail-qk0-f176.google.com ([209.85.220.176]:35264 "EHLO mail-qk0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753097AbeDIPRr (ORCPT ); Mon, 9 Apr 2018 11:17:47 -0400 Received: by mail-qk0-f176.google.com with SMTP id c188so9684749qkg.2 for ; Mon, 09 Apr 2018 08:17:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mozilla.com; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=r8KUN/1EYsnGBXoIXgykRao6Q7kl3iS5bnkkx+KJ+5U=; b=RIJ1zqjyivt9sG1YmzObKy9u7Z0lnhkwEU38RYOM23g9b0PaYJ3NY7W5amAJzj64/A a8bl0snZ9OVAo+tV39fVQWEsrK5d99qY7BJdoZ9ePDtKiTXATfSrFAancxdsK3DS/lnY CzEkzvaxkmszzOzyulmMx6AAc6ED3KqbLPoBU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=r8KUN/1EYsnGBXoIXgykRao6Q7kl3iS5bnkkx+KJ+5U=; b=H1Woc0wPi9+ATyZ5WdlKWyUyAujjXGCePN5uIaL8du2qHhcFfFUzP/Itw0JJQeHZkW oJqA8D+MPqNys1Z2Ha1/1T3Gl9SY+KosPfHYNTzgmRPD53ZogoutfrYIrieUXCPrYkgr PumSfH8zdGKGTre5pZDLzWksl28BjewGmEmSSprOY5n4o2SY8f9NoavQepgObZwcTE3x 0ZolnelRrLrf5/ZZE71CE5p5DWacfcnN16QQSZZ1lwdCE0cZHwOCMlel5ywyXhRbFLEi oB5sNqFoJ4zGg8P78jJbOTbZo43GCvbdWX1UBExowhhhGES1S8h7rO8qDkF/xFePZorO D5nw== X-Gm-Message-State: ALQs6tAf6jLs3EDVSZRDukuEdpT42YD4E57m4V7QcUKPSjckuT2Yl+dy hYqkOjRct2/EQkghJAhhPwsG5uLkh2hxhA== X-Received: by 10.55.116.71 with SMTP id p68mr48664714qkc.29.1523287066162; Mon, 09 Apr 2018 08:17:46 -0700 (PDT) Received: from obelix.jmvalin.ca (modemcable231.101-131-66.mc.videotron.ca. [66.131.101.231]) by smtp.gmail.com with ESMTPSA id n58sm478375qta.34.2018.04.09.08.17.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Apr 2018 08:17:45 -0700 (PDT) Subject: Re: AMD graphics performance regression in 4.15 and later To: 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> From: Jean-Marc Valin Message-ID: <76a30815-28e3-e798-03de-a3cdfade4c64@mozilla.com> Date: Mon, 9 Apr 2018 11:17:43 -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: <55e1712b-6567-50c5-3789-53dd1ccddb94@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ? Jean-Marc