Skip to content

Commit 609a350

Browse files
committed
platform/x86/amd/pmf: Add debug logs for pending requests and custom BIOS inputs
JIRA: https://issues.redhat.com/browse/RHEL-73301 commit 2ab7713 Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> Date: Mon Sep 1 16:31:40 2025 +0530 platform/x86/amd/pmf: Add debug logs for pending requests and custom BIOS inputs This patch adds debug logging capabilities to monitor early pending requests and their associated custom BIOS inputs during runtime. Co-developed-by: Patil Rajesh Reddy <Patil.Reddy@amd.com> Signed-off-by: Patil Rajesh Reddy <Patil.Reddy@amd.com> Tested-by: Yijun Shen <Yijun.Shen@Dell.com> Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> Link: https://patch.msgid.link/20250901110140.2519072-10-Shyam-sundar.S-k@amd.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Steve Best <sbest@redhat.com>
1 parent b016296 commit 609a350

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

drivers/platform/x86/amd/pmf/acpi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ static void apmf_event_handler_v2(acpi_handle handle, u32 event, void *data)
353353
return;
354354
}
355355

356+
dev_dbg(pmf_dev->dev, "Pending request (preq): 0x%x\n", pmf_dev->req.pending_req);
357+
356358
amd_pmf_handle_early_preq(pmf_dev);
357359
}
358360

@@ -369,6 +371,8 @@ static void apmf_event_handler_v1(acpi_handle handle, u32 event, void *data)
369371
return;
370372
}
371373

374+
dev_dbg(pmf_dev->dev, "Pending request (preq1): 0x%x\n", pmf_dev->req1.pending_req);
375+
372376
amd_pmf_handle_early_preq(pmf_dev);
373377
}
374378

drivers/platform/x86/amd/pmf/spc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ static void amd_pmf_update_bios_inputs(struct amd_pmf_dev *pdev, u32 pending_req
143143
continue;
144144
amd_pmf_set_ta_custom_bios_input(in, i, custom_policy[i]);
145145
pdev->cb_prev.custom_bios_inputs[i] = custom_policy[i];
146+
dev_dbg(pdev->dev, "Custom BIOS Input[%d]: %u\n", i, custom_policy[i]);
146147
}
147148
}
148149

0 commit comments

Comments
 (0)