Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp937723imm; Wed, 6 Jun 2018 08:05:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKINd7cYndHzuXFgfe4Noie6ga7Mr7lqZ+GoWq3Sl6V+SILYqUyjwG4x6FgWktdBA6amaPZ8 X-Received: by 2002:a65:64c6:: with SMTP id t6-v6mr2920912pgv.223.1528297554692; Wed, 06 Jun 2018 08:05:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528297554; cv=none; d=google.com; s=arc-20160816; b=Rpif5PAPmboMFOIOyrb7Tkf1daRF+7XGCJbnI3y55PHcHc2Gv5pNsUvi0jfaVMMud9 OxvYTPKQa2Qh4n+ygOTOJPlNuAvrh4E2xeGq6D4P9wFovEejfEdUCnzRZeEPDzX/EouP eaeBlJAnNMttT0RMcDprQrSweq3nQjoGBx3BxXUjrnbBsAlgDoIylHY6aIoh9h1ro6tM /MoXorWsYxStx9s/MVrzF92+3Fja573obEb/rVDC5hI9rqEWSG04yRH4BK2gXegpgnyb jbCAye93jGbM3lnQqFrpfo3xoYXd6E0bhTzAtYvDAkvAM3o0zHPRgaxN/80abADlRLA/ b4/g== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=a32LsxhfzfVeiPGvZThIv+uiroCgM4ge8pskr3dwla0=; b=MsSGcEGdIICvFFGk/z1vdmsS3Z8xSa1pSKg+7XwRdI+3+xANOtulK5PIDoG0Wx7SwA Mvhj4FlOLfNtRR+Iu0VXYm5LwhQ+xw6NqdkTfwDutkalnN97k3p15QHHhSKhA6hUePsr WbQ1f0vHQyAJC5Iz+viCRjqNFu7gRNti3kAmks8yRUXxTao4gjqiayHJcnXeWwnFzeBs eF1U4v4th9o1ZpgScF+j2jiNRl7tUnYCXtFQBGTo+RhuDkqwOYLNwKnrg9niCxYLfq3e jC0vEtObraZip/BtQeg3ynSjy/ElCagxdC1tYseX/PWdfPhtJMKPv8MGBn/8O3693sh3 Si+A== 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 k1-v6si13484911pld.458.2018.06.06.08.05.39; Wed, 06 Jun 2018 08:05:54 -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 S1752423AbeFFPDZ (ORCPT + 99 others); Wed, 6 Jun 2018 11:03:25 -0400 Received: from mail.netline.ch ([148.251.143.178]:47188 "EHLO netline-mail3.netline.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751973AbeFFPDV (ORCPT ); Wed, 6 Jun 2018 11:03:21 -0400 Received: from localhost (localhost [127.0.0.1]) by netline-mail3.netline.ch (Postfix) with ESMTP id 6F22C2A6048; Wed, 6 Jun 2018 17:03:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at netline-mail3.netline.ch Received: from netline-mail3.netline.ch ([127.0.0.1]) by localhost (netline-mail3.netline.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PdpCjKjM60Fv; Wed, 6 Jun 2018 17:03:19 +0200 (CEST) Received: from thor (252.228.127.176.dynamic.wline.res.cust.swisscom.ch [176.127.228.252]) by netline-mail3.netline.ch (Postfix) with ESMTPSA id 4267B2A6042; Wed, 6 Jun 2018 17:03:18 +0200 (CEST) Received: from localhost ([::1]) by thor with esmtp (Exim 4.91) (envelope-from ) id 1fQZy1-0006tR-Eb; Wed, 06 Jun 2018 17:03:17 +0200 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?= , Gabriel C Cc: Jean-Marc Valin , Dave Airlie , Felix Kuehling , LKML , dri-devel@lists.freedesktop.org, alexander.deucher@amd.com, Andrew Morton , Linus Torvalds References: <516cddbe-73c2-01f3-a552-0d9fd75ce63a@amd.com> <8f7d00f9-992f-cc07-6bd0-b1b47c5d2ccf@amd.com> From: =?UTF-8?Q?Michel_D=c3=a4nzer?= Message-ID: Date: Wed, 6 Jun 2018 17:03:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <8f7d00f9-992f-cc07-6bd0-b1b47c5d2ccf@amd.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-06-06 04:44 PM, Christian König wrote: > Am 06.06.2018 um 16:12 schrieb Michel Dänzer: >> On 2018-06-06 03:33 PM, Gabriel C wrote: >>> 2018-06-06 14:19 GMT+02:00 Christian König : >>>> Am 06.06.2018 um 14:08 schrieb Gabriel C: >>>>> 2018-06-06 13:33 GMT+02:00 Christian König : >>>>>> Am 06.06.2018 um 13:28 schrieb Gabriel C: >> >>>>> http://ftp.frugalware.org/pub/other/people/crazy/radeon/dmesg-iommu-sr-iov-off.txt >>>>> >>>>> >>>>> http://ftp.frugalware.org/pub/other/people/crazy/radeon/dmesg-iommu-sr-iov-on.txt >>>>> >>>>> >>>>> Also nothing else changed in that setup just testing kernel 4.17. >>>> >>>> >>>> That has nothing TODO with the driver nor the original bug you >>>> reported. The >>>> problem is that SME is active and that is currently not supported at >>>> all >>>> with a that hardware. >>> >>> Ok .. so are we playing now kernel an AMD Hardware roulette on each >>> release ? >>> >>> SME was like this in kernel 4.16.x here and all worked. >> >> If that is true, again please bisect which commit broke it. >> >> All the reports I've seen before this indicated that at least amdgpu >> has never worked with SME (which BTW doesn't mean it's never going to >> work or that we don't want to support it, just that as far as we know >> it's currently not working). > > At least in theory it should work when we use the coherent DMA allocator. > > When that really worked before, so the most likely commit which broke > this is: > > commit fd5fd480dd8fe4910546e7b080b3ae345e57fe9f > Author: Chunming Zhou > Date:   Fri Feb 9 10:44:09 2018 +0800 > >     drm/amdgpu: only enable swiotlb alloc when need v2 > >     get the max io mapping address of system memory to see if it is over >     our card accessing range. >     v2: move checking later > >     Signed-off-by: Chunming Zhou >     Reviewed-by: Monk Liu >     Reviewed-by: Christian König >     Signed-off-by: Alex Deucher > > Currently looking into how we could somehow improve this detection. I guess this could fit for Gabriel, but e.g. https://bugs.freedesktop.org/104437 says amdgpu was already broken with SME in 4.15, if not 4.14 (I suspect there was simply no SME support earlier). -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer