Received: by 10.192.165.156 with SMTP id m28csp255360imm; Tue, 10 Apr 2018 21:06:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+04xbcX5LRS6Qg4f4TRpfenionL+v28LlAlapW33EyfvXEdRhzJB2qYWCEXmcDB/VltuZ3 X-Received: by 2002:a17:902:9a48:: with SMTP id x8-v6mr3242230plv.135.1523419568067; Tue, 10 Apr 2018 21:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523419568; cv=none; d=google.com; s=arc-20160816; b=jGnd+cTGYkQ4+HZR0pZW8Mpi2TiC1dTluDBpNql/9BkPC7POt3ATwMuixNMmnizXPC nLE1Gl6Pwk9hW1HGxDGQ7Vwehetl84zVFudQ2Z1LSTnl05SO/CLmzN4IIRa9o9gZ3A4b elkeJ25yEKCDwGW22DJJRWDVu/QZktluJmpNGcr/30VQoA3r+IwIbeQhu5f7+Ibm7m9N deTRrwE2wLJd2+s1zu8AYl0u9IHrLbWEoMbp3NU4GAtKdE3zDxzrwXkdKYcLdW+P0L0w 29B8bMhivRd/PJ/liWlhkKPHO6DSK7kU+AUqj/89gk/3YZpEK8lxxOps5VZ+c+LIhs09 52yA== 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=g04+c0kcVFSRW15yWqfQb7f56LKc9Hu1I3l7mJB8G2E=; b=N9W4qyJNkOawHAlsFz8qwSBTNY58d/orSGqaa7axQDqaG03x89EoNWDZJ2lEvtCdTK B9hNfBX/Tvqm5R1yxW6A6D1bV2dEJh8kKaUM4XFL9HYxo01TnwkCjmO8KJ4Ik19ZGXzb l1Twfoo19VCVFWllYjHdIWv9XqSB71GJmUdlswtsdIoOz3P68Jl/dZ08IR7A+9fzVlH4 XHbdnRiajJzbHLEvilSUZn/nBPiK1lD2YwcxeRtHRjXZ436+jyVMl97AgpiAxaYIzPGp pY7WCMSqT7rQSxEO3alllKaEhzt+yK5de1wgOicg77R/4ub/0lxOEhO4LmnJOy+dxEgB JaYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N96zis9b; 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 g11si128125pgs.153.2018.04.10.21.05.30; Tue, 10 Apr 2018 21:06:08 -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=N96zis9b; 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 S1750817AbeDKEBU (ORCPT + 99 others); Wed, 11 Apr 2018 00:01:20 -0400 Received: from mail-lf0-f49.google.com ([209.85.215.49]:40625 "EHLO mail-lf0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750723AbeDKEBT (ORCPT ); Wed, 11 Apr 2018 00:01:19 -0400 Received: by mail-lf0-f49.google.com with SMTP id e5-v6so584507lfb.7 for ; Tue, 10 Apr 2018 21:01:18 -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=g04+c0kcVFSRW15yWqfQb7f56LKc9Hu1I3l7mJB8G2E=; b=N96zis9brRCsM/lhTGIvXCdWA/BaYgVQv/1x8cz7/dYonAtjAOK5DxAc3BIhvpj13U MqZN+6Ytw7uEeiMpdCj9vwyLFh3BzKSbMCQvPPyPwBjMtK3yT71gT8V/vLMFMskYdzj6 VuuqU5HiKWrNUVi9hyLS7bY2cG+U4mtt/H8NOnRBTvUFjpiK0iaoVT28bI/ElT7/myoJ rbuUIA928mIcbPUDJ07M2KX6vPc5Us7jwFzu+royTP+6AIDKiD8n+k7ej3cEBkxHJRle 9wyTOo4p+D82Y7b9bIAbuGYhjIuQqa0ajSAnQ+lxto8AUkUAWZVuQLV79av+mOMSoKwt 0Olg== 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=g04+c0kcVFSRW15yWqfQb7f56LKc9Hu1I3l7mJB8G2E=; b=pJ9o36ZMy/VWTg6xtOZuk7eiflUJTcfjy0gJtebblX+6Ij4ru8E0BTyblwQ6oUfRZL CRDlclsJs1M9PFMEZbxegFhRYvtIUpGlndPwkpF+XPqXKv3ekEJ6m4CdZbdzLXhYd2Iu RbLoJt56fxMYmszNvQfe01Ypl6dXxtGnOTLlcYus/PFDA5YlFwEfVzYpK5Su4gJzOkPx COit+48IWMjDbYZuSXlEhFFJADFogYt6N8NQN7bMTcf6TGdsUqnz4h4kh+LDSr7X7EhL YQUBVXMniWZHE4CM8w+TTh7hkY5+3h2WbB2IXDJXjDUjdQSaakldtYj8oyFuTT6f5PjT a8DQ== X-Gm-Message-State: ALQs6tDEvVVO9lcPpK+zX8x/DNDuxpXFrSUI/6TVKVROL09T6iYbhbOI iHWzsQixHlnRbUp0jY+J5LvYDL4F+loXu95IhQ== X-Received: by 10.46.128.132 with SMTP id i4mr1681964ljg.51.1523419277868; Tue, 10 Apr 2018 21:01:17 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:e988:0:0:0:0:0 with HTTP; Tue, 10 Apr 2018 21:00:47 -0700 (PDT) In-Reply-To: <55e1712b-6567-50c5-3789-53dd1ccddb94@gmail.com> 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 06:00:47 +0200 Message-ID: Subject: Re: AMD graphics performance regression in 4.15 and later To: christian.koenig@amd.com Cc: Jean-Marc Valin , Dave Airlie , alexander.deucher@amd.com, Felix.Kuehling@amd.com, 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-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 the > 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. 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 other > 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. 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* sto= rry. Regards, Gabriel C