Skip to content

: the patch set to weaken the dependency between ACPI video driver and i915 driver

yakui_zhao linux-acpi 1 version Applied

Status from this message: applied

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 12 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2: ACPI: Check whether the acpi video is deferrable only when KMS is enableddrivers/acpi/video.c+1 -11 reply
2/2: ACPI: Weaken the dependency between ACPI video driver and I915drivers/acpi/video.c drivers/acpi/video_detect.c drivers/gpu/drm/i915/i915_opregion.c +1 more+101 -251 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMatthew Garrett
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2]: the patch set to weaken the dependency between ACPI video driver and i915 driver

Hi, All
the following is the patch set that can weaken the dependency between ACPI video and i915
driver.
Patch 1/2: Check whether the acpi video is deferrable only when KMS is enabled When the KMS is enabled in kernel configuration, OS will check whether the acpi video
driver is deferrable. Otherwise it will continue the current flowchart.

Patch 2/2: weaken the tight dependency between the ACPI video driver and i915 driver Now there exists the tight dependency between the ACPI video driver and i915 driver.
If the I915 driver is compiled as built-in module and the acpi video is compiled as module, it will fail in the kernel compilation.
At the same time the acpi video driver must be loaded in order to load
the I915 driver. It is very hack.

This patch is to weaken the dependency between the ACPI video driver and
i915 driver. But it still can do what we expected.
a. the i915/acpi_video_register is defined in the video_detect.When the video is selected,
it will be complied as built-in functions. If the video is not selected, it is defined as inline function.
b. i915_video_register is called by i915 driver. And i915 video flag is set. c. acpi_video_register/unregister is called by acpi video driver. The acpi video bus driver
is hooked and the ACPI video flag is set.
d. When the both flag bits are set, the acpi video bus driver will be registered.

Welcome the comments.

Best regards
Yakui