mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] intel_telemetry_pltdrv: Change verbosity control bits
@ 2016-02-17  6:35 Souvik Kumar Chakravarty
  2016-02-18  5:14 ` Darren Hart
  0 siblings, 1 reply; 2+ messages in thread
From: Souvik Kumar Chakravarty @ 2016-02-17  6:35 UTC (permalink / raw)
  To: platform-driver-x86; +Cc: dvhart, linux-kernel, 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.

Signed-off-by: Souvik Kumar Chakravarty <souvik.k.chakravarty@intel.com>
---
 drivers/platform/x86/intel_telemetry_pltdrv.c |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/drivers/platform/x86/intel_telemetry_pltdrv.c b/drivers/platform/x86/intel_telemetry_pltdrv.c
index f97019b..397119f 100644
--- a/drivers/platform/x86/intel_telemetry_pltdrv.c
+++ b/drivers/platform/x86/intel_telemetry_pltdrv.c
@@ -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;
-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] intel_telemetry_pltdrv: Change verbosity control bits
  2016-02-17  6:35 [PATCH] intel_telemetry_pltdrv: Change verbosity control bits Souvik Kumar Chakravarty
@ 2016-02-18  5:14 ` Darren Hart
  0 siblings, 0 replies; 2+ messages in thread
From: Darren Hart @ 2016-02-18  5:14 UTC (permalink / raw)
  To: Souvik Kumar Chakravarty; +Cc: platform-driver-x86, linux-kernel

On Wed, Feb 17, 2016 at 12:05:22PM +0530, Souvik Kumar Chakravarty wrote:
> 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.
> 
> Signed-off-by: Souvik Kumar Chakravarty <souvik.k.chakravarty@intel.com>

Queued to testing, thank you Souvik.

-- 
Darren Hart
Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-18  5:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-17  6:35 [PATCH] intel_telemetry_pltdrv: Change verbosity control bits Souvik Kumar Chakravarty
2016-02-18  5:14 ` Darren Hart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®