Received: by 10.223.164.200 with SMTP id h8csp58475wrb; Sun, 5 Nov 2017 03:03:24 -0800 (PST) X-Google-Smtp-Source: ABhQp+TMErdJVSB58NdtGQtP5fux2Cgd2Fm405SwmFkmoyh8g9w0vIr7tbWarKHVNTZ9YEZXhcIr X-Received: by 10.98.220.151 with SMTP id c23mr13342417pfl.126.1509879804477; Sun, 05 Nov 2017 03:03:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509879804; cv=none; d=google.com; s=arc-20160816; b=roMTIb+ay/juk04kh0S7MesuMbydoYTVwHnSiUapPTHjM3VVy5tq8LmMHnz1JC/0iA x3IF5c9Wj3joUyPvUvYya+pLuJxMpBzEwrpyMVkcdFEQUAm8vZYjj57ZG1g77fopDSgB JauXcyMxgqolllRBjrw9Cgkf4pcqxS3s2QoVfoxlAxd31PYjnXL++66+7WTmhkun8qrx sfXp6BxipBgesWuIOt1K7CIDtx40fOCZGsiOVTTZ8hmOW639KgQotSvPHggTbtkzyvi0 d423wv/gHTNu7Yue24eNzEB5wtrhnkYVaYdVe2AqEb07Q4fYrKcoo1keaLXjdE346KGg WGCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=gTDVUAptY/YlYGu7Kbdw9z1nmZnCd5aaGXXcUfrDtqQ=; b=lILUQRasSrIRMVVT1uht5L9tvmr8TV3eMoB9+r4JeMpVOqcgEmYQp18Skw5j9/RJ+B ++XXdhnVC0yywZYTSyS8DzTId36RkSO7AdymqlrFFeocO9NibRUcldAZvOLweytbIzNE oEJRVqQGFaRe1Nh0aCnTEG6383dA23ugxTPSwuyIu0DT57Rf/3u7PTgA7WivGsjKyOI8 AhKD42w0pZMzOgrGN5s2rsC9MeCg7dlLyDCxywGIwR4EsfG3aWbNteLLrZWcQinSCGQ0 plKOPNL53vUUcRIJWdiAbVpz7bUwn9ZSCn1pi+XXnMkQolRrUDOZX2UkEZdc4GwQLUM+ tW1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kapsi.fi header.s=20161220 header.b=RZCzIEtx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 11si8819925plf.247.2017.11.05.03.03.11; Sun, 05 Nov 2017 03:03:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kapsi.fi header.s=20161220 header.b=RZCzIEtx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752597AbdKELCK (ORCPT + 96 others); Sun, 5 Nov 2017 06:02:10 -0500 Received: from mail.kapsi.fi ([91.232.154.25]:48944 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750888AbdKELCD (ORCPT ); Sun, 5 Nov 2017 06:02:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=gTDVUAptY/YlYGu7Kbdw9z1nmZnCd5aaGXXcUfrDtqQ=; b=RZCzIEtxr1qf4A36BZVYerIFBYwQtYCwq75Vc55TSywNYp+01wYaOnJFlm32yLUU0c+EZ6yC0xqDb1C/fZ5+36Q4Io+FJItqnGL1tH82ANRBkLZTCFx9Byblj9RLSD8UlXi4S2mFEYOg3SMflsLNO6JAKB9SxAx38aWYWG3sfRRt6oa9wJaa3OQEQvn2jyrMlYvh1o3pLot9BXKsjP0cvKh3c3KyapFP5DZJTbzvzJKLpOpPC5F+dbxBD74K45W+e/DqF5bQxcktE9BF71fhIvVh3oAGZ6XaaIe/keousxEFi+P70VEz8Jcl1uuUSjxMAhdYIqBgNakD2ALyU+paKw==; Received: from dsl-hkibng22-54f983-249.dhcp.inet.fi ([84.249.131.249] helo=localhost.localdomain) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1eBIgk-0006dR-5J; Sun, 05 Nov 2017 13:02:02 +0200 From: Mikko Perttunen To: thierry.reding@gmail.com, jonathanh@nvidia.com Cc: digetx@gmail.com, dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Mikko Perttunen Subject: [PATCH 02/10] gpu: host1x: Print MLOCK state in debug dumps on T186 Date: Sun, 5 Nov 2017 13:01:10 +0200 Message-Id: <20171105110118.15142-3-mperttunen@nvidia.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171105110118.15142-1-mperttunen@nvidia.com> References: <20171105110118.15142-1-mperttunen@nvidia.com> X-SA-Exim-Connect-IP: 84.249.131.249 X-SA-Exim-Mail-From: mperttunen@nvidia.com X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for dumping current MLOCK state in debug dumps also on T186, now that MLOCKs are used by the driver. Signed-off-by: Mikko Perttunen --- drivers/gpu/host1x/hw/debug_hw_1x06.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/host1x/hw/debug_hw_1x06.c b/drivers/gpu/host1x/hw/debug_hw_1x06.c index b503c740c022..659dd6042ccc 100644 --- a/drivers/gpu/host1x/hw/debug_hw_1x06.c +++ b/drivers/gpu/host1x/hw/debug_hw_1x06.c @@ -131,5 +131,21 @@ static void host1x_debug_show_channel_fifo(struct host1x *host, static void host1x_debug_show_mlocks(struct host1x *host, struct output *o) { - /* TODO */ + unsigned int i; + + if (!host->hv_regs) + return; + + host1x_debug_output(o, "---- mlocks ----\n"); + + for (i = 0; i < host1x_syncpt_nb_mlocks(host); i++) { + u32 val = host1x_hypervisor_readl(host, HOST1X_HV_MLOCK(i)); + if (HOST1X_HV_MLOCK_LOCKED_V(val)) + host1x_debug_output(o, "%u: locked by channel %u\n", + i, HOST1X_HV_MLOCK_CH_V(val)); + else + host1x_debug_output(o, "%u: unlocked\n", i); + } + + host1x_debug_output(o, "\n"); } -- 2.14.2 From 1583309083513296043@xxx Mon Nov 06 09:40:07 +0000 2017 X-GM-THRID: 1583309083513296043 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread