Skip to content

Conversation

@MingcongBai
Copy link
Contributor

Drop debug, unit tests, self-tests, error/fault injection, emulated/fake drivers, and non-critical tracing support from the release kernel configs to save space and unneeded debug outputs (that may confuse our users).

With the exception of DebugFS support for rtw88/89, as we maintain a set of vendor patches for these devices and debug outputs are not enabled by default unless rtw8{8,9}_core.debug_mask=0x7fff was specificed.

Drop debug, unit tests, self-tests, error/fault injection, emulated/fake
drivers, and non-critical tracing support from the release kernel configs
to save space and unneeded debug outputs (that may confuse our users).

With the exception of DebugFS support for rtw88/89, as we maintain a set
of vendor patches for these devices and debug outputs are not enabled
by default unless rtw8{8,9}_core.debug_mask=0x7fff was specificed.

Signed-off-by: Mingcong Bai <[email protected]>
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign zeno-sole for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@deepin-ci-robot
Copy link

deepin pr auto review

Remove some debugging and testing options

  • Disable CONFIG_SCSI_DEBUG which creates import problems
  • Disable CONFIG_TEST_SCSI_BUS which is specific to the qemu test
  • Disable CONFIG_TEST_BLACKHOLE_DEV which is specific to the qemu test
  • Disable CONFIG_TEST_BPF which is specific to the qemu test
  • Disable CONFIG_RUNTIME_TESTING_MENU which is specific to the qemu test
  • Disable CONFIG_DEBUG_BOOT_PARAMS which is specific to the qemu test
  • Disable CONFIG_PUNIT_ATOM_DEBUG which is specific to the qemu test
  • Disable CONFIG_NOTIFIER_ERROR_INJECTION which is specific to the qemu test
  • Disable CONFIG_FUNCTION_ERROR_INJECTION which is specific to the qemu test
  • Disable CONFIG_TEST_X86_DEBUG_FPU which is specific to the qemu test
  • Disable CONFIG_X86_DEBUG_FPU which is specific to the qemu test
  • Disable CONFIG_IO_DELAY_0XED which is specific to the qemu test
  • Disable CONFIG_EARLY_PRINTK_USB_XDBC which is specific to the qemu test
  • Disable CONFIG_EARLY_PRINTK_DBGP which is specific to the qemu test
  • Disable CONFIG_STRICT_DEVMEM which is specific to the qemu test
  • Disable CONFIG_SAMPLE_TRACE_ARRAY which is specific to the qemu test
  • Disable CONFIG_SAMPLE_FTRACE_DIRECT which is specific to the qemu test
  • Disable CONFIG_SAMPLES which is specific to the qemu test
  • Disable CONFIG_PROVIDE_OHCI1394_DMA_INIT which is specific to the qemu test
  • Disable CONFIG_BLK_DEV_IO_TRACE which is specific to the qemu test
  • Disable CONFIG_MMIOTRACE which is specific to the qemu test
  • Disable CONFIG_FTRACE_SYSCALLS which is specific to the qemu test
  • Disable CONFIG_HWLAT_TRACER which is specific to the qemu test
  • Disable CONFIG_SCHED_STACK_END_CHECK which is specific to the qemu test
  • Disable CONFIG_MEMORY_NOTIFIER_ERROR_INJECT which is specific to the qemu test
  • Disable CONFIG_SCHEDSTATS which is specific to the qemu test
  • Disable CONFIG_HARDLOCKUP_DETECTOR which is specific to the qemu test
  • Disable CONFIG_DEBUG_PLIST which is specific to the qemu test
  • Disable CONFIG_DEBUG_SG which is specific to the qemu test
  • Disable CONFIG_DEBUG_NOTIFIERS which is specific to the qemu test
  • Disable CONFIG_RCU_CPU_STALL_TIMEOUT which is specific to the qemu test
  • Disable CONFIG_FUNCTION_PROFILER which is specific to the qemu test
  • Disable CONFIG_BPF_KPROBE_OVERRIDE which is specific to the qemu test
  • Disable CONFIG_HIST_TRIGGERS which is specific to the qemu test
  • Disable CONFIG_SAMPLE_TRACE_PRINTK which is specific to the qemu test
  • Disable CONFIG_UNWINDER_FRAME_POINTER which is specific to the qemu test
  • Disable CONFIG_UNWIND_HISTORY which is specific to the qemu test
  • Disable CONFIG_KDB_KEYBOARD which is specific to the qemu test
  • Disable CONFIG_KGDB_KDB which is specific to the qemu test
  • Disable CONFIG_KGDB_LOW_LEVEL_TRAP which is specific to the qemu test
  • Disable CONFIG_KGDB which is specific to the qemu test
  • Disable CONFIG_PAGE_POISONING which is specific to the qemu test

