linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/pseries: relocate "config DTL" so KConfig nests properly
@ 2014-05-13  3:09 Cody P Schafer
  2014-05-13  6:23 ` Michael Neuling
  0 siblings, 1 reply; 4+ messages in thread
From: Cody P Schafer @ 2014-05-13  3:09 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, Cody P Schafer, Deepthi Dharwar,
	Gavin Shan, Li Zhong, Michael Ellerman, Paul Bolle,
	Srivatsa S. Bhat
  Cc: linux-kernel, linuxppc-dev, Paul Mackerras

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
---
 arch/powerpc/platforms/pseries/Kconfig | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/arch/powerpc/platforms/pseries/Kconfig b/arch/powerpc/platforms/pseries/Kconfig
index 2cb8b77..e00dd4d 100644
--- a/arch/powerpc/platforms/pseries/Kconfig
+++ b/arch/powerpc/platforms/pseries/Kconfig
@@ -33,6 +33,16 @@ config PPC_SPLPAR
 	  processors, that is, which share physical processors between
 	  two or more partitions.
 
+config DTL
+	bool "Dispatch Trace Log"
+	depends on PPC_SPLPAR && DEBUG_FS
+	help
+	  SPLPAR machines can log hypervisor preempt & dispatch events to a
+	  kernel buffer. Saying Y here will enable logging these events,
+	  which are accessible through a debugfs file.
+
+	  Say N if you are unsure.
+
 config PSERIES_MSI
        bool
        depends on PCI_MSI && PPC_PSERIES && EEH
@@ -122,13 +132,3 @@ config HV_PERF_CTRS
 	  systems. 24x7 is available on Power 8 systems.
 
           If unsure, select Y.
-
-config DTL
-	bool "Dispatch Trace Log"
-	depends on PPC_SPLPAR && DEBUG_FS
-	help
-	  SPLPAR machines can log hypervisor preempt & dispatch events to a
-	  kernel buffer. Saying Y here will enable logging these events,
-	  which are accessible through a debugfs file.
-
-	  Say N if you are unsure.
-- 
1.9.3


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

* Re: [PATCH] powerpc/pseries: relocate "config DTL" so KConfig nests properly
  2014-05-13  3:09 [PATCH] powerpc/pseries: relocate "config DTL" so KConfig nests properly Cody P Schafer
@ 2014-05-13  6:23 ` Michael Neuling
  2014-05-13  7:12   ` Cody P Schafer
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Neuling @ 2014-05-13  6:23 UTC (permalink / raw)
  To: Cody P Schafer
  Cc: Benjamin Herrenschmidt, Deepthi Dharwar, Gavin Shan, Li Zhong,
	Michael Ellerman, Paul Bolle, Srivatsa S. Bhat, Paul Mackerras,
	linuxppc-dev, linux-kernel

> powerpc/pseries: relocate "config DTL" so KConfig nests properly

I don't know what that means.  Can you describe it in more detail?

Mikey


On Mon, 2014-05-12 at 20:09 -0700, Cody P Schafer wrote:
> Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
> ---
>  arch/powerpc/platforms/pseries/Kconfig | 20 ++++++++++----------
>  1 file changed, 10 insertions(+), 10 deletions(-)
> 
> diff --git a/arch/powerpc/platforms/pseries/Kconfig b/arch/powerpc/platforms/pseries/Kconfig
> index 2cb8b77..e00dd4d 100644
> --- a/arch/powerpc/platforms/pseries/Kconfig
> +++ b/arch/powerpc/platforms/pseries/Kconfig
> @@ -33,6 +33,16 @@ config PPC_SPLPAR
>  	  processors, that is, which share physical processors between
>  	  two or more partitions.
>  
> +config DTL
> +	bool "Dispatch Trace Log"
> +	depends on PPC_SPLPAR && DEBUG_FS
> +	help
> +	  SPLPAR machines can log hypervisor preempt & dispatch events to a
> +	  kernel buffer. Saying Y here will enable logging these events,
> +	  which are accessible through a debugfs file.
> +
> +	  Say N if you are unsure.
> +
>  config PSERIES_MSI
>         bool
>         depends on PCI_MSI && PPC_PSERIES && EEH
> @@ -122,13 +132,3 @@ config HV_PERF_CTRS
>  	  systems. 24x7 is available on Power 8 systems.
>  
>            If unsure, select Y.
> -
> -config DTL
> -	bool "Dispatch Trace Log"
> -	depends on PPC_SPLPAR && DEBUG_FS
> -	help
> -	  SPLPAR machines can log hypervisor preempt & dispatch events to a
> -	  kernel buffer. Saying Y here will enable logging these events,
> -	  which are accessible through a debugfs file.
> -
> -	  Say N if you are unsure.


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

* Re: [PATCH] powerpc/pseries: relocate "config DTL" so KConfig nests properly
  2014-05-13  6:23 ` Michael Neuling
