Re: [REGRESSION] PCI BAR allocation/D3cold failure: NVIDIA MX250 inaccessible since Kernel 6.x on Acer Swift 3 (SF314-56G)
Matthias Dittrich <[email protected]>
| Newsgroups | dev.linux.lists.regressions,org.kernel.vger.linux-pci |
|---|---|
| Message-ID | <[email protected]> |
Dear Bjorn,
I completed the bisect test between kernel 5.15 und 5.16 and found the
commit and now have reproducible revert-test results. I used the
bisect.sh (attached ) for automation. Testing criteria was status rev ff
(bad) or rev a1 (good). As it was the first indicator for me on Ubuntu.
I also used olddefconfig as I know this config worked before.
The identified commit (see final-bisect-log.txt) is:
# first bad commit: [a1224f34d72a103829d6953935d6c6621f135b83] ACPI: PM:
Check states of power resources during initialization
Additionally testing (see Abschlusstest.txt):
* Verification with Parent commit test: git checkout
a1224f34d72a103829d6953935d6c6621f135b83~1
o lspci reports `rev a1` and `nvidia-smi` works correctly
* Revert test on 5.16 with git revert --no-commit
a1224f34d72a103829d6953935d6c6621f135b83
o lspci reports `rev a1` and `nvidia-smi` works correctly
* Revert test on 6.1 with git revert --no-commit
a1224f34d72a103829d6953935d6c6621f135b83
o lspci reports `rev a1` and `nvidia-smi` works correctly
With kernels like 6.2 and newer "git revert" result in an error and
stops (transleted to english):
git revert --no-commit a1224f34d72a103829d6953935d6c6621f135b83
Auto-merging drivers/acpi/power.c CONFLICT (content): Merge conflict in
drivers/acpi/power.c error: could not revert a1224f34d72a... (ACPI: PM:
Check states of power resources during initialization) Hint: After
resolving the conflicts, mark the corrected paths with: Hint: 'git add
<paths>' or 'git rm <paths>'
All tests have been done with Ubuntu 22.04.
Let me know if I can test anything further.
Test summary Ubuntu:
Test Case
Kernel / Commit
Modification
PCI State
|Nvidia-smi/
NVIDIA Driver|
Result
Baseline good
Ubuntu 22.04
Linux 5.15
none
|rev a1|
works
GOOD
Baseline bad
Linux 5.16
none
|rev ff|
fails
BAD
Bisect parent
|a1224f34...~1|
none
|rev a1|
works
GOOD
First bad commit
|a1224f34...|
none
|rev ff|
fails
BAD
Revert verification
|a1224f34...|
reverted
|rev a1|
works
GOOD
Forward revert test
Linux 6.1
reverted
|rev a1|
works
GOOD
Ubuntu 22.04 (standard)
Linux 6.8
none
|rev ff|
fails
BAD
Modern revert attempt
Linux 6.2
revert attempted
conflict in |drivers/acpi/power.c|
n/a
not testable
*Linux 5.15 is the standard in Ubuntu 20.04 but also available as
downgrade in Ubuntu 22.04
Test summary CachyOS:
Test Case
Kernel / Commit
Modification
PCI State
|Nvidia-smi/
NVIDIA Driver|
Result
Standard
Linux 7.0.2
none
|rev a1|
fails
BAD
LTS
Linux 6.18
none
|rev a1|
fails
BAD
Start parameter
|Linux ||7.0.2|
start parameter
|-|
fails
BAD
git
|Linux ||5.15|
none
not testable system freeze
git
|Linux ||7.0.2|
revert attempted
not testable
Kind regards,
Matthias
Am 11.05.2026 um 11:34 schrieb Matthias Dittrich:
>
> Dear Bjorn,
>
> Thank you for the quick response. For transparency, I used the AI tool
> Gemini during the bug-fixing and testing process. I am not an IT
> specialist and therefore cannot fully verify all of the AI’s
> conclusions in my last mail.
>
> All kernels were tested manually by installing the OS and kernel. The
> recommended boot parameters were also tested manually. The logs sent
> previously and in this mail are raw terminal outputs generated from
> the commands listed in the "Skript" file.
>
>
> The dmesg and |lspci|output from the newest CachyOS kernel is
> attached. Additionally, the following commands were also run for the
> Ubuntu 5.15 kernel for comparison:
>
> dmesg
> sudo lspci -vv > lspci-vv-ubuntu2205-K515-good.txt
> sudo lspci -vvv > lspci-vvv-ubuntu2205-K515-good.txt
> sudo lspci -vvxxxx > lspci-vvxxxx-ubuntu2205-K515-good.txt
> sudo lspci -s 02:00.0 -vvxxxx > lspci_gpu_$(uname -r).txt
> sudo lspci -t > lspci_tree_$(uname -r).txt
>
>
> Gemini recommended performing a git bisect with optimized parameters
> to reduce compilation time.
>
> * Before starting the bisect tests, I tested different kernel
> revisions. The "git" kernel 5.15 (with localmodconfig) appears to
> work just like the newer Ubuntu 5.15 kernel, as the graphics card
> status is shown as |(rev a1)|. The earliest kernel revision where
> the status changes to |(rev ff)|starts with kernel 5.16 (tested
> with localmodconfig). However, the NVIDIA driver itself could not
> be tested.
> * The bisect between 5.15 and 5.16 result
> in| [342a67f0884293639bd17ea44df754ead799e669]|| NFS: Label the
> dentry with a verifier in nfs_link(), nfs_symlink()|, which seems
> incorrect, as the verification using |git checkout
> 342a67f0884293639bd17ea44df754ead799e669~1|also failed.
> * An automated bisect was attempted without localmodconfig, but
> there were technical issues and I have not yet been able to
> complete the testing.
>
> I also noticed that the |lspci|results differ between CachyOS and Ubuntu:
>
> 02:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX250] (rev a1)
>
> * |(rev a1)|— Ubuntu 22.04 Kernel 5.15 (works), CachyOS Kernel 6.1
> LTS and Kernel 7, but NVIDIA MX150 does not work
> * |(rev ff)|— Ubuntu 22.04 Kernel 5.16 and newer (localmodconfig)
> and Kernel 6.8 and NVIDIA MX150 does not work
>
> Kind regards,
> Matthias
>
>
>
> Am 01.05.2026 um 18:55 schrieb Bjorn Helgaas:
>> [+cc Ilpo]
>>
>> On Fri, May 01, 2026 at 10:13:41AM +0200, Matthias Dittrich wrote:
>>> Dear Kernel Developers,
>>>
>>> I found a regression and did my best to identify the issue and find a
>>> workaround, but I am not a developer. I also published the regression in the
>>> NVIDIA Linux Developer Forum, but it appears to be a kernel regression and
>>> not a driver issue, as the latest drivers work on older kernels (e.g., 5.15)
>>> but fail on anything 6.x+. I did not perform a git bisect as compiling on
>>> this i5-8265U - because of its low performance I can only compile one kernel
>>> over night.
>>>
>>> **Description:**
>>> The NVIDIA MX250 GPU on Acer Swift 3 (SF314-56G / BIOS 1.14) is inaccessible
>>> on any Linux distribution using Kernel 6.x or 7.x. The device fails to
>>> initialize during the driver probe routine.
>> Thanks for the report. With the newest kernel available to you, can
>> you please capture the complete dmesg and output of "sudo lspci -vv"?
>> Don't filter out things that don't seem relevant; we can easily do
>> that.
>>
>> Bjorn
bisect.sh
(text/plain, 7.9 KB)
#!/usr/bin/env bash
# Datei: automatation-bisect-chatgpt.sh
set -euo pipefail
set -x # optional: Debug (kannst du später auskommentieren)
: <<'KOMMENTAR'
Ubuntu → „Startprogramme“
nohup /home/lxuser/kernel-bisect/bisect.sh > /home/lxuser/kernel-bisect/bisect.log 2>&1 &
# Mein Skript
sudo visudo /etc/sudoers
lxuser ALL=(ALL) NOPASSWD: ALL
Das komplette Skript
mkdir /home/lxuser/kernel-bisect/
cp /home/lxuser/automation-bisect-chatgpt.sh /home/lxuser/kernel-bisect/bisect.sh
chmod +x /home/lxuser/kernel-bisect/bisect.sh
Einmalig installieren
sudo apt update
sudo apt install -y \
git build-essential bc bison flex \
libssl-dev libelf-dev dwarves \
libncurses-dev ccache fakeroot rsync
ccache --max-size=20G
#test mit
ccache -s
KOMMENTAR
: <<'KOMMENTAR'
# Hinweis Bisect muss einmal erfolgreich gstartet werden und dann manuell in den Testkernel booten.
# Alle Kernel aus vorherigem Test löschen.
sudo rm -v /boot/*5.15.0-build* /boot/*5.15.0-rc* /boot/*5.15.0+* /boot/vmlinuz-5.15.0 /boot/initrd.img-5.15.0 /boot/System.map-5.15.0 /boot/config-5.15.0
sudo rm -rf /lib/modules/5.15.0-build* /lib/modules/5.15.0-rc* /lib/modules/5.15.0+* /lib/modules/5.15.0
ls /boot/vmlinuz-6.8.0-111-generic /boot/vmlinuz-5.15.75-xanmod1 /boot/vmlinuz-5.15.0-177-generic
sudo update-grub
# Außerdem müssem alle Dateien einmal gelöscht werden
sudo rm -r /home/lxuser/kernel-bisect/
KOMMENTAR
if [[ "$(uname -r)" == "6.8.0-111-generic" ]]; then
echo
echo "================================================="
echo "MANUELLER ABBRUCHKERNEL ERKANNT"
echo "BISECT WIRD BEENDET"
echo "================================================="
echo
exit 0
fi
# =========================================================
# KONFIG
# =========================================================
WORKDIR="/home/lxuser/kernel-bisect"
LINUXDIR="$WORKDIR/linux"
GOOD_TAG="v5.15"
BAD_TAG="v5.16"
GOOD_KERNEL="5.15.0-177-generic"
JOBS=8
BUILDNR_FILE="$WORKDIR/buildnr.txt"
BISECT_VAR="$WORKDIR/bisect-variable.txt"
BISECT_LOG="$WORKDIR/bisect-info.txt"
mkdir -p "$WORKDIR"
# =========================================================
# MANUELLER STOP (optional Safety)
# =========================================================
if [[ "$(uname -r)" == "6.8.0-111-generic" ]]; then
echo "MANUELLER ABBRUCHKERNEL ERKANNT"
exit 0
fi
# =========================================================
# BUILD FUNKTION
# =========================================================
build_kernel() {
cd "$LINUXDIR"
# Safety: Buildnr sicherstellen
[[ -f "$BUILDNR_FILE" ]] || echo 1 > "$BUILDNR_FILE"
BUILDNR=$(cat "$BUILDNR_FILE")
echo "================================================="
echo "BUILD build$BUILDNR"
echo "================================================="
# -----------------------------------------------------
# BASE CONFIG (STABLE)
# -----------------------------------------------------
cp /boot/config-$GOOD_KERNEL .config
make olddefconfig
./scripts/config --set-str LOCALVERSION "-build-$BUILDNR"
# -----------------------------------------------------
# SAFE OPTIMIZATION (NO PCI/ACPI TOUCH)
# -----------------------------------------------------
./scripts/config --disable DEBUG_INFO
./scripts/config --disable DEBUG_INFO_BTF
./scripts/config --set-str SYSTEM_TRUSTED_KEYS ""
./scripts/config --set-str SYSTEM_REVOCATION_KEYS ""
# -----------------------------------------------------
# BUILD
# -----------------------------------------------------
make prepare
export KCFLAGS="-O2"
make -j"$JOBS" bzImage modules
# -----------------------------------------------------
# INSTALL
# -----------------------------------------------------
sudo make modules_install
sudo make install
KERNEL_RELEASE=$(make kernelrelease)
echo "Kernelrelease: $KERNEL_RELEASE"
sudo update-initramfs -c -k "$KERNEL_RELEASE"
sudo update-grub
sudo grub-reboot \
"Advanced options for Ubuntu>Ubuntu, with Linux $KERNEL_RELEASE"
echo "REBOOT -> $KERNEL_RELEASE"
sudo reboot
}
# =========================================================
# ERSTER START?
# =========================================================
if [[ ! -d "$LINUXDIR/.git" ]]; then
echo
echo "================================================="
echo "INITIALISIERE BISECT"
echo "================================================="
echo
cd "$WORKDIR"
# -----------------------------------------------------
# Kernelrepo effizient klonen
# -----------------------------------------------------
git clone \
--branch v5.16 \
--single-branch \
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git \
linux
cd "$LINUXDIR"
# -----------------------------------------------------
# Bisect initialisieren
# -----------------------------------------------------
git bisect start
git bisect bad "$BAD_TAG"
git bisect good "$GOOD_TAG"
# -----------------------------------------------------
# Buildnummer initialisieren
# -----------------------------------------------------
echo 1 > "$BUILDNR_FILE"
# -----------------------------------------------------
# Ersten Kernel bauen
# -----------------------------------------------------
build_kernel
exit 0
fi
# =========================================================
# CURRENT KERNEL CHECK
# =========================================================
CURRENT_KERNEL=$(uname -r)
echo "================================================="
echo "CURRENT: $CURRENT_KERNEL"
echo "================================================="
# =========================================================
# TESTKERNEL MODE
# =========================================================
if [[ "$CURRENT_KERNEL" != "$GOOD_KERNEL" ]]; then
echo "TESTKERNEL MODE"
{
echo "===================="
date
uname -r
lspci -k | grep -A 2 -E "(VGA|3D)"
} >> "$BISECT_LOG"
# -----------------------------------------------------
# PCI CHECK (ROBUST + FALLBACK)
# -----------------------------------------------------
if lspci -n -s 02:00.0 >/dev/null 2>&1; then
lspci -n -s 02:00.0 \
| grep -o "rev [a-f0-9]\{2\}" \
> "$BISECT_VAR" || true
else
echo "rev ff" > "$BISECT_VAR"
fi
cat "$BISECT_VAR"
# -----------------------------------------------------
# BACK TO STABLE KERNEL
# -----------------------------------------------------
sudo grub-reboot \
"Advanced options for Ubuntu>Ubuntu, with Linux $GOOD_KERNEL"
sudo reboot
exit 0
fi
# =========================================================
# HOST MODE (BISECT CONTROL)
# =========================================================
echo "HOST MODE"
cd "$LINUXDIR"
[[ -f "$BISECT_VAR" ]] || {
echo "BISECT VARIABLE FEHLT"
exit 1
}
RESULT=$(cat "$BISECT_VAR")
echo "RESULT: $RESULT"
# ---------------------------------------------------------
# GOOD / BAD CLASSIFICATION
# ---------------------------------------------------------
if grep -q "rev a1" "$BISECT_VAR"; then
echo "==> GOOD"
git bisect good
elif grep -q "rev ff" "$BISECT_VAR"; then
echo "==> BAD"
git bisect bad
else
echo "UNKNOWN"
cat "$BISECT_VAR"
exit 1
fi
# ---------------------------------------------------------
# END CHECK
# ---------------------------------------------------------
if git bisect log | tail -n 1 | grep -q "first bad commit"; then
echo "BISECT COMPLETE"
git bisect log > "$WORKDIR/final-bisect-log.txt"
git bisect reset
exit 0
fi
# ---------------------------------------------------------
# NEXT BUILD NUMBER
# ---------------------------------------------------------
BUILDNR=$(cat "$BUILDNR_FILE")
BUILDNR=$((BUILDNR + 1))
echo "$BUILDNR" > "$BUILDNR_FILE"
build_kernel
final-bisect-log.txt
(text/plain, 2.9 KB)
git bisect start # bad: [df0cc57e057f18e44dac8e6c18aba47ab53202f9] Linux 5.16 git bisect bad df0cc57e057f18e44dac8e6c18aba47ab53202f9 # good: [8bb7eca972ad531c9b149c0a51ab43a417385813] Linux 5.15 git bisect good 8bb7eca972ad531c9b149c0a51ab43a417385813 # bad: [2219b0ceefe835b92a8a74a73fe964aa052742a2] Merge tag 'soc-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc git bisect bad 2219b0ceefe835b92a8a74a73fe964aa052742a2 # good: [fc02cb2b37fe2cbf1d3334b9f0f0eab9431766c4] Merge tag 'net-next-for-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next git bisect good fc02cb2b37fe2cbf1d3334b9f0f0eab9431766c4 # good: [d9bd054177fbd2c4762546aec40fc3071bfe4cc0] Merge tag 'amd-drm-next-5.16-2021-10-29' of https://gitlab.freedesktop.org/agd5f/linux into drm-next git bisect good d9bd054177fbd2c4762546aec40fc3071bfe4cc0 # bad: [dcd68326d29b62f3039e4f4d23d3e38f24d37360] Merge tag 'devicetree-for-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux git bisect bad dcd68326d29b62f3039e4f4d23d3e38f24d37360 # good: [bba7d682277c09373b56b0461b0abbd0b3d1e872] Merge tag 'xfs-5.16-merge-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux git bisect good bba7d682277c09373b56b0461b0abbd0b3d1e872 # bad: [6ab1d4839a486727fdd412bd8bab27417388d381] Merge tag 'platform-drivers-x86-v5.16-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86 git bisect bad 6ab1d4839a486727fdd412bd8bab27417388d381 # bad: [833db72142b93a89211c1e43ca0a1e2e16457756] Merge tag 'pm-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm git bisect bad 833db72142b93a89211c1e43ca0a1e2e16457756 # good: [bf56b90797c4a03c94b702c50e62296edea9fad9] Merge branches 'pm-em' and 'powercap' git bisect good bf56b90797c4a03c94b702c50e62296edea9fad9 # bad: [f8df16016d2d83d496f1ffa42f8d86ed7cd8db47] Merge branches 'acpi-pm', 'acpi-battery' and 'acpi-ac' git bisect bad f8df16016d2d83d496f1ffa42f8d86ed7cd8db47 # good: [b2ffa16a1c837e50a29d43fe93091492693648fe] Merge branches 'acpi-x86', 'acpi-resources', 'acpi-scan' and 'acpi-misc' git bisect good b2ffa16a1c837e50a29d43fe93091492693648fe # good: [c3fb46600e3f17ee24c8d86482fab510fd5f8771] Merge branches 'acpi-glue', 'acpi-pnp', 'acpi-processor' and 'acpi-soc' git bisect good c3fb46600e3f17ee24c8d86482fab510fd5f8771 # bad: [a9a8f827f9e81dc8506d3283d166cd6efe822302] ACPI: PM: Turn off wakeup power resources on _DSW/_PSW errors git bisect bad a9a8f827f9e81dc8506d3283d166cd6efe822302 # bad: [7a63296d6f579a02b2675b4b0fe5b1cd3235e8d3] ACPI: PM: Turn off unused wakeup power resources git bisect bad 7a63296d6f579a02b2675b4b0fe5b1cd3235e8d3 # bad: [a1224f34d72a103829d6953935d6c6621f135b83] ACPI: PM: Check states of power resources during initialization git bisect bad a1224f34d72a103829d6953935d6c6621f135b83 # first bad commit: [a1224f34d72a103829d6953935d6c6621f135b83] ACPI: PM: Check states of power resources during initialization
Abschlusstest.txt
(text/plain, 5.6 KB)
#!/usr/bin/env bash
# Gegentest - Abschkusstest
# set -euo pipefail
set -x # optional: Debug (kannst du später auskommentieren)
: <<'KOMMENTAR'
# ---- Test 1 good zustand vor dem ersten bad comment----
git checkout a1224f34d72a103829d6953935d6c6621f135b83~1
cp /boot/config-5.15.0-177-generic .config
make olddefconfig
./scripts/config --set-str LOCALVERSION "-Abschlusstest"
./scripts/config --disable DEBUG_INFO
./scripts/config --disable DEBUG_INFO_BTF
./scripts/config --set-str SYSTEM_TRUSTED_KEYS ""
./scripts/config --set-str SYSTEM_REVOCATION_KEYS ""
make prepare
# Wichtig für Nvidia Treiber
make modules_prepare
export KCFLAGS="-O2"
make -j8 bzImage modules
sudo make modules_install
sudo make install
KERNEL_RELEASE=$(make kernelrelease)
echo "Kernelrelease: $KERNEL_RELEASE"
sudo update-initramfs -c -k "$KERNEL_RELEASE"
sudo update-grub
# reboot
# lspci -k | grep -A 2 -E "(VGA|3D)"
# sudo dkms autoinstall -k $(uname -r)
# sudo dkms install -m nvidia -v 580.142 -k $(uname -r)
# sudo update-initramfs -u -k $(uname -r)
# reboot und test
# nvidia-smi
# --OK rev a1 ok und nvidia smi ok
# ---- Revert-Test auf 5.16 Kontext ----
git checkout a1224f34d72a103829d6953935d6c6621f135b83
git revert --no-commit a1224f34d72a103829d6953935d6c6621f135b83
cp /boot/config-5.15.0-177-generic .config
make olddefconfig
./scripts/config --set-str LOCALVERSION "-Revert-Test"
./scripts/config --disable DEBUG_INFO
./scripts/config --disable DEBUG_INFO_BTF
./scripts/config --set-str SYSTEM_TRUSTED_KEYS ""
./scripts/config --set-str SYSTEM_REVOCATION_KEYS ""
make prepare
make modules_prepare
export KCFLAGS="-O2"
make -j$(nproc) bzImage modules
sudo make modules_install
sudo make install
KERNEL_RELEASE=$(make kernelrelease)
echo "Kernelrelease: $KERNEL_RELEASE"
sudo update-initramfs -c -k "$KERNEL_RELEASE"
sudo update-grub
# --OK rev a1 ok und nvidia smi ok
# test muss wiederholt werden
# driver broken
#dkms status
#ls -l /lib/modules/$(uname -r)/build
#ls -lh /home/lxuser/kernel-bisect/linux/Module.symvers
#find /var/lib/dkms/nvidia -maxdepth 3 -type d
#sudo dkms remove nvidia/580.142 --all
#sudo rm -rf /var/lib/dkms/nvidia
#sudo find /lib/modules -iname "nvidia*.ko*" -delete
#sudo depmod -a
#sudo modprobe nvidia
#sudo dkms install --force -m nvidia -v 580.142 -k $(uname -r)
#find /lib/modules/$(uname -r) -iname "nvidia*.ko*"
#sudo depmod -a
#sudo modprobe nvidia
# sudo update-initramfs -u -k $(uname -r)
# --- test ok --- nvidia work
KOMMENTAR
# =========================================================
# 6.1 REVERT TEST (modern baseline + current config)
# =========================================================
WORKDIR=$(pwd)
#echo "==> Clean tree"
#git reset --hard
#git clean -fdx
echo "==> Checkout Linux 6.1"
git checkout v6.1
echo "==> Apply ACPI regression revert test"
git revert --no-commit a1224f34d72a103829d6953935d6c6621f135b83 || {
echo "REVERT FAILED (conflict)"
git revert --abort
exit 1
}
echo "==> Use CURRENT running kernel config"
cp /boot/config-$(uname -r) .config
make olddefconfig
echo "==> Local version tag"
./scripts/config --set-str LOCALVERSION "-6.1-Revert-Test"
echo "==> Disable debug overhead"
./scripts/config --disable DEBUG_INFO
./scripts/config --disable DEBUG_INFO_BTF
./scripts/config --set-str SYSTEM_TRUSTED_KEYS ""
./scripts/config --set-str SYSTEM_REVOCATION_KEYS ""
echo "==> Prepare build"
make prepare
make modules_prepare
export KCFLAGS="-O2"
echo "==> Build kernel"
make -j"$(nproc)" bzImage modules
echo "==> Install kernel"
sudo make modules_install
sudo make install
KERNEL_RELEASE=$(make kernelrelease)
echo "Kernelrelease: $KERNEL_RELEASE"
echo "==> Initramfs + GRUB"
sudo update-initramfs -c -k "$KERNEL_RELEASE"
sudo update-grub
echo "==> DONE - reboot required"
#good rev a1 + nvidia work after remove and install again like Revert-Test auf 5.16
: <<'KOMMENTAR'
# =========================================================
# 7.0 REVERT TEST (modern baseline + current config)
# =========================================================
WORKDIR=$(pwd)
#echo "==> Clean tree"
#git reset --hard
#git clean -fdx
echo "==> Checkout Linux 7"
git checkout v7
echo "==> Apply ACPI regression revert test"
git revert --no-commit a1224f34d72a103829d6953935d6c6621f135b83 || {
echo "REVERT FAILED (conflict)"
git revert --abort
exit 1
}
echo "==> Use CURRENT running kernel config"
cp /boot/config-$(uname -r) .config
make olddefconfig
echo "==> Local version tag"
./scripts/config --set-str LOCALVERSION "-7-Revert-Test"
echo "==> Disable debug overhead"
./scripts/config --disable DEBUG_INFO
./scripts/config --disable DEBUG_INFO_BTF
./scripts/config --set-str SYSTEM_TRUSTED_KEYS ""
./scripts/config --set-str SYSTEM_REVOCATION_KEYS ""
echo "==> Prepare build"
make prepare
make modules_prepare
export KCFLAGS="-O2"
echo "==> Build kernel"
make -j"$(nproc)" bzImage modules
echo "==> Install kernel"
sudo make modules_install
sudo make install
KERNEL_RELEASE=$(make kernelrelease)
echo "Kernelrelease: $KERNEL_RELEASE"
echo "==> Initramfs + GRUB"
sudo update-initramfs -c -k "$KERNEL_RELEASE"
sudo update-grub
echo "==> DONE - reboot required"
#git revert --no-commit a1224f34d72a103829d6953935d6c6621f135b83
automatischer Merge von drivers/acpi/power.c
KONFLIKT (Inhalt): Merge-Konflikt in drivers/acpi/power.c
error: Konnte "revert" nicht auf a1224f34d72a... (ACPI: PM: Check states of power resources during initialization) ausführen
Hinweis: nach Auflösung der Konflikte markieren Sie die korrigierten Pfade
Hinweis: mit 'git add <Pfade>' oder 'git rm <Pfade>'
KOMMENTAR