Received: by 10.192.165.156 with SMTP id m28csp803056imm; Wed, 11 Apr 2018 07:31:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx49YBNL6RAdTENeRcUmJood73aYs37P9tI4dpvN1DF54UZt2nniL7FsHjfCAdzHZXIw6VUAh X-Received: by 10.99.129.199 with SMTP id t190mr3603244pgd.376.1523457064125; Wed, 11 Apr 2018 07:31:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523457064; cv=none; d=google.com; s=arc-20160816; b=VLAAq8o44zDyz9gHb1oy8SW3b1ihtBtatt7vVpliPdW4rVbwHGC/bRREx2JkoTFYdf FdTBsYveAgduKKemrFPO+rATHTiWioRw9D4E+7bJxTqqjJF/gDSFv5GGwkUo7sF3/GhR VONw0PxHdZmftEkI4sJDHlTTkZ9Y0hw32NDuyWGbu+6Ay42uCSVaVbuPj27b25u1qxHu KRpoKZKkFN3XlRiaAbplm89pyiaC6f1HMQdUjWgzRg7HOImEW7hsEJlhmwHSxEjvI3gp 3fGwAg8+wMDSYu5Ru+u7CeGnpIrxFsd/SibGU/pRbrsK7vEbRuz+ez2TTlkmU+tbOaVZ NmWg== 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=k2KlflYH9GI08OlvxRw/6b3MyF6BbXxGx/PB5Vde9ls=; b=bYzqfCum8UzRLx0mz5ZrwOGH134k8VhjcpEAwjR9ZsX1iHQhP7BH0sCePnHW7SC0HN bHFSVC/ilzMi9f20UO7XZsWKiwpiNuWBvsLoPRWGSz5RRlLgdNHArbmEIJ82pPtkp382 BVyZY0Rc9q5qR2FWY1Rw3QhHwXUi24PoeCWifKfm9ADYFmPQs2nKWyz20kivJpdAZiBy E7HRVeBKUZ0cge17Nt4IYD20vbSu2Z47rNNj6QgPW+LFoUam8zekt7xQSPit/oRug3pY baPudVAKWukBJr5n1V4E6zJDTuFUQByy/GnPOk5kEiKI/e3DCUNhMHsFk5orOhGQ29yR yG/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d2G1aa2/; 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 44-v6si1248521plc.252.2018.04.11.07.30.26; Wed, 11 Apr 2018 07:31:04 -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=d2G1aa2/; 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 S1753296AbeDKO13 (ORCPT + 99 others); Wed, 11 Apr 2018 10:27:29 -0400 Received: from mail-lf0-f45.google.com ([209.85.215.45]:45125 "EHLO mail-lf0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752229AbeDKO11 (ORCPT ); Wed, 11 Apr 2018 10:27:27 -0400 Received: by mail-lf0-f45.google.com with SMTP id q5-v6so2924232lff.12 for ; Wed, 11 Apr 2018 07:27:26 -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=k2KlflYH9GI08OlvxRw/6b3MyF6BbXxGx/PB5Vde9ls=; b=d2G1aa2/xYhWXyYKlF/yhJA+qdHbckaAenjaW5K1J7Xo0I8q0PTp7d9ri7y29+AX4s ddPSePdZHD/kQqwV2pxM0hmiXtjTy4JCxHedk2f12WfTbN+w9lDOEbANCifmZxGLAy77 QfW7ZB2IzqQckKVB4CcmAz2E0CQSuc3ejz8pFd/szyOcyJMmoWe0B4Nznse1vaW0sRi4 YsOZ6QFyWtOV8A8JlhZ7/FWoa9Da0CVj4UvScP8URRZFK3OJFf+0m35ghm4F9WrFapAc 6Pr7RHcbRoUUqLJD3pQVcOqItgeBQT4oDmh18s93EvV+70f36H3OLYMsf8iwP3A6Ug9j LgPg== 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=k2KlflYH9GI08OlvxRw/6b3MyF6BbXxGx/PB5Vde9ls=; b=oa8lYJg/fkGimB2scIK7VZlUN1ckdF6HZjvcyNqq39PtJEI+j6t9Lw5/I7qw/jv+fO tXRr+d2NJUfHeQpmZVRiYQrr63O5E8RXEfK3bRIxiMNaAzNvXp7Fenzrpyd82pGiMqhD tuV1U+e61Ve0ZzpshoCKSgkyoJfpWpXldxjQKCGtKT3/tzLs8RxcIu3BqsvgoiVtRezr VfhTj8JTRd1ehA0tU63RIuWfPttUtN4EJDjH06rFwt2EQoGrpvvr6ENrGTo1ew8uZkVn g2VEUncf00yLyfi1fgQQXRlAhBHQJiEfpcrCYMEwDt5U0uhW4KYQP8eI3O3GTCWYNIvZ XoNQ== X-Gm-Message-State: ALQs6tDxeD3xR0ztLBJu0UBfYeUEAJVHfFfs3HDnNQQhfPXfFjFwaOmY l9H49SMsPMTIRoR1BHxah8aZmcbZocTfsGA3YA== X-Received: by 10.46.156.13 with SMTP id s13mr3135649lji.29.1523456845880; Wed, 11 Apr 2018 07:27:25 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:e988:0:0:0:0:0 with HTTP; Wed, 11 Apr 2018 07:26:54 -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> From: Gabriel C Date: Wed, 11 Apr 2018 16:26:54 +0200 Message-ID: Subject: Re: AMD graphics performance regression in 4.15 and later To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: Jean-Marc Valin , 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-11 11:37 GMT+02:00 Christian K=C3=B6nig : > Am 11.04.2018 um 06:00 schrieb Gabriel C: >> >> 2018-04-09 11:42 GMT+02:00 Christian K=C3=B6nig >> : >>> >>> 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=3D1448778 >>>> 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 t= he >>> 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... Plasma 5.12.4 compiled wth frameworks 5.44.0 , Qt5 5.10.1 mesa 18.0.0 and mesa 17.3.7 on the other box Xorg is 1.19.6 xf86-video-amdgpu and xf86-video-ati both 18.0.1 > >> >> 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 othe= r >>> 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'm on it just the connection to freedesktop.org is slow as hell. Will take a while to get that branch with 62KiB/s :) Regards