lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <65023305-f05b-cfc3-16bf-a27e2b6da87f@huawei.com>
Date:   Fri, 19 Nov 2021 17:06:33 +0800
From:   "liuqi (BA)" <liuqi115@...wei.com>
To:     Krzysztof Wilczyński <kw@...ux.com>
CC:     Will Deacon <will@...nel.org>, Mark Rutland <mark.rutland@....com>,
        "Bjorn Helgaas" <bhelgaas@...gle.com>,
        PCI <linux-pci@...r.kernel.org>,
        linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
        "Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>,
        <linuxarm@...wei.com>, <zhangshaokun@...ilicon.com>
Subject: Re: [PATCH v11 2/2] drivers/perf: hisi: Add driver for HiSilicon PCIe
 PMU



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
> .
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