KCONFIG_SHA256 depends on the host python (DRM_MSM_VALIDATE_XML needs lxml) #19

Closed
opened 2026-10-09 19:16:25 -06:00 by noah · 1 comment
Owner

Found in M0 wave 2 (kernel lane) while comparing the config of the flashed image with a config-only run.

drivers/gpu/drm/msm/Kconfig declares DRM_MSM_VALIDATE_XML with depends on $(success,$(PYTHON3) -c "import lxml"). With python3-lxml importable, the expanded .config gains the line # CONFIG_DRM_MSM_VALIDATE_XML is not set; without it, the line is absent. The whole-file sha256 (KCONFIG_SHA256, d09 OPEN-13) therefore differs by host: the flashed image (built through tools/build-firmware.sh, venv python3 without lxml) is ec276f77...; a config-only run with the system python3 gives e8e9ef1c.... Nothing is wrong with the kernel; the digest is just not reproducible across hosts, so a CI config-only digest can never be compared with a panel's.

Fix: drop the unused Qualcomm DRM_MSM_VALIDATE_XML symbol with a one-block Kconfig patch in the series (no binary change, the digest equals the one already flashed), and test that the config-only digest is the same with and without a working import lxml.

Found in M0 wave 2 (kernel lane) while comparing the config of the flashed image with a config-only run. `drivers/gpu/drm/msm/Kconfig` declares `DRM_MSM_VALIDATE_XML` with `depends on $(success,$(PYTHON3) -c "import lxml")`. With python3-lxml importable, the expanded .config gains the line `# CONFIG_DRM_MSM_VALIDATE_XML is not set`; without it, the line is absent. The whole-file sha256 (KCONFIG_SHA256, d09 OPEN-13) therefore differs by host: the flashed image (built through tools/build-firmware.sh, venv python3 without lxml) is ec276f77...; a config-only run with the system python3 gives e8e9ef1c.... Nothing is wrong with the kernel; the digest is just not reproducible across hosts, so a CI config-only digest can never be compared with a panel's. Fix: drop the unused Qualcomm DRM_MSM_VALIDATE_XML symbol with a one-block Kconfig patch in the series (no binary change, the digest equals the one already flashed), and test that the config-only digest is the same with and without a working `import lxml`.
Author
Owner

Fixed on SDK rebuild by PR #17 (merge commit 5507842); CI run 2590/2591 green. The regression test is named in the issue and runs in the qemu-tools / kernel-symbols jobs.

Fixed on SDK rebuild by PR #17 (merge commit 5507842); CI run 2590/2591 green. The regression test is named in the issue and runs in the qemu-tools / kernel-symbols jobs.
noah closed this issue 2026-10-09 20:08:46 -06:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blueflare/bfe-core1106-sdk#19