All of lore.kernel.org
 help / color / mirror / Atom feed
* Kconfig doesn't support select on choices (was Re: [GIT PULL] nohz: Adaptively stop the tick, finally)
@ 2013-04-25 12:06 Frederic Weisbecker
  2013-04-25 13:41 ` Ingo Molnar
  0 siblings, 1 reply; 4+ messages in thread
From: Frederic Weisbecker @ 2013-04-25 12:06 UTC (permalink / raw)
  To: Ingo Molnar, Michal Marek
  Cc: LKML, Chris Metcalf, Christoph Lameter, Geoff Levand,
	Gilad Ben Yossef, Hakan Akkan, Kevin Hilman, Li Zhong,
	Oleg Nesterov, Paul E. McKenney, Paul Gortmaker, Peter Zijlstra,
	Steven Rostedt, Thomas Gleixner, Stephane Eranian, Jiri Olsa

2013/4/25 Ingo Molnar <mingo@kernel.org>:
>
> * Frederic Weisbecker <fweisbec@gmail.com> wrote:
>
>> >         depends on VIRT_CPU_ACCOUNTING_GEN
>> >
>> > It should _really_ select both the RCU and the CPU time accounting model
>> > automatically!
>>
>> Yeah I know. I have yet to fix that in Kconfig (it's a Kconfig limitation).
>
> Why cannot we simply select it and its dependencies, explicitly, for the
> time being? Something like:
>
>         depends on 64BIT
>         select VIRT_CPU_ACCOUNTING
>         select VIRT_CPU_ACCOUNTING_GEN
>
> 90% of the .config's have VIRT_CPU_ACCOUNTING_GEN turned off, because it's
> a default-off feature - so dynticks-full is effectively hidden from the
> large majority of testers...

Whatever we do, it seems that select does not work with choices.

Michal, we are running into an issue where a Kconfig option needs to
select CONFIG_VIRT_CPU_ACCOUNTING_GEN but this latter option is part
of a choice menu so it doesn't work. As a result we are forced to use
a "depends on" and this hides the high level option we are interested
in (here full dynticks) behind its low level dependency. How hard do
you think it would be to fix this? I tried something that worked
half-way but I quickly got lost in the Kconfig maze.

Thanks.

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

* Re: Kconfig doesn't support select on choices (was Re: [GIT PULL] nohz: Adaptively stop the tick, finally)
  2013-04-25 12:06 Kconfig doesn't support select on choices (was Re: [GIT PULL] nohz: Adaptively stop the tick, finally) Frederic Weisbecker
@ 2013-04-25 13:41 ` Ingo Molnar
  2013-04-25 13:46   ` Frederic Weisbecker
  0 siblings, 1 reply; 4+ messages in thread
From: Ingo Molnar @ 2013-04-25 13:41 UTC (permalink / raw)
  To: Frederic Weisbecker
  Cc: Michal Marek, LKML, Chris Metcalf, Christoph Lameter,
	Geoff Levand, Gilad Ben Yossef, Hakan Akkan, Kevin Hilman,
	Li Zhong, Oleg Nesterov, Paul E. McKenney, Paul Gortmaker,
	Peter Zijlstra, Steven Rostedt, Thomas Gleixner,
	Stephane Eranian, Jiri Olsa


* Frederic Weisbecker <fweisbec@gmail.com> wrote:

> 2013/4/25 Ingo Molnar <mingo@kernel.org>:
> >
> > * Frederic Weisbecker <fweisbec@gmail.com> wrote:
> >
> >> >         depends on VIRT_CPU_ACCOUNTING_GEN
> >> >
> >> > It should _really_ select both the RCU and the CPU time accounting model
> >> > automatically!
> >>
> >> Yeah I know. I have yet to fix that in Kconfig (it's a Kconfig limitation).
> >
> > Why cannot we simply select it and its dependencies, explicitly, for the
> > time being? Something like:
> >
> >         depends on 64BIT
> >         select VIRT_CPU_ACCOUNTING
> >         select VIRT_CPU_ACCOUNTING_GEN
> >
> > 90% of the .config's have VIRT_CPU_ACCOUNTING_GEN turned off, because it's
> > a default-off feature - so dynticks-full is effectively hidden from the
> > large majority of testers...
> 
> Whatever we do, it seems that select does not work with choices.
> 
> Michal, we are running into an issue where a Kconfig option needs to 
> select CONFIG_VIRT_CPU_ACCOUNTING_GEN but this latter option is part of 
> a choice menu so it doesn't work. As a result we are forced to use a 
> "depends on" and this hides the high level option we are interested in 
> (here full dynticks) behind its low level dependency. How hard do you 
> think it would be to fix this? I tried something that worked half-way 
> but I quickly got lost in the Kconfig maze.

While it's not an ideal solution, we could try to create three bools out 
of the choice options, as a workaround?

Thanks,

	Ingo

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

* Re: Kconfig doesn't support select on choices (was Re: [GIT PULL] nohz: Adaptively stop the tick, finally)
  2013-04-25 13:41 ` Ingo Molnar
@ 2013-04-25 13:46   ` Frederic Weisbecker
  2013-04-26 14:02     ` Frederic Weisbecker
  0 siblings, 1 reply; 4+ messages in thread
