Skip to contentSkip to conversation

ARM: exynos_defconfig: Enable CONFIG_LOCKUP_DETECTOR

PATCH Superseded Anand Moon 2 participants 5 messages Jan 7, 2015

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Anand Moon

author
#0 lore raw

PATCH v2 1/1 ARM: exynos_defconfig: Enable CONFIG_LOCKUP_DETECTOR

Enable CONFIG_LOCKUP_DETECTOR to validate kernel locks state for exynos SOC.

Enabling CONFIG_LOCKUP_DETECTOR help validator tracks the 'state' of lock-classes, and it tracks dependencies between different lock-classes.
The validator maintains a rolling proof that the state and
the dependencies are correct.

Changes since v2:
* Made commit message more clear
* Corrected grammer in code comment

Tested on Exynos5422 ODROID XU3 board.

---
 arch/arm/configs/exynos_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/exynos_defconfig +1 -0
index 5ef14de..ecd9987 100644
@@ -178,6 +178,7 @@ CONFIG_PRINTK_TIME=y
 CONFIG_DEBUG_FS=y
 CONFIG_MAGIC_SYSRQ=y
 CONFIG_DEBUG_KERNEL=y
+CONFIG_LOCKUP_DETECTOR=y
 CONFIG_DETECT_HUNG_TASK=y
 CONFIG_DEBUG_RT_MUTEXES=y
 CONFIG_DEBUG_SPINLOCK=y
Signature · 1 line
2.1.0
#1 lore raw
Quoted 6 lines · Anand Moon

Enable CONFIG_LOCKUP_DETECTOR to validate kernel locks state for exynos SOC.

Enabling CONFIG_LOCKUP_DETECTOR help validator tracks the 'state' of lock-classes, and it tracks dependencies between different lock-classes.
The validator maintains a rolling proof that the state and
the dependencies are correct.

Unfortunately this is not correct. Lockup detector does something else. Please read the help/manual for LOCKUP_DETECTOR. You can find in lib/Kconfig.debug (around line 667).

Best regards,
Krzysztof

Quoted 25 lines

Changes since v2:
* Made commit message more clear
* Corrected grammer in code comment

Tested on Exynos5422 ODROID XU3 board.

---
 arch/arm/configs/exynos_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/exynos_defconfig +1 -0
index 5ef14de..ecd9987 100644
@@ -178,6 +178,7 @@ CONFIG_PRINTK_TIME=y
 CONFIG_DEBUG_FS=y
 CONFIG_MAGIC_SYSRQ=y
 CONFIG_DEBUG_KERNEL=y
+CONFIG_LOCKUP_DETECTOR=y
 CONFIG_DETECT_HUNG_TASK=y
 CONFIG_DEBUG_RT_MUTEXES=y
 CONFIG_DEBUG_SPINLOCK=y
author
#2 lore raw

PATCH v2 1/1 ARM: exynos_defconfig: Enable CONFIG_LOCKUP_DETECTOR

Hi Kszysztof Kozlowski,

I picked up the bellow line from

Documentation/locking/lockdep-design.txt line no 18

I understand that by enabling this flag we could detect possible

deadlock situation with the kernel. Sorry for the noise.

-Anand Moon

On Wednesday, January 7, 2015 6:57 PM, Krzysztof Kozlowski <[email protected]> wrote:

Quoted 6 lines · Anand Moon

Enable CONFIG_LOCKUP_DETECTOR to validate kernel locks state for exynos SOC.

Enabling CONFIG_LOCKUP_DETECTOR help validator tracks the 'state' of lock-classes, and it tracks dependencies between different lock-classes.
The validator maintains a rolling proof that the state and
the dependencies are correct.

Unfortunately this is not correct. Lockup detector does something else. Please read the help/manual for LOCKUP_DETECTOR. You can find in lib/Kconfig.debug (around line 667).

Best regards,
Krzysztof

Quoted 25 lines

Changes since v2:
* Made commit message more clear
* Corrected grammer in code comment

Tested on Exynos5422 ODROID XU3 board.

---
 arch/arm/configs/exynos_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/exynos_defconfig +1 -0
index 5ef14de..ecd9987 100644
@@ -178,6 +178,7 @@ CONFIG_PRINTK_TIME=y
 CONFIG_DEBUG_FS=y
 CONFIG_MAGIC_SYSRQ=y
 CONFIG_DEBUG_KERNEL=y
+CONFIG_LOCKUP_DETECTOR=y
 CONFIG_DETECT_HUNG_TASK=y
 CONFIG_DEBUG_RT_MUTEXES=y
 CONFIG_DEBUG_SPINLOCK=y
#3 lore raw
Quoted 10 lines · Anand Moon

Hi Kszysztof Kozlowski,

I picked up the bellow line from

Documentation/locking/lockdep-design.txt line no 18

I understand that by enabling this flag we could detect possible

deadlock situation with the kernel. Sorry for the noise.

...and lockdep-design.txt describes LOCKDEP. Not LOCKUP. So why you are enabling lockup?

Best regards,
Krzysztof

Quoted 47 lines

-Anand Moon

On Wednesday, January 7, 2015 6:57 PM, Krzysztof Kozlowski <[email protected]> wrote:

Quoted 6 lines · Anand Moon

Enable CONFIG_LOCKUP_DETECTOR to validate kernel locks state for exynos SOC.

Enabling CONFIG_LOCKUP_DETECTOR help validator tracks the 'state' of lock-classes, and it tracks dependencies between different lock-classes.
The validator maintains a rolling proof that the state and
the dependencies are correct.

Unfortunately this is not correct. Lockup detector does something else. Please read the help/manual for LOCKUP_DETECTOR. You can find in lib/Kconfig.debug (around line 667).

Best regards,
Krzysztof

Quoted 25 lines

Changes since v2:
* Made commit message more clear
* Corrected grammer in code comment

Tested on Exynos5422 ODROID XU3 board.

---
 arch/arm/configs/exynos_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/exynos_defconfig +1 -0
index 5ef14de..ecd9987 100644
@@ -178,6 +178,7 @@ CONFIG_PRINTK_TIME=y
 CONFIG_DEBUG_FS=y
 CONFIG_MAGIC_SYSRQ=y
 CONFIG_DEBUG_KERNEL=y
+CONFIG_LOCKUP_DETECTOR=y
 CONFIG_DETECT_HUNG_TASK=y
 CONFIG_DEBUG_RT_MUTEXES=y
 CONFIG_DEBUG_SPINLOCK=y
author
#4 lore raw

PATCH v2 1/1 ARM: exynos_defconfig: Enable CONFIG_LOCKUP_DETECTOR

hi Kszysztof KozlowskiHi,

Sorry for the noise. Drop it.

-Anand Moon

On Wednesday, January 7, 2015 7:53 PM, Krzysztof Kozlowski <[email protected]> wrote:

Quoted 10 lines · Anand Moon

Hi Kszysztof Kozlowski,

I picked up the bellow line from

Documentation/locking/lockdep-design.txt line no 18

I understand that by enabling this flag we could detect possible

deadlock situation with the kernel. Sorry for the noise.

...and lockdep-design.txt describes LOCKDEP. Not LOCKUP. So why you are enabling lockup?

Best regards,
Krzysztof

Quoted 47 lines

-Anand Moon

On Wednesday, January 7, 2015 6:57 PM, Krzysztof Kozlowski <[email protected]> wrote:

Quoted 6 lines · Anand Moon

Enable CONFIG_LOCKUP_DETECTOR to validate kernel locks state for exynos SOC.

Enabling CONFIG_LOCKUP_DETECTOR help validator tracks the 'state' of lock-classes, and it tracks dependencies between different lock-classes.
The validator maintains a rolling proof that the state and
the dependencies are correct.

Unfortunately this is not correct. Lockup detector does something else. Please read the help/manual for LOCKUP_DETECTOR. You can find in lib/Kconfig.debug (around line 667).

Best regards,
Krzysztof

Quoted 25 lines

Changes since v2:
* Made commit message more clear
* Corrected grammer in code comment

Tested on Exynos5422 ODROID XU3 board.

---
 arch/arm/configs/exynos_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/exynos_defconfig +1 -0
index 5ef14de..ecd9987 100644
@@ -178,6 +178,7 @@ CONFIG_PRINTK_TIME=y
 CONFIG_DEBUG_FS=y
 CONFIG_MAGIC_SYSRQ=y
 CONFIG_DEBUG_KERNEL=y
+CONFIG_LOCKUP_DETECTOR=y
 CONFIG_DETECT_HUNG_TASK=y
 CONFIG_DEBUG_RT_MUTEXES=y
 CONFIG_DEBUG_SPINLOCK=y