Skip to contentSkip to conversation

soc: qcom: rmtfs: allow building the module with COMPILE_TEST=y

PATCH RESEND Applied Bartosz Golaszewski 4 participants 9 messages Dec 2, 2024 – Jan 9, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/2 soc: qcom: rmtfs: allow building the module with COMPILE_TEST=y

From: Bartosz Golaszewski <[email protected]>

Make it possible to build the module when COMPILE_TEST is enabled for better build coverage.

---
 drivers/soc/qcom/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/Kconfig +1 -1
index 74b9121240f89..58e63cf0036ba 100644
@@ -139,7 +139,7 @@ config QCOM_RAMP_CTRL
 
 config QCOM_RMTFS_MEM
 	tristate "Qualcomm Remote Filesystem memory driver"
-	depends on ARCH_QCOM
+	depends on ARCH_QCOM || COMPILE_TEST
 	select QCOM_SCM
 	help
 	  The Qualcomm remote filesystem memory driver is used for allocating
Signature · 1 line
2.45.2
#1 lore raw

PATCH RESEND 2/2 soc: qcom: rmtfs: constify rmtfs_class

From: Bartosz Golaszewski <[email protected]>

The rmtfs class object is never modified and can be made constant.

---
 drivers/soc/qcom/rmtfs_mem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/rmtfs_mem.c +1 -1
index 33603b8fd8f38..1b32469f27896 100644
@@ -125,7 +125,7 @@ static int qcom_rmtfs_mem_release(struct inode *inode, struct file *filp)
 	return 0;
 }
 
