Received: by 10.192.165.156 with SMTP id m28csp1392049imm; Wed, 11 Apr 2018 18:50:49 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Gs4kTfoGuueMzNOzXPUpX+4BSHHLOkX6WhwP2U4tIoRAXx+SIr3gdJhioEbK7/iXpQOsZ X-Received: by 10.98.67.141 with SMTP id l13mr5934846pfi.166.1523497848974; Wed, 11 Apr 2018 18:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523497848; cv=none; d=google.com; s=arc-20160816; b=GCdsMQjUyzP1oRWh1uz3iu1doj3IopgoAbk3cbedg9byDCzjqMNjIYMCtyFQ8BqOCT km9emy19VT0LWdnCfAOM2AxJdNHfH+G5Py6Sf+xwBfm7egSK82Tpxegwy6byOaNyZj6P k/uHLlgiW+jvy4prHHelQKDITlCSy9bkQzjp8GhhTDYku9+ZH8xqX9GSh15PqB7Wf6XB SbEynJzXLNCzJzw0abgIsz5G53wpGOOlbEPEe2lk/OyM42PXFuQymCstCgU3PAkPyuVB H6dhsH52n6sxN/JY3ruGvLzEC9PHKc7B8eCM8Sing9I1exoGEE0s6q8BSitd6/z8xdKq FZ/Q== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=HInF+K4QQbDZRMVtd8lbeYdZEglAZfMs+2JQpt6a5fQ=; b=qDzO+tJjwe6iC/0oqIp+8PxBe5Slyh69MUwxVzxLUMEiTyK/Yrm+NQoPPjDKdvm9Px lve+NXlndhZxogzYHrVSxzlJVsuOyqSo19EP/kQV+3ZGGo9yShmaqwt71iiWP0MfgBej S8Zzw4dPqXAkSTdoiX9JRDziK28asxoQBZiOvhU+52hCzV+wGR6mlwduU+wW0XKlaLt4 cjY89J1l7ENJMAyl4OUutYiMdiBBrLAl6uhOt07ipmACv/X4FoEjHuHDsbQmlN/DnQ7T P4MJcVn7Orcl2E3M5MlrQiQaypAdl1CYiL/cHy64YpKPIwH7yrwr0M/OP4VldefFgfTz ZO5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pc8BGGI2; 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 e8-v6si2064909pli.219.2018.04.11.18.50.11; Wed, 11 Apr 2018 18:50:48 -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=pc8BGGI2; 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 S1752368AbeDLBrd (ORCPT + 99 others); Wed, 11 Apr 2018 21:47:33 -0400 Received: from mail-lf0-f52.google.com ([209.85.215.52]:36485 "EHLO mail-lf0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751870AbeDLBrc (ORCPT ); Wed, 11 Apr 2018 21:47:32 -0400 Received: by mail-lf0-f52.google.com with SMTP id d20-v6so5319934lfe.3 for ; Wed, 11 Apr 2018 18:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=HInF+K4QQbDZRMVtd8lbeYdZEglAZfMs+2JQpt6a5fQ=; b=pc8BGGI2slaYW61LsTIswumSnnVWd7f4XhFXobRjnmI0LZkmyUwoFjCgU1z4NJQiYi f+QEEQT0Gguh4EADSal5IYpwbSWLJMWqeESBq+pi9s/adOGayEJJRnAu4OTQ9zKjQS7K /Ti2C6+VO2VoF8ouV3Mn3PXupn98jrAKhAT/hB4k/6ac+gvY1qcywFkywaer98lqsmXP fhY5JH8F8rcMY0yupgKnZPeFlQQs3SNOWDRc59eixK/W0MFnu0/MSt/9xTRVrM8Jll5z SiOx7Omz5FseMyLldeRP3GsJZ08FZOucYpzXtVO+1Afls9NGqNtPliybfxXgD8VujDUg pnLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=HInF+K4QQbDZRMVtd8lbeYdZEglAZfMs+2JQpt6a5fQ=; b=bxIDyd9hif7dWtKX/YUF6sBe4folzmbiUH3KbrnscS6KQ9WVrVH6V1JJta9TBdmhak kzM5zXjMnNiqfr1BcGFB/SwnXumeKpAVRQbtLLwpFIsjbsUJHyXMGz1/GbwSlg7IK9QD pbIKx95DunlnAXLbA0bbesZ0bNcOFNbzlrF4nPfbibVYGH6Mc9qG2oON+68aL/4rBFFk tGq8+S2uywXqpoc9CM+dsBk0/pUAMEmg2bsEYz7lA641/nagTnKtnMyD+tvduX3g8FZc PxtPfb7wx4pVJyimRzPHBYRQkR5bhQq3tugbNJobY80aoWnt1aPhQXFsRB7noTM1cnbw M/KQ== X-Gm-Message-State: ALQs6tC56G0Mi4IRHilWb4T4NX8dKNr5h02ofxv2yZnYkz/CxCVcL6el 37cDP2lfhD37JgWE8M3mYmxIib13d1547WvyAA== X-Received: by 2002:a19:8f82:: with SMTP id s2-v6mr4365791lfk.55.1523497651031; Wed, 11 Apr 2018 18:47:31 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:e988:0:0:0:0:0 with HTTP; Wed, 11 Apr 2018 18:47:00 -0700 (PDT) In-Reply-To: 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> <7bf2f711-bbd8-cee6-6377-0c4f22db2937@mozilla.com> From: Gabriel C Date: Thu, 12 Apr 2018 03:47:00 +0200 Message-ID: Subject: Re: AMD graphics performance regression in 4.15 and later To: Jean-Marc Valin Cc: =?UTF-8?Q?Christian_K=C3=B6nig?= , Dave Airlie , alexander.deucher@amd.com, Felix Kuehling , Laura Abbott , Andrew Morton , michel.daenzer@amd.com, dri-devel@lists.freedesktop.org, LKML , Linus Torvalds Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-04-12 0:20 GMT+02:00 Gabriel C : > 2018-04-11 20:35 GMT+02:00 Jean-Marc Valin : >> On 04/11/2018 05:37 AM, Christian K=C3=B6nig wrote: >>>> 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 stac= k >>> you use on top of it. >> >> Well, the hardware appears to be part of the issue too. I don't think >> it's a coincidence that Gabriel has the problem on 2xEPYC, I have it on >> 2xXeon and the previous reported had it on a Core 2 Quad that internally >> has two dies. >> >> I've not yet tested your disable CONFIG_SWIOTLB fix yet -- might try it >> over the weekend and report what happens. >> > > To get that right .. is only a matter of disabling SWIOTLB *code* > while CONFIG_SWIOTLB is still set ? Ok I tested that on 4.16.1 and yes it does work. However I didn't like the #if 0 method and so compile an kernel twice just to compare an test. I created an small patch and added swiotlb option for amdgpu and radeon so I can boot and compare / test with and without SWIOTLB code. ( not meant for upstream ) http://ftp.frugalware.org/pub/other/people/crazy/0001-Make-it-possible-to-d= isable-SWIOTLB-code-on-admgpu-a.patch With SWIOTLB code off all works fine , while hell breaks when turning on. Maybe similar options should be added upstream until code is more stable in 4.17/4.18 Regards