From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752289AbeDJGsJ (ORCPT ); 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 X-Google-Smtp-Source: AIpwx48YgW3l/R8tJG3VQlQjqiimC8ua4knJhXeLqTIBRzjgDvEnX+Qievhpb0PRLxVyYQtF6CT2lQ== 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 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