-static struct class rmtfs_class = {
+static const struct class rmtfs_class = {
 	.name           = "rmtfs",
 };
 
Signature · 1 line
2.45.2
#2 lore raw
In reply to Bartosz Golaszewski
Quoted 26 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Make it possible to build the module when COMPILE_TEST is enabled for better build coverage.

---
 drivers/soc/qcom/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/Kconfig +1 -2
index 74b9121240f89..58e63cf0036ba 100644
@@ -139,7 +139,7 @@ config QCOM_RAMP_CTRL
 
 config QCOM_RMTFS_MEM
        tristate "Qualcomm Remote Filesystem memory driver"
-       depends on ARCH_QCOM
+       depends on ARCH_QCOM || COMPILE_TEST
        select QCOM_SCM
        help
          The Qualcomm remote filesystem memory driver is used for allocating
--
Quoted 2 lines

2.45.2

Gentle ping.

Bart

maintainer Applied
#3 lore raw
In reply to Bartosz Golaszewski
Quoted 4 lines · Bartosz Golaszewski

Make it possible to build the module when COMPILE_TEST is enabled for better build coverage.

Applied, thanks!

[1/2] soc: qcom: rmtfs: allow building the module with COMPILE_TEST=y

      commit: a9020afe40e8752c6db905e895e9002a83255e7b
[2/2] soc: qcom: rmtfs: constify rmtfs_class
      commit: eb9fc0f32f9b4e8b7984c276c1ed6f61d39ef630

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>
#4 lore raw
In reply to Bartosz Golaszewski
Quoted 4 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Make it possible to build the module when COMPILE_TEST is enabled for better build coverage.

Hi Bartosz,

no idea why this happens, but I just bisected my way to this patchset for this very odd error on the HP Omnibook X14:

jglathe@x14-jg:~$ sudo dmesg|grep snps
[    1.009307] qcom-snps-eusb2-hsphy 88e1000.phy: Registered Qcom-eUSB2 phy
[   24.035977] platform fd3000.phy: deferred probe pending:
qcom-snps-eusb2-hsphy: failed to get repeater
[   24.035987] platform fd9000.phy: deferred probe pending:
qcom-snps-eusb2-hsphy: failed to get repeater

This kills USB2 functionality on the type-c connectors.

with best regards

Jens

#5 lore raw
Quoted 20 lines · Jens Glathe
Quoted 4 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Make it possible to build the module when COMPILE_TEST is enabled for better build coverage.

Hi Bartosz,

no idea why this happens, but I just bisected my way to this patchset for this very odd error on the HP Omnibook X14:

jglathe@x14-jg:~$ sudo dmesg|grep snps
[    1.009307] qcom-snps-eusb2-hsphy 88e1000.phy: Registered Qcom-eUSB2 phy
[   24.035977] platform fd3000.phy: deferred probe pending:
qcom-snps-eusb2-hsphy: failed to get repeater
[   24.035987] platform fd9000.phy: deferred probe pending:
qcom-snps-eusb2-hsphy: failed to get repeater
Quoted 6 lines

This kills USB2 functionality on the type-c connectors.

with best regards

Jens

Well, that's weird. Are you 100% sure this commit is the culprit? I have no idea how this could happen, it's just a Kconfig tweak.

Bartosz

#6 lore raw
Quoted 2 lines · Bartosz Golaszewski

Well, that's weird. Are you 100% sure this commit is the culprit? I have no idea how this could happen, it's just a Kconfig tweak.

That's what I thought, too. I merged qcom/for-next into my branch for testing and adventure, compared / merged my dt's that were in both, and then this showed up on the HP X14. On the Snapdragon Dev Kit all 5 eUSB2 repeaters work regardless with the same build. The chip in question is the SMB2360, a PMIC which also contains the eUSB2 repeater.

jglathe@sdbox2:~/src/linux_ms_dev_kit$ git bisect log
git bisect start
# status: waiting for both good and bad commits
# bad: [a9059ebc60d5b845a95b25650eb24c1df5ed2132] arm64: dts: qcom:
x1e80100: Fix usb_2 controller interrupts
git bisect bad a9059ebc60d5b845a95b25650eb24c1df5ed2132
# status: waiting for good commit(s), bad commit known
# good: [2bab385991536a07d6f4c0970fa665f9626db059] Ubuntu: rebase to
v6.13-rc6
git bisect good 2bab385991536a07d6f4c0970fa665f9626db059
# good: [2cc57105ca61b9fb3744adbf83bbc8b2c0c0d055] johan_defconfig: add
custom config
git bisect good 2cc57105ca61b9fb3744adbf83bbc8b2c0c0d055
# good: [260e63d4eece13d5f908646b8b9e5af44a40d012] arm64: dts: qcom:
msm8996-xiaomi-gemini: Fix LP5562 LED1 reg property
git bisect good 260e63d4eece13d5f908646b8b9e5af44a40d012
# good: [033bf6bd4e245be05553ed1ec774dd78c77922ec] arm64: dts: qcom:
sar2130p: correct sleep clock frequency
git bisect good 033bf6bd4e245be05553ed1ec774dd78c77922ec
# good: [76f8b9a9e0d9fdafa6103ea789865dd6897f3bd6] dt-bindings: clock:
qcom-rpmhcc: Add RPMHCC bindings for QCS615
git bisect good 76f8b9a9e0d9fdafa6103ea789865dd6897f3bd6
# good: [22507018ce51df4f63a5ad468608426bcd799e2b] clk: qcom:
gcc-mdm9607: Fix cmd_rcgr offset for blsp1_uart6 rcg
git bisect good 22507018ce51df4f63a5ad468608426bcd799e2b
# good: [8db2b9a883cbb85a189ad74c3fb3264cc54134b8] soc: qcom:
pmic_glink_altmode: simplify locking with guard()
git bisect good 8db2b9a883cbb85a189ad74c3fb3264cc54134b8
# bad: [17f8cef45b6a390dd2216d28290c21a92c3e3ae1] Ubuntu: Update changelog
git bisect bad 17f8cef45b6a390dd2216d28290c21a92c3e3ae1
# bad: [1c51ac09700c1722329672f6254dca78fbc32101] soc: qcom: rmtfs:
constify rmtfs_class
git bisect bad 1c51ac09700c1722329672f6254dca78fbc32101
# bad: [d6c656205ae9eb32dce89df95faabe898029e668] soc: qcom: rmtfs:
allow building the module with COMPILE_TEST=y
git bisect bad d6c656205ae9eb32dce89df95faabe898029e668
# first bad commit: [d6c656205ae9eb32dce89df95faabe898029e668] soc:
qcom: rmtfs: allow building the module with COMPILE_TEST=y

I have put the tag up on github [1]. It _is_ odd.

Jens

[1]
https://github.com/jglathe/linux_ms_dev_kit/tree/jg/ubuntu-qcom-x1e-6.13-rc6-eUSB2-bad

#7 lore raw
Quoted 49 lines · Jens Glathe
Quoted 2 lines · Bartosz Golaszewski

Well, that's weird. Are you 100% sure this commit is the culprit? I have no idea how this could happen, it's just a Kconfig tweak.

That's what I thought, too. I merged qcom/for-next into my branch for testing and adventure, compared / merged my dt's that were in both, and then this showed up on the HP X14. On the Snapdragon Dev Kit all 5 eUSB2 repeaters work regardless with the same build. The chip in question is the SMB2360, a PMIC which also contains the eUSB2 repeater.

jglathe@sdbox2:~/src/linux_ms_dev_kit$ git bisect log
git bisect start
# status: waiting for both good and bad commits
# bad: [a9059ebc60d5b845a95b25650eb24c1df5ed2132] arm64: dts: qcom:
x1e80100: Fix usb_2 controller interrupts
git bisect bad a9059ebc60d5b845a95b25650eb24c1df5ed2132
# status: waiting for good commit(s), bad commit known
# good: [2bab385991536a07d6f4c0970fa665f9626db059] Ubuntu: rebase to
v6.13-rc6
git bisect good 2bab385991536a07d6f4c0970fa665f9626db059
# good: [2cc57105ca61b9fb3744adbf83bbc8b2c0c0d055] johan_defconfig: add
custom config
git bisect good 2cc57105ca61b9fb3744adbf83bbc8b2c0c0d055
# good: [260e63d4eece13d5f908646b8b9e5af44a40d012] arm64: dts: qcom:
msm8996-xiaomi-gemini: Fix LP5562 LED1 reg property
git bisect good 260e63d4eece13d5f908646b8b9e5af44a40d012
# good: [033bf6bd4e245be05553ed1ec774dd78c77922ec] arm64: dts: qcom:
sar2130p: correct sleep clock frequency
git bisect good 033bf6bd4e245be05553ed1ec774dd78c77922ec
# good: [76f8b9a9e0d9fdafa6103ea789865dd6897f3bd6] dt-bindings: clock:
qcom-rpmhcc: Add RPMHCC bindings for QCS615
git bisect good 76f8b9a9e0d9fdafa6103ea789865dd6897f3bd6
# good: [22507018ce51df4f63a5ad468608426bcd799e2b] clk: qcom:
gcc-mdm9607: Fix cmd_rcgr offset for blsp1_uart6 rcg
git bisect good 22507018ce51df4f63a5ad468608426bcd799e2b
# good: [8db2b9a883cbb85a189ad74c3fb3264cc54134b8] soc: qcom:
pmic_glink_altmode: simplify locking with guard()
git bisect good 8db2b9a883cbb85a189ad74c3fb3264cc54134b8
# bad: [17f8cef45b6a390dd2216d28290c21a92c3e3ae1] Ubuntu: Update changelog
git bisect bad 17f8cef45b6a390dd2216d28290c21a92c3e3ae1
# bad: [1c51ac09700c1722329672f6254dca78fbc32101] soc: qcom: rmtfs:
constify rmtfs_class
git bisect bad 1c51ac09700c1722329672f6254dca78fbc32101
# bad: [d6c656205ae9eb32dce89df95faabe898029e668] soc: qcom: rmtfs:
allow building the module with COMPILE_TEST=y
git bisect bad d6c656205ae9eb32dce89df95faabe898029e668
# first bad commit: [d6c656205ae9eb32dce89df95faabe898029e668] soc:
qcom: rmtfs: allow building the module with COMPILE_TEST=y
Quoted 1 line

I have put the tag up on github [1]. It _is_ odd.

I think I've seen this issue before. I'd bet it's just timing.

Konrad

#8 lore raw

Am 09.01.25 um 15:01 schrieb Konrad Dybcio:

Quoted 7 lines · Jens Glathe
Quoted 3 lines · Bartosz Golaszewski
Quoted 2 lines

Well, that's weird. Are you 100% sure this commit is the culprit? I have no idea how this could happen, it's just a Kconfig tweak.

I think I've seen this issue before. I'd bet it's just timing.

Konrad

Well there seem to be other (follow-up) symptoms, like laptop not willing to wake from sleep, higher battery drain. No idea how to tackle it further, though. drivers/phy/qualcomm/phy-qcom-snps-eusb2.c has no recent changes.

Jens