@ 2014-05-13  7:12   ` Cody P Schafer
  2014-05-13 23:04     ` Michael Neuling
  0 siblings, 1 reply; 4+ messages in thread
From: Cody P Schafer @ 2014-05-13  7:12 UTC (permalink / raw)
  To: Michael Neuling
  Cc: Benjamin Herrenschmidt, Deepthi Dharwar, Gavin Shan, Li Zhong,
	Michael Ellerman, Paul Bolle, Srivatsa S. Bhat, Paul Mackerras,
	linuxppc-dev, linux-kernel

On 05/12/2014 11:23 PM, Michael Neuling wrote:
>> powerpc/pseries: relocate "config DTL" so KConfig nests properly
>
> I don't know what that means.  Can you describe it in more detail?
>

So the "config DTL" refers to the configuration entry.

The "nests properly" refers to the indent that 'make menuconfig' shows 
when a config-option that depends on the config-option proceeding it.

In this case, moving config DTL up so it is below config PPC_SPLPAR 
means that menuconfig will show config DTL nicely indented right below 
config PPC_SPLPAR when PPC_SPLPAR is enabled.

To contrast that, right now if I enable PPC_SPLPAR in menuconfig, all I 
can immediately tell is that "something showed up further down the list 
where I wasn't looking", and I end up having to toggle the option a few 
times to figure out what showed up, or look at the KConfig to find out 
that config DTL depends on config PPC_SPLPAR.

Essentially, this enables menuconfig to provide a visual hint about the 
dependencies between options.

> Mikey
>
>
> On Mon, 2014-05-12 at 20:09 -0700, Cody P Schafer wrote:
>> Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
>> ---
>>   arch/powerpc/platforms/pseries/Kconfig | 20 ++++++++++----------
>>   1 file changed, 10 insertions(+), 10 deletions(-)
>>
>> diff --git a/arch/powerpc/platforms/pseries/Kconfig b/arch/powerpc/platforms/pseries/Kconfig
>> index 2cb8b77..e00dd4d 100644
>> --- a/arch/powerpc/platforms/pseries/Kconfig
>> +++ b/arch/powerpc/platforms/pseries/Kconfig
>> @@ -33,6 +33,16 @@ config PPC_SPLPAR
>>   	  processors, that is, which share physical processors between
>>   	  two or more partitions.
>>
>> +config DTL
>> +	bool "Dispatch Trace Log"
>> +	depends on PPC_SPLPAR && DEBUG_FS
>> +	help
>> +	  SPLPAR machines can log hypervisor preempt & dispatch events to a
>> +	  kernel buffer. Saying Y here will enable logging these events,
>> +	  which are accessible through a debugfs file.
>> +
>> +	  Say N if you are unsure.
>> +
>>   config PSERIES_MSI
>>          bool
>>          depends on PCI_MSI && PPC_PSERIES && EEH
>> @@ -122,13 +132,3 @@ config HV_PERF_CTRS
>>   	  systems. 24x7 is available on Power 8 systems.
>>
>>             If unsure, select Y.
>> -
>> -config DTL
>> -	bool "Dispatch Trace Log"
>> -	depends on PPC_SPLPAR && DEBUG_FS
>> -	help
>> -	  SPLPAR machines can log hypervisor preempt & dispatch events to a
>> -	  kernel buffer. Saying Y here will enable logging these events,
>> -	  which are accessible through a debugfs file.
>> -
>> -	  Say N if you are unsure.
>


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

* Re: [PATCH] powerpc/pseries: relocate "config DTL" so KConfig nests properly
  2014-05-13  7:12   ` Cody P Schafer
@ 2014-05-13 23:04     ` Michael Neuling
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Neuling @ 2014-05-13 23:04 UTC (permalink / raw)
  To: Cody P Schafer
  Cc: Benjamin Herrenschmidt, Deepthi Dharwar, Gavin Shan, Li Zhong,
	Michael Ellerman, Paul Bolle, Srivatsa S. Bhat, Paul Mackerras,
	linuxppc-dev, linux-kernel

On Tue, 2014-05-13 at 00:12 -0700, Cody P Schafer wrote:
> On 05/12/2014 11:23 PM, Michael Neuling wrote:
> >> powerpc/pseries: relocate "config DTL" so KConfig nests properly
> >
> > I don't know what that means.  Can you describe it in more detail?
> >
> 
> So the "config DTL" refers to the configuration entry.
> 
> The "nests properly" refers to the indent that 'make menuconfig' shows 
> when a config-option that depends on the config-option proceeding it.
> 
> In this case, moving config DTL up so it is below config PPC_SPLPAR 
> means that menuconfig will show config DTL nicely indented right below 
> config PPC_SPLPAR when PPC_SPLPAR is enabled.
> 
> To contrast that, right now if I enable PPC_SPLPAR in menuconfig, all I 
> can immediately tell is that "something showed up further down the list 
> where I wasn't looking", and I end up having to toggle the option a few 
> times to figure out what showed up, or look at the KConfig to find out 
> that config DTL depends on config PPC_SPLPAR.
> 
> Essentially, this enables menuconfig to provide a visual hint about the 
> dependencies between options.

Sounds like a good idea.  Can you repost the patch with that same info
in the commit log.

Mikey


> > Mikey
> >
> >
> > On Mon, 2014-05-12 at 20:09 -0700, Cody P Schafer wrote:
> >> Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
> >> ---
> >>   arch/powerpc/platforms/pseries/Kconfig | 20 ++++++++++----------
> >>   1 file changed, 10 insertions(+), 10 deletions(-)
> >>
> >> diff --git a/arch/powerpc/platforms/pseries/Kconfig b/arch/powerpc/platforms/pseries/Kconfig
> >> index 2cb8b77..e00dd4d 100644
> >> --- a/arch/powerpc/platforms/pseries/Kconfig
> >> +++ b/arch/powerpc/platforms/pseries/Kconfig
> >> @@ -33,6 +33,16 @@ config PPC_SPLPAR
> >>   	  processors, that is, which share physical processors between
> >>   	  two or more partitions.
> >>
> >> +config DTL
> >> +	bool "Dispatch Trace Log"
> >> +	depends on PPC_SPLPAR && DEBUG_FS
> >> +	help
> >> +	  SPLPAR machines can log hypervisor preempt & dispatch events to a
> >> +	  kernel buffer. Saying Y here will enable logging these events,
> >> +	  which are accessible through a debugfs file.
> >> +
> >> +	  Say N if you are unsure.
> >> +
> >>   config PSERIES_MSI
> >>          bool
> >>          depends on PCI_MSI && PPC_PSERIES && EEH
> >> @@ -122,13 +132,3 @@ config HV_PERF_CTRS
> >>   	  systems. 24x7 is available on Power 8 systems.
> >>
> >>             If unsure, select Y.
> >> -
> >> -config DTL
> >> -	bool "Dispatch Trace Log"
> >> -	depends on PPC_SPLPAR && DEBUG_FS
> >> -	help
> >> -	  SPLPAR machines can log hypervisor preempt & dispatch events to a
> >> -	  kernel buffer. Saying Y here will enable logging these events,
> >> -	  which are accessible through a debugfs file.
> >> -
> >> -	  Say N if you are unsure.
> >
> 


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

end of thread, other threads:[~2014-05-13 23:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-13  3:09 [PATCH] powerpc/pseries: relocate "config DTL" so KConfig nests properly Cody P Schafer
2014-05-13  6:23 ` Michael Neuling
2014-05-13  7:12   ` Cody P Schafer
2014-05-13 23:04     ` Michael Neuling

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