linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [-next] cpu cache info in drivers base?
@ 2014-11-24 15:00 Heiko Carstens
  2014-11-24 16:06 ` Sudeep Holla
  0 siblings, 1 reply; 4+ messages in thread
From: Heiko Carstens @ 2014-11-24 15:00 UTC (permalink / raw)
  To: Sudeep Holla, Stephen Boyd, Greg Kroah-Hartman; +Cc: linux-next

Hi there,

I'm just wondering what the point of the current cpu cache info
within drivers/base is?
If I startup linux-next (as of today) all I get is an error message
"error detecting cacheinfo..cpu0".
Which naturally comes from:

int __weak init_cache_level(unsigned int cpu)
{
	return -ENOENT;
}

Given that there is no implementation without __weak I'm wondering
what the point is? Also it looks like no architecture has been
converted to the new infrastructure, even though such patches have
been posted in the past?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [-next] cpu cache info in drivers base?
  2014-11-24 15:00 [-next] cpu cache info in drivers base? Heiko Carstens
@ 2014-11-24 16:06 ` Sudeep Holla
  2014-11-24 17:33   ` Greg Kroah-Hartman
  2014-11-25  6:44   ` Heiko Carstens
  0 siblings, 2 replies; 4+ messages in thread
From: Sudeep Holla @ 2014-11-24 16:06 UTC (permalink / raw)
  To: Heiko Carstens, Stephen Boyd, Greg Kroah-Hartman
  Cc: Sudeep Holla, linux-next@vger.kernel.org

Hi Heiko,

On 24/11/14 15:00, Heiko Carstens wrote:
> Hi there,
>
> I'm just wondering what the point of the current cpu cache info
> within drivers/base is?
> If I startup linux-next (as of today) all I get is an error message
> "error detecting cacheinfo..cpu0".

That's correct, I did post a patch[1] to suppress that given not all
architectures might add support.

> Which naturally comes from:
>
> int __weak init_cache_level(unsigned int cpu)
> {
> 	return -ENOENT;
> }
>
> Given that there is no implementation without __weak I'm wondering
> what the point is? Also it looks like no architecture has been
> converted to the new infrastructure, even though such patches have
> been posted in the past?

Yes, I asked Greg to hold off on the architecture patches for next
versions as there may be conflicts(though we can have solve it using
a common baseline, but I thought it was too late to try that). Also
I have not got testing on few other architectures(ppc, ia64, amd). I
will post those patches individually on respective arch lists and
chase after the v3.19-rc1 release. Is that OK ?

Regards,
Sudeep

[1] https://lkml.org/lkml/2014/11/12/351

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [-next] cpu cache info in drivers base?
  2014-11-24 16:06 ` Sudeep Holla
@ 2014-11-24 17:33   ` Greg Kroah-Hartman
  2014-11-25  6:44   ` Heiko Carstens
  1 sibling, 0 replies; 4+ messages in thread
From: Greg Kroah-Hartman @ 2014-11-24 17:33 UTC (permalink / raw)
  To: Sudeep Holla; +Cc: Heiko Carstens, Stephen Boyd, linux-next@vger.kernel.org

On Mon, Nov 24, 2014 at 04:06:19PM +0000, Sudeep Holla wrote:
> Hi Heiko,
> 
> On 24/11/14 15:00, Heiko Carstens wrote:
> >Hi there,
> >
> >I'm just wondering what the point of the current cpu cache info
> >within drivers/base is?
> >If I startup linux-next (as of today) all I get is an error message
> >"error detecting cacheinfo..cpu0".
> 
> That's correct, I did post a patch[1] to suppress that given not all
> architectures might add support.
> 
> >Which naturally comes from:
> >
> >int __weak init_cache_level(unsigned int cpu)
> >{
> >	return -ENOENT;
> >}
> >
> >Given that there is no implementation without __weak I'm wondering
> >what the point is? Also it looks like no architecture has been
> >converted to the new infrastructure, even though such patches have
> >been posted in the past?
> 
> Yes, I asked Greg to hold off on the architecture patches for next
> versions as there may be conflicts(though we can have solve it using
> a common baseline, but I thought it was too late to try that). Also
> I have not got testing on few other architectures(ppc, ia64, amd). I
> will post those patches individually on respective arch lists and
> chase after the v3.19-rc1 release. Is that OK ?

Sorry for the delay, that patch is now applied.

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [-next] cpu cache info in drivers base?
  2014-11-24 16:06 ` Sudeep Holla
  2014-11-24 17:33   ` Greg Kroah-Hartman
@ 2014-11-25  6:44   ` Heiko Carstens
  1 sibling, 0 replies; 4+ messages in thread
From: Heiko Carstens @ 2014-11-25  6:44 UTC (permalink / raw)
  To: Sudeep Holla; +Cc: Stephen Boyd, Greg Kroah-Hartman, linux-next@vger.kernel.org

On Mon, Nov 24, 2014 at 04:06:19PM +0000, Sudeep Holla wrote:
> Hi Heiko,
> 
> On 24/11/14 15:00, Heiko Carstens wrote:
> >Hi there,
> >
> >I'm just wondering what the point of the current cpu cache info
> >within drivers/base is?
> >If I startup linux-next (as of today) all I get is an error message
> >"error detecting cacheinfo..cpu0".
> 
> That's correct, I did post a patch[1] to suppress that given not all
> architectures might add support.
> 
> >Which naturally comes from:
> >
> >int __weak init_cache_level(unsigned int cpu)
> >{
> >	return -ENOENT;
> >}
> >
> >Given that there is no implementation without __weak I'm wondering
> >what the point is? Also it looks like no architecture has been
> >converted to the new infrastructure, even though such patches have
> >been posted in the past?
> 
> Yes, I asked Greg to hold off on the architecture patches for next
> versions as there may be conflicts(though we can have solve it using
> a common baseline, but I thought it was too late to try that). Also
> I have not got testing on few other architectures(ppc, ia64, amd). I
> will post those patches individually on respective arch lists and
> chase after the v3.19-rc1 release. Is that OK ?

Ok, thanks for clarifying!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-25  6:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-24 15:00 [-next] cpu cache info in drivers base? Heiko Carstens
2014-11-24 16:06 ` Sudeep Holla
2014-11-24 17:33   ` Greg Kroah-Hartman
2014-11-25  6:44   ` Heiko Carstens

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).