Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp492954rwr; Wed, 19 Apr 2023 09:07:56 -0700 (PDT) X-Google-Smtp-Source: AKy350a2UsqHKBMOAN7qKGjZdtWhRvMigSVg+NY27e4hApWFou3QahanQClH5e4qgbAFyAYVAo9/ X-Received: by 2002:a17:902:7244:b0:1a2:37fc:b5e2 with SMTP id c4-20020a170902724400b001a237fcb5e2mr5213236pll.7.1681920475865; Wed, 19 Apr 2023 09:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681920475; cv=none; d=google.com; s=arc-20160816; b=Rv73Sw/E3RXA17XL6HAwiEUEZSrApWzLXCQ+j66hvpX6EKSJSyEAWHpqlxXIAG72xw Lsmhlr6eAA9z8pJGF8KXqMwTikuZInsi0ozR5eYQHSiF8AQjMrLltycaWfsmy43+1PK1 +9rnfplB5pKhtgYwc2Efaq503EA+yqgkGgOCU+VmXGdSEF7vimY24Qyc0Lv0sgNfvoIi dZbk84g33GrHHQBeOrWr1foPI7kJCj8huwqxOGiUEi9fvqsbTRwQyr6H0I+cSJLrZQyO N6nGRKXdYPYZ8/6jCzR0Jr+kegSZgGItruAZHDSEbewvbAY/rH1nQA7ccG3OmbFhDMKG V/HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=AVtjPMREOOUQQbJrVJ+PVQx4OKxpFf/ZUEP61+e+1gQ=; b=PWgGKMtT+Mms6ibnbsBE2JEqoMeFqNAsQBRimeK3iBUSowGfiIpwWyxQEeS6Y6CrZO Oh3BjdxdcCc9Aboffkaxqhq/rZ9o4T3a5w+17UcGcaCs1Ga6W0cL6AohGRsMyHsiat96 xhasKHri+QL5eZ0G9xe4V4a2YMXNAXBdRVfXJokZMeqaFmRuhegGRChL0yW7+p732hij qTTgrImoTvyEXIPHs3qCgQDu9jgX3YGEk2LzmaMWXWxRV+Q22AGKa3yjkybxAz4C2pVK O4J8iK7zM2oZB/DjW8N3RFE+OdAeIVUoxRW7P6bsFRs88ydmHB3H5eCiJgaVenTUYH4i xNfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=frYwdCwa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c10-20020a170903234a00b001a69d1be184si4633672plh.506.2023.04.19.09.07.36; Wed, 19 Apr 2023 09:07:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=frYwdCwa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233744AbjDSP7O (ORCPT + 99 others); Wed, 19 Apr 2023 11:59:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230340AbjDSP7J (ORCPT ); Wed, 19 Apr 2023 11:59:09 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A833A19A6 for ; Wed, 19 Apr 2023 08:59:08 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-24b3451b2fcso137723a91.3 for ; Wed, 19 Apr 2023 08:59:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20221208.gappssmtp.com; s=20221208; t=1681919948; x=1684511948; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=AVtjPMREOOUQQbJrVJ+PVQx4OKxpFf/ZUEP61+e+1gQ=; b=frYwdCwa+a/xzkbnVucoLlipi8ogEmqZ1qhEAg5zGCAQKrQTu1+DqFZRxnWj0pmuBe vNEUyLRxzAchIdqSpVtXOZkJ8lOjJzLbes7827PH6Y1lnvYTaGbAQAedWGOjbyBL4SZw dIdAGbt9VCLb5MfB/LgIGiKfZBvabTkYrw8r3YfoaGY9WTUz3J7ZgZWq8KuJUYtrMGDP xTet/YdBWXQ5LLvyIroS0hsICAVEt9ZF07DLvdKFCq8K7PoktQZzEKVpjrEkYblFWcDT bbUI2DI5Q1WludkRgqqFbZT6CmdyneApjgf/cVP5AC5x+KwMsxRp6zjZSe4yl7Nyx6pk 6MqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681919948; x=1684511948; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=AVtjPMREOOUQQbJrVJ+PVQx4OKxpFf/ZUEP61+e+1gQ=; b=dAMblwFOQF902vZ+dd9xIuTsLrZpMuJLoTtt1VVVFwFZezsZy4IISmX1orxPTxNeJE iVobtnnXAWjE6ETuQPVZmJ5MSVMCiURjYhn+nYT5hSs+su/Gze8jDSPXXV9gXi/SxFTt kdNa6o5dGAmYQmyZEdj7yDUPoqr6x4uLBZaDHY+Yu+tHn8d+1kNr2TtFwfCXu+rzTZwn AG9A8DR/QLYwulA41ClGT3saRaEpY7L0c42ymfOQwvE2Na9deISwZB63b4Z19x7JxKhh Z745jWFBZ3uplLLJv6nZAQEiuerK7h75DsZQY6J7lpIiBoT6Mw1aPLgQkVTXBFd8iV0f gAZw== X-Gm-Message-State: AAQBX9cWhBifdu38LyZBfySmH92UaT+FzcQbgm4dtGKVL0AZwX6jji66 kL2BvvFG2LlUAk4q6C9guY5TyQ== X-Received: by 2002:a17:90a:930b:b0:24b:2e6a:24ed with SMTP id p11-20020a17090a930b00b0024b2e6a24edmr1085199pjo.37.1681919943842; Wed, 19 Apr 2023 08:59:03 -0700 (PDT) Received: from localhost ([135.180.227.0]) by smtp.gmail.com with ESMTPSA id l9-20020a17090a49c900b002353082958csm1570643pjm.10.2023.04.19.08.59.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Apr 2023 08:59:03 -0700 (PDT) Date: Wed, 19 Apr 2023 08:59:03 -0700 (PDT) X-Google-Original-Date: Wed, 19 Apr 2023 08:57:41 PDT (-0700) Subject: Re: [PATCH v8 0/7] Add non-coherent DMA support for AX45MP In-Reply-To: CC: Conor Dooley , prabhakar.csengg@gmail.com, Arnd Bergmann , Conor Dooley , geert+renesas@glider.be, heiko@sntech.de, guoren@kernel.org, ajones@ventanamicro.com, Paul Walmsley , aou@eecs.berkeley.edu, samuel@sholland.org, linux-riscv@lists.infradead.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, biju.das.jz@bp.renesas.com, prabhakar.mahadev-lad.rj@bp.renesas.com From: Palmer Dabbelt To: Christoph Hellwig Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 16 Apr 2023 23:53:17 PDT (-0700), Christoph Hellwig wrote: > On Wed, Apr 12, 2023 at 09:32:30PM +0100, Conor Dooley wrote: >> On Wed, Apr 12, 2023 at 12:08:53PM +0100, Prabhakar wrote: >> >> > Note, >> > - This series requires testing on Cores with zicbom and T-Head SoCs >> >> As I said last time, I dunno what actual Zicbom stuff exists, other than >> perhaps the Ventana lads having something. I did some tyre kicking on my >> D1 and it was fine, although nothing has actually changed materially for >> either of them with this series in v8.. > > And as saying before, there is absolutely no reason to add non-standard > non-coherent DMA support and let this cancer creep. If you want Linux > support implement Zicbom, be that in hardware or the SBI. IMO we should just take the support in Linux: trying to hide stuff behind the SBI leads to more more headaches than it's worth, we end up with a bunch of broken firmware to try and work around. We've already got a mess here because of the D1 support, we might as well just live with it. In practice there's just going to be a ton of mess in arch/riscv, as the ISA has been missing many core features for many years and hardware vendors are allowed to do whatever they want. That's obviously a huge headache, but I think there's nothing we can really do about it.