Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3721556imm; Mon, 11 Jun 2018 00:08:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLUVxi4CWuVP+o1sn4g+I5p02GrYRVbtrCwci4QRYxVMLVao4uUZWKuzIWw+0d7MQZPg3y8 X-Received: by 2002:a63:924f:: with SMTP id s15-v6mr13493166pgn.368.1528700936779; Mon, 11 Jun 2018 00:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528700936; cv=none; d=google.com; s=arc-20160816; b=Vk4c/CDhHpIycpyRPqiLxUGH8djCZqsjS3dDZsCt6Y336kw9m02raj1BzEyBzG11qU AqOmlC31hlBL9aKcPiHv95dANXmaaQ4cdLICROzmAUj9gR4CMO9eHT9+8QxMpH5fyoaf u8LGEStJxBj3ug3BFtBzUstdBW+Edw7+mV11SJFuQny78QVGVA5Yu0NJqDL5i96JgeHj WMcURW4U/WNL0+qtsJJAAz8N1XYyQ81g+e17iGTzUghihyZpWzrT7nQBf64cRuVGxKh1 PtZOWtcpXwEUR+lLVhzS9D3sm33h/izWBtsOEzRYG13RBWiY/PYM/GcQhgmYJuMhodlG gCNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=4yQeYf6PvUwHbjeJnWMDHrdCfui/BgPFAeUMhGVt8PM=; b=DueYp9ftX82yy8NdGOn0+miXSzsoGaGSsovIcINL8b26myiSSWZg2X/WEIsuoFiPBm wNH1M4KtN5JvIJHqcca5yzqm95afjAhT5BJiWSAP4qaZigbaJqqyI+bZjApA7KIxpDh4 Jr93LWXjL4GS+cKc9D+fbL+sY84QDVCaPSYQP60ZiwNFe0qBJ+DqQBB4Db2McD10Lrgk ivPbHoREIxRoynTKucU6z2GhfYO9UKZWGieiCltUeGzU63H9GnDMORXySlcMgydMzifM l0vfEJvKjG0R58nrlj6vmQLWTBGiS2f4jPAQmzpUHRg3WeBC4uTxax71cnZtlMF/jbur LJfw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10-v6si29229251pgq.616.2018.06.11.00.08.42; Mon, 11 Jun 2018 00:08:56 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754049AbeFKHHH (ORCPT + 99 others); Mon, 11 Jun 2018 03:07:07 -0400 Received: from verein.lst.de ([213.95.11.211]:57467 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753998AbeFKHHG (ORCPT ); Mon, 11 Jun 2018 03:07:06 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 23B2968CEE; Mon, 11 Jun 2018 09:15:01 +0200 (CEST) Date: Mon, 11 Jun 2018 09:15:01 +0200 From: Christoph Hellwig To: Gabriel C Cc: Christian =?iso-8859-1?Q?K=F6nig?= , Christoph Hellwig , Tom Lendacky , Jean-Marc Valin , Dave Airlie , Felix Kuehling , LKML , dri-devel@lists.freedesktop.org, Joerg Roedel , alexander.deucher@amd.com, Andrew Morton , Linus Torvalds , Michel =?iso-8859-1?Q?D=E4nzer?= Subject: Re: Kernel and ADM hardware roulette ( was AMD graphics performance regression in 4.15 and later ) Message-ID: <20180611071501.GA1015@lst.de> References: <516cddbe-73c2-01f3-a552-0d9fd75ce63a@amd.com> <8f7d00f9-992f-cc07-6bd0-b1b47c5d2ccf@amd.com> <267c42ce-91e2-4843-3815-904ac74b2f44@amd.com> <20180608060223.GB24107@lst.de> <1c8b3938-6656-5d5a-f65d-dfd2e55d989e@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I think the prime issue is that dma_direct_alloc respects the dma mask. Which we don't need if actually using the iommu. This would be mostly harmless exept for the the SEV bit high in the address that makes the checks fail. For now I'd say revert this commit for 4.17/4.18-rc and I'll look into addressing these issues properly.