Skip to content

Commit 6e21f45

Browse files
Update CONFIG_DRM as loadable module and create sub-package for in-tree amdgpu modules (#10612)
1 parent d647152 commit 6e21f45

12 files changed

Lines changed: 52 additions & 21 deletions

File tree

SPECS-SIGNED/kernel-signed/kernel-signed.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Summary: Signed Linux Kernel for %{buildarch} systems
1111
Name: kernel-signed-%{buildarch}
1212
Version: 6.6.57.1
13-
Release: 3%{?dist}
13+
Release: 4%{?dist}
1414
License: GPLv2
1515
Vendor: Microsoft Corporation
1616
Distribution: Azure Linux
@@ -145,6 +145,9 @@ echo "initrd of kernel %{uname_r} removed" >&2
145145
%exclude /module_info.ld
146146

147147
%changelog
148+
* Wed Nov 06 2024 Suresh Babu Chalamalasetty <schalam@microsoft.com> - 6.6.57.1-4
149+
- Bump release to match kernel
150+
148151
* Tue Nov 05 2024 Chris Co <chrco@microsoft.com> - 6.6.57.1-3
149152
- Bump release to match kernel
150153

SPECS-SIGNED/kernel-uki-signed/kernel-uki-signed.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Summary: Signed Unified Kernel Image for %{buildarch} systems
77
Name: kernel-uki-signed-%{buildarch}
88
Version: 6.6.57.1
9-
Release: 3%{?dist}
9+
Release: 4%{?dist}
1010
License: GPLv2
1111
Vendor: Microsoft Corporation
1212
Distribution: Azure Linux
@@ -68,6 +68,9 @@ popd
6868
/boot/efi/EFI/Linux/vmlinuz-uki-%{kernelver}.efi
6969

7070
%changelog
71+
* Wed Nov 06 2024 Suresh Babu Chalamalasetty <schalam@microsoft.com> - 6.6.57.1-4
72+
- Bump release to match kernel
73+
7174
* Tue Nov 05 2024 Chris Co <chrco@microsoft.com> - 6.6.57.1-3
7275
- Bump release to match kernel
7376

SPECS/kernel-headers/kernel-headers.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Summary: Linux API header files
1515
Name: kernel-headers
1616
Version: 6.6.57.1
17-
Release: 3%{?dist}
17+
Release: 4%{?dist}
1818
License: GPLv2
1919
Vendor: Microsoft Corporation
2020
Distribution: Azure Linux
@@ -75,6 +75,9 @@ done
7575
%endif
7676

7777
%changelog
78+
* Wed Nov 06 2024 Suresh Babu Chalamalasetty <schalam@microsoft.com> - 6.6.57.1-4
79+
- Bump release to match kernel
80+
7881
* Tue Nov 05 2024 Chris Co <chrco@microsoft.com> - 6.6.57.1-3
7982
- Bump release to match kernel
8083

SPECS/kernel/config

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4751,10 +4751,9 @@ CONFIG_AGP_INTEL=m
47514751
# CONFIG_AGP_VIA is not set
47524752
CONFIG_INTEL_GTT=m
47534753
# CONFIG_VGA_SWITCHEROO is not set
4754-
CONFIG_DRM=y
4754+
CONFIG_DRM=m
47554755
CONFIG_DRM_MIPI_DSI=y
4756-
# CONFIG_DRM_DEBUG_MM is not set
4757-
CONFIG_DRM_KMS_HELPER=y
4756+
CONFIG_DRM_KMS_HELPER=m
47584757
# CONFIG_DRM_DEBUG_DP_MST_TOPOLOGY_REFS is not set
47594758
# CONFIG_DRM_DEBUG_MODESET_LOCK is not set
47604759
CONFIG_DRM_FBDEV_EMULATION=y
@@ -4767,10 +4766,10 @@ CONFIG_DRM_DISPLAY_HDCP_HELPER=y
47674766
CONFIG_DRM_DISPLAY_HDMI_HELPER=y
47684767
# CONFIG_DRM_DP_AUX_CHARDEV is not set
47694768
# CONFIG_DRM_DP_CEC is not set
4770-
CONFIG_DRM_TTM=y
4769+
CONFIG_DRM_TTM=m
47714770
CONFIG_DRM_EXEC=m
47724771
CONFIG_DRM_BUDDY=m
4773-
CONFIG_DRM_TTM_HELPER=y
4772+
CONFIG_DRM_TTM_HELPER=m
47744773
CONFIG_DRM_GEM_SHMEM_HELPER=m
47754774
CONFIG_DRM_SUBALLOC_HELPER=m
47764775
CONFIG_DRM_SCHED=m
@@ -4857,7 +4856,7 @@ CONFIG_DRM_I915_TIMESLICE_DURATION=1
48574856

48584857
CONFIG_DRM_VGEM=m
48594858
# CONFIG_DRM_VKMS is not set
4860-
CONFIG_DRM_VMWGFX=y
4859+
CONFIG_DRM_VMWGFX=m
48614860
# CONFIG_DRM_VMWGFX_MKSSTATS is not set
48624861
# CONFIG_DRM_GMA500 is not set
48634862
# CONFIG_DRM_UDL is not set

SPECS/kernel/config_aarch64

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6509,11 +6509,10 @@ CONFIG_VIDEO_CMDLINE=y
65096509
CONFIG_VIDEO_NOMODESET=y
65106510
# CONFIG_AUXDISPLAY is not set
65116511
# CONFIG_TEGRA_HOST1X is not set
6512-
CONFIG_DRM=y
6512+
CONFIG_DRM=m
65136513
CONFIG_DRM_MIPI_DBI=m
65146514
CONFIG_DRM_MIPI_DSI=y
6515-
# CONFIG_DRM_DEBUG_MM is not set
6516-
CONFIG_DRM_KMS_HELPER=y
6515+
CONFIG_DRM_KMS_HELPER=m
65176516
# CONFIG_DRM_DEBUG_DP_MST_TOPOLOGY_REFS is not set
65186517
# CONFIG_DRM_DEBUG_MODESET_LOCK is not set
65196518
CONFIG_DRM_FBDEV_EMULATION=y

SPECS/kernel/kernel-uki.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Summary: Unified Kernel Image
1414
Name: kernel-uki
1515
Version: 6.6.57.1
16-
Release: 3%{?dist}
16+
Release: 4%{?dist}
1717
License: GPLv2
1818
Vendor: Microsoft Corporation
1919
Distribution: Azure Linux
@@ -70,6 +70,9 @@ cp %{buildroot}/boot/vmlinuz-uki-%{kernelver}.efi %{buildroot}/boot/efi/EFI/Linu
7070
/boot/efi/EFI/Linux/vmlinuz-uki-%{kernelver}.efi
7171

7272
%changelog
73+
* Wed Nov 06 2024 Suresh Babu Chalamalasetty <schalam@microsoft.com> - 6.6.57.1-4
74+
- Bump release to match kernel
75+
7376
* Tue Nov 05 2024 Chris Co <chrco@microsoft.com> - 6.6.57.1-3
7477
- Bump release to match kernel
7578

SPECS/kernel/kernel.signatures.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"Signatures": {
33
"azurelinux-ca-20230216.pem": "d545401163c75878319f01470455e6bc18a5968e39dd964323225e3fe308849b",
4-
"config": "00c9071da520dd42e8465fd8d9f36945a4f6127798c16a45f5200cfd7256ed1e",
5-
"config_aarch64": "e0d92980c9388de35b7dde65a385865ef3207f4c50b0e9988f90394e8d627c77",
4+
"config": "969663961b389c2825274191c3d69229077582b79af9ab49f049c4cf7d7824ee",
5+
"config_aarch64": "628339e74f30f920fded66390563391f9f9bdfc7b7a11d14cb541ff10822ba0b",
66
"cpupower": "d7518767bf2b1110d146a49c7d42e76b803f45eb8bd14d931aa6d0d346fae985",
77
"cpupower.service": "b057fe9e5d0e8c36f485818286b80e3eba8ff66ff44797940e99b1fd5361bb98",
88
"sha512hmac-openssl.sh": "02ab91329c4be09ee66d759e4d23ac875037c3b56e5a598e32fd1206da06a27f",

SPECS/kernel/kernel.spec

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
Summary: Linux Kernel
3131
Name: kernel
3232
Version: 6.6.57.1
33-
Release: 3%{?dist}
33+
Release: 4%{?dist}
3434
License: GPLv2
3535
Vendor: Microsoft Corporation
3636
Distribution: Azure Linux
@@ -121,6 +121,15 @@ Requires: %{name} = %{version}-%{release}
121121
%description drivers-gpu
122122
This package contains the Linux kernel gpu support
123123

124+
%package drivers-intree-amdgpu
125+
Summary: Kernel amdgpu modules
126+
Group: System Environment/Kernel
127+
Requires: %{name} = %{version}-%{release}
128+
Requires: %{name}-drivers-gpu = %{version}-%{release}
129+
130+
%description drivers-intree-amdgpu
131+
This package contains the Linux kernel in-tree AMD gpu support
132+
124133
%package drivers-sound
125134
Summary: Kernel Sound modules
126135
Group: System Environment/Kernel
@@ -327,6 +336,9 @@ echo "initrd of kernel %{uname_r} removed" >&2
327336
%post drivers-gpu
328337
/sbin/depmod -a %{uname_r}
329338

339+
%post drivers-intree-amdgpu
340+
/sbin/depmod -a %{uname_r}
341+
330342
%post drivers-sound
331343
/sbin/depmod -a %{uname_r}
332344

@@ -365,6 +377,11 @@ echo "initrd of kernel %{uname_r} removed" >&2
365377
%files drivers-gpu
366378
%defattr(-,root,root)
367379
/lib/modules/%{uname_r}/kernel/drivers/gpu
380+
%exclude /lib/modules/%{uname_r}/kernel/drivers/gpu/drm/amd
381+
382+
%files drivers-intree-amdgpu
383+
%defattr(-,root,root)
384+
/lib/modules/%{uname_r}/kernel/drivers/gpu/drm/amd
368385

369386
%files drivers-sound
370387
%defattr(-,root,root)
@@ -407,6 +424,10 @@ echo "initrd of kernel %{uname_r} removed" >&2
407424
%{_sysconfdir}/bash_completion.d/bpftool
408425

409426
%changelog
427+
* Wed Nov 06 2024 Suresh Babu Chalamalasetty <schalam@microsoft.com> - 6.6.57.1-4
428+
- Make CONFIG_DRM and its dependency KConfigs as loadable modules
429+
- Create sub-package for AMD GPU in-tree modules to avoid conflicts with out-of-tree modules
430+
410431
* Tue Nov 05 2024 Chris Co <chrco@microsoft.com> - 6.6.57.1-3
411432
- Enable kexec signature verification
412433
- Introduce new azurelinux-ca-20230216.pem

toolkit/resources/manifests/package/pkggen_core_aarch64.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
filesystem-1.1-21.azl3.aarch64.rpm
2-
kernel-headers-6.6.57.1-3.azl3.noarch.rpm
2+
kernel-headers-6.6.57.1-4.azl3.noarch.rpm
33
glibc-2.38-8.azl3.aarch64.rpm
44
glibc-devel-2.38-8.azl3.aarch64.rpm
55
glibc-i18n-2.38-8.azl3.aarch64.rpm

toolkit/resources/manifests/package/pkggen_core_x86_64.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
filesystem-1.1-21.azl3.x86_64.rpm
2-
kernel-headers-6.6.57.1-3.azl3.noarch.rpm
2+
kernel-headers-6.6.57.1-4.azl3.noarch.rpm
33
glibc-2.38-8.azl3.x86_64.rpm
44
glibc-devel-2.38-8.azl3.x86_64.rpm
55
glibc-i18n-2.38-8.azl3.x86_64.rpm

0 commit comments

Comments
 (0)