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] [thread-next>] [day] [month] [year] [list]
Message-ID: <eaf01c4a-f2e8-714c-81fa-3add0b776d73@amd.com>
Date:   Thu, 9 Mar 2023 14:25:43 -0800
From:   Shannon Nelson <shannon.nelson@....com>
To:     Jiri Pirko <jiri@...nulli.us>
Cc:     brett.creeley@....com, davem@...emloft.net, netdev@...r.kernel.org,
        kuba@...nel.org, drivers@...sando.io, leon@...nel.org
Subject: Re: [PATCH RFC v4 net-next 02/13] pds_core: add devcmd device
 interfaces

On 3/9/23 1:29 AM, Jiri Pirko wrote:
> Thu, Mar 09, 2023 at 03:05:13AM CET, shannon.nelson@....com wrote:
>> On 3/8/23 1:37 AM, Jiri Pirko wrote:
>>> Wed, Mar 08, 2023 at 06:12:59AM CET, shannon.nelson@....com wrote:
> 
> [..]
> 
> 
>>>> +static int identity_show(struct seq_file *seq, void *v)
>>>> +{
>>>> +      struct pdsc *pdsc = seq->private;
>>>> +      struct pds_core_dev_identity *ident;
>>>> +      int vt;
>>>> +
>>>> +      ident = &pdsc->dev_ident;
>>>> +
>>>> +      seq_printf(seq, "asic_type:        0x%x\n", pdsc->dev_info.asic_type);
>>>> +      seq_printf(seq, "asic_rev:         0x%x\n", pdsc->dev_info.asic_rev);
>>>> +      seq_printf(seq, "serial_num:       %s\n", pdsc->dev_info.serial_num);
>>>> +      seq_printf(seq, "fw_version:       %s\n", pdsc->dev_info.fw_version);
>>>
>>> What is the exact reason of exposing this here and not trought well
>>> defined devlink info interface?
>>
>> These do show up in devlink dev info eventually, but that isn't for another
>> couple of patches.  This gives us info here for debugging the earlier patches
>> if needed.
> 
> Implement it properly from the start and avoid these, please.

Sure, I'll drop these in the next rev.

sln

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