@opsiff opsiff merged commit 972c91b into linux-6.6.y Jul 25, 2024
opsiff pushed a commit to opsiff/UOS-kernel that referenced this pull request Jul 29, 2024
[ Upstream commit 5f1d18d ]

Add a test case which replaces an active ingress qdisc while keeping the
miniq in-tact during the transition period to the new clsact qdisc.

  # ./vmtest.sh -- ./test_progs -t tc_link
  [...]
  ./test_progs -t tc_link
  [    3.412871] bpf_testmod: loading out-of-tree module taints kernel.
  [    3.413343] bpf_testmod: module verification failed: signature and/or required key missing - tainting kernel
  deepin-community#332     tc_links_after:OK
  deepin-community#333     tc_links_append:OK
  deepin-community#334     tc_links_basic:OK
  deepin-community#335     tc_links_before:OK
  deepin-community#336     tc_links_chain_classic:OK
  deepin-community#337     tc_links_chain_mixed:OK
  deepin-community#338     tc_links_dev_chain0:OK
  deepin-community#339     tc_links_dev_cleanup:OK
  deepin-community#340     tc_links_dev_mixed:OK
  deepin-community#341     tc_links_ingress:OK
  deepin-community#342     tc_links_invalid:OK
  deepin-community#343     tc_links_prepend:OK
  deepin-community#344     tc_links_replace:OK
  deepin-community#345     tc_links_revision:OK
  Summary: 14/0 PASSED, 0 SKIPPED, 0 FAILED

Signed-off-by: Daniel Borkmann <[email protected]>
Cc: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
(cherry picked from commit e41db26)
@opsiff opsiff deleted the bai/linux-6.6.y/debug-cleanup branch August 5, 2024 11:26
Avenger-285714 pushed a commit that referenced this pull request Aug 12, 2024
[ Upstream commit 5f1d18d ]

Add a test case which replaces an active ingress qdisc while keeping the
miniq in-tact during the transition period to the new clsact qdisc.

  # ./vmtest.sh -- ./test_progs -t tc_link
  [...]
  ./test_progs -t tc_link
  [    3.412871] bpf_testmod: loading out-of-tree module taints kernel.
  [    3.413343] bpf_testmod: module verification failed: signature and/or required key missing - tainting kernel
  #332     tc_links_after:OK
  #333     tc_links_append:OK
  #334     tc_links_basic:OK
  #335     tc_links_before:OK
  #336     tc_links_chain_classic:OK
  #337     tc_links_chain_mixed:OK
  #338     tc_links_dev_chain0:OK
  #339     tc_links_dev_cleanup:OK
  #340     tc_links_dev_mixed:OK
  #341     tc_links_ingress:OK
  #342     tc_links_invalid:OK
  #343     tc_links_prepend:OK
  #344     tc_links_replace:OK
  #345     tc_links_revision:OK
  Summary: 14/0 PASSED, 0 SKIPPED, 0 FAILED

Signed-off-by: Daniel Borkmann <[email protected]>
Cc: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
(cherry picked from commit e41db26)
opsiff added a commit to opsiff/UOS-kernel that referenced this pull request Apr 27, 2025
…eepin-community#335)

Drop debug, unit tests, self-tests, error/fault injection, emulated/fake
drivers, and non-critical tracing support from the release kernel configs
to save space and unneeded debug outputs (that may confuse our users).

With the exception of DebugFS support for rtw88/89, as we maintain a set
of vendor patches for these devices and debug outputs are not enabled
by default unless rtw8{8,9}_core.debug_mask=0x7fff was specificed.

Signed-off-by: Mingcong Bai <[email protected]>
Co-authored-by: 忘怀 <[email protected]>
opsiff added a commit to opsiff/UOS-kernel that referenced this pull request May 9, 2025
…eepin-community#335)

Drop debug, unit tests, self-tests, error/fault injection, emulated/fake
drivers, and non-critical tracing support from the release kernel configs
to save space and unneeded debug outputs (that may confuse our users).

With the exception of DebugFS support for rtw88/89, as we maintain a set
of vendor patches for these devices and debug outputs are not enabled
by default unless rtw8{8,9}_core.debug_mask=0x7fff was specificed.

Signed-off-by: Mingcong Bai <[email protected]>
Co-authored-by: 忘怀 <[email protected]>
opsiff added a commit to opsiff/UOS-kernel that referenced this pull request Nov 12, 2025
deepin inclusion
category: debug

