Bug 1222818 - Kernel Configuration Breakage (regulators) in config/arm64/default for MediaTek boards when merge from master to stable
Summary: Kernel Configuration Breakage (regulators) in config/arm64/default for MediaT...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Current
Hardware: aarch64 openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Chester Lin
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on: 1215335
Blocks:
  Show dependency treegraph
 
Reported: 2024-04-15 10:03 UTC by Macpaul Lin
Modified: 2024-04-25 07:23 UTC (History)
13 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
config patch to master branch (1.98 KB, application/mbox)
2024-04-17 08:49 UTC, Macpaul Lin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Macpaul Lin 2024-04-15 10:03:19 UTC
+++ This bug was initially created as a clone of Bug #1215335 +++

Reference:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2035591

## Description

A regression has been identified in the kernel configuration file `config/arm64/default` that appears to have been introduced during a merge from the master branch to the stable branch. The issue affected genio-mt8395 boards and removed settings of enabling regulators by this commit.

[b197b3604a7b1542574ed75ee9e5f708eaa9772c]   Update config files: enable arm64 regulator modules for mediatek boards (bsc#1215335)  

## Affected Commits

- **Bad Commit**: [a26e308341f11d0300a8bef13e97c9d213c6722a] Merge branch 'master' into stable
- **Last Known Good Commit**: [18231664d40aa6b0efdc96714d3d1de0519bb460] Merge remote-tracking branch 'origin/users/vkarasulli/stable/for-next' into stable

## Removed configurations which leads board boot up fail.
git checkout a26e308341f11d0300a8bef13e97c9d213c6722a
git diff HEAD~1 | grep MT63
-CONFIG_PINCTRL_MT6397=y
-# CONFIG_POWER_RESET_MT6323 is not set
 CONFIG_MFD_MT6360=m
 # CONFIG_MFD_MT6370 is not set
-CONFIG_MFD_MT6397=m
+# CONFIG_MFD_MT6397 is not set
 # CONFIG_REGULATOR_MT6311 is not set
 CONFIG_REGULATOR_MT6315=m
-# CONFIG_REGULATOR_MT6323 is not set
-# CONFIG_REGULATOR_MT6331 is not set
-# CONFIG_REGULATOR_MT6332 is not set
-CONFIG_REGULATOR_MT6357=m
-CONFIG_REGULATOR_MT6358=m
-CONFIG_REGULATOR_MT6359=m
 CONFIG_REGULATOR_MT6360=m
 CONFIG_REGULATOR_MT6380=m
-CONFIG_REGULATOR_MT6397=m
 CONFIG_SND_SOC_MT6797_MT6351=m
 CONFIG_SND_SOC_MT8183_MT6358_TS3A227E_MAX98357A=m
-# CONFIG_LEDS_MT6323 is not set
-CONFIG_RTC_DRV_MT6397=m

## Expected Behavior and suggested fix
Please help to add these settings in both master and stable branch in config/arm64/default

CONFIG_PINCTRL_MT6397=y
CONFIG_MFD_MT6397=m
CONFIG_REGULATOR_MT6357=m
CONFIG_REGULATOR_MT6358=m
CONFIG_REGULATOR_MT6359=m
CONFIG_REGULATOR_MT6397=m
CONFIG_RTC_DRV_MT6397=m

## Additional Information

Boot fail log using openSuse openSUSE-Tumbleweed-NET-aarch64-20240410.iso 
(This issue has been reported more earlier.)
Error log:
/var/log/boot.msg:509:<6>[   25.667557][   T10] platform 11290000.usb: deferred probe pending: platform: wait for supplier /soc/pwrap@10024000/pmic/regulators/ldo_vusb
/var/log/boot.msg:510:<6>[   25.669208][   T10] platform 112a0000.usb: deferred probe pending: platform: wait for supplier /soc/pwrap@10024000/pmic/regulators/ldo_vusb
/var/log/boot.msg:511:<6>[   25.670850][   T10] platform 11230000.mmc: deferred probe pending: platform: wait for supplier /soc/pwrap@10024000/pmic/regulators/ldo_vufs
/var/log/boot.msg:512:<6>[   25.672507][   T10] platform 112b0000.usb: deferred probe pending: platform: wait for supplier /soc/pwrap@10024000/pmic/regulators/ldo_vusb
/var/log/boot.msg:513:<6>[   25.674149][   T10] spi spi0.0: deferred probe pending: spi: wait for supplier /soc/pwrap@10024000/pmic/regulators/ldo_vcn33_2_bt


Thanks!
Macpaul Lin
Comment 1 Jiri Slaby 2024-04-15 11:26:46 UTC
Chester, could you recommit the changes, but now to master branch, so that it does not get lost on the next merge?
Comment 2 Macpaul Lin 2024-04-17 08:49:37 UTC
Created attachment 874330 [details]
config patch to master branch
Comment 3 Jiri Slaby 2024-04-18 06:16:29 UTC
Pushed to master and stable. Thanks.
Comment 4 Macpaul Lin 2024-04-25 07:23:47 UTC
Remind for users:

This extra kernel command line parameter is required for openSUSE installer (in grub).
'loglevel=8 module_blacklist=mediatek_drm,arm_dsu_pmu switch_to_fb=0'

The solution has been verified with

https://download.opensuse.org/ports/aarch64/tumbleweed/iso/openSUSE-Tumbleweed-DVD-aarch64-Snapshot20240423-Media.iso

kernel 6.8.7-1-default.

Thanks!