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: <CY1PR0301MB0748E8D278F27256473A6D1E87140@CY1PR0301MB0748.namprd03.prod.outlook.com>
Date:	Thu, 26 Feb 2015 20:32:53 +0000
From:	Stuart Yoder <stuart.yoder@...escale.com>
To:	Alexander Graf <agraf@...e.de>, "arnd@...db.de" <arnd@...db.de>
CC:	Jose Rivera <German.Rivera@...escale.com>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>
Subject: RE: [PATCH 0/3 v6] drivers/bus: Freescale Management Complex bus
 driver patch series



> -----Original Message-----
> From: Alexander Graf [mailto:agraf@...e.de]
> Sent: Thursday, February 26, 2015 8:33 AM
> To: Yoder Stuart-B08248; arnd@...db.de
> Cc: Rivera Jose-B46482; linux-kernel@...r.kernel.org; gregkh@...uxfoundation.org
> Subject: Re: [PATCH 0/3 v6] drivers/bus: Freescale Management Complex bus driver patch series
> 
> 
> 
> On 27.01.15 15:35, Stuart Yoder wrote:
> > Hi Arnd/Alex,
> >
> > German has posted an example driver for the fsl-mc bus in his RFC
> > "[RFC PATCH 1/1] drivers/bus: fsl-mc object allocator driver".
> >
> > In addition I have made available the skeleton for a driver for
> > one of the objects/devices (crypto) that will be discovered on
> > the bus:
> >     https://github.com/stuyoder/linux
> >     branch: fsl-ms-bus
> >
> > ...it is not functional yet, but shows how a driver registers with
> > the bus, get's probed, performs initialization.
> 
> Ok, so if I grasp this correctly the idea is that we have a driver
> attaching to an individual device on the fsl-mc bus.

Yes.

> That driver then
> goes and allocates / blocks more devices from that bus as it initializes.

Yes, there are certain devices/objects on the bus that by themselves
are not standalone, functional devices.  An example is a "buffer pool".
Network interface drivers, crypto driver, decompression driver, etc need
one or more hardware buffer pools.  There is a buffer depletion interrupt
associated with the device.

The buffer pools itself binds to a resource allocation driver in
the kernel, which then can hand out buffer pools as required by
other drivers.

> Is that model always possible?

Yes, why would it not be?

> Which device would a NIC bind to for
> example?

Network interface / Ethernet driver requires some number
of buffer pools, plus a management complex portal device
(DPMCP) used for sending commands to manage the hardware.

> I merely want to make sure we're not running ourselves into a
> bad corner ;).

If we are, I would like to understand it. :)

Thanks,
Stuart
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