Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp655000rwd; Wed, 14 Jun 2023 23:33:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5gaiGhBYIc9ZxgeTqw2F1kECO4NNjXwJfVLKPzMncaBswo+Lq1PYsJi3nZDBjc5qzqaIDK X-Received: by 2002:a17:907:9704:b0:978:337e:c41a with SMTP id jg4-20020a170907970400b00978337ec41amr15719059ejc.14.1686810829928; Wed, 14 Jun 2023 23:33:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686810829; cv=none; d=google.com; s=arc-20160816; b=aBBMv2G7GxXrsb5M+CWYDFkiJomR3ZxeNw78o8Ju8fK0V0sLpT9BeyvfZU/J4xX8Xu Q7PGpNNy1nMx4Jj7j+BRh/hF1pebHpiJNvEZ3ICSiX55kef2lRXJPrbknO1hq9WBWt4P uwtUmJ89wAsjUgs4awLdoXIIpoosRCV0By4wr8uc609gdnqjND2Ww3TAb327PkU9ZS/Q U5+uCFta2Vlg+J6rhN7Wtqsigh/LXo/seExVH6hA7ut/cfRpFQLkqekdYvmwoRDxfIOo r0jy+mpGtI+NNXtoyaF71XyqnD9MULoEhx4Pntmmo1Hr54AkId3/mHM2/V0FvTuStBxP qGXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ML9VMp4RIG14LapkjOfTTLIBvPrls/xfIJ+IS48qD5Q=; b=0k/joGxh7LH1nyA8gFSM68VE9IkinX0FuOh7f4FY3VSca0Io8jCQSmHpDupmINxliG B4M3dEgvr+9r7Hc2QV3G0uQX2Dt+A3A8nDlexwpFHnYRUPLw14O2SEOsR/wbNyBER8Dx LgD/9VhpU/FKSLjVaOZNIDFKae3+AURaAoVI7D2V+JNx/kKNrGcxksZ833U55tv5orNd MeWXjcDEKr0VmCfdkQgzr6uRc2frM13xKvMcWSO22r6XDpTmXMmfKzlUjsYp/lCqY+/7 /TFM//aFJT3ORIlKcMRJfM3IxqE1+GGmBv4nCONnbMhcxcOmmksVPxPx+nkPbIAO0VT8 mYlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=TVYtRFJg; 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 g6-20020a170906594600b0097073f1c48bsi5612238ejr.179.2023.06.14.23.33.25; Wed, 14 Jun 2023 23:33:49 -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=@infradead.org header.s=bombadil.20210309 header.b=TVYtRFJg; 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 S241790AbjFOGAW (ORCPT + 99 others); Thu, 15 Jun 2023 02:00:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240931AbjFOGAP (ORCPT ); Thu, 15 Jun 2023 02:00:15 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8AC726B9; Wed, 14 Jun 2023 23:00:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ML9VMp4RIG14LapkjOfTTLIBvPrls/xfIJ+IS48qD5Q=; b=TVYtRFJg8K8uqLENzR/ActzZHN wElNdCQzqpBSSrjPTOAsfjn1GAoE9zMlkAso93BtAuVCFm41sPlUaswPyuLnXELflsjCacSCsM9yl 7uSvIvrlqm4jTLwxEIDJRrDDN1gfyZ9r9OF/ILr5Uilct+ouGKQnW0+3uVJKebSh+/gxAI3+cuR2n iJ3F4n43CMudq9FX2PMGmBDHMavYlP5rU+aOacbXPhxjC3cSYyiA/IcS8ii56GXWZNqwPJqBibMvp i9Iau+MQ5ZL5gX3HwsUDwGIR2z+2mGQhk95ith6k01lHhX/QByDU5hrrzGqxUugXWRxEuNMCxZ9w0 HrMLawqg==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q9g1Z-00Dn3R-2f; Thu, 15 Jun 2023 06:00:01 +0000 Date: Wed, 14 Jun 2023 23:00:01 -0700 From: Christoph Hellwig To: Arnd Bergmann Cc: Prabhakar , "Conor.Dooley" , Geert Uytterhoeven , guoren , Andrew Jones , Paul Walmsley , Palmer Dabbelt , Albert Ou , Samuel Holland , linux-riscv@lists.infradead.org, Christoph Hellwig , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Linux-Renesas , Biju Das , "Lad, Prabhakar" Subject: Re: [PATCH v9 3/6] riscv: mm: dma-noncoherent: nonstandard cache operations support Message-ID: References: <20230614104759.228372-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20230614104759.228372-4-prabhakar.mahadev-lad.rj@bp.renesas.com> <4f69fcfe-debb-4979-9070-1d58ba35032c@app.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4f69fcfe-debb-4979-9070-1d58ba35032c@app.fastmail.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wed, Jun 14, 2023 at 02:35:44PM +0200, Arnd Bergmann wrote: > I understand that Christoph will still not like this, but I think this > is as good as it gets, making the standard variant the fast path, > and using the function pointers only for the nonstandard cases. Yes. And I really do not want to make the non-standard cases easy. The extension to do cache maintenance have been ratified for a while and under discussion for much longer. Adding random crap because vendors suck is a bad idea, and we should not be adding this crap.