[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5595A9D5.5000209@nvidia.com>
Date: Thu, 2 Jul 2015 14:15:01 -0700
From: Terje Bergstrom <tbergstrom@...dia.com>
To: Dmitry Osipenko <digetx@...il.com>,
Thierry Reding <thierry.reding@...il.com>
CC: <dri-devel@...ts.freedesktop.org>, <linux-tegra@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] gpu: host1x: Fix MLOCK's debug info
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@...il.com>
> ---
> 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@...dia.com>
Terje
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists