Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2515137imm; Thu, 7 Jun 2018 11:59:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI5TX0Ddb4DBUSGATKjBo+13ZGb8AIFU7hJHX/9F7tO5bfAEgXh7NYH9OibOgtDLlDCeYI6 X-Received: by 2002:a63:7207:: with SMTP id n7-v6mr2501131pgc.195.1528397946407; Thu, 07 Jun 2018 11:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528397946; cv=none; d=google.com; s=arc-20160816; b=La81l2KvggSf9PXioF+AF0nlxbxPpP90xKkAh//o8orBbXk3R7C55/sXODtnyUSGir Gz1sLIieJW+qXeP0jsZNRzNnDj9TlYDc6DlE/uLlNfxiqOVVpBgQT742OR3wJv64J5ac GluVUlhml9QqkE3FQn7OKFBtF+oJNaxO8eyYwkNF63lhiSKopQ95k4WnkFKpi3Tt8KEt XOFBH1xis0KEGbDlXQZlCO9blWVBJKxccC7LsvPzQJ9upwW8aKZxG1MvK1n1b4QWq1lw FGBFoiqkrce3sybsFYQRQSep3cvEPKQn6/nxymwFT7KYYy37Vw18vybDGvcHhGdugTpG NSIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=XgnfgGQJtmPg/Jdscr83Nuy8q3IUy8cqBtuQBB5lXWc=; b=yCEWW3kW/x1pXKW1XMY8mJaMKeg1Q5kjWdRbyGvFgUlEaKjdhvjoiMszgb7Vo8G3UN /+5G0jqefASeebU9WR8z7RMKKqm+3Yakd1H6BoBFDz0mFvHpFtC6omez+D9LPf9Ff0xY ufnhUEqKldRT+Oc/fQujC85IDG2mSYQstrs6nDnOIoIYbjcoLbilSALKdeknj60t/IFm 5H5nEwbMT6S0exZqDtqZS4vAoN0bOVCx0M8jio67skOLWkCX8ah+OZof/ZwrgvzgJsGL J0/oXUmEGQGGD5Vd5VBzn4ak6Jwwti8wkusHKBtBALPABhQfExHa4/8UIkLYc7FtpL92 WQMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZQ1vj3P6; 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 a8-v6si53382365ple.222.2018.06.07.11.58.52; Thu, 07 Jun 2018 11:59:06 -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=ZQ1vj3P6; 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 S1753554AbeFGQZG (ORCPT + 99 others); Thu, 7 Jun 2018 12:25:06 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:35563 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751157AbeFGQZE (ORCPT ); Thu, 7 Jun 2018 12:25:04 -0400 Received: by mail-lf0-f65.google.com with SMTP id i15-v6so5315926lfc.2 for ; Thu, 07 Jun 2018 09:25:04 -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; bh=XgnfgGQJtmPg/Jdscr83Nuy8q3IUy8cqBtuQBB5lXWc=; b=ZQ1vj3P614eR2kuMEQVcu5ekGY8CTbRdO/o71pE9CpQ8S8mzA7bZ51n0tfp1vo/Wrd N5EuEkJDP5oUcldI1cPjjvuHk05hMZB6KujpLOlPylPqDZNGZNJ1fkLbPW/xE07gNLG5 8RrObJE1iCEZMG/51aLD6pQ6DAWlqeTDpeyVx4r2adD5vN82oJ+BXrBobEyuBLKil8Qw OpfHCIXNTrvoyesgA+xL0VUgY4MmrIXz1/zRu2O7hX5XecTAkP9YFHtWzqDKb1OlcCqi fNrJpKFrQGXSXIsJy+hwwGO9PhKZBnEkEBZiWKSABbNBeaRxIcLYleUzcLM9+VuqLFMK 24ig== 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; bh=XgnfgGQJtmPg/Jdscr83Nuy8q3IUy8cqBtuQBB5lXWc=; b=D3i1wuYyXjckhP+kQxUiUsusZRuyh4ZM4apsoNB0fBIdhu0MSO1RR9pSuWUiWeA98K DahFRJUFTg5GYrtJ5JNl/QTsJufVr+eyDbrXaWQthuyVcrMewkLIf4zDfqykG9ekByQ9 W7KcXFkWLuf1FVx0ezDMbQyNKozzZ4TmxB6fRh0qqDF5JAZtbe8jlxGoYlc+fC1qC1uv pMhuD4rbv9nJE+aM4nryqPuLgZdiw6sbnsHY0YVRqv/9Jm0Kb7A7vh+7fcafsxJeWqP0 0KHlje2DppslWKuZskDuw3Pw1/db/8HcS4qMA+pOSlHfXWuNfUOSNTR2dMQDfFzwGC1N d0FA== X-Gm-Message-State: APt69E2MV7NYe0re84lUx8cmaihl/PeCZq8C2gRxIcWUpaMZwiAB44Vz HkuTB6xPwkXKYrDFg9abFb5yxKmEVxTlz0Poxg== X-Received: by 2002:a2e:428e:: with SMTP id h14-v6mr2120895ljf.136.1528388703492; Thu, 07 Jun 2018 09:25:03 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:e45c:0:0:0:0:0 with HTTP; Thu, 7 Jun 2018 09:24:33 -0700 (PDT) In-Reply-To: References: <516cddbe-73c2-01f3-a552-0d9fd75ce63a@amd.com> <8f7d00f9-992f-cc07-6bd0-b1b47c5d2ccf@amd.com> <267c42ce-91e2-4843-3815-904ac74b2f44@amd.com> From: Gabriel C Date: Thu, 7 Jun 2018 18:24:33 +0200 Message-ID: Subject: Re: Kernel and ADM hardware roulette ( was AMD graphics performance regression in 4.15 and later ) To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: =?UTF-8?Q?Michel_D=C3=A4nzer?= , Jean-Marc Valin , Dave Airlie , Felix Kuehling , LKML , dri-devel@lists.freedesktop.org, alexander.deucher@amd.com, Andrew Morton , Linus Torvalds , Tom Lendacky , Joerg Roedel , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> Well that is very interesting, you are the first one who reports that SME + >> GFX works in some way. So far we only got negative reports for that. >> >>> There is a 4.16.13 boot dmesg which has no such issue: >>> >>> >>> http://ftp.frugalware.org/pub/other/people/crazy/radeon/dmesg-radeon-SME-ON-kernel-4.16.txt >>> >>> With the setup as is booting 4.16.x works , while 4.17 trows the errors. >> >> >> Please do the bisect if the patch I've mentioned above doesn't help. > > Ok done.. bisect points to: > > b468620f2a1dfdcfddfd6fa54367b8bcc1b51248 is the first bad commit > commit b468620f2a1dfdcfddfd6fa54367b8bcc1b51248 > Author: Christoph Hellwig > Date: Mon Mar 19 11:38:19 2018 +0100 > > iommu/amd_iommu: Use CONFIG_DMA_DIRECT_OPS=y and dma_direct_{alloc,free}() > > This cleans up the code a lot by removing duplicate logic. > > Tested-by: Tom Lendacky > Tested-by: Joerg Roedel > Signed-off-by: Christoph Hellwig > Reviewed-by: Thomas Gleixner > Acked-by: Joerg Roedel > Cc: David Woodhouse > Cc: Joerg Roedel > Cc: Jon Mason > Cc: Konrad Rzeszutek Wilk > Cc: Linus Torvalds > Cc: Muli Ben-Yehuda > Cc: Peter Zijlstra > Cc: iommu@lists.linux-foundation.org > Link: http://lkml.kernel.org/r/20180319103826.12853-8-hch@lst.de > Signed-off-by: Ingo Molnar > > > I'll try to revert this once I'm home. I can confirm reverting b468620f2a1dfdcfddfd6fa54367b8bcc1b51248 fixes that issue for me. The GPU is working fine with SME enabled. Now with working GPU :) I can also confirm performance is back to normal without doing any other workarounds. The only app still acting up a bit is Firefox , just minor frame drops, but nothing to bad. ( probably an Firefox bug too ) crhomium/chrome is fine .. even with 10 tabs open , each one playing an video on youtube no glitches at all. Desktop is also fine now, could not find anything wrong. BR