* RE: [PATCH] RFC: AMBA bus discardable probe() function
[not found] ` <20100804222410.GB12502@n2100.arm.linux.org.uk>
@ 2010-08-05 6:22 ` Linus WALLEIJ
0 siblings, 0 replies; 3+ messages in thread
From: Linus WALLEIJ @ 2010-08-05 6:22 UTC (permalink / raw)
To: Russell King - ARM Linux
Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman, David Brownell,
Dmitry Torokhov, linux-embedded@vger.kernel.org, Viresh KUMAR
[Russell]
> which gives a total of 5188 bytes for all the above probe functions.
> However, in order to free this, we're adding 184 bytes of code and
> literal pool to achieve this:
> (...)
> The overall kernel size is 3877020 bytes, which means we're potentially
> allowing for 0.13% of the kernel to be freed at run time - which may
> equate to one or at most two additional pages.
We have the PL022 as well, and the PL08x is being added but it will
likely stay in that ballpark figure.
But overall that does not seem to be worth it, so let's drop it
for the time being. CC:ing the linux-embedded folks that
often worry about footprint size to see if someone oppose. Also
CC Viresh who works on a platform for e.g. set-top boxes using
these PrimeCells which I think may be memory-constrained.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] RFC: AMBA bus discardable probe() function
[not found] ` <20100804194319.GA30722@suse.de>
@ 2010-08-05 6:26 ` Linus WALLEIJ
2010-08-05 6:43 ` Dmitry Torokhov
0 siblings, 1 reply; 3+ messages in thread
From: Linus WALLEIJ @ 2010-08-05 6:26 UTC (permalink / raw)
To: Greg KH
Cc: linux-kernel@vger.kernel.org, David Brownell, Dmitry Torokhov,
Russell King, linux-embedded@vger.kernel.org, Viresh KUMAR
[Greg]
> [Me]
> > + spin_lock(&amba_bustype.p->klist_drivers.k_lock);
>
> Ick, nope, you can't do this, sorry. That's a "private" structure for
> a reason.
Yeah I get it, but in the platform bus case what's that traversal of
the klists actually for? I didn't get it, and was guessing that it
was considering the case where devices spawn new devices.
> So what's the real driving force here, just saving a few hundred bytes
> after booting? Or something else?
A few thousand actually according to Russells measurements.
And no I don't think it's worth it unless someone else challenge this...
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] RFC: AMBA bus discardable probe() function
2010-08-05 6:26 ` Linus WALLEIJ
@ 2010-08-05 6:43 ` Dmitry Torokhov
0 siblings, 0 replies; 3+ messages in thread
From: Dmitry Torokhov @ 2010-08-05 6:43 UTC (permalink / raw)
To: Linus WALLEIJ
Cc: Greg KH, linux-kernel@vger.kernel.org, David Brownell,
Russell King, linux-embedded@vger.kernel.org, Viresh KUMAR
On Wednesday, August 04, 2010 11:26:00 pm Linus WALLEIJ wrote:
> [Greg]
>
> > [Me]
> >
> > > + spin_lock(&amba_bustype.p->klist_drivers.k_lock);
> >
> > Ick, nope, you can't do this, sorry. That's a "private" structure for
> > a reason.
>
> Yeah I get it, but in the platform bus case what's that traversal of
> the klists actually for? I didn't get it, and was guessing that it
> was considering the case where devices spawn new devices.
It is to check if the driver actually bound to any devices and fail driver
registration if it did not - then, in case of modular build, entire driver
module might get unloaded from memory as well.
--
Dmitry
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-08-05 6:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1280925543-6862-1-git-send-email-linus.walleij@stericsson.com>
[not found] ` <20100804222410.GB12502@n2100.arm.linux.org.uk>
2010-08-05 6:22 ` [PATCH] RFC: AMBA bus discardable probe() function Linus WALLEIJ
[not found] ` <20100804194319.GA30722@suse.de>
2010-08-05 6:26 ` Linus WALLEIJ
2010-08-05 6:43 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).