From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.codeaurora.org by pdx-caf-mail.web.codeaurora.org (Dovecot) with LMTP id W4yhMmwfHltcRwAAmS7hNA ; Mon, 11 Jun 2018 07:07:10 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 40F8F60791; Mon, 11 Jun 2018 07:07:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by smtp.codeaurora.org (Postfix) with ESMTP id CDF3D601D2; Mon, 11 Jun 2018 07:07:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CDF3D601D2 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754064AbeFKHHH (ORCPT + 20 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.