From c905f4e5f4e83cb96d8c6655a4bb5aa433e490cf Mon Sep 17 00:00:00 2001 From: "Bao D. Nguyen" Date: Wed, 20 Apr 2022 00:02:11 -0700 Subject: [PATCH 1/2] scsi: ufs: Add configuration option for UFS debug support Add CONFIG_UFS_DBG option to support UFS debug features. Change-Id: I98fb46223b74da587f265d96abd51526f0b488fd Signed-off-by: Bao D. Nguyen Signed-off-by: Can Guo --- drivers/scsi/ufs/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig index 9fe27b01904e..76a694d82bee 100644 --- a/drivers/scsi/ufs/Kconfig +++ b/drivers/scsi/ufs/Kconfig @@ -52,6 +52,17 @@ config SCSI_UFSHCD if SCSI_UFSHCD +config UFS_DBG + bool "Universal Flash Storage Debug Mode" + depends on SCSI_UFSHCD + help + This selects the debug mode for ufs vendor driver. + Enables tracing for QTI ufs driver. + This also enables ftrace for ufs core and SCSI. + Enabling this would have an adverse performance impact on disk IO. + + If unsure, say N. + config SCSI_UFSHCD_PCI tristate "PCI bus based UFS Controller support" depends on PCI From 2fe724d3cc0ae8fae9f879d61f63d127f4e56fd9 Mon Sep 17 00:00:00 2001 From: Can Guo Date: Thu, 21 Apr 2022 01:07:36 -0700 Subject: [PATCH 2/2] defconfig:pineapple_consolidate: Enable CONFIG_UFS_DBG Enable UFS debug features for consolidate build. Change-Id: Iad925570af96eb1490010c8582ad12f1215d23c3 Signed-off-by: Can Guo --- arch/arm64/configs/vendor/pineapple_consolidate.config | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/vendor/pineapple_consolidate.config b/arch/arm64/configs/vendor/pineapple_consolidate.config index c555bb67b4aa..d9ad43c84860 100644 --- a/arch/arm64/configs/vendor/pineapple_consolidate.config +++ b/arch/arm64/configs/vendor/pineapple_consolidate.config @@ -12,3 +12,4 @@ CONFIG_PAGE_OWNER=y CONFIG_RCU_TORTURE_TEST=m CONFIG_RUNTIME_TESTING_MENU=y CONFIG_TEST_USER_COPY=m +CONFIG_UFS_DBG=y