Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3105348rwd; Fri, 16 Jun 2023 12:17:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6PovHFUTUKLMA+kkoHXMzwjp5HYbwNlTN/hp5sf7H0c6qSpIyUlorvNg1ujvfNy0Ki0f1g X-Received: by 2002:a17:90a:19c5:b0:25e:bdad:ce59 with SMTP id 5-20020a17090a19c500b0025ebdadce59mr1679410pjj.14.1686943057900; Fri, 16 Jun 2023 12:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686943057; cv=none; d=google.com; s=arc-20160816; b=LPqO9nFYaM3kT3bzDMo7VaBKtHh0MdLzR6e8dSdcIi0lM3uOQ5cFYB9GEdIeBMD5Gw e/RYZDBkRn2YTieEEqP19t33pELnkEWrMUlzOkkO+XPDVK1+IyjLcwg1O9hUGLQy9GiI f2+jIR+xYQxa/npjE5t2Jp1aB4HT4IaYbUUOUU+tD7qOaeWRJWkvb+JxCcSD6PXe/KHl V+09uOopQgvhhtTujuPx7rYxOTDi7VS9q2ZCdXIsiFkL7mxMBOIR++QHyAiGajEhh+iC DPlL42+m4dyzKmLA5ddlj+MyW8IwJUVaVatGBFu4Parv0bJEkDKArdUXlaavw2HMVoLp Ssaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=nEdbn9EvNL9x4pbYLYVTKkeSAVLXfuwp+q07LLfbX1Y=; b=GFe6eVFAjVzenk1E8XkEkQP4+UDmxKqPrm6zlpnze1xd31R9Vsyz2wywmmsOo3HajX 6DyafF+xiUzpVAkfmulboy6oyHsGQg2hriC3HBlK3F4XrIofOqxF6NMPgQlHjBU4Yshh Xbr9f20YZv9RBeuCOLuaJyyiL2ngnzTXdhX00Q5EAaWlTFYKy+MFNEasOkaZ66oZT8Qs pB03MH+N6iHfLp7CXJi8gwF6bBFmE3yDM1AliR+tZTxsnLTMiMKwDBjDBdTMicH0Ul/3 cd3PCjLIhI09yXCFjAXnd963bc3xGLhV5KRc9IwugQxnz3gZnyYQ/V8gzJdEjXVhR+Oa 5S3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=sOWE4+7H; 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 n6-20020a17090a9f0600b0025bcd532417si2216988pjp.25.2023.06.16.12.17.24; Fri, 16 Jun 2023 12:17:37 -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=@wanadoo.fr header.s=t20230301 header.b=sOWE4+7H; 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 S230224AbjFPTC0 (ORCPT + 99 others); Fri, 16 Jun 2023 15:02:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245010AbjFPTCV (ORCPT ); Fri, 16 Jun 2023 15:02:21 -0400 Received: from smtp.smtpout.orange.fr (smtp-15.smtpout.orange.fr [80.12.242.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BDE0B5 for ; Fri, 16 Jun 2023 12:02:20 -0700 (PDT) Received: from [192.168.1.18] ([86.243.2.178]) by smtp.orange.fr with ESMTPA id AEi1qWzKoL90OAEi1qKqTz; Fri, 16 Jun 2023 21:02:18 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1686942138; bh=nEdbn9EvNL9x4pbYLYVTKkeSAVLXfuwp+q07LLfbX1Y=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=sOWE4+7HVfsNkjsMEvlZ6hpsZ+iJKdFcqrmJkZcxJ1VYvvfvHV9AQ2WEqmoK5VerS UeeyqjO+UWiczrsz5uYbmMTmFSzHLOo0c+PHzbd+6L3NBlQvYwhby+UNZbPXrbpcox wIqGEZ0uY0HaRADEg7AchAxeVlEa1EttGokpyUaFLvmFUkULJLyb2NNJUbC83DhYcL y7RiMiJvi6KLkRxgZPpf+GfloPG1JDuPh5pomucyEWgDrJN0Iw/4ce5z2nlRKMASN6 E7vTl5kHqHPajKD6la6+Igfducbtun/bOgdGOA0JtixDG/YHhhi8jHHP0/DRlUsSC9 57vwCen7w11cw== X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Fri, 16 Jun 2023 21:02:18 +0200 X-ME-IP: 86.243.2.178 Message-ID: <28f511f2-ffbb-2ef7-c47c-caf9f5164512@wanadoo.fr> Date: Fri, 16 Jun 2023 21:02:09 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 1/3] soc: sifive: Add SiFive private L2 cache support Content-Language: fr To: Eric Lin , conor@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, maz@kernel.org, chenhuacai@kernel.org, baolu.lu@linux.intel.com, will@kernel.org, kan.liang@linux.intel.com, nnac123@linux.ibm.com, pierre.gondois@arm.com, huangguangbin2@huawei.com, jgross@suse.com, chao.gao@intel.com, maobibo@loongson.cn, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dslin1010@gmail.com Cc: Greentime Hu , Zong Li , Nick Hu References: <20230616063210.19063-1-eric.lin@sifive.com> <20230616063210.19063-2-eric.lin@sifive.com> From: Christophe JAILLET In-Reply-To: <20230616063210.19063-2-eric.lin@sifive.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,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 Le 16/06/2023 à 08:32, Eric Lin a écrit : > This adds SiFive private L2 cache driver which will show > cache config information when booting and add cpu hotplug > callback functions. > > Signed-off-by: Eric Lin > Signed-off-by: Nick Hu > Reviewed-by: Zong Li [...] > +static int __init sifive_pl2_cache_init(void) > +{ > + int ret; > + > + ret = cpuhp_setup_state(CPUHP_AP_RISCV_SIFIVE_PL2_ONLINE, > + "soc/sifive/pl2:online", > + sifive_pl2_online_cpu, > + sifive_pl2_offline_cpu); > + if (ret < 0) { > + pr_err("Failed to register CPU hotplug notifier %d\n", ret); > + return ret; > + } > + > + ret = platform_driver_register(&sifive_pl2_cache_driver); > + if (ret) { > + pr_err("Failed to register sifive_pl2_cache_driver: %d\n", ret); Blind guess: does cpuhp_remove_state() needs to be called? > + return ret; > + } > + > + sifive_pl2_pm_init(); > + > + return ret; If you send a v2, return 0; would be slighly nicer here. CJ > +} [...]