Re: [PATCH 2/2] spi: add statistics gathering and reporting methods

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 04, 2015 at 04:25:01PM +0200, Martin Sperl wrote:

> > It's a bit unclear to me that we need to collect the stats on both a
> > per device and a per master basis, if we've got device statistics we can
> > add up the various devices to get the master values easily enough when
> > we need them.  It does mean that removing devices would discard some of
> > the statistics but it's not clear to me that this is actually going to
> > concern anyone.

> well - I found that it sometimes may help identify what device is responsible
> for an issue on a mixed device bus.

We can do that by looking at the devices though?  I'm not clear what the
master statistics are telling us?

> > Do we really need the locked version with a separate lock?  I know
> > you're very concerned about performance for some of your applications
> > and the fact that we're going to be spending a lot of time taking a
> > separate spinlock (with interrupt disabling... ) seems like it's going
> > to be adding overhead we could live without.

> I did not have it at first but was concerned that someone would complain
> about missing locking. That is why I have minimized the spinlock in the
> loop.

> That is easy to remove again...

I'm not saying don't lock, I'm asking if adding this spinlock is the
best way of doing this.  We already lock the master most of the time,
can we not continue using the same lock?

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux