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: <bb323edd-ceac-4811-bdea-51cba429659b@ti.com>
Date: Tue, 14 May 2024 11:33:59 +0530
From: MD Danish Anwar <danishanwar@...com>
To: Krzysztof Kozlowski <krzk@...nel.org>, Suman Anna <s-anna@...com>,
        Conor
 Dooley <conor+dt@...nel.org>,
        Krzysztof Kozlowski <krzk+dt@...nel.org>,
        Rob
 Herring <robh@...nel.org>
CC: <linux-kernel@...r.kernel.org>, <devicetree@...r.kernel.org>, <srk@...com>,
        Vignesh Raghavendra <vigneshr@...com>, <r-gunasekaran@...com>,
        Roger Quadros <rogerq@...nel.org>
Subject: Re: [PATCH] dt-bindings: soc: ti: pruss: Add documentation for
 PA_STATS support

Hi Krzysztof,

On 01/05/24 3:58 pm, Krzysztof Kozlowski wrote:
> On 30/04/2024 14:19, MD Danish Anwar wrote:
>> Add documentation for pa-stats node which is syscon regmap for
>> PA_STATS register. This will be used to dump statistics maintained by
>> ICSSG firmware.
>>
>> Signed-off-by: MD Danish Anwar <danishanwar@...com>
>> ---
>>  .../devicetree/bindings/soc/ti/ti,pruss.yaml    | 17 +++++++++++++++++
>>  1 file changed, 17 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml b/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml
>> index c402cb2928e8..cb6f41660847 100644
>> --- a/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml
>> +++ b/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml
>> @@ -278,6 +278,23 @@ patternProperties:
>>  
>>      additionalProperties: false
>>  
>> +  pa-stats@[a-f0-9]+$:
> 
> Missing ^
> 

Sure, I will add that.

>> +    description: |
>> +      PA-STATS sub-module represented as a SysCon.
>> +
>> +    type: object
>> +
>> +    properties:
>> +      compatible:
>> +        items:
>> +          - const: ti,pruss-pa-st
>> +          - const: syscon
>> +
> 
> No resources? So you use it just to instantiate Linux driver? That's not
> the purpose of DT. Just squash it into parent node?
> 

I am trying to module pa-stats as a regmap just like mii-rt and
mii-g-rt. ICSSG has different segments for storing different types of
registers. mii-rt, starting at 0x32000 have registers that stores mainly
TX and RX configurations. mii-g-rt, starting at 0x33000 have registers
that stores hardware statistics counters (TX RX good frame, drop etc).
Similarly pa-stats starting at 0x2c000 have registers that stores some
diagnostic counters which is maintained by firmware. ICSSG firmware
stores statistics other than hadrware statistics like if the packet was
pushed to dma or not. Why was the packet dropped etc. This is very
helpful in debugging failures. Also ICSSG firmware maintains all TSN
related statistics in this memory only, which will be needed to be
dumped from driver once TSN support is enabled (the patches for that are
still under review).

More or less the functionality of pa-stats here is same as mii-rt and
mii-g-rt and that is why I am trying to describe the node in exactly the
same way as the other two nodes.

>> +      reg:
>> +        maxItems: 1
>> +
>> +    additionalProperties: false
> 
> Put it after type:object.
> 

Sure, will move it.

>> +
>>    interrupt-controller@[a-f0-9]+$:
>>      description: |
>>        PRUSS INTC Node. Each PRUSS has a single interrupt controller instance
> 
> Best regards,
> Krzysztof
> 

-- 
Thanks and Regards,
Danish

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