From: Greg Kroah-Hartman Date: Fri, 9 Jan 2026 10:53:51 +0000 (+0100) Subject: 5.10-stable patches X-Git-Tag: v6.1.160~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b8ba516b8db7c7ffe7c06429a4734ee911ea8fe;p=thirdparty%2Fkernel%2Fstable-queue.git 5.10-stable patches added patches: revert-iommu-amd-skip-enabling-command-event-buffers-for-kdump.patch --- diff --git a/queue-5.10/revert-iommu-amd-skip-enabling-command-event-buffers-for-kdump.patch b/queue-5.10/revert-iommu-amd-skip-enabling-command-event-buffers-for-kdump.patch new file mode 100644 index 0000000000..2300382c78 --- /dev/null +++ b/queue-5.10/revert-iommu-amd-skip-enabling-command-event-buffers-for-kdump.patch @@ -0,0 +1,68 @@ +From 5ecef76682ef506bae706f8122f056fe723d9c7c Mon Sep 17 00:00:00 2001 +From: Greg Kroah-Hartman +Date: Fri, 9 Jan 2026 11:48:34 +0100 +Subject: Revert "iommu/amd: Skip enabling command/event buffers for kdump" + +From: Greg Kroah-Hartman + +This reverts commit 30e91eeb0bc9b3daf402b26176d1d52c29ab53e4 which is +commit 9be15fbfc6c5c89c22cf6e209f66ea43ee0e58bb upstream. + +This causes problems in older kernel trees as SNP host kdump is not +supported in them, so drop it from the stable branches. + +Reported-by: Ashish Kalra +Link: https://lore.kernel.org/r/dacdff7f-0606-4ed5-b056-2de564404d51@amd.com +Cc: Vasant Hegde +Cc: Sairaj Kodilkar +Cc: Joerg Roedel +Cc: Sasha Levin +Signed-off-by: Greg Kroah-Hartman +--- + drivers/iommu/amd/init.c | 28 +++++++++------------------- + 1 file changed, 9 insertions(+), 19 deletions(-) + +--- a/drivers/iommu/amd/init.c ++++ b/drivers/iommu/amd/init.c +@@ -697,16 +697,11 @@ static void iommu_enable_command_buffer( + + BUG_ON(iommu->cmd_buf == NULL); + +- if (!is_kdump_kernel()) { +- /* +- * Command buffer is re-used for kdump kernel and setting +- * of MMIO register is not required. +- */ +- entry = iommu_virt_to_phys(iommu->cmd_buf); +- entry |= MMIO_CMD_SIZE_512; +- memcpy_toio(iommu->mmio_base + MMIO_CMD_BUF_OFFSET, +- &entry, sizeof(entry)); +- } ++ entry = iommu_virt_to_phys(iommu->cmd_buf); ++ entry |= MMIO_CMD_SIZE_512; ++ ++ memcpy_toio(iommu->mmio_base + MMIO_CMD_BUF_OFFSET, ++ &entry, sizeof(entry)); + + amd_iommu_reset_cmd_buffer(iommu); + } +@@ -755,15 +750,10 @@ static void iommu_enable_event_buffer(st + + BUG_ON(iommu->evt_buf == NULL); + +- if (!is_kdump_kernel()) { +- /* +- * Event buffer is re-used for kdump kernel and setting +- * of MMIO register is not required. +- */ +- entry = iommu_virt_to_phys(iommu->evt_buf) | EVT_LEN_MASK; +- memcpy_toio(iommu->mmio_base + MMIO_EVT_BUF_OFFSET, +- &entry, sizeof(entry)); +- } ++ entry = iommu_virt_to_phys(iommu->evt_buf) | EVT_LEN_MASK; ++ ++ memcpy_toio(iommu->mmio_base + MMIO_EVT_BUF_OFFSET, ++ &entry, sizeof(entry)); + + /* set head and tail to zero manually */ + writel(0x00, iommu->mmio_base + MMIO_EVT_HEAD_OFFSET); diff --git a/queue-5.10/series b/queue-5.10/series index 3fbdd56997..c9060092f6 100644 --- a/queue-5.10/series +++ b/queue-5.10/series @@ -406,3 +406,4 @@ leds-lp50xx-get-rid-of-redundant-check-in-lp50xx_enable_disable.patch leds-lp50xx-remove-duplicated-error-reporting-in-.remove.patch leds-leds-lp50xx-enable-chip-before-any-communication.patch pwm-stm32-always-program-polarity.patch +revert-iommu-amd-skip-enabling-command-event-buffers-for-kdump.patch