From: Frederic Weisbecker @ 2013-04-25 13:46 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Michal Marek, LKML, Chris Metcalf, Christoph Lameter,
	Geoff Levand, Gilad Ben Yossef, Hakan Akkan, Kevin Hilman,
	Li Zhong, Oleg Nesterov, Paul E. McKenney, Paul Gortmaker,
	Peter Zijlstra, Steven Rostedt, Thomas Gleixner,
	Stephane Eranian, Jiri Olsa

2013/4/25 Ingo Molnar <mingo@kernel.org>:
>
> * Frederic Weisbecker <fweisbec@gmail.com> wrote:
>
>> 2013/4/25 Ingo Molnar <mingo@kernel.org>:
>> >
>> > * Frederic Weisbecker <fweisbec@gmail.com> wrote:
>> >
>> >> >         depends on VIRT_CPU_ACCOUNTING_GEN
>> >> >
>> >> > It should _really_ select both the RCU and the CPU time accounting model
>> >> > automatically!
>> >>
>> >> Yeah I know. I have yet to fix that in Kconfig (it's a Kconfig limitation).
>> >
>> > Why cannot we simply select it and its dependencies, explicitly, for the
>> > time being? Something like:
>> >
>> >         depends on 64BIT
>> >         select VIRT_CPU_ACCOUNTING
>> >         select VIRT_CPU_ACCOUNTING_GEN
>> >
>> > 90% of the .config's have VIRT_CPU_ACCOUNTING_GEN turned off, because it's
>> > a default-off feature - so dynticks-full is effectively hidden from the
>> > large majority of testers...
>>
>> Whatever we do, it seems that select does not work with choices.
>>
>> Michal, we are running into an issue where a Kconfig option needs to
>> select CONFIG_VIRT_CPU_ACCOUNTING_GEN but this latter option is part of
>> a choice menu so it doesn't work. As a result we are forced to use a
>> "depends on" and this hides the high level option we are interested in
>> (here full dynticks) behind its low level dependency. How hard do you
>> think it would be to fix this? I tried something that worked half-way
>> but I quickly got lost in the Kconfig maze.
>
> While it's not an ideal solution, we could try to create three bools out
> of the choice options, as a workaround?

I thought about that yeah, at least for a temporary solution. Let's
try it, I'll see what I can get.

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

* Re: Kconfig doesn't support select on choices (was Re: [GIT PULL] nohz: Adaptively stop the tick, finally)
  2013-04-25 13:46   ` Frederic Weisbecker
@ 2013-04-26 14:02     ` Frederic Weisbecker
  0 siblings, 0 replies; 4+ messages in thread
From: Frederic Weisbecker @ 2013-04-26 14:02 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Michal Marek, LKML, Chris Metcalf, Christoph Lameter,
	Geoff Levand, Gilad Ben Yossef, Hakan Akkan, Kevin Hilman,
	Li Zhong, Oleg Nesterov, Paul E. McKenney, Paul Gortmaker,
	Peter Zijlstra, Steven Rostedt, Thomas Gleixner,
	Stephane Eranian, Jiri Olsa

2013/4/25 Frederic Weisbecker <fweisbec@gmail.com>:
> 2013/4/25 Ingo Molnar <mingo@kernel.org>:
>>
>> * Frederic Weisbecker <fweisbec@gmail.com> wrote:
>>
>>> 2013/4/25 Ingo Molnar <mingo@kernel.org>:
>>> >
>>> > * Frederic Weisbecker <fweisbec@gmail.com> wrote:
>>> >
>>> >> >         depends on VIRT_CPU_ACCOUNTING_GEN
>>> >> >
>>> >> > It should _really_ select both the RCU and the CPU time accounting model
>>> >> > automatically!
>>> >>
>>> >> Yeah I know. I have yet to fix that in Kconfig (it's a Kconfig limitation).
>>> >
>>> > Why cannot we simply select it and its dependencies, explicitly, for the
>>> > time being? Something like:
>>> >
>>> >         depends on 64BIT
>>> >         select VIRT_CPU_ACCOUNTING
>>> >         select VIRT_CPU_ACCOUNTING_GEN
>>> >
>>> > 90% of the .config's have VIRT_CPU_ACCOUNTING_GEN turned off, because it's
>>> > a default-off feature - so dynticks-full is effectively hidden from the
>>> > large majority of testers...
>>>
>>> Whatever we do, it seems that select does not work with choices.
>>>
>>> Michal, we are running into an issue where a Kconfig option needs to
>>> select CONFIG_VIRT_CPU_ACCOUNTING_GEN but this latter option is part of
>>> a choice menu so it doesn't work. As a result we are forced to use a
>>> "depends on" and this hides the high level option we are interested in
>>> (here full dynticks) behind its low level dependency. How hard do you
>>> think it would be to fix this? I tried something that worked half-way
>>> but I quickly got lost in the Kconfig maze.
>>
>> While it's not an ideal solution, we could try to create three bools out
>> of the choice options, as a workaround?
>
> I thought about that yeah, at least for a temporary solution. Let's
> try it, I'll see what I can get.

Oh wait, looking at how rcu manages its flavour choices against SMP
and PREEMPT, I think I can inspire from it. I have the patch ready,
just making some tests to be sure.

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

end of thread, other threads:[~2013-04-26 14:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-25 12:06 Kconfig doesn't support select on choices (was Re: [GIT PULL] nohz: Adaptively stop the tick, finally) Frederic Weisbecker
2013-04-25 13:41 ` Ingo Molnar
2013-04-25 13:46   ` Frederic Weisbecker
2013-04-26 14:02     ` Frederic Weisbecker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.