Skip to content

kernel/kconfig: increase lockdep bit size

Mauro Carvalho Chehab requested to merge mchehab_kernel/xe-ci:lockdep into main

With current settings, Kernel will be build with those LOCKDEP options:

	CONFIG_LOCKDEP_SUPPORT=y
	CONFIG_LOCKDEP=y
	CONFIG_LOCKDEP_BITS=15
	CONFIG_LOCKDEP_CHAINS_BITS=16
	CONFIG_LOCKDEP_STACK_TRACE_BITS=19
	CONFIG_LOCKDEP_STACK_TRACE_HASH_BITS=14
	CONFIG_LOCKDEP_CIRCULAR_QUEUE_BITS=12
	CONFIG_DEBUG_LOCKDEP=y

15/16 bits is not enough nowadays, as this cause lockdep to be disabled at Xe driver:

<7> [2166.376895] BUG: MAX_LOCKDEP_CHAINS too low!
<7> [2166.376899] turning off the locking correctness validator.
<4> [2166.376901] CPU: 37 PID: 2970 Comm: kworker/u128:94 Tainted: G     U           N 6.6.0-rc3-xe #1
<4> [2166.376906] Hardware name: Intel Corporation ArcherCity/ArcherCity, BIOS EGSDCRB1.86B.0087.D13.2208261706 08/26/2022
<4> [2166.376909] Workqueue: submit_wq drm_sched_free_job_work [gpu_sched]
<4> [2166.376929] Call Trace:
<4> [2166.376931]  <TASK>
<4> [2166.376933]  dump_stack_lvl+0x64/0xb0
<4> [2166.376941]  __lock_acquire+0x2869/0x2ff0
<4> [2166.376951]  ? mark_lock.part.0+0x10a/0x1470
<4> [2166.376956]  ? __pfx___lock_acquire+0x10/0x10
<4> [2166.376960]  ? __pfx_mark_lock.part.0+0x10/0x10
<4> [2166.376967]  lock_acquire+0x169/0x3d0
<4> [2166.376971]  ? get_partial_node.part.0+0x32/0x510
<4> [2166.376978]  ? __pfx_lock_acquire+0x10/0x10
<4> [2166.376983]  ? __lock_acquire+0xe7a/0x2ff0
<4> [2166.376988]  ? mark_lock.part.0+0x10a/0x1470
<4> [2166.376993]  _raw_spin_lock_irqsave+0x3f/0x60
<4> [2166.376998]  ? get_partial_node.part.0+0x32/0x510
<4> [2166.377003]  get_partial_node.part.0+0x32/0x510
<4> [2166.377009]  ? xe_device_mem_access_ongoing+0x43/0x60 [xe]
<4> [2166.377336]  ? xe_device_assert_mem_access+0xe/0x20 [xe]
<4> [2166.377623]  ? __xe_lrc_write_ring.isra.0+0x8f/0xd0 [xe]

Fedora 39 uses 19 bits for debug Kernels, so let's use a better value as well.

Signed-off-by: Mauro Carvalho Chehab mchehab@kernel.org

Edited by Mauro Carvalho Chehab

Merge request reports

Loading