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: <A207EE0E-9DBC-4A39-822C-37B09D0F81B3@cadence.com>
Date:   Thu, 6 Sep 2018 14:20:55 +0000
From:   Przemyslaw Gaj <pgaj@...ence.com>
To:     Boris Brezillon <boris.brezillon@...tlin.com>
CC:     Arnd Bergmann <arnd@...db.de>,
        Vitor Soares <Vitor.Soares@...opsys.com>,
        "open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
        Sekhar Nori <nsekhar@...com>, Wolfram Sang <wsa@...-dreams.de>,
        Linux I2C <linux-i2c@...r.kernel.org>,
        Jonathan Corbet <corbet@....net>,
        "open list:DOCUMENTATION" <linux-doc@...r.kernel.org>,
        gregkh <gregkh@...uxfoundation.org>,
        Przemyslaw Sroka <psroka@...ence.com>,
        Arkadiusz Golec <agolec@...ence.com>,
        Alan Douglas <adouglas@...ence.com>,
        Bartosz Folta <bfolta@...ence.com>,
        Damian Kos <dkos@...ence.com>,
        Alicja Jurasik-Urbaniak <alicja@...ence.com>,
        Cyprian Wronka <cwronka@...ence.com>,
        Suresh Punnoose <sureshp@...ence.com>,
        Rafal Ciepiela <rafalc@...ence.com>,
        Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
        Nishanth Menon <nm@...com>, Rob Herring <robh+dt@...nel.org>,
        Pawel Moll <pawel.moll@....com>,
        Mark Rutland <mark.rutland@....com>,
        Ian Campbell <ijc+devicetree@...lion.org.uk>,
        Kumar Gala <galak@...eaurora.org>,
        DTML <devicetree@...r.kernel.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Geert Uytterhoeven <geert@...ux-m68k.org>,
        Linus Walleij <linus.walleij@...aro.org>,
        Xiang Lin <Xiang.Lin@...aptics.com>,
        Peter Rosin <peda@...ntia.se>
Subject: Re: [PATCH v6 01/10] i3c: Add core I3C infrastructure



On 9/6/18, 4:10 PM, "Boris Brezillon" <boris.brezillon@...tlin.com> wrote:

    EXTERNAL MAIL
    
    
    On Thu, 6 Sep 2018 13:47:29 +0000
    Przemyslaw Gaj <pgaj@...ence.com> wrote:
    
    > On 9/6/18, 3:14 PM, "Boris Brezillon" <boris.brezillon@...tlin.com> wrote:
    > 
    >     EXTERNAL MAIL
    >     
    >     
    >     On Thu, 6 Sep 2018 14:59:46 +0200
    >     Arnd Bergmann <arnd@...db.de> wrote:
    >     
    >     > On Thu, Sep 6, 2018 at 2:43 PM Przemyslaw Gaj <pgaj@...ence.com> wrote:  
    >     > >
    >     > > Hi Boris, Vitor,
    >     > >
    >     > > This repository does not contain full kernel sources, but it should be enough to discuss mastership request feature.
    >     > > https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_przemekgaj_i3c-2Dlinux_commit_d54fe68a9d3e573c0c454a2c6f1afafc20142ec5&d=DwICAg&c=aUq983L2pue2FqKFoP6PGHMJQyoJ7kl3s3GZ-_haXqY&r=CMnAfM_OfpqcWZRfiqcRWw&m=OPSa25ENnrF0Qv70DG49ZngfdygJZubjo3TOgBA3pJ4&s=_C6i1KPplQGcWvQYPkrGx7V3TjKDJvqt3KG-vcdU2K4&e=
    >     > >
    >     > > Please keep in mind that this is initial version, but mastership works correctly. I added one property to DT to reflect relationship between masters.
    >     > > It is possible to request mastership on demand (using sysfs. Useful in case when Linux machine is equipped only with secondary master controller) or automatically change operation mode when device driver wants to read/write something from/to device.
    >     > >
    >     > > I'm sure I will have to rework something because this was implemented on sources from PATCH v4. I saw that Boris released v7 yesterday :)    
    >     > 
    >     > 
    >     > Can you explain the reason for having a user space interface and DT property?
    >     > I thought we had concluded earlier that we wouldn't need that, but it's possible
    >     > that I missed something in the discussion since then.  
    >     
    >     I don't think the sysfs knob is needed, this being said, after thinking
    >     a bit more about mastership handover and the secondary master case, I
    >     think we have something important to solve.
    >     
    >     When a master is not in control of the bus, it gets informed of devices
    >     present on the bus by monitoring DAA or DEFSLVS broadcast events. That
    >     means the secondary master should populate the bus with I3C/I2C devices
    >     on such events, but that's not enough, because DEFSLVS/DAA do not
    >     provide all device info. Some of them (like read/write/ibi limitations)
    >     require extra CCC commands, and, to send those CCC commands, the
    >     secondary master must claim the bus. We could add a case where we
    >     declare devices as partially discovered until the master acquires
    >     ownership of the bus, but that means part of the data returned by
    >     i3c_device_get_info() will be inaccurate, which might have an impact on
    >     some i3c driver ->probe() functions.
    > 
    > How do you want to handle cases when secondary master joins the bus after 
    > DEFSLVS? Of course we can send DEFSLVS after secondary master joins the bus.
    
    That's already the case ;-). Every time the current master discovers
    another master, it's sends a DEFSLVS at the end of the DAA procedure.
    
    >     
    >     We could also say that partially discovered devices should not be
    >     registered to the device model, but we then hit the problem of "who can
    >     force the secondary master to claim the bus if there's no users?".
    > 
    > Now I feel like I missed something. Do you want to populate second instance
    > of the same physical bus? If yes, then we don't need to have reference 
    > between masters in DT.
    
    This is the discussion we've had about 1 month ago with Arnd, Wolfram
    and Peter, and the conclusion was that 2 different masters connected to
    the same physical bus should expose 2 different buses (which means
    having the same physical devices exposed 2 times in Linux).

Ok, I implemented it after our discussion, I think it was in May. I even had 
version where every master had own bus. 
    

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