intel-gpu / intel-gpu-i915-backports

Other
94 stars 63 forks source link

backport/main does not compile against ubuntu kernel 6.8.0-43.43 (and possibly newer) #190

Closed flumm closed 1 month ago

flumm commented 3 months ago

driver compilation fails with:

/var/lib/dkms/intel-i915-dkms/1.24.4.12.240603.18/build/drivers/gpu/drm/i915/display/intel_dp_mst.c: In function ‘intel_mst_enable_dp’:
/var/lib/dkms/intel-i915-dkms/1.24.4.12.240603.18/build/drivers/gpu/drm/i915/display/intel_dp_mst.c:777:54: error: passing argument 2 of ‘drm_dp_add_payload_part2’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  777 |         drm_dp_add_payload_part2(&intel_dp->mst_mgr, &state->base,
      |                                                      ^~~~~~~~~~~~
      |                                                      |
      |                                                      struct drm_atomic_state *
In file included from /var/lib/dkms/intel-i915-dkms/1.24.4.12.240603.18/build/backport-include/drm/drm_dp_mst_helper.h:27,
                 from /var/lib/dkms/intel-i915-dkms/1.24.4.12.240603.18/build/drivers/gpu/drm/i915/display/intel_display_types.h:38,
                 from /var/lib/dkms/intel-i915-dkms/1.24.4.12.240603.18/build/drivers/gpu/drm/i915/display/intel_dp_mst.c:38:
./include/drm/display/drm_dp_mst_helper.h:854:64: note: expected ‘struct drm_dp_mst_atomic_payload *’ but argument is of type ‘struct drm_atomic_state *’
  854 |                              struct drm_dp_mst_atomic_payload *payload);
      |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/var/lib/dkms/intel-i915-dkms/1.24.4.12.240603.18/build/drivers/gpu/drm/i915/display/intel_dp_mst.c:777:9: error: too many arguments to function ‘drm_dp_add_payload_part2’
  777 |         drm_dp_add_payload_part2(&intel_dp->mst_mgr, &state->base,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
./include/drm/display/drm_dp_mst_helper.h:853:5: note: declared here
  853 | int drm_dp_add_payload_part2(struct drm_dp_mst_topology_mgr *mgr,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~

possibly because of this commit: https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/noble/commit/?h=master-next&id=263efcb86dc38ca8cfcae8846bfa1cb4a1bc0c4c

currently 6.8.0-44.44 is in proposed (see https://launchpad.net/ubuntu/noble/+source/linux)

(noticed during compilation agains proxmox-kernel-6.8.12-1-pve which is based on 6.8.0-43.43)

smuqthya commented 3 months ago

This issue is already fixed and you can expect the change landing by WW39

knayana-gse commented 1 month ago

Issue is fixed in below release. Please check. https://github.com/intel-gpu/intel-gpu-i915-backports/releases/tag/I915_24WW42.2_996.26_24.5.15_240718.18 https://github.com/intel-gpu/intel-gpu-i915-backports/blob/backport/main/versions#L4