Skip to contentSkip to conversation

usb: Fix Kconfig unmet dependencies for Microblaze EHCI

PATCH Superseded Michal Simek 3 participants 8 messages Apr 4, 2011 – Apr 27, 2011

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Michal Simek

author maintainer
#0 lore raw

PATCH 1/1 usb: Fix Kconfig unmet dependencies for Microblaze EHCI

Disable USB_ARCH_HAS_EHCI in arch Kconfig and enable it in usb Kconfig

Warning log:
warning: (LOCKDEP && FAULT_INJECTION_STACKTRACE_FILTER && LATENCYTOP && FUNCTION_TRACER && KMEMCHECK) selects FRAME_POINTER which has unmet direct dependencies (DEBUG_KERNEL && (CRIS || M68K || FRV || UML || AVR32 || SUPERH || BLACKFIN || MN10300) || ARCH_WANT_FRAME_POINTERS)

---
 arch/microblaze/Kconfig |    1 -
 drivers/usb/Kconfig     |    1 +
 2 files changed, 1 insertions(+), 1 deletions(-)
arch/microblaze/Kconfig +0 -1
index c49c326..46b970e 100644
@@ -6,7 +6,6 @@ config MICROBLAZE
 	select HAVE_FUNCTION_GRAPH_TRACER
 	select HAVE_DYNAMIC_FTRACE
 	select HAVE_FTRACE_MCOUNT_RECORD
-	select USB_ARCH_HAS_EHCI
 	select ARCH_WANT_OPTIONAL_GPIOLIB
 	select HAVE_OPROFILE
 	select HAVE_ARCH_KGDB
drivers/usb/Kconfig +1 -0
index 41b6e51..006489d 100644
@@ -66,6 +66,7 @@ config USB_ARCH_HAS_EHCI
 	default y if ARCH_VT8500
 	default y if PLAT_SPEAR
 	default y if ARCH_MSM
+	default y if MICROBLAZE
 	default PCI
 
 # ARM SA1111 chips have a non-PCI based "OHCI-compatible" USB host interface.
Signature · 1 line
1.5.5.6
author maintainer
#1 lore raw

PATCH 1/1 ftrace: Build without frame pointers on Microblaze

Microblaze doesn't need/support FRAME_POINTERS in order to have a working function tracer.

The patch remove Kconfig warning.

Warning log:
warning: (LOCKDEP && FAULT_INJECTION_STACKTRACE_FILTER && LATENCYTOP && FUNCTION_TRACER && KMEMCHECK) selects FRAME_POINTER which has unmet direct dependencies (DEBUG_KERNEL && (CRIS || M68K || FRV || UML || AVR32 || SUPERH || BLACKFIN || MN10300) || ARCH_WANT_FRAME_POINTERS)

CC Steven Rostedt <[email protected]>
CC Frederic Weisbecker <[email protected]>
CC Ingo Molnar <[email protected]>
---
 kernel/trace/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/trace/Kconfig +1 -1
index 61d7d59..2ad39e5 100644
@@ -141,7 +141,7 @@ if FTRACE
 config FUNCTION_TRACER
 	bool "Kernel Function Tracer"
 	depends on HAVE_FUNCTION_TRACER
-	select FRAME_POINTER if !ARM_UNWIND && !S390
+	select FRAME_POINTER if !ARM_UNWIND && !S390 && !MICROBLAZE
 	select KALLSYMS
 	select GENERIC_TRACER
 	select CONTEXT_SWITCH_TRACER
Signature · 1 line
1.5.5.6
#6 lore raw
In reply to Michal Simek

Hello.

Quoted 7 lines · Michal Simek

Disable USB_ARCH_HAS_EHCI in arch Kconfig and enable it in usb Kconfig

Warning log:
warning: (LOCKDEP&& FAULT_INJECTION_STACKTRACE_FILTER&& LATENCYTOP&& FUNCTION_TRACER&& KMEMCHECK) selects FRAME_POINTER which has unmet direct dependencies (DEBUG_KERNEL&& (CRIS || M68K || FRV || UML || AVR32 || SUPERH || BLACKFIN || MN10300) || ARCH_WANT_FRAME_POINTERS)

Hm, what this has to do with USB_ARCH_HAS_EHCI?

Quoted 3 lines

WBR, Sergei

author maintainer
#7 lore raw
Quoted 6 lines · Sergei Shtylyov

Hello.

Quoted 1 line · Michal Simek

Disable USB_ARCH_HAS_EHCI in arch Kconfig and enable it in usb Kconfig

Quoted 7 lines
Quoted 5 lines

Warning log:
warning: (LOCKDEP&& FAULT_INJECTION_STACKTRACE_FILTER&& LATENCYTOP&& FUNCTION_TRACER&& KMEMCHECK) selects FRAME_POINTER which has unmet direct dependencies (DEBUG_KERNEL&& (CRIS || M68K || FRV || UML || AVR32 || SUPERH || BLACKFIN || MN10300) || ARCH_WANT_FRAME_POINTERS)

