Skip to contentSkip to conversation

intel_telemetry_pltdrv: Change verbosity control bits

PATCH In review Souvik Kumar Chakravarty 2 participants 2 messages Feb 17, 2016 – Feb 18, 2016 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 intel_telemetry_pltdrv: Change verbosity control bits

Due to a recent fix in the firmware, the Punit verbosity control bits now adhere to the correct pattern. Hence remove the workaround and do a read-mofiy-write of the register.

---
 drivers/platform/x86/intel_telemetry_pltdrv.c |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
drivers/platform/x86/intel_telemetry_pltdrv.c +12 -1
index f97019b..397119f 100644
@@ -1030,8 +1030,19 @@ static int telemetry_plt_set_trace_verbosity(enum telemetry_unit telem_unit,
 	switch (telem_unit) {
 	case TELEM_PSS:
 		ret = intel_punit_ipc_command(
+				IPC_PUNIT_BIOS_READ_TELE_TRACE_CTRL,
+				0, 0, NULL, &temp);
+		if (ret) {
+			pr_err("PSS TRACE_CTRL Read Failed\n");
+			goto out;
+		}
+
+		TELEM_CLEAR_VERBOSITY_BITS(temp);
+		TELEM_SET_VERBOSITY_BITS(temp, verbosity);
+
+		ret = intel_punit_ipc_command(
 				IPC_PUNIT_BIOS_WRITE_TELE_TRACE_CTRL,
-				0, 0, &verbosity, NULL);
+				0, 0, &temp, NULL);
 		if (ret) {
 			pr_err("PSS TRACE_CTRL Verbosity Set Failed\n");
 			goto out;
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 5 lines · Souvik Kumar Chakravarty

Due to a recent fix in the firmware, the Punit verbosity control bits now adhere to the correct pattern. Hence remove the workaround and do a read-mofiy-write of the register.

Queued to testing, thank you Souvik.

Signature · 2 lines
Darren Hart
Intel Open Source Technology Center