Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp985268imm; Wed, 6 Jun 2018 08:47:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL7286CvMXrwFNKPaMVwABQee5xjONCYWBJxNGy6lLNcBy3Hu9acfqZ6l/hc3P35MS8gxJK X-Received: by 2002:a63:a702:: with SMTP id d2-v6mr3060077pgf.246.1528300052593; Wed, 06 Jun 2018 08:47:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528300052; cv=none; d=google.com; s=arc-20160816; b=Y4PUzxrlmCG0ze/MK50Ee1buXdPYazW2JZYkk/wAQn8Ttl0O+OE53GIPdUijJxKAbm jUT8QNAzIEMx4Wf84YKLtml0VU/wyNz5e3J291Tpm8UgoqzX17Ylnbh0MZmB/ruwKJU6 SE9gICxPNIRezzMCZZMvgAB68H/FAtiEqwlsuqzt0o8b9Vd5AV9rfPIq5ynGJ+75NVy2 ZgoqO6yTX0c8OcppKBCNtPZSmAqKUQhmYYc2Bn9ZanokUsTDlUU+yrhZTYVwKeRoFuaM uLD5huu2S8lhDbNqt4snX6HRg0o2ofc890HROusl3DO7ylopPQnQ5f8x1cFiN85FDscO 229g== 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=HvjimWxAfeC9bjktrm92GNTYm6d7JbrMI2tLw2R6aos=; b=AJ7e5n3oi7Nu8so3WZPW42va9rOoebwa7PgIAuqAOOLB9xSbEY7qzQ7PKq2y/Go8L3 AhqAwi8l5oklZIDtD+ClfgWfJW6dxwwx40Nx8i5y2bz3U0pY3yYkRBerFB5p8aJH80Q4 G5omfkL0eZEwC4WoWC8uK1EIYAhXPHuukMGwmSs3zP8VhaO7y4lyzyJkXbD3p8R/bcFU +05FHM6lc1xmqbgAk4bicafYtw3tImD7xBOB1VGL3olALjx9poCln7ONe6j9DSvt6H+N uOWJoAWqymI01jowTxN5ULZZ1sbSM57RWkvFbePT4UKe4yVXUOSQh+v8tYDnJoL+I99j 4CEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ds/57AmI; 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 d20-v6si48967397pfn.213.2018.06.06.08.47.18; Wed, 06 Jun 2018 08:47:32 -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=Ds/57AmI; 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 S932302AbeFFPpf (ORCPT + 99 others); Wed, 6 Jun 2018 11:45:35 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:42423 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932148AbeFFPpb (ORCPT ); Wed, 6 Jun 2018 11:45:31 -0400 Received: by mail-lf0-f65.google.com with SMTP id v135-v6so9843271lfa.9 for ; Wed, 06 Jun 2018 08:45:31 -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=HvjimWxAfeC9bjktrm92GNTYm6d7JbrMI2tLw2R6aos=; b=Ds/57AmIt7O2rWilrqGHgdlPRMKSv5VghOrvF3TQ9Kc6KRMG8R8knF9gE/9FFjpsCT LF/wmJV9NYwZMSqe+C5yP+3SWzpSCfO0BYa64EiwmX5SADWeqFhbgu6sj2p1oCJbrnMG 9m+I3wDIMvxJZ0nijPdhvWoFq5p2rKw7W3WK2ZJDi3iYuLytC0bThwNBGlzuKq5fKN5O NzWsyliy8lp6r/m0mG/DLxWf3+yNTZZcXmht6Xz1q6zUE315bT9lfCUM/XOELBjrnprc hGiOjsGKeAZ86cATVylU8IzEI0DlqNpA835lR/uEuMcQz3wGo68C0AEwPyn2LmGy9YWw ytnw== 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=HvjimWxAfeC9bjktrm92GNTYm6d7JbrMI2tLw2R6aos=; b=M8KaAqDMQOVNZRlFy1tzgtP1FeHINokK4Z9wCt1hYDFqQH60MjIm8N+7w2muYN2rpZ ynIXf96GrmDkk4zC4/4rRHwvUoOI6EkKAPovs1jOcLnga2L3829Bn+B9bHhUmALIQXVt NpiatqhsBsr2ijNW2tjt7qwcRDIFiw6KiJxA4iGQuXw9QNEgK0HMWcGvk3Grf1E8/7mq E36sy3G7u5ggLOL1Bzu3rV+4Mt2NSUf4xWilB5eLPuH0DMayMkU7V6CuLkUQQ6hxse97 p/5WRpaHGDb7B29W5z/B8uqHVqM4ejfR+QnZ+FxbFC3ZmKpOhpsyMpdzTwXshkIeU5Ky QQSw== X-Gm-Message-State: APt69E2EhbOk2ShDIqO6Eg8C+gIkS29/Av2wblsxpPfdQ++PpIV96dZn /JCPqg8eyAHuQaByf0GAPAVgF6A7w/d/Ot5YBw== X-Received: by 2002:a19:7:: with SMTP id 7-v6mr2321215lfa.62.1528299930347; Wed, 06 Jun 2018 08:45:30 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:e45c:0:0:0:0:0 with HTTP; Wed, 6 Jun 2018 08:44:59 -0700 (PDT) In-Reply-To: References: <516cddbe-73c2-01f3-a552-0d9fd75ce63a@amd.com> <8f7d00f9-992f-cc07-6bd0-b1b47c5d2ccf@amd.com> From: Gabriel C Date: Wed, 6 Jun 2018 17:44:59 +0200 Message-ID: Subject: Re: Kernel and ADM hardware roulette ( was AMD graphics performance regression in 4.15 and later ) To: =?UTF-8?Q?Michel_D=C3=A4nzer?= Cc: =?UTF-8?Q?Christian_K=C3=B6nig?= , Jean-Marc Valin , Dave Airlie , Felix Kuehling , LKML , dri-devel@lists.freedesktop.org, alexander.deucher@amd.com, Andrew Morton , 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-06-06 17:03 GMT+02:00 Michel D=C3=A4nzer : > On 2018-06-06 04:44 PM, Christian K=C3=B6nig wrote: >> Am 06.06.2018 um 16:12 schrieb Michel D=C3=A4nzer: >>> On 2018-06-06 03:33 PM, Gabriel C wrote: >>>> 2018-06-06 14:19 GMT+02:00 Christian K=C3=B6nig : >>>>> Am 06.06.2018 um 14:08 schrieb Gabriel C: >>>>>> 2018-06-06 13:33 GMT+02:00 Christian K=C3=B6nig : >>>>>>> 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=C3=B6nig >> 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). I got strange performance issue with 4.15 and 4.16 .. but SME was ON on that setup ( even before it hit mainline ) and never broke the GPU like = this. 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. > > > -- > Earthling Michel D=C3=A4nzer | http://www.amd= .com > Libre software enthusiast | Mesa and X developer