Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp9360981rwb; Thu, 24 Nov 2022 11:34:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf7TQM9L5t0YL3RvTXE1IbqxJ34YGzC1E5PCeBKPe+kS5O+9V6j4ZNtWIZCptor2JUjmLSyp X-Received: by 2002:aa7:c0ca:0:b0:464:3f28:3707 with SMTP id j10-20020aa7c0ca000000b004643f283707mr31563289edp.411.1669318490460; Thu, 24 Nov 2022 11:34:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669318490; cv=none; d=google.com; s=arc-20160816; b=QayT1xdt7AZEtG1TndF676W8ZMZxUu2d5rH8rMosknov/i6Jmbn8p0V5kdkBgkYmCw NIOoT9/MltO0ESGNpmPjstUrlpjo5Cd6Gjf2VC+2fIfCvKDjNTzSPhdA/LtxL1lbSZS/ 1JO4HaRpIrZNUnDFNlpQI2GnbdxIhHl1VBUF82go1KL+DjhvVgQYif/gjmSkE2knQCg+ y/KR+mj3moDdf5Qe8ZKTWIh2aSLY7gwl/89URUXUPMiZsMl4hPO5+eC2/LI6VNj4I8XG XDSfZvWrC3NRfQnO+jXIUyUylp6fZi1dFWa86yPMkgh6rRVQIxYc3fBmCQoPwUgOs7Qg mcuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=kWoRrNDgHDvAiElkaM9ey/BkEhFNRR4kcdpp5ftZc90=; b=VnlSX1oKCDe48KdBcUzPDD1vESQvIyfWW55pM4pkLXViFRtmgQ+G7ar3qP4MIiDuEr 7uDDxi/DMUgaSFQ/28rxmO9/T5gRZxjNGAllgUuNuVw6ZNGyx2gN+ibAmLRAzF1ZCNNT TUbpzNE8n8lzhTCagMGXiQpcPhfNwpWjYNg67x3cO2txq+/CYCrG7pHvpqB85MexeCgw QQxpAdFpO/QB455se7b62owWgnkA64EsMQ08To2pBvdsIeehEgUvyvaDYTfAJEoKMdWo wQ/s6gbRcdA5qPoghprjsV1dcsL1tOFbQXew2DwQ8+Ms6sxXuDHp6/6vCY+ft6AGiGWt IooQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=G6I0pdiG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds20-20020a170907725400b0078d288ddfc9si563875ejc.143.2022.11.24.11.34.25; Thu, 24 Nov 2022 11:34:50 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=G6I0pdiG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229536AbiKXTSd (ORCPT + 86 others); Thu, 24 Nov 2022 14:18:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbiKXTSb (ORCPT ); Thu, 24 Nov 2022 14:18:31 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAB9A623B5; Thu, 24 Nov 2022 11:18:29 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id vp12so4671202ejc.8; Thu, 24 Nov 2022 11:18:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=kWoRrNDgHDvAiElkaM9ey/BkEhFNRR4kcdpp5ftZc90=; b=G6I0pdiG9+FJ7AxQvCRN/NCC8/HyD532a5M1tG0c8SFT1MMsNlNonirbr35ya3fR3r iLSMHGD9O6zi6qyr7i52EQSIUFiCNdRI8IEDO38DEu9lI7EQ/gUlC1SAmbfWV69Q59Gj 3fSriUJ0BIPNLg6zDRx5PFXqzZekfhMX8hYdMoR3mVXpe6HBFBbOGFizMVwAdwqQ5Yl0 Wd63uFtzx7e1A7Hb1bCKue9IybJXneMGgvlDbGBDzbzVIzYYowCZ47pCvtFmrjOJXbJo Xwqd8OQEkiB+25DrGT6GycGV/WF/HqgGXqXEX+7VnF/GNai1+R51464iBbVlLnem2Juh ASHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kWoRrNDgHDvAiElkaM9ey/BkEhFNRR4kcdpp5ftZc90=; b=PFVms1/wJH3wZKjM+edKyIvstxZIzbu5OD3w+sz7dQUcUkhskiZq1TZmtNKd0P5gqY cTv2k8yMPoTCkkOCJNyKM6+280tJBtERfoViKecnGAVeLWU04zK3gTzE0OIHg9ueYukT K+xj7m7J2jPm+27lDK/4l4bqxdKz4CvODR1Ix/wZj3sm+iOYItfWag57ZG2x3ojWereb NsBFAmG0IgK2aS6bm7suxbHZfJO1wYH+T41XLbaP7s34PH6sDicMEMfZe4FkK6jqwqeQ d6EhOlP2UVsHgvhT7hh3gX8XnyPFGhOV+zi81P+aLR+ZsBtsERoIiO9iyN7Ia+A1ZNCg nW2w== X-Gm-Message-State: ANoB5pnseS8j1iDoR7ZU0pUdz6QDAmrLURDshZIiAEpq32mCdIBtbHF0 1MYW2V0cRNrToKHw8aJJ7h64BTJI7ONruOvHA4E= X-Received: by 2002:a17:906:560c:b0:7ae:5884:81b1 with SMTP id f12-20020a170906560c00b007ae588481b1mr14232995ejq.155.1669317508056; Thu, 24 Nov 2022 11:18:28 -0800 (PST) MIME-Version: 1.0 References: <20221124172207.153718-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20221124172207.153718-6-prabhakar.mahadev-lad.rj@bp.renesas.com> <3689906.Lt9SDvczpP@diego> In-Reply-To: <3689906.Lt9SDvczpP@diego> From: "Lad, Prabhakar" Date: Thu, 24 Nov 2022 19:18:01 +0000 Message-ID: Subject: Re: [PATCH v4 5/7] riscv: mm: dma-noncoherent: Pass direction and operation to ALT_CMO_OP() To: =?UTF-8?Q?Heiko_St=C3=BCbner?= Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Geert Uytterhoeven , Magnus Damm , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Jisheng Zhang , Atish Patra , Anup Patel , Andrew Jones , Nathan Chancellor , Philipp Tomsich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-renesas-soc@vger.kernel.org, Biju Das , Lad Prabhakar Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Hi Heiko, Thank you for the review. On Thu, Nov 24, 2022 at 6:29 PM Heiko St=C3=BCbner wrote: > > Am Donnerstag, 24. November 2022, 18:22:05 CET schrieb Prabhakar: > > From: Lad Prabhakar > > > > Pass direction and operation to ALT_CMO_OP() macro. > > > > This is in preparation for adding errata for the Andes CPU core. > > can you provide more explanation why that is necessary please? > I guess you want to use different cache operations for some cases? > Yes basically to call different cache operations based on the dir and operations (and also this allows to export just one function to handle the errata). I'll update the commit message in the next version. Cheers, Prabhakar