Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1125756imm; Wed, 6 Jun 2018 10:49:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJKHRv9NSLGLK9M9jHTk1MO8FiOpdA74rjxhAtwacuAhuACFkbmMqmsvQMrCbh68DcHpwja X-Received: by 2002:a65:644a:: with SMTP id s10-v6mr3371771pgv.360.1528307352362; Wed, 06 Jun 2018 10:49:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528307352; cv=none; d=google.com; s=arc-20160816; b=ma+QjHzkL7vLjMHp9QGPp726gz0jvRZNMxuk3W+Ble9qTRE1Fm7lsD1ABveIopXCJU cLQmZQOpGSVeHnhAwXnCwB97mPjdtwHhIVgkow9QW3IHiqMN384JO+Y/S35ABnniccJz X/+Yrqh2P3RDTRuV+5XrOEZx7ngpdzet7rlHpWdGorEd/5GaHSo7Hqw6XcRePbKgUa2Q 6YkmBr1/hFJ37iZ20Yuf7+IRnZuJM68wK/nA0S0T1M/qLNeKSAfbIlzxBjI4E05LB8Nj hGZPOmk+A8S/c3aizUTO3SkC4g9FUITph/cD60Si8WYWlo+qwtO4fdRtPyzKy7o68SaV I0Pg== 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=GXBDUYXvu5JFrQdsRoWJLD0J3is3W2KXTNhskHkGn3A=; b=Vq/RiOibLi6U4X0eBmjCLLvLI2CsW8auo1wCFZ/IevJ/Z1FZ5YwhJWfg04FZTYbVG5 Rd9peW75UD7slmQYnzXiOn284kQE25s5jtaRDH7U6u5mg9En/uJivUPve1zOVTWLHgvz inCZK5No4osuU39IQ2xoyLhEYFyfjKohp6wZq1japz0d27gjJBxPsVKSwGRkMXfnRYKN aBsl5IAnDbp0CQ9CZ9lVmnjuvxbpXEA5PGaT6uZ3YXOeEq3uh657X15Mvs0K9cljt5va ElgMdeNPvMJ2myk+kx+6+rL2GSI6QMuq863YBu9qsnhqn+c3dIbZmuRMw8Nm+fgM7WOp aggg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bYzabnwh; 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 u4-v6si10367316pgc.550.2018.06.06.10.48.57; Wed, 06 Jun 2018 10:49:12 -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=bYzabnwh; 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 S1752290AbeFFPYz (ORCPT + 99 others); Wed, 6 Jun 2018 11:24:55 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:35383 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751891AbeFFPYx (ORCPT ); Wed, 6 Jun 2018 11:24:53 -0400 Received: by mail-lf0-f68.google.com with SMTP id y72-v6so9745719lfd.2 for ; Wed, 06 Jun 2018 08:24:52 -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=GXBDUYXvu5JFrQdsRoWJLD0J3is3W2KXTNhskHkGn3A=; b=bYzabnwhUV2xB25tgtYxpEf3L9s2GkK73RN0111AnsNg+UlD/duK5ybWMiK9307GDW P3z3x+oUYC/VHScXBDICtWMUBiGcfLmh+sgYonhXE5DwD+e8XV9qAGkT/Wc7M+KLCvmU yT7QvhBr7B53rxb2O9rBOmgVvswBuMddKnV84i3V0R1oJPyjPrC0IAFq9nglFAb1YPIT dzF2q6Ty/hDyqrrmHpEdhRrNUUx5H9e55mpuPaYsAAbAgy/xmycRXv2P9+vT1dxFCxkX 8PJ4PF197798IXdwr9cHotSNcFuXcVJZtHQPYqnya6WG8eE7uaHBSK/OlDzg5+4g4ClD 7ttQ== 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=GXBDUYXvu5JFrQdsRoWJLD0J3is3W2KXTNhskHkGn3A=; b=k0bDuSrYL8QU8uVUWqZDMZb55+Ntf216ud4qDO0eX8yyRdBnzbMlK4SR4tfWp7T7v6 U/apPF2SH8bPrOcGfpVBb0MYVHhJoLrZLjQ5V8tuMPi125xHfyXGSsENyka0NDucb5P5 WCPdtZpN32RsYYHg/vPYwO9SEQWMlQhR5YsU8ftLsY2w3tcmAauFbkeAIyRq8WijGwJ6 1f5oAtZ3qVj2S4AccVfJ8EZAvz3tDwksES04PYP3U2CBJ4/WX4jFKMbAcaF9WCu/ep7C yROcVgY193YTQ1AOkkKT9SSV5HsA4OdQwvuxuyYCHfbgyZWbdmA5nOB1kF2bLH1og9FF 4dww== X-Gm-Message-State: APt69E09hHSRnN6bq6VyNFv/6nWfAWE4r8P+GDGIONt99Qqjf7ughjGy K25hcUScddep2aSgnMZnsw7LuYzw9KltOCLa4oVn X-Received: by 2002:a19:c203:: with SMTP id l3-v6mr2292721lfc.55.1528298692001; Wed, 06 Jun 2018 08:24:52 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:e45c:0:0:0:0:0 with HTTP; Wed, 6 Jun 2018 08:24:21 -0700 (PDT) In-Reply-To: <8f7d00f9-992f-cc07-6bd0-b1b47c5d2ccf@amd.com> References: <516cddbe-73c2-01f3-a552-0d9fd75ce63a@amd.com> <8f7d00f9-992f-cc07-6bd0-b1b47c5d2ccf@amd.com> From: Gabriel C Date: Wed, 6 Jun 2018 17:24:21 +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 , alexander.deucher@amd.com, Felix Kuehling , Laura Abbott , Andrew Morton , dri-devel@lists.freedesktop.org, LKML , 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 16:44 GMT+02:00 Christian K=C3=B6nig : > 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: >>>>>>> >>>>>>> 2018-04-11 7:02 GMT+02:00 Gabriel C : >>>>>>>> >>>>>>>> >>>>>>>> [ 6.337838] [drm] PCIE GART of 2048M enabled (table at >>>>>>>> 0x00000000001D6000). >>>>>>>> [ 6.338210] radeon 0000:21:00.0: (-12) create WB bo failed >>>>>>>> [ 6.338214] radeon 0000:21:00.0: disabling GPU acceleration >>>>>>>> >>>>>>>> ... >>>>>>>> >>>>>>> I have the same Issue now on final 4.17. >> >> >> Please file a bug report, and ideally bisect which commit(s) introduced >> the issue(s). >> >> >>>>> >>>>> http://ftp.frugalware.org/pub/other/people/crazy/radeon/dmesg-iommu-s= r-iov-off.txt >>>>> >>>>> >>>>> http://ftp.frugalware.org/pub/other/people/crazy/radeon/dmesg-iommu-s= r-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 reporte= d. >>>> The >>>> problem is that SME is active and that is currently not supported at a= ll >>>> 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 o= r >> that we don't want to support it, just that as far as we know it's curre= ntly >> 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 thi= s > 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. Is not this one , I've build an kernel with this reverted. I'll do an bisect tonight or tomorrow. > > Regards, > Christian.