Hm, what this has to do with USB_ARCH_HAS_EHCI?

aaah. c&p error. I was doing two patches and copy the same warning to both.

There should be:
warning: (MICROBLAZE) selects USB_ARCH_HAS_EHCI which has unmet direct dependencies (USB_SUPPORT)

Will replace it!

Thanks,
Michal

Signature · 4 lines
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
author maintainer
#2 lore raw

Re: [PATCH] ftrace: Build without frame pointers on Microblaze

In reply to Michal Simek

Hi Ingo, [cc: Steven and Frederic]

can you please add this patch to your tree?

Thanks,
Michal

Quoted 32 lines · Michal Simek

Microblaze doesn't need/support FRAME_POINTERS in order to have a working function tracer.

The patch remove Kconfig warning.

Warning log:
warning: (LOCKDEP && FAULT_INJECTION_STACKTRACE_FILTER && LATENCYTOP && FUNCTION_TRACER && KMEMCHECK) selects FRAME_POINTER which has unmet direct dependencies (DEBUG_KERNEL && (CRIS || M68K || FRV || UML || AVR32 || SUPERH || BLACKFIN || MN10300) || ARCH_WANT_FRAME_POINTERS)

CC Steven Rostedt <[email protected]>
CC Frederic Weisbecker <[email protected]>
CC Ingo Molnar <[email protected]>
---
 kernel/trace/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/trace/Kconfig +1 -1
index 61d7d59..2ad39e5 100644
@@ -141,7 +141,7 @@ if FTRACE
 config FUNCTION_TRACER
 	bool "Kernel Function Tracer"
 	depends on HAVE_FUNCTION_TRACER
-	select FRAME_POINTER if !ARM_UNWIND && !S390
+	select FRAME_POINTER if !ARM_UNWIND && !S390 && !MICROBLAZE
 	select KALLSYMS
 	select GENERIC_TRACER
 	select CONTEXT_SWITCH_TRACER
Signature · 4 lines
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
maintainer
#3 lore raw

Re: [PATCH] ftrace: Build without frame pointers on Microblaze

Quoted 4 lines · Michal Simek

Hi Ingo, [cc: Steven and Frederic]

can you please add this patch to your tree?

Sorry, I've been traveling and I'm behind on email. I'll queue this up. Is this needed for 2.6.39 or can it wait to 2.6.40?

-- Steve

author maintainer
#4 lore raw

Re: [PATCH] ftrace: Build without frame pointers on Microblaze

Quoted 8 lines · Steven Rostedt
Quoted 4 lines · Michal Simek

Hi Ingo, [cc: Steven and Frederic]

can you please add this patch to your tree?

Sorry, I've been traveling and I'm behind on email. I'll queue this up. Is this needed for 2.6.39 or can it wait to 2.6.40?

No problem. It is fix and it could go to 2.6.39. But it is up to you.

Thanks,
Michal

Signature · 4 lines
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
author maintainer
#5 lore raw

[tip:perf/urgent] ftrace: Build without frame pointers on Microblaze

In reply to Michal Simek
Commit-ID:  d20ac252821ab9780ddf00b95629547d3cebc857
Gitweb:     http://git.kernel.org/tip/d20ac252821ab9780ddf00b95629547d3cebc857
Author:     Michal Simek <[email protected]>
AuthorDate: Mon, 4 Apr 2011 11:20:12 +0200
Committer:  Steven Rostedt <[email protected]>
CommitDate: Thu, 21 Apr 2011 09:06:24 -0400

ftrace: Build without frame pointers on Microblaze

Microblaze doesn't need/support FRAME_POINTERS in order to have a working function tracer.

The patch remove Kconfig warning.

Warning log:
warning: (LOCKDEP && FAULT_INJECTION_STACKTRACE_FILTER && LATENCYTOP && FUNCTION_TRACER && KMEMCHECK) selects FRAME_POINTER which has unmet direct dependencies (DEBUG_KERNEL && (CRIS || M68K || FRV || UML || AVR32 || SUPERH || BLACKFIN || MN10300) || ARCH_WANT_FRAME_POINTERS)

---
 kernel/trace/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/trace/Kconfig +1 -1
index 61d7d59f..2ad39e5 100644
@@ -141,7 +141,7 @@ if FTRACE
 config FUNCTION_TRACER
 	bool "Kernel Function Tracer"
 	depends on HAVE_FUNCTION_TRACER
-	select FRAME_POINTER if !ARM_UNWIND && !S390
+	select FRAME_POINTER if !ARM_UNWIND && !S390 && !MICROBLAZE
 	select KALLSYMS
 	select GENERIC_TRACER
 	select CONTEXT_SWITCH_TRACER