Skip to content

media: apple: isp: Depend on DRM - #532

Closed
erikwb wants to merge 1 commit into
aurora-silicon:integration/aurorafrom
erikwb:fix/apple-isp-depends-drm
Closed

erikwb wants to merge 1 commit into
aurora-silicon:integration/aurorafrom
erikwb:fix/apple-isp-depends-drm

Conversation

@erikwb

@erikwb erikwb commented Oct 28, 2026

Copy link
Copy Markdown

The Apple ISP driver manages its firmware address space with drm_mm, which is built into the DRM core, but its Kconfig does not depend on DRM. Without CONFIG_DRM the kernel fails to link (undefined symbol: drm_mm_init and three more).

Real configurations enable DRM for the display, so this only shows up in minimal ones. I hit it with a KUnit configuration for the ISP driver's own tests while working on #531.

Testing

  • checkpatch --strict: clean.
  • KUnit on arm64 QEMU, with CONFIG_DRM=y: 13/13 of the ISP suites pass.
  • The same KUnit configuration without CONFIG_DRM:
    • before the patch, the link fails;
    • with it, kunit.py reports that CONFIG_VIDEO_APPLE_ISP cannot be enabled, which is the intended result.

The driver manages its firmware address space with drm_mm, which is
built into the DRM core. Without CONFIG_DRM the link fails:

  ld.lld: error: undefined symbol: drm_mm_insert_node_in_range
  ld.lld: error: undefined symbol: drm_mm_remove_node
  ld.lld: error: undefined symbol: drm_mm_takedown
  ld.lld: error: undefined symbol: drm_mm_init

Real configurations enable DRM for the display, so this shows up only in
minimal ones, such as a KUnit configuration for the driver's tests.
Depend on DRM.

Fixes: a4f0cf2 ("media: apple: Add Apple ISP driver")
@erikwb

erikwb commented Nov 2, 2026

Copy link
Copy Markdown
Author

No longer needed: f729605 ("media: apple: isp: allocate IOVA ranges without drm_mm") removed the ISP driver's only DRM use. On integration/aurora 41c4055, the driver builds and links with CONFIG_DRM unset, and its KUnit suites pass (30/30, arm64 QEMU).

@erikwb erikwb closed this Nov 2, 2026
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.

1 participant