* [RFC PATCH] ppc: don't override CONFIG_PPC_PSERIES_DEBUG
@ 2010-10-14 17:48 Nishanth Aravamudan
2010-10-15 0:14 ` Michael Ellerman
2010-10-15 1:47 ` Linas Vepstas
0 siblings, 2 replies; 5+ messages in thread
From: Nishanth Aravamudan @ 2010-10-14 17:48 UTC (permalink / raw)
To: nacc
Cc: Michael Neuling, Frans Pop, linux-kernel, Paul Mackerras,
Anton Blanchard, Linas Vepstas, linuxppc-dev, Thomas Gleixner
These files undef DEBUG, but I think they were added before the ability
to control this from Kconfig. It's really annoying to only get some of
the debug messages!
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
---
Because the lpar and pci_dlpar code is pretty low-level & verbose,
perhaps it makes sense to add another Kconfig variable for really
low-level stuff? But it's annoying to have DEBUG *somewhat* effective,
especially in the EEH area when doing PCI stuff.
---
arch/powerpc/platforms/pseries/eeh.c | 2 --
arch/powerpc/platforms/pseries/lpar.c | 3 ---
arch/powerpc/platforms/pseries/pci_dlpar.c | 2 --
3 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/arch/powerpc/platforms/pseries/eeh.c b/arch/powerpc/platforms/pseries/eeh.c
index 34b7dc1..17a11c8 100644
--- a/arch/powerpc/platforms/pseries/eeh.c
+++ b/arch/powerpc/platforms/pseries/eeh.c
@@ -21,8 +21,6 @@
* Please address comments and feedback to Linas Vepstas <linas@austin.ibm.com>
*/
-#undef DEBUG
-
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/list.h>
diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c
index cf79b46..4b31a66 100644
--- a/arch/powerpc/platforms/pseries/lpar.c
+++ b/arch/powerpc/platforms/pseries/lpar.c
@@ -19,9 +19,6 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* Enables debugging of low-level hash table routines - careful! */
-#undef DEBUG
-
#include <linux/kernel.h>
#include <linux/dma-mapping.h>
#include <linux/console.h>
diff --git a/arch/powerpc/platforms/pseries/pci_dlpar.c b/arch/powerpc/platforms/pseries/pci_dlpar.c
index 4b7a062..5fcc92a 100644
--- a/arch/powerpc/platforms/pseries/pci_dlpar.c
+++ b/arch/powerpc/platforms/pseries/pci_dlpar.c
@@ -25,8 +25,6 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#undef DEBUG
-
#include <linux/pci.h>
#include <asm/pci-bridge.h>
#include <asm/ppc-pci.h>
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [RFC PATCH] ppc: don't override CONFIG_PPC_PSERIES_DEBUG
2010-10-14 17:48 [RFC PATCH] ppc: don't override CONFIG_PPC_PSERIES_DEBUG Nishanth Aravamudan
@ 2010-10-15 0:14 ` Michael Ellerman
2010-10-15 0:23 ` Nishanth Aravamudan
2010-10-15 1:47 ` Linas Vepstas
1 sibling, 1 reply; 5+ messages in thread
From: Michael Ellerman @ 2010-10-15 0:14 UTC (permalink / raw)
To: Nishanth Aravamudan
Cc: Michael Neuling, Frans Pop, linux-kernel, Paul Mackerras,
Anton Blanchard, Linas Vepstas, linuxppc-dev, Thomas Gleixner
[-- Attachment #1: Type: text/plain, Size: 986 bytes --]
On Thu, 2010-10-14 at 10:48 -0700, Nishanth Aravamudan wrote:
> These files undef DEBUG, but I think they were added before the ability
> to control this from Kconfig.
Perhaps. Some people, *cough*, have a tendency to merge those back in
again from time to time :)
> It's really annoying to only get some of the debug messages!
True, but ..
> Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
>
> ---
> Because the lpar and pci_dlpar code is pretty low-level & verbose,
> perhaps it makes sense to add another Kconfig variable for really
> low-level stuff? But it's annoying to have DEBUG *somewhat* effective,
> especially in the EEH area when doing PCI stuff.
I really don't think you want to enable the lpar debug by default. Have
you tried it? It can make for a pretty unusable system, just because of
the console spam.
Also these days there is CONFIG_DYNAMIC_DEBUG which is much smarter than
all this, but requires setup at runtime.
cheers
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC PATCH] ppc: don't override CONFIG_PPC_PSERIES_DEBUG
2010-10-15 0:14 ` Michael Ellerman
@ 2010-10-15 0:23 ` Nishanth Aravamudan
2010-10-15 0:29 ` Michael Ellerman
0 siblings, 1 reply; 5+ messages in thread
From: Nishanth Aravamudan @ 2010-10-15 0:23 UTC (permalink / raw)
To: Michael Ellerman
Cc: Michael Neuling, Frans Pop, linux-kernel, Paul Mackerras,
Anton Blanchard, Linas Vepstas, linuxppc-dev, Thomas Gleixner
On 15.10.2010 [11:14:23 +1100], Michael Ellerman wrote:
> On Thu, 2010-10-14 at 10:48 -0700, Nishanth Aravamudan wrote:
> > These files undef DEBUG, but I think they were added before the ability
> > to control this from Kconfig.
>
> Perhaps. Some people, *cough*, have a tendency to merge those back in
> again from time to time :)
>
> > It's really annoying to only get some of the debug messages!
>
> True, but ..
>
> > Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
> >
> > ---
> > Because the lpar and pci_dlpar code is pretty low-level & verbose,
> > perhaps it makes sense to add another Kconfig variable for really
> > low-level stuff? But it's annoying to have DEBUG *somewhat* effective,
> > especially in the EEH area when doing PCI stuff.
>
> I really don't think you want to enable the lpar debug by default.
> Have you tried it? It can make for a pretty unusable system, just
> because of the console spam.
Yeah, you're right. After enabling it, I had to kill my boot and start
over w/o the lpar DEBUG on. I assume dlpar_pci is similar?
I dunno, would a patch to a least remove the EEH one be ok? Seems like
it isn't super-verbose, and does have some handy output.
> Also these days there is CONFIG_DYNAMIC_DEBUG which is much smarter than
> all this, but requires setup at runtime.
True, I started looking into it, but only realized today that eeh.c had
that #undef! :)
Thanks,
Nish
--
Nishanth Aravamudan <nacc@us.ibm.com>
IBM Linux Technology Center
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC PATCH] ppc: don't override CONFIG_PPC_PSERIES_DEBUG
2010-10-15 0:23 ` Nishanth Aravamudan
@ 2010-10-15 0:29 ` Michael Ellerman
0 siblings, 0 replies; 5+ messages in thread
From: Michael Ellerman @ 2010-10-15 0:29 UTC (permalink / raw)
To: Nishanth Aravamudan
Cc: Michael Neuling, Frans Pop, linux-kernel, Paul Mackerras,
Anton Blanchard, Linas Vepstas, linuxppc-dev, Thomas Gleixner
[-- Attachment #1: Type: text/plain, Size: 1119 bytes --]
On Thu, 2010-10-14 at 17:23 -0700, Nishanth Aravamudan wrote:
> On 15.10.2010 [11:14:23 +1100], Michael Ellerman wrote:
> > On Thu, 2010-10-14 at 10:48 -0700, Nishanth Aravamudan wrote:
> > > Because the lpar and pci_dlpar code is pretty low-level & verbose,
> > > perhaps it makes sense to add another Kconfig variable for really
> > > low-level stuff? But it's annoying to have DEBUG *somewhat* effective,
> > > especially in the EEH area when doing PCI stuff.
> >
> > I really don't think you want to enable the lpar debug by default.
> > Have you tried it? It can make for a pretty unusable system, just
> > because of the console spam.
>
> Yeah, you're right. After enabling it, I had to kill my boot and start
> over w/o the lpar DEBUG on.
:)
> I assume dlpar_pci is similar?
That should be OK to enable I think. Suck it and see I guess.
> I dunno, would a patch to a least remove the EEH one be ok? Seems like
> it isn't super-verbose, and does have some handy output.
Yeah definitely. That undef was merged as part of a cleanup/fix patch
but shouldn't have been.
cheers
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC PATCH] ppc: don't override CONFIG_PPC_PSERIES_DEBUG
2010-10-14 17:48 [RFC PATCH] ppc: don't override CONFIG_PPC_PSERIES_DEBUG Nishanth Aravamudan
2010-10-15 0:14 ` Michael Ellerman
@ 2010-10-15 1:47 ` Linas Vepstas
1 sibling, 0 replies; 5+ messages in thread
From: Linas Vepstas @ 2010-10-15 1:47 UTC (permalink / raw)
To: Nishanth Aravamudan
Cc: Michael Neuling, Frans Pop, linux-kernel, Paul Mackerras,
Anton Blanchard, Thomas Gleixner, linuxppc-dev
On 14 October 2010 12:48, Nishanth Aravamudan <nacc@us.ibm.com> wrote:
> These files undef DEBUG, but I think they were added before the ability
> to control this from Kconfig.
Right.
> It's really annoying to only get some of
> the debug messages!
I don't get the big picture. Will there be some CONFIG_DEBUG_EEH in Kconfig?
or just some option to turn on DEBUG for all powerpc-related files?
Or maybe I am demonstrating my utter ignorance of some new whiz-bang
Kconfig technology?
Anyway, I see no harm in the EEH portion of the patch.
--linas
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-10-15 1:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-14 17:48 [RFC PATCH] ppc: don't override CONFIG_PPC_PSERIES_DEBUG Nishanth Aravamudan
2010-10-15 0:14 ` Michael Ellerman
2010-10-15 0:23 ` Nishanth Aravamudan
2010-10-15 0:29 ` Michael Ellerman
2010-10-15 1:47 ` Linas Vepstas
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).