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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <BY5PR13MB445346E7FA969CC485B2A8CA82CC0@BY5PR13MB4453.namprd13.prod.outlook.com>
Date:   Wed, 9 Dec 2020 05:06:01 +0000
From:   Yash Shah <yash.shah@...nfive.com>
To:     Rob Herring <robh@...nel.org>
CC:     "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-riscv@...ts.infradead.org" <linux-riscv@...ts.infradead.org>,
        "devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
        "bp@...e.de" <bp@...e.de>,
        "anup@...infault.org" <anup@...infault.org>,
        "Jonathan.Cameron@...wei.com" <Jonathan.Cameron@...wei.com>,
        "wsa@...nel.org" <wsa@...nel.org>,
        "sam@...nborg.org" <sam@...nborg.org>,
        "aou@...s.berkeley.edu" <aou@...s.berkeley.edu>,
        "palmer@...belt.com" <palmer@...belt.com>,
        "Paul Walmsley ( Sifive)" <paul.walmsley@...ive.com>,
        Sagar Kadam <sagar.kadam@...nfive.com>,
        Sachin Ghadi <sachin.ghadi@...nfive.com>
Subject: RE: [PATCH v2 1/2] RISC-V: Update l2 cache DT documentation to add
 support for SiFive FU740

> -----Original Message-----
> From: Rob Herring <robh@...nel.org>
> Sent: 09 December 2020 04:52
> To: Yash Shah <yash.shah@...nfive.com>
> Cc: linux-kernel@...r.kernel.org; linux-riscv@...ts.infradead.org;
> devicetree@...r.kernel.org; bp@...e.de; anup@...infault.org;
> Jonathan.Cameron@...wei.com; wsa@...nel.org; sam@...nborg.org;
> aou@...s.berkeley.edu; palmer@...belt.com; Paul Walmsley ( Sifive)
> <paul.walmsley@...ive.com>; Sagar Kadam <sagar.kadam@...nfive.com>;
> Sachin Ghadi <sachin.ghadi@...nfive.com>
> Subject: Re: [PATCH v2 1/2] RISC-V: Update l2 cache DT documentation to
> add support for SiFive FU740
> 
> [External Email] Do not click links or attachments unless you recognize the
> sender and know the content is safe
> 
> On Mon, Nov 30, 2020 at 11:13:03AM +0530, Yash Shah wrote:
> > The L2 cache controller in SiFive FU740 has 4 ECC interrupt sources as
> > compared to 3 in FU540. Update the DT documentation accordingly with
> > "compatible" and "interrupt" property changes.
> 
> 'dt-bindings: riscv: ...' for the subject.
> 
> >
> > Signed-off-by: Yash Shah <yash.shah@...ive.com>
> > ---
> > Changes in v2:
> > - Changes as per Rob Herring's request on v1
> > ---
> >  .../devicetree/bindings/riscv/sifive-l2-cache.yaml | 35
> > ++++++++++++++++++++--
> >  1 file changed, 32 insertions(+), 3 deletions(-)
> >
> > diff --git
> > a/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml
> > b/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml
> > index efc0198..749265c 100644
> > --- a/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml
> > +++ b/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml
> > @@ -27,6 +27,7 @@ select:
> >        items:
> >          - enum:
> >              - sifive,fu540-c000-ccache
> > +            - sifive,fu740-c000-ccache
> >
> >    required:
> >      - compatible
> > @@ -34,7 +35,9 @@ select:
> >  properties:
> >    compatible:
> >      items:
> > -      - const: sifive,fu540-c000-ccache
> > +      - enum:
> > +          - sifive,fu540-c000-ccache
> > +          - sifive,fu740-c000-ccache
> >        - const: cache
> >
> >    cache-block-size:
> > @@ -53,9 +56,15 @@ properties:
> >
> >    interrupts:
> >      description: |
> > -      Must contain entries for DirError, DataError and DataFail signals.
> > +      Must contain 3 entries for FU540 (DirError, DataError and DataFail) or
> 4
> > +      entries for other chips (DirError, DirFail, DataError, DataFail
> > + signals)
> 
> While below is wrong, don't give descriptions that just repeat what the
> schema says.

Ok will remove the above description.

> 
> >      minItems: 3
> > -    maxItems: 3
> > +    maxItems: 4
> > +    items:
> > +      - description: DirError interrupt
> > +      - description: DirFail interrupt
> > +      - description: DataError interrupt
> > +      - description: DataFail interrupt
> 
> This says DataFail is optional.

I will move back to your initial suggestion to add the new entry "DirFail" as the last index to keep the order same.
Will make the corresponding changes in the driver and send a v3 patch.

Thanks for your review.

- Yash

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