pm_debug is very useful for debugging suspend issues such as wakeup,
and it has a dynamic debug output, used with kernel debug cmdline with:
"no_console_suspend pm_debug_messages" to enable it.

Fixes:00d6d3865ffb ("arch: arm64: loongarch: x86: clean up release-bound kernel configs (deepin-community#335)")
Signed-off-by: Wentao Guan <[email protected]>
opsiff added a commit to opsiff/UOS-kernel that referenced this pull request Nov 12, 2025
deepin inclusion
category: debug

pm_debug is very useful for debugging suspend issues such as wakeup,
and it has a dynamic debug output, used with kernel debug cmdline with:
"no_console_suspend pm_debug_messages" to enable it.

Also clean useless config, CONFIG_PM_STD_PARTITION, which set by system runtime.

Fixes:00d6d3865ffb ("arch: arm64: loongarch: x86: clean up release-bound kernel configs (deepin-community#335)")
Signed-off-by: Wentao Guan <[email protected]>
opsiff added a commit to opsiff/UOS-kernel that referenced this pull request Nov 12, 2025
deepin inclusion
category: debug

pm_debug is very useful for debugging suspend issues such as wakeup,
and it has a dynamic debug output, used with kernel debug cmdline with:
"no_console_suspend pm_debug_messages" to enable it.

Also clean useless config, CONFIG_PM_STD_PARTITION, which set by system runtime.

Fixes: 00d6d38 ("arch: arm64: loongarch: x86: clean up release-bound kernel configs (deepin-community#335)")
Signed-off-by: Wentao Guan <[email protected]>
opsiff added a commit to opsiff/UOS-kernel that referenced this pull request Nov 12, 2025
deepin inclusion
category: debug

pm_debug is very useful for debugging suspend issues such as wakeup,
and it has a dynamic debug output, used with kernel debug cmdline with:
"no_console_suspend pm_debug_messages" to enable it.
PM_ADVANCED_DEBUG is useful for debug device runtime powersaving:
/sys/devices/.../power/runtime_usage,runtime_active_kids,runtime_enabled,async.

Also clean useless config, CONFIG_PM_STD_PARTITION, which set by system runtime.

Fixes: 00d6d38 ("arch: arm64: loongarch: x86: clean up release-bound kernel configs (deepin-community#335)")
Signed-off-by: Wentao Guan <[email protected]>
opsiff added a commit that referenced this pull request Nov 12, 2025
deepin inclusion
category: debug

pm_debug is very useful for debugging suspend issues such as wakeup,
and it has a dynamic debug output, used with kernel debug cmdline with:
"no_console_suspend pm_debug_messages" to enable it.
PM_ADVANCED_DEBUG is useful for debug device runtime powersaving:
/sys/devices/.../power/runtime_usage,runtime_active_kids,runtime_enabled,async.

Also clean useless config, CONFIG_PM_STD_PARTITION, which set by system runtime.

Fixes: 00d6d38 ("arch: arm64: loongarch: x86: clean up release-bound kernel configs (#335)")
Signed-off-by: Wentao Guan <[email protected]>
opsiff added a commit to opsiff/UOS-kernel that referenced this pull request Nov 12, 2025
deepin inclusion
category: debug

pm_debug is very useful for debugging suspend issues such as wakeup,
and it has a dynamic debug output, used with kernel debug cmdline with:
"no_console_suspend pm_debug_messages" to enable it.
PM_ADVANCED_DEBUG is useful for debug device runtime powersaving:
/sys/devices/.../power/runtime_usage,runtime_active_kids,runtime_enabled,async.

Also clean useless config, CONFIG_PM_STD_PARTITION, which set by system runtime.

Fixes: 00d6d38 ("arch: arm64: loongarch: x86: clean up release-bound kernel configs (deepin-community#335)")
Signed-off-by: Wentao Guan <[email protected]>
opsiff added a commit that referenced this pull request Nov 13, 2025
deepin inclusion
category: debug

pm_debug is very useful for debugging suspend issues such as wakeup,
and it has a dynamic debug output, used with kernel debug cmdline with:
"no_console_suspend pm_debug_messages" to enable it.
PM_ADVANCED_DEBUG is useful for debug device runtime powersaving:
/sys/devices/.../power/runtime_usage,runtime_active_kids,runtime_enabled,async.

Also clean useless config, CONFIG_PM_STD_PARTITION, which set by system runtime.

Fixes: 00d6d38 ("arch: arm64: loongarch: x86: clean up release-bound kernel configs (#335)")
Signed-off-by: Wentao Guan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants