Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1700198rwb; Wed, 5 Oct 2022 03:36:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7+X+IIURM0M/Yv53hDUrb9cdh46rxAQKep1bZbM6UcHvv1kzlpIBqknAwh7sezdbXngxiO X-Received: by 2002:a17:907:7fa0:b0:782:948b:e212 with SMTP id qk32-20020a1709077fa000b00782948be212mr23125486ejc.231.1664966178665; Wed, 05 Oct 2022 03:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664966178; cv=none; d=google.com; s=arc-20160816; b=OxGvK4e7WzpfV6vpRk3MLmpTH7ByvRnXn9SHhdGph/ywmwP3ZFuIGbBouvU4mvne7+ 7g5VPkuXu/napzmbimKaZ/+Hwym0Qd71zCXMl84V9B1jXTW7YPBlYpwN+2d/wxgr3yLA lrlhlmtKWiVPdtG9uCfxuS4nqxZNR1yEAHRQCaBHkln/DwVWhn5V7BOJg25tUyEKn7iU OF1I3gH818D+jZR6Fr/Ur0Mg+5fCYt1AAo/uHqgXmgUia3XPl/UOleWehFxQuyovtX21 Hy9zPKQSktb8QwK+wNOuotYLImZMmYN/Qzqtr44sUPudIAVJCa7lJmYwmuJUutF3VdnT ZkDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=WkUF7nsCWMrVQcZjPcJShdJ544XjXf3Wq64oN9V1KwM=; b=vuyzttR8RvRiNc6nILMLT9gL03OsxpdWgm7cW3K/Le0ws358gy9GZrv8ZZgqKGmoQW +/oTZS1isukY0BYFpngQUbgR2Hrd10Td0+gsCv68T0nlG5MbECLIaulrVWzWXPaSUiy1 w0LpdYWLw4NtQm7/smHZgfvrX6IRRNyJad8SKkAeTXiV3/+SeuRVuVnlF1C4Hj7KHKIU ua5QtH/+0rBvqpgJiXt4s5hFbcTV2cVN4oio80J6p6PHsZKGP9nyLH9OAYUVP5FHTKmY /DIeXmKaDEChSzIfO8KaDzjFV1PyM1dL6jsEUn9FNhk3CrEEtGjSOv+2SyfBcMVhM/Vx dnGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iW47KgRG; 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 b26-20020a17090630da00b00741a18d4a5asi12083008ejb.994.2022.10.05.03.35.52; Wed, 05 Oct 2022 03:36:18 -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=@gmail.com header.s=20210112 header.b=iW47KgRG; 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 S229768AbiJEKVL (ORCPT + 99 others); Wed, 5 Oct 2022 06:21:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiJEKVJ (ORCPT ); Wed, 5 Oct 2022 06:21:09 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6AB5760E3; Wed, 5 Oct 2022 03:21:08 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id u21so18144604edi.9; Wed, 05 Oct 2022 03:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=WkUF7nsCWMrVQcZjPcJShdJ544XjXf3Wq64oN9V1KwM=; b=iW47KgRGaHFC17do7RlXeHlCMVmgZQVkJ4WOZiycISwH6BHkk0XYlBS3ufqhFwFpAi 5SasslWV/lQ5k0Y2c5dsA2p2daanQEh0osc3NIRUmNwME7S0ciI1Tyu70E3ZUWgZJAl4 IZoRxBzt4KIITsZWaoAJAazFAg1QZy2V5Okt//0Oe62mkT+aXlBuH7mav/hwlVmWQaqB 6wR1hXMZZ3cxOg3VnX4TNbe8AfSxNaqGgGbrOzcS8PgRRAhMXCbzUvdf65n0244SKezu B3lM7uq0ELCLs8d9QO7CFjFyXhceIsRG4lmW2JNaFJVrwcpyZh1HgfVPuV/MB6UQCkeB 9qXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=WkUF7nsCWMrVQcZjPcJShdJ544XjXf3Wq64oN9V1KwM=; b=qjvRay5uUy9zehyYWTYPRwFNYXLBQZS3dj6xbDiLCl3u07PBHmblza+gUIlTIYBr85 vjguXa5ryQ5MPu7pMT0zXIj+Cti8q9/IIGfE50IMrccDslxwFOeX2l9Jkd3x/7QRuFJr SzHHyVgD60DmyrS1rkSu99HiOOBGmMDRLCzV0TsAYdvO3FFRJfdPtCYAnb1FHiR3TpBq Hte3TheixMLLT36ax9sDutagoCXJQarhtXP8BpiTk4K9rMZhwnOz5Yb9aSGXC+YNpWpU pBLodQjW6AyrrbeU/agTF72a09Cnw2XB9ibAorM6N1w5G73McKqaw09S0keq0xgJAe3j m6/g== X-Gm-Message-State: ACrzQf2qcMdMCRls8QsbdsHIyb2/p2em28NQx9qbgQTC/Imp4RYihsm3 18Q49TOVqngBdWcrrqYq/aaEH/2WiCuCQlw+z14= X-Received: by 2002:a05:6402:50d1:b0:452:899e:77c with SMTP id h17-20020a05640250d100b00452899e077cmr27499515edb.0.1664965267172; Wed, 05 Oct 2022 03:21:07 -0700 (PDT) MIME-Version: 1.0 References: <20221003223222.448551-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20221003223222.448551-3-prabhakar.mahadev-lad.rj@bp.renesas.com> <5254a42c-9233-6f9a-eff8-33324a184d20@microchip.com> In-Reply-To: <5254a42c-9233-6f9a-eff8-33324a184d20@microchip.com> From: "Lad, Prabhakar" Date: Wed, 5 Oct 2022 11:20:40 +0100 Message-ID: Subject: Re: [RFC PATCH v2 2/2] soc: renesas: Add L2 cache management for RZ/Five SoC To: Conor.Dooley@microchip.com Cc: conor@kernel.org, geert+renesas@glider.be, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, magnus.damm@gmail.com, heiko@sntech.de, guoren@kernel.org, philipp.tomsich@vrull.eu, nathan@kernel.org, atishp@rivosinc.com, apatel@ventanamicro.com, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, biju.das.jz@bp.renesas.com, prabhakar.mahadev-lad.rj@bp.renesas.com Content-Type: text/plain; charset="UTF-8" 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 Conor, On Wed, Oct 5, 2022 at 10:17 AM wrote: > > On 05/10/2022 09:58, Conor Dooley wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > On 5 October 2022 09:44:56 IST, "Lad, Prabhakar" wrote: > >> Hi Conor, > >> > >> Thank you for the review. > >> > >> On Tue, Oct 4, 2022 at 6:43 PM Conor Dooley wrote: > > > >>>> +static void cpu_dcache_wb_range(unsigned long start, > >>>> + unsigned long end, > >>>> + int line_size) > >>>> +{ > >>>> + bool ucctl_ok = false; > >>>> + unsigned long pa; > >>>> + int mhartid = 0; > >>>> +#ifdef CONFIG_SMP > >>>> + mhartid = smp_processor_id(); > >>>> +#endif > >>> > >>> Won't this produce complaints from your if you compile with CONFIG_SMP > >>> set? > >>> > >> No I dont see a build issue with SMP enabled, do you see any reason > >> why it should fail? > > > > Not fail but complain about the unused variable. > > > > Not unused variable, sorry but the unused 0 that it was initialised with* No, it doesn't complain (I dont think compilers complain of such unused assignments, maybe I'm wrong). BTW I am using GCC 9.4.0. Do you think I need to update it? Cheers, Prabhakar