Re: [PATCH] gpu: host1x: Fix MLOCK's debug info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 06/28/2015 12:27 PM, Dmitry Osipenko wrote:
MLOCK's debug info, spewed on CDMA timeout, contains meaningless MLOCK
owner channel ID because HOST1X_SYNC_MLOCK_OWNER_CHID_F() returns shifted
value, while unshifted should be used. Fix it by changing '_F' to '_V'.

Signed-off-by: Dmitry Osipenko <digetx@xxxxxxxxx>
---
  drivers/gpu/host1x/hw/debug_hw.c         | 2 +-
  drivers/gpu/host1x/hw/hw_host1x01_sync.h | 8 ++++----
  drivers/gpu/host1x/hw/hw_host1x02_sync.h | 8 ++++----
  drivers/gpu/host1x/hw/hw_host1x04_sync.h | 8 ++++----
  4 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/drivers/gpu/host1x/hw/debug_hw.c b/drivers/gpu/host1x/hw/debug_hw.c
index 791de93..cc3f182 100644
--- a/drivers/gpu/host1x/hw/debug_hw.c
+++ b/drivers/gpu/host1x/hw/debug_hw.c
@@ -298,7 +298,7 @@ static void host1x_debug_show_mlocks(struct host1x *host, struct output *o)
  			host1x_sync_readl(host, HOST1X_SYNC_MLOCK_OWNER(i));
  		if (HOST1X_SYNC_MLOCK_OWNER_CH_OWNS_V(owner))
  			host1x_debug_output(o, "%d: locked by channel %d\n",
-				i, HOST1X_SYNC_MLOCK_OWNER_CHID_F(owner));
+				i, HOST1X_SYNC_MLOCK_OWNER_CHID_V(owner));
  		else if (HOST1X_SYNC_MLOCK_OWNER_CPU_OWNS_V(owner))
  			host1x_debug_output(o, "%d: locked by cpu\n", i);
  		else
(...)

Looks good, and fixes a bad gotcha.

Reviewed-By: Terje Bergstrom <tbergstrom@xxxxxxxxxx>

Terje
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux