Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33892C433FE for ; Fri, 19 Nov 2021 09:06:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0E5E161A86 for ; Fri, 19 Nov 2021 09:06:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232200AbhKSJJy (ORCPT ); Fri, 19 Nov 2021 04:09:54 -0500 Received: from szxga01-in.huawei.com ([45.249.212.187]:14956 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbhKSJJx (ORCPT ); Fri, 19 Nov 2021 04:09:53 -0500 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4HwW2004LlzZdB3; Fri, 19 Nov 2021 17:04:24 +0800 (CST) Received: from kwepemm600003.china.huawei.com (7.193.23.202) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 19 Nov 2021 17:06:34 +0800 Received: from [10.67.102.185] (10.67.102.185) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Fri, 19 Nov 2021 17:06:34 +0800 Subject: Re: [PATCH v11 2/2] drivers/perf: hisi: Add driver for HiSilicon PCIe PMU To: =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= CC: Will Deacon , Mark Rutland , "Bjorn Helgaas" , PCI , linux-arm-kernel , "Linux Kernel Mailing List" , , References: <20211029093632.4350-1-liuqi115@huawei.com> <20211029093632.4350-3-liuqi115@huawei.com> From: "liuqi (BA)" Message-ID: <65023305-f05b-cfc3-16bf-a27e2b6da87f@huawei.com> Date: Fri, 19 Nov 2021 17:06:33 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.102.185] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/11/19 15:55, Krzysztof WilczyƄski wrote: > Hi Qi, > > Thank you for looking into things I've mentioned! > > [...] >>> Would the above "bdf" be the PCI addressing schema? If so, then we could >>> capitalise the acronym to keep it consistent with how it's often referred >>> to in the PCI world. >>> > [...] >> got it, will change it to Bdf to keep the consistent, thanks. > > Just to make sure - the "Bus, Device, Function" in the world of PCI usually > uses the acronym of "BDF", all uppercase letters. > got it, thanks. >>> [...] >>>> +static int __init hisi_pcie_module_init(void) >>>> +{ >>>> + int ret; >>>> + >>>> + ret = cpuhp_setup_state_multi(CPUHP_AP_PERF_ARM_HISI_PCIE_PMU_ONLINE, >>>> + "AP_PERF_ARM_HISI_PCIE_PMU_ONLINE", >>>> + hisi_pcie_pmu_online_cpu, >>>> + hisi_pcie_pmu_offline_cpu); >>>> + if (ret) { >>>> + pr_err("Failed to setup PCIe PMU hotplug, ret = %d.\n", ret); >>>> + return ret; >>>> + } >>> >>> The above error message could be made to be a little more aligned in terms >>> of format with the other messages, thus it would be as follows: >>> >>> pr_err("Failed to setup PCIe PMU hotplug: %d.\n", ret); >>> >>> Interestingly, there would be then no need to add the final dot (period) at >>> the end here, and that would be true everywhere else. >>> >> >> thanks for your reminder , I'll fix that printout message to keep align. > > Thank you! > > Don't forget to drop the trailing dot after the error code (it makes it > easier to read or even parse in a script, etc.). > will drop all the final dot in next version, thanks : ) Thanks, Qi > Again, thank you so much for working on this driver! An amazing work! > > Krzysztof > . >