File drm.spec of Package drm.openSUSE_Leap_42.3_Update
#
# spec file for package drm
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# needssslcertforbuild
%define kernel_version 4.9.33
Name: drm
BuildRequires: %kernel_module_package_buildreqs
BuildRequires: kernel-source
Url: http://kernel.org/
Summary: Backported drm kernel modules
License: GPL-2.0
Group: System/Kernel
ExclusiveArch: x86_64
Version: 4.9.33
Release: 0
Source0: drm-%{kernel_version}.tar.xz
Source1: Makefile
Source2: Module.supported
Source3: preamble
Patch1: 0001-drm-Don-t-use-driver-specific-i2c-locking.patch
Patch2: 0002-drm-i915-Add-u64_to_user_ptr-macro.patch
Patch3: 0003-drm-i915-Remove-use-of-vmap-notifier.patch
Patch4: 0004-drm-Remove-use-of-non-exisiting-__malloc-attribute.patch
Patch5: 0005-drm-i915-Remove-call-to-intel-gtt.patch
Patch6: 0006-drm-i915-Add-extra-argument-to-get_user_pages_remote.patch
Patch7: 0007-makefile-Add-a-makefile-for-the-oot-build.patch
Patch8: 0008-intel_ips-Include-the-header-file.patch
Patch9: 0009-drm-amdkfd-Replace-in_compat_syscall-with-is_compat_.patch
Patch10: 0010-drm-bochs-cirrus-i915-Fixup-missing-PCI-IDs.patch
Patch11: 0011-drm-vmwgfx-Remove-missing-stack-frame-code.patch
Patch12: 0012-drm-Make-all-drivers-use-the-correct-include-directo.patch
Patch13: 0013-drm-virtio-Fix-compile-warning-for-use-of-find_vbq.patch
Patch14: 0014-drm-nouveau-Use-old-struct-dma_attrs-instead-of-unsi.patch
Patch15: 0015-workaround-for-pci-d3_bridge.patch
Patch16: 0016-drm-amdgpu-add-the-interface-of-waiting-multiple-fen.patch
Patch20: 0020-drm-msm-Remove-use-of-vmap-notifier.patch
Patch21: 0021-drm-msm-Add-u64_to_user_ptr.patch
Patch22: 0022-drm-tegra-Revert-dsi-runtime-pm.patch
Patch23: 0023-drm-msm-Disable-dsi-pll-8960-phy.patch
Patch24: 0024-drm-tegra-Workaround-for-pinconf_generic_dt_free_map.patch
Patch25: 0025-drm-i915-comment-out-PCI_DEV_FLAGS_NEEDS_RESUME.patch
# Upstream fixes
# v4.9.34
Patch101: 0101-drm-amdgpu-Fix-overflow-of-watermark-calcs-at-4k-res.patch
Patch102: 0102-drm-i915-Fix-GVT-g-PVINFO-version-compatibility-chec.patch
Patch103: 0103-drm-mediatek-fix-mtk_hdmi_setup_vendor_specific_info.patch
Patch104: 0104-drm-vc4-Fix-OOPSes-from-trying-to-cache-a-partially-.patch
# v4.9.35
Patch105: 0105-drm-radeon-add-a-PX-quirk-for-another-K53TK-variant.patch
Patch106: 0106-drm-radeon-add-a-quirk-for-Toshiba-Satellite-L20-183.patch
Patch107: 0107-drm-amdgpu-atom-fix-ps-allocation-size-for-EnableDis.patch
Patch108: 0108-drm-amdgpu-adjust-default-display-clock.patch
# v4.9.36
Patch109: 0109-drm-ast-Handle-configuration-without-P2A-bridge.patch
Patch110: 0110-drm-vmwgfx-Free-hash-table-allocated-by-cmdbuf-manag.patch
Patch111: 0111-drm-amdgpu-fix-program-vce-instance-logic-error.patch
Patch112: 0112-drm-amdgpu-add-support-for-new-hainan-variants.patch
Patch113: 0113-drm-amdgpu-check-ring-being-ready-before-using.patch
Patch114: 0114-drm-etnaviv-trick-drm_mm-into-giving-out-a-low-IOVA.patch
Patch115: 0115-drm-radeon-si-load-special-ucode-for-certain-MC-conf.patch
Patch116: 0116-drm-amd-powerplay-fix-vce-cg-logic-error-on-CZ-St.patch
Patch117: 0117-drm-amd-powerplay-refine-vce-dpm-update-code-on-Cz.patch
# v4.9.37
Patch118: 0118-drm-virtio-don-t-leak-bo-on-drm_gem_object_init-fail.patch
# SLE patches
Patch1001: 1001-drm-mgag200-Added-support-for-the-new-device-G200eH3.patch
Patch1002: 1002-drm-i915-Add-intel_uncore_suspend-resume-functions.patch
Patch1003: 1003-drm-i915-Listen-for-PMIC-bus-access-notifications.patch
Patch1004: 1004-drm-i915-Fix-crash-after-S3-resume-with-DP-MST-mode-.patch
Patch1005: 1005-drm-i915-Use-pagecache-write-to-prepopulate-shmemfs-.patch
Patch1006: 1006-drm-mgag200-Fix-to-always-set-HiPri-for-G200e4.patch
Patch1007: 1007-drm-i915-Disable-tv-output-on-i9x5gm.patch
Patch1008: 1008-drm-i915-Serialize-GTT-Aperture-accesses-on-BXT.patch
Patch1010: 1010-drm-i915-Unify-active-context-tracking-between-legac.patch
Patch1011: 1011-drm-vmwgfx-Support-topology-greater-than-texture-siz.patch
Patch1012: 1012-drm-vmwgfx-Fix-large-topology-crash.patch
Patch1013: 1013-drm-vmwgfx-Limit-max-desktop-dimensions-to-8Kx8K.patch
Patch1014: 1014-drm-i915-Restore-marking-context-objects-as-dirty-on.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if !0%{?is_opensuse}
# Use a hardcoded list of KBL pci ids in the preamble file
%define __ksyms_supplements %{nil}
%endif
%kernel_module_package -p %_sourcedir/preamble
%description
Backported drm kernel modules for upgrading to the 4.9.x kernel implemntations.
This is mainly for supporting Intel Kabylake graphics, but also for bringing
up / fixing the other graphics devices.
%prep
%setup -q -c -n %{name} -T -a 0
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
if ! grep -q d3_bridge /usr/src/linux/include/linux/pci.h; then
%patch15 -p1
fi
%patch16 -p1
%patch20 -p1
%patch21 -p1
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch25 -p1
%patch101 -p1
%patch102 -p1
%patch103 -p1
%patch104 -p1
%patch105 -p1
%patch106 -p1
%patch107 -p1
%patch108 -p1
%patch109 -p1
%patch110 -p1
%patch111 -p1
%patch112 -p1
%patch113 -p1
%patch114 -p1
%patch115 -p1
%patch116 -p1
%patch117 -p1
%patch118 -p1
%patch1001 -p1
%patch1002 -p1
%patch1003 -p1
%patch1004 -p1
%patch1005 -p1
%patch1006 -p1
%patch1007 -p1
%patch1008 -p1
%patch1010 -p1
%patch1011 -p1
%patch1012 -p1
%patch1013 -p1
%patch1014 -p1
%build
# copy to each flavor
set -- *
for flavor in %flavors_to_build; do
mkdir -p build-$flavor && cp -al "$@" build-$flavor
done
for flavor in %flavors_to_build; do
make %{?jobs:-j %jobs} -C /usr/src/linux-obj/%_target_cpu/$flavor \
M=$(pwd)/build-$flavor
done
%install
export INSTALL_MOD_PATH=%{buildroot}
export INSTALL_MOD_DIR=updates
export BRP_PESIGN_FILES="*.ko"
for flavor in %flavors_to_build; do
make -C /usr/src/linux-obj/%_target_cpu/$flavor \
M=$(pwd)/build-$flavor modules_install
done
# a hack for creating a dummy *.ko file that has been removed
for i in %{buildroot}/lib/modules/*/updates/drivers/gpu/drm/i2c; do
ln -s ch7006.ko $i/adv7511.ko
done
%changelog