Skip to content

Conversation

shreeya-patel98
Copy link
Collaborator

Update process (This kernel CentOS base for 4.18.0-553)

  • Kernel History Rebuild Process for all src.rpms hosted by RESF
  • Create sig-cloud-8/4.18.0-553.77.1.el8_10 branch
  • Check if any maintained code is included in the new el release.
  • Cherry-pick all code from previous branch into new branch (skipping unneeded code)
    • Fix conflicts as they arise
  • Build and Test

Removed Commits

None

Rebase Results

shreeya@spatel-dev-bom:~/ciq/workspace/sig-cloud-8/kernel-src-tree-tools$ python3 rolling-release-update.py --repo ../kernel-src-tree/ --new-base-branch rocky8_10 --old-rolling-branch sig-cloud-8/4.18.0-553.74.1.el8_10
[rolling release update] Rolling Product:  sig-cloud-8
[rolling release update] Checking out branch:  sig-cloud-8/4.18.0-553.74.1.el8_10
[rolling release update] Gathering all the RESF kernel Tags
b'259a119c67fe (tag: resf_kernel-4.18.0-553.74.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.74.1.el8_10'
b'06a1b8b22bc2 (tag: resf_kernel-4.18.0-553.72.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.72.1.el8_10'
b'98b6d02b3b85 (tag: resf_kernel-4.18.0-553.69.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.69.1.el8_10'
b'4216b549e41e (tag: resf_kernel-4.18.0-553.66.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.66.1.el8_10'
b'4e0e0ed3bcbc (tag: resf_kernel-4.18.0-553.64.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.64.1.el8_10'
b'3bb436b64f59 (tag: resf_kernel-4.18.0-553.63.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.63.1.el8_10'
b'e252413ceae1 (tag: resf_kernel-4.18.0-553.62.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.62.1.el8_10'
b'5c89e3d2c056 (tag: resf_kernel-4.18.0-553.60.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.60.1.el8_10'
b'2e416d167715 (tag: resf_kernel-4.18.0-553.58.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.58.1.el8_10'
b'1ad2baf0efe1 (tag: resf_kernel-4.18.0-553.56.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.56.1.el8_10'
b'6f9106f46020 (tag: resf_kernel-4.18.0-553.54.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.54.1.el8_10'
b'32f87806bbd4 (tag: resf_kernel-4.18.0-553.53.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.53.1.el8_10'
b'e99974a02d4f (tag: resf_kernel-4.18.0-553.52.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.52.1.el8_10'
b'bda8b8ebc7b7 (tag: resf_kernel-4.18.0-553.51.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.51.1.el8_10'
b'32fa0f457b22 (tag: resf_kernel-4.18.0-553.50.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.50.1.el8_10'
b'01aef32f4a9b (tag: resf_kernel-4.18.0-553.47.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.47.1.el8_10'
b'e622eefa811c (tag: resf_kernel-4.18.0-553.46.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.46.1.el8_10'
b'f025379c5d08 (tag: resf_kernel-4.18.0-553.45.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.45.1.el8_10'
b'16dc63866351 (tag: resf_kernel-4.18.0-553.44.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.44.1.el8_10'
b'5b691f92af91 (tag: resf_kernel-4.18.0-553.42.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.42.1.el8_10'
b'0dbf87712115 (tag: resf_kernel-4.18.0-553.40.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.40.1.el8_10'
b'26d9a06a4a5f (tag: resf_kernel-4.18.0-553.37.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.37.1.el8_10'
b'4673f9b8360d (tag: resf_kernel-4.18.0-553.36.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.36.1.el8_10'
b'7e4fb1a14fcd (tag: resf_kernel-4.18.0-553.34.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.34.1.el8_10'
b'72ceaa9ab31e (tag: resf_kernel-4.18.0-553.33.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.33.1.el8_10'
b'0570eb3e10e4 (tag: resf_kernel-4.18.0-553.32.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.32.1.el8_10'
b'657b4d21132b (tag: resf_kernel-4.18.0-553.30.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.30.1.el8_10'
b'c1970aa3f569 (tag: resf_kernel-4.18.0-553.27.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.27.1.el8_10'
b'8bf75aa29fd0 (tag: resf_kernel-4.18.0-553.22.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.22.1.el8_10'
b'ea7f8a5da93b (tag: resf_kernel-4.18.0-553.16.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.16.1.el8_10'
b'2fd9e62e45de (tag: resf_kernel-4.18.0-553.8.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.8.1.el8_10'
b'a2d1b1a06ff8 (tag: resf_kernel-4.18.0-553.5.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.5.1.el8_10'
b'4533b19a3a3e (tag: resf_kernel-4.18.0-553.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.el8_10'
[rolling release update] Old Rolling Branch Tags:  [b'259a119c67fe', b'06a1b8b22bc2', b'98b6d02b3b85', b'4216b549e41e', b'4e0e0ed3bcbc', b'3bb436b64f59', b'e252413ceae1', b'5c89e3d2c056', b'2e416d167715', b'1ad2baf0efe1', b'6f9106f46020', b'32f87806bbd4', b'e99974a02d4f', b'bda8b8ebc7b7', b'32fa0f457b22', b'01aef32f4a9b', b'e622eefa811c', b'f025379c5d08', b'16dc63866351', b'5b691f92af91', b'0dbf87712115', b'26d9a06a4a5f', b'4673f9b8360d', b'7e4fb1a14fcd', b'72ceaa9ab31e', b'0570eb3e10e4', b'657b4d21132b', b'c1970aa3f569', b'8bf75aa29fd0', b'ea7f8a5da93b', b'2fd9e62e45de', b'a2d1b1a06ff8', b'4533b19a3a3e']
[rolling release update] Checking out branch:  rocky8_10
[rolling release update] Gathering all the RESF kernel Tags
b'9adc78b934b8 (HEAD -> rocky8_10, tag: resf_kernel-4.18.0-553.77.1.el8_10, origin/rocky8_10_rebuild, origin/rocky8_10) Rebuild rocky8_10 with kernel-4.18.0-553.77.1.el8_10'
b'38f3196a8fe9 (tag: resf_kernel-4.18.0-553.76.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.76.1.el8_10'
b'259a119c67fe (tag: resf_kernel-4.18.0-553.74.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.74.1.el8_10'
b'06a1b8b22bc2 (tag: resf_kernel-4.18.0-553.72.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.72.1.el8_10'
b'98b6d02b3b85 (tag: resf_kernel-4.18.0-553.69.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.69.1.el8_10'
b'4216b549e41e (tag: resf_kernel-4.18.0-553.66.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.66.1.el8_10'
b'4e0e0ed3bcbc (tag: resf_kernel-4.18.0-553.64.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.64.1.el8_10'
b'3bb436b64f59 (tag: resf_kernel-4.18.0-553.63.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.63.1.el8_10'
b'e252413ceae1 (tag: resf_kernel-4.18.0-553.62.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.62.1.el8_10'
b'5c89e3d2c056 (tag: resf_kernel-4.18.0-553.60.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.60.1.el8_10'
b'2e416d167715 (tag: resf_kernel-4.18.0-553.58.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.58.1.el8_10'
b'1ad2baf0efe1 (tag: resf_kernel-4.18.0-553.56.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.56.1.el8_10'
b'6f9106f46020 (tag: resf_kernel-4.18.0-553.54.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.54.1.el8_10'
b'32f87806bbd4 (tag: resf_kernel-4.18.0-553.53.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.53.1.el8_10'
b'e99974a02d4f (tag: resf_kernel-4.18.0-553.52.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.52.1.el8_10'
b'bda8b8ebc7b7 (tag: resf_kernel-4.18.0-553.51.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.51.1.el8_10'
b'32fa0f457b22 (tag: resf_kernel-4.18.0-553.50.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.50.1.el8_10'
b'01aef32f4a9b (tag: resf_kernel-4.18.0-553.47.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.47.1.el8_10'
b'e622eefa811c (tag: resf_kernel-4.18.0-553.46.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.46.1.el8_10'
b'f025379c5d08 (tag: resf_kernel-4.18.0-553.45.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.45.1.el8_10'
b'16dc63866351 (tag: resf_kernel-4.18.0-553.44.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.44.1.el8_10'
b'5b691f92af91 (tag: resf_kernel-4.18.0-553.42.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.42.1.el8_10'
b'0dbf87712115 (tag: resf_kernel-4.18.0-553.40.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.40.1.el8_10'
b'26d9a06a4a5f (tag: resf_kernel-4.18.0-553.37.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.37.1.el8_10'
b'4673f9b8360d (tag: resf_kernel-4.18.0-553.36.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.36.1.el8_10'
b'7e4fb1a14fcd (tag: resf_kernel-4.18.0-553.34.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.34.1.el8_10'
b'72ceaa9ab31e (tag: resf_kernel-4.18.0-553.33.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.33.1.el8_10'
b'0570eb3e10e4 (tag: resf_kernel-4.18.0-553.32.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.32.1.el8_10'
b'657b4d21132b (tag: resf_kernel-4.18.0-553.30.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.30.1.el8_10'
b'c1970aa3f569 (tag: resf_kernel-4.18.0-553.27.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.27.1.el8_10'
b'8bf75aa29fd0 (tag: resf_kernel-4.18.0-553.22.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.22.1.el8_10'
b'ea7f8a5da93b (tag: resf_kernel-4.18.0-553.16.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.16.1.el8_10'
b'2fd9e62e45de (tag: resf_kernel-4.18.0-553.8.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.8.1.el8_10'
b'a2d1b1a06ff8 (tag: resf_kernel-4.18.0-553.5.1.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.5.1.el8_10'
b'4533b19a3a3e (tag: resf_kernel-4.18.0-553.el8_10) Rebuild rocky8_10 with kernel-4.18.0-553.el8_10'
[rolling release update] New Base Branch Tags:  [b'9adc78b934b8', b'38f3196a8fe9', b'259a119c67fe', b'06a1b8b22bc2', b'98b6d02b3b85', b'4216b549e41e', b'4e0e0ed3bcbc', b'3bb436b64f59', b'e252413ceae1', b'5c89e3d2c056', b'2e416d167715', b'1ad2baf0efe1', b'6f9106f46020', b'32f87806bbd4', b'e99974a02d4f', b'bda8b8ebc7b7', b'32fa0f457b22', b'01aef32f4a9b', b'e622eefa811c', b'f025379c5d08', b'16dc63866351', b'5b691f92af91', b'0dbf87712115', b'26d9a06a4a5f', b'4673f9b8360d', b'7e4fb1a14fcd', b'72ceaa9ab31e', b'0570eb3e10e4', b'657b4d21132b', b'c1970aa3f569', b'8bf75aa29fd0', b'ea7f8a5da93b', b'2fd9e62e45de', b'a2d1b1a06ff8', b'4533b19a3a3e']
[rolling release update] Latest RESF tag sha:  b'259a119c67fe'
"259a119c67fedc1cb8edb7d5ebc7c38897edf536 Rebuild rocky8_10 with kernel-4.18.0-553.74.1.el8_10"
[rolling release update] Checking out old rolling branch:  sig-cloud-8/4.18.0-553.74.1.el8_10
[rolling release update] Finding the CIQ Kernel and Associated Upstream commits between the last resf tag and HEAD
[rolling release update] Last RESF tag sha:  b'259a119c67fe'
[rolling release update] Total Commit in old branch:  10
{ "CIQ COMMMIT" : "UPSTREAM COMMMIT" }
{
  "75e099eb830f2919ab79c6fdc239c387064e11e9": "9e517a8e9d9a303bf9bde35e5c5374795544c152",
  "abf309984115e21fd6791a259ffd697442f294bd": "4a3b99bc04e501b816db78f70064e26a01257910",
  "cf12cdede248142b6b2a335ff2539858c74e934a": "e02497fb654689049ba8b46f098f17d5f19e0b3c",
  "8d69ae898456ccf02338ea2863f1d4ffda1a3775": "382d1741b5b2feffef7942dd074206372afe1a96",
  "a504188187912e096199a25a8711c1a9c639d561": "40a1d11fc670ac03c5dc2e5a9724b330e74f38b0",
  "0aa6f8d33a7118cca8e14256cf3cd60348708e47": "2a38e4ca302280fdcce370ba2bee79bac16c4587",
  "3a4b7fc1c0a33d05dc577ed1c71b05403595baa8": "95bfb35269b2e85cff0dd2c957b2d42ebf95ae5f",
  "3f62d991cbf4b0a6af63e17be97ed8b2d2ab693e": "9a458198eba98b7207669a166e64d04b04cb651b",
  "b3a2852ed516217694a50a0f21cd65733c5891f3": "3e32552652917f10c0aa8ac75cdc8f0b8d257dec",
  "4106b5d0f5921ad8a29ceb8c8839a9b5d0287002": "fbf6449f84bf5e4ad09f2c09ee70ed7d629b5ff6"
}
[rolling release update] Checking out new base branch:  rocky8_10
[rolling release update] Finding the kernel version for the new rolling release
b'9adc78b934b8 (HEAD -> rocky8_10, tag: resf_kernel-4.18.0-553.77.1.el8_10, origin/rocky8_10_rebuild, origin/rocky8_10) Rebuild rocky8_10 with kernel-4.18.0-553.77.1.el8_10'
<re.Match object; span=(0, 72), match=b'9adc78b934b8 (HEAD -> rocky8_10, tag: resf_kerne>
[rolling release update} New Branch to create  sig-cloud-8/4.18.0-553.77.1.el8_10
[rolling release update] Check if branch Exists:  sig-cloud-8/4.18.0-553.77.1.el8_10
Branch sig-cloud-8/4.18.0-553.77.1.el8_10 does not exists creating
[rolling release update] Creating new branch for PR:  shreeya_sig-cloud-8/4.18.0-553.77.1.el8_10
[rolling release update] Creating Map of all new commits from last rolling release fork
[rolling release update] Total Commit in new branch:  30
{ "CIQ COMMMIT" : "UPSTREAM COMMMIT" }
Printing first 5 and last 5 commits
{
  "9adc78b934b8ab9d746fc90a4fddb972444ea97e": "",
  "cb0160dff8d759bd38410d2f6f2292dacc123246": "6ccbda44e2cc3d26fd22af54c650d6d5d801addf",
  "2afe456c7898dce79e8660559f4b47030777a261": "3df275ef0a6ae181e8428a6589ef5d5231e58b5c",
  "a32b08c90b0f6ae463c2b4c4a800bdf18bae0950": "0bdc924bfb319fb10d1113cbf091fc26fb7b1f99",
  "f783f9f7e3b30cfa72bdfab95984bd3a38ede6e0": "fd60d8a086191fe33c2d719732d2482052fa6805"
}
{
  "bad4807590d01f5b0675998382d1cd58b6ad403b": "6773da870ab89123d1b513da63ed59e32a29cb77",
  "b65cde462edb5ac57a7964c9e40473d35791212d": "35dc55b9e80cb9ec4bcb969302000b002b2ed850",
  "c00c6dacbbfc12e561fd1dcb99456a8282332cb4": "43ffe6caccc7a1bb9d7442fbab521efbf6c1378c",
  "03a28e16fa831a83d4d0997bb5a4da294b24e4ba": "d8b228318935044dafe3a5bc07ee71a1f1424b8d",
  "a606c5f20b9bd787665033fb1d68e3fd4157497c": "3dc8a1f6f64481a8a5a669633e880f26dae0d752"
}
[rolling release update] Checking if any of the commits from the old rolling release are already present in the new base branch
[rolling release update] Removing commits from the new branch
[rolling release update] Applying the remaining commits to the new branch
Applying commit  "4106b5d0f5921ad8a29ceb8c8839a9b5d0287002 x86/sev-es: Set x86_virt_bits to the correct value straight away, instead of a two-phase approach"
Applying commit  "b3a2852ed516217694a50a0f21cd65733c5891f3 x86/boot: Move x86_cache_alignment initialization to correct spot"
Applying commit  "3f62d991cbf4b0a6af63e17be97ed8b2d2ab693e x86/cpu: Allow reducing x86_phys_bits during early_identify_cpu()"
Applying commit  "3a4b7fc1c0a33d05dc577ed1c71b05403595baa8 x86/cpu: Get rid of an unnecessary local variable in get_cpu_address_sizes()"
Applying commit  "0aa6f8d33a7118cca8e14256cf3cd60348708e47 x86/cpu: Provide default cache line size if not enumerated"
Applying commit  "a504188187912e096199a25a8711c1a9c639d561 net: mana: Enable MANA driver on ARM64 with 4K page size"
Applying commit  "8d69ae898456ccf02338ea2863f1d4ffda1a3775 net: mana: Add support for page sizes other than 4KB on ARM64"
Applying commit  "cf12cdede248142b6b2a335ff2539858c74e934a RDMA/mana_ib: Fix bug in creation of dma regions"
Applying commit  "abf309984115e21fd6791a259ffd697442f294bd RDMA/mana_ib: use the correct page size for mapping user-mode doorbell page"
Applying commit  "75e099eb830f2919ab79c6fdc239c387064e11e9 RDMA/mana_ib: use the correct page table index based on hardware page size"

Build

Skipping make mrproper
[TIMER]{MRPROPER}: 0s
x86_64 architecture detected, copying config
'configs/kernel-x86_64.config' -> '.config'
Setting Local Version for build
CONFIG_LOCALVERSION="-shreeya_sig-cloud-8_4.18.0-553.77.1.el8_10-9adc78b934"
Making olddefconfig
scripts/kconfig/conf  --olddefconfig Kconfig
#
# configuration written to .config
#
Starting Build
scripts/kconfig/conf  --syncconfig Kconfig
  UPD     include/generated/uapi/linux/version.h
  DESCEND objtool
  DESCEND bpf/resolve_btfids
  UPD     include/config/kernel.release
  UPD     include/generated/utsrelease.h
  CC      arch/x86/kernel/asm-offsets.s
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  CALL    scripts/checksyscalls.sh
  CC      arch/x86/ia32/sys_ia32.o
  CC      arch/x86/coco/tdx/tdx.o
  CC      arch/x86/net/bpf_jit_comp.o
  CC      arch/x86/events/core.o
  CC      arch/x86/entry/syscall_64.o
  CC      arch/x86/hyperv/hv_init.o
  CC      init/main.o
  CC      arch/x86/mm/init.o
  CC      arch/x86/crypto/glue_helper.o
--
  INSTALL sound/synth/emux/snd-emux-synth.ko
  INSTALL sound/synth/snd-util-mem.ko
  INSTALL sound/usb/6fire/snd-usb-6fire.ko
  INSTALL sound/usb/bcd2000/snd-bcd2000.ko
  INSTALL sound/usb/caiaq/snd-usb-caiaq.ko
  INSTALL sound/usb/hiface/snd-usb-hiface.ko
  INSTALL sound/usb/line6/snd-usb-line6.ko
  INSTALL sound/usb/line6/snd-usb-pod.ko
  INSTALL sound/usb/line6/snd-usb-podhd.ko
  INSTALL sound/usb/line6/snd-usb-toneport.ko
  INSTALL sound/usb/line6/snd-usb-variax.ko
  INSTALL sound/usb/misc/snd-ua101.ko
  INSTALL sound/usb/snd-usb-audio.ko
  INSTALL sound/usb/snd-usbmidi-lib.ko
  INSTALL sound/usb/usx2y/snd-usb-usx2y.ko
  INSTALL sound/usb/usx2y/snd-usb-us122l.ko
  INSTALL sound/virtio/virtio_snd.ko
  INSTALL sound/x86/snd-hdmi-lpe-audio.ko
  INSTALL sound/xen/snd_xen_front.ko
  INSTALL virt/lib/irqbypass.ko
  DEPMOD  4.18.0-shreeya_sig-cloud-8_4.18.0-553.77.1.el8_10-9adc78b934
[TIMER]{MODULES}: 9s
Making Install
sh ./arch/x86/boot/install.sh 4.18.0-shreeya_sig-cloud-8_4.18.0-553.77.1.el8_10-9adc78b934 arch/x86/boot/bzImage \
	System.map "/boot"
[TIMER]{INSTALL}: 18s
Checking kABI
kABI check passed
Setting Default Kernel to /boot/vmlinuz-4.18.0-shreeya_sig-cloud-8_4.18.0-553.77.1.el8_10-9adc78b934 and Index to 0
The default is /boot/loader/entries/753870ec7b134d7582d817dd9bf35992-4.18.0-shreeya_sig-cloud-8_4.18.0-553.77.1.el8_10-9adc78b934.conf with index 0 and kernel /boot/vmlinuz-4.18.0-shreeya_sig-cloud-8_4.18.0-553.77.1.el8_10-9adc78b934
The default is /boot/loader/entries/753870ec7b134d7582d817dd9bf35992-4.18.0-shreeya_sig-cloud-8_4.18.0-553.77.1.el8_10-9adc78b934.conf with index 0 and kernel /boot/vmlinuz-4.18.0-shreeya_sig-cloud-8_4.18.0-553.77.1.el8_10-9adc78b934
Generating grub configuration file ...
done
Hopefully Grub2.0 took everything ... rebooting after time metrices

kernel-build copy.log

KeslfTests

shreeya@spatel-dev-bom ~/c/w/sig-cloud-8> grep -a ^ok kselftest-after.log | wc -l
217
shreeya@spatel-dev-bom ~/c/w/sig-cloud-8> grep -a ^ok kselftest-before.log | wc -l
217

kselftest-after.log

kselftest-before.log

ciq-sahlberg and others added 10 commits October 9, 2025 13:07
…tead of a two-phase approach

jira roc-2673
commit fbf6449

Instead of setting x86_virt_bits to a possibly-correct value and then
correcting it later, do all the necessary checks before setting it.

At this point, the #VC handler references boot_cpu_data.x86_virt_bits,
and in the previous version, it would be triggered by the CPUIDs between
the point at which it is set to 48 and when it is set to the correct
value.

    Suggested-by: Dave Hansen <[email protected]>
    Signed-off-by: Adam Dunlap <[email protected]>
    Signed-off-by: Ingo Molnar <[email protected]>
    Tested-by: Jacob Xu <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]

Signed-off-by: Ronnie Sahlberg <[email protected]>
Signed-off-by: Jonathan Maple <[email protected]>
Signed-off-by: Shreeya Patel <[email protected]>
jira roc-2673
commit 3e32552

c->x86_cache_alignment is initialized from c->x86_clflush_size.
However, commit fbf6449 moved c->x86_clflush_size initialization
to later in boot without moving the c->x86_cache_alignment assignment:

  fbf6449 ("x86/sev-es: Set x86_virt_bits to the correct value straight away, instead of a two-phase approach")

This presumably left c->x86_cache_alignment set to zero for longer
than it should be.

The result was an oops on 32-bit kernels while accessing a pointer
at 0x20.  The 0x20 came from accessing a structure member at offset
0x10 (buffer->cpumask) from a ZERO_SIZE_PTR=0x10.  kmalloc() can
evidently return ZERO_SIZE_PTR when it's given 0 as its alignment
requirement.

Move the c->x86_cache_alignment initialization to be after
c->x86_clflush_size has an actual value.

    Fixes: fbf6449 ("x86/sev-es: Set x86_virt_bits to the correct value straight away, instead of a two-phase approach")
    Signed-off-by: Dave Hansen <[email protected]>
    Signed-off-by: Ingo Molnar <[email protected]>
    Tested-by: Nathan Chancellor <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    (cherry picked from commit 3e32552)
Signed-off-by: Ronnie Sahlberg <[email protected]>

Signed-off-by: Jonathan Maple <[email protected]>
Signed-off-by: Shreeya Patel <[email protected]>
jira LE-2183
bug-fix x86/sev-es: Set x86_virt_bits
commit-author Paolo Bonzini <[email protected]>
commit 9a45819

In commit fbf6449 ("x86/sev-es: Set x86_virt_bits to the correct
value straight away, instead of a two-phase approach"), the initialization
of c->x86_phys_bits was moved after this_cpu->c_early_init(c).  This is
incorrect because early_init_amd() expected to be able to reduce the
value according to the contents of CPUID leaf 0x8000001f.

Fortunately, the bug was negated by init_amd()'s call to early_init_amd(),
which does reduce x86_phys_bits in the end.  However, this is very
late in the boot process and, most notably, the wrong value is used for
x86_phys_bits when setting up MTRRs.

To fix this, call get_cpu_address_sizes() as soon as X86_FEATURE_CPUID is
set/cleared, and c->extended_cpuid_level is retrieved.

Fixes: fbf6449 ("x86/sev-es: Set x86_virt_bits to the correct value straight away, instead of a two-phase approach")
	Signed-off-by: Paolo Bonzini <[email protected]>
	Signed-off-by: Dave Hansen <[email protected]>
	Cc:[email protected]
Link: https://lore.kernel.org/all/20240131230902.1867092-2-pbonzini%40redhat.com
(cherry picked from commit 9a45819)
	Signed-off-by: Jonathan Maple <[email protected]>
Signed-off-by: Jonathan Maple <[email protected]>
Signed-off-by: Shreeya Patel <[email protected]>
…sizes()

jira LE-2183
bug-fix-prereq x86/sev-es: Set x86_virt_bits
commit-author Borislav Petkov (AMD) <[email protected]>
commit 95bfb35

Drop 'vp_bits_from_cpuid' as it is not really needed.

No functional changes.

	Signed-off-by: Borislav Petkov (AMD) <[email protected]>
	Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
(cherry picked from commit 95bfb35)
	Signed-off-by: Jonathan Maple <[email protected]>
Signed-off-by: Jonathan Maple <[email protected]>
Signed-off-by: Shreeya Patel <[email protected]>
jira LE-2183
bug-fix x86/sev-es: Set x86_virt_bits
commit-author Dave Hansen <[email protected]>
commit 2a38e4c

tl;dr: CPUs with CPUID.80000008H but without CPUID.01H:EDX[CLFSH]
will end up reporting cache_line_size()==0 and bad things happen.
Fill in a default on those to avoid the problem.

Long Story:

The kernel dies a horrible death if c->x86_cache_alignment (aka.
cache_line_size() is 0.  Normally, this value is populated from
c->x86_clflush_size.

Right now the code is set up to get c->x86_clflush_size from two
places.  First, modern CPUs get it from CPUID.  Old CPUs that don't
have leaf 0x80000008 (or CPUID at all) just get some sane defaults
from the kernel in get_cpu_address_sizes().

The vast majority of CPUs that have leaf 0x80000008 also get
->x86_clflush_size from CPUID.  But there are oddballs.

Intel Quark CPUs[1] and others[2] have leaf 0x80000008 but don't set
CPUID.01H:EDX[CLFSH], so they skip over filling in ->x86_clflush_size:

	cpuid(0x00000001, &tfms, &misc, &junk, &cap0);
	if (cap0 & (1<<19))
		c->x86_clflush_size = ((misc >> 8) & 0xff) * 8;

So they: land in get_cpu_address_sizes() and see that CPUID has level
0x80000008 and jump into the side of the if() that does not fill in
c->x86_clflush_size.  That assigns a 0 to c->x86_cache_alignment, and
hilarity ensues in code like:

        buffer = kzalloc(ALIGN(sizeof(*buffer), cache_line_size()),
                         GFP_KERNEL);

To fix this, always provide a sane value for ->x86_clflush_size.

Big thanks to Andy Shevchenko for finding and reporting this and also
providing a first pass at a fix. But his fix was only partial and only
worked on the Quark CPUs.  It would not, for instance, have worked on
the QEMU config.

1. https://raw.githubusercontent.com/InstLatx64/InstLatx64/master/GenuineIntel/GenuineIntel0000590_Clanton_03_CPUID.txt
2. You can also get this behavior if you use "-cpu 486,+clzero"
   in QEMU.

[ dhansen: remove 'vp_bits_from_cpuid' reference in changelog
	   because bpetkov brutally murdered it recently. ]

Fixes: fbf6449 ("x86/sev-es: Set x86_virt_bits to the correct value straight away, instead of a two-phase approach")
	Reported-by: Andy Shevchenko <[email protected]>
	Signed-off-by: Dave Hansen <[email protected]>
	Tested-by: Andy Shevchenko <[email protected]>
	Tested-by: Jörn Heusipp <[email protected]>
	Cc: [email protected]
Link: https://lore.kernel.org/all/[email protected]/
Link: https://lore.kernel.org/lkml/[email protected]/
Link: https://lore.kernel.org/all/20240517200534.8EC5F33E%40davehans-spike.ostc.intel.com
(cherry picked from commit 2a38e4c)
	Signed-off-by: Jonathan Maple <[email protected]>
Signed-off-by: Jonathan Maple <[email protected]>
Signed-off-by: Shreeya Patel <[email protected]>
jira LE-3812
commit-author Haiyang Zhang <[email protected]>
commit 40a1d11

Change the Kconfig dependency, so this driver can be built and run on ARM64
with 4K page size.
16/64K page sizes are not supported yet.

	Signed-off-by: Haiyang Zhang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
	Signed-off-by: Jakub Kicinski <[email protected]>
(cherry picked from commit 40a1d11)
	Signed-off-by: Shreeya Patel <[email protected]>
Signed-off-by: Jonathan Maple <[email protected]>
Signed-off-by: Shreeya Patel <[email protected]>
jira LE-3812
commit-author Haiyang Zhang <[email protected]>
commit 382d174

As defined by the MANA Hardware spec, the queue size for DMA is 4KB
minimal, and power of 2. And, the HWC queue size has to be exactly
4KB.

To support page sizes other than 4KB on ARM64, define the minimal
queue size as a macro separately from the PAGE_SIZE, which we always
assumed it to be 4KB before supporting ARM64.

Also, add MANA specific macros and update code related to size
alignment, DMA region calculations, etc.

	Signed-off-by: Haiyang Zhang <[email protected]>
	Reviewed-by: Michael Kelley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
	Signed-off-by: Jakub Kicinski <[email protected]>
(cherry picked from commit 382d174)
	Signed-off-by: Shreeya Patel <[email protected]>
Signed-off-by: Jonathan Maple <[email protected]>
Signed-off-by: Shreeya Patel <[email protected]>
jira LE-3812
commit-author Konstantin Taranov <[email protected]>
commit e02497f

Use ib_umem_dma_offset() helper to calculate correct dma offset.

Fixes: 0266a17 ("RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter")
	Signed-off-by: Konstantin Taranov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
	Signed-off-by: Leon Romanovsky <[email protected]>
(cherry picked from commit e02497f)
	Signed-off-by: Shreeya Patel <[email protected]>
Signed-off-by: Jonathan Maple <[email protected]>
Signed-off-by: Shreeya Patel <[email protected]>
…l page

jira LE-3812
commit-author Long Li <[email protected]>
commit 4a3b99b

When mapping doorbell page from user-mode, the driver should use the system
page size as this memory is allocated via mmap() from user-mode.

	Cc: [email protected]
Fixes: 0266a17 ("RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter")
	Signed-off-by: Long Li <[email protected]>
Link: https://patch.msgid.link/[email protected]
	Signed-off-by: Leon Romanovsky <[email protected]>
(cherry picked from commit 4a3b99b)
	Signed-off-by: Shreeya Patel <[email protected]>
Signed-off-by: Jonathan Maple <[email protected]>
Signed-off-by: Shreeya Patel <[email protected]>
… size

jira LE-3812
commit-author Long Li <[email protected]>
commit 9e517a8

MANA hardware uses 4k page size. When calculating the page table index,
it should use the hardware page size, not the system page size.

	Cc: [email protected]
Fixes: 0266a17 ("RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter")
	Signed-off-by: Long Li <[email protected]>
Link: https://patch.msgid.link/[email protected]
	Signed-off-by: Leon Romanovsky <[email protected]>
(cherry picked from commit 9e517a8)
	Signed-off-by: Shreeya Patel <[email protected]>
Signed-off-by: Jonathan Maple <[email protected]>
Signed-off-by: Shreeya Patel <[email protected]>
@shreeya-patel98 shreeya-patel98 requested a review from a team October 9, 2025 14:23
@shreeya-patel98 shreeya-patel98 changed the title [SIG-CLOUD-9] rebase custom changes to kernel kernel-4.18.0-553.77.1.el8_10 [SIG-CLOUD-8] rebase custom changes to kernel kernel-4.18.0-553.77.1.el8_10 Oct 9, 2025
Copy link
Collaborator

@bmastbergen bmastbergen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥌

Copy link
Collaborator

@PlaidCat PlaidCat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@shreeya-patel98 shreeya-patel98 changed the title [SIG-CLOUD-8] rebase custom changes to kernel kernel-4.18.0-553.77.1.el8_10 [SIG-CLOUD-8] rebase custom changes to kernel-4.18.0-553.77.1.el8_10 Oct 9, 2025
@shreeya-patel98 shreeya-patel98 merged commit 3c4edb8 into sig-cloud-8/4.18.0-553.77.1.el8_10 Oct 9, 2025
2 of 3 checks passed
@shreeya-patel98 shreeya-patel98 deleted the shreeya_sig-cloud-8/4.18.0-553.77.1.el8_10 branch October 9, 2025 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants