From patchwork Fri Nov 30 18:43:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 152582 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3989809ljp; Fri, 30 Nov 2018 10:43:18 -0800 (PST) X-Google-Smtp-Source: AFSGD/VNZ0gT8AcS4Bf6yo4D1aG+oQA2sOMliEK6vsQ/r61TdwCuAFpJMXlwBMC9dPbO4TrxSqJT X-Received: by 2002:a63:3e05:: with SMTP id l5mr5339314pga.96.1543603397987; Fri, 30 Nov 2018 10:43:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543603397; cv=none; d=google.com; s=arc-20160816; b=aqI+dPhwE4rOt6HvjRHyH+/cQoBUKnBoaYM1dU5nUQuSFU+rJ0c/g+e2RZIshrWt2t uJ/miKbESZrHm7B5clrLtBV8un2fWzfbh+uuoS9+tc+opp78scdqHddB+m6koRTgE6YM E/Ug8uP+VWxNz1mdUbPV0CDhHKgtiSzN/VkKuesShRvr3YZAL3DvcUky33WYN7th4LVH j8QT24QHxS6BeZQ3MSh8ghw7UQH8YmWY7LVp0qRFtvhnm/NWZu2xQ3jyUjVITQ2GcRQS /ACBKHC1W3DS3nCjHtN+3aV6jJlFk34QHKcm04J3Rj6XlRSpOsAFWQ0Gxrj0/nTQqejw 55OA== 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; bh=c70yC8nTUX49YKlETWoE+QkSk9SIJlmG5ulj2mcAOIQ=; b=oDt2wHCXJZQ3SnaGpwG7vYraje5/QY1OZmrqMf2W2cqWCXxdODhNAgK5xJMp4+CNJM v0VINZ8ir8r3B4Qg0dZ7CFEfSdUguQp3TseUaqL6jUnUBFUUijUEEthHmAmO3Gnw0QMx ug5bQDP99cAsgIaJQ0C/+1bANY+7g7vypAo/h231A7tynKhmKGZHI0oEpU7nbbbP42OZ a7jNEia1jHPJIZk8Ug+5ufIaYLkHs+z+8INT48Q6SlsjQ+fFQrqH5LL5DHBgC7cMLgW7 oWRRUvX9kRDR4bwWav4TMQAuk50NFCLC4nAaMoXy5rLA4gbeQWxcWWAnU5isfS8vGKoV tnxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HasY6LQt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v35si5549086pgl.130.2018.11.30.10.43.17; Fri, 30 Nov 2018 10:43:17 -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=@linaro.org header.s=google header.b=HasY6LQt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726924AbeLAFx0 (ORCPT + 32 others); Sat, 1 Dec 2018 00:53:26 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:32891 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726834AbeLAFxZ (ORCPT ); Sat, 1 Dec 2018 00:53:25 -0500 Received: by mail-pf1-f195.google.com with SMTP id c123so3239063pfb.0 for ; Fri, 30 Nov 2018 10:43:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=c70yC8nTUX49YKlETWoE+QkSk9SIJlmG5ulj2mcAOIQ=; b=HasY6LQt1kbAfq6HXFV0B4/cxttvkZ5qDQxWLYxJwURXGtGt+IFNl6b7i/Le9BSliE N1hXLFUfFfhxNcZVFV/YhkWv6metAzkUiggaHlRr5tl8WUxqLnDFSJTOeQter7MuF0/+ p/asvmqul8e5yGAsEwGJmPoIW6ni/dnP0qpZ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=c70yC8nTUX49YKlETWoE+QkSk9SIJlmG5ulj2mcAOIQ=; b=EKUpSmIUQQjaOCWmVNyTVXi4z53EYMaPgC82Wq6o0bPAxQbV+VSXRtqg2QLQFsOW2v UdBqrFJlzwxQyjqrh3E+bt4oo1Y61HiSW63886I7gI7YO6yfiiDIn4QJNHI3ox7uYSUo FJU3evrVQANFFlwr2l/ntAePX2BvUfpWOJHuPmkEMI07YdhvLMDzf1IJI9c7F31ShF35 TerwC+rJJjxSIyPg+Myvfs4Kdo89yDrX9c2BtmlHFdXP3GvS8CI9r1QJFDlk3EAzV0gR b0wsR1xT2ukwFbDM69I5i0zHjOgPTTFfkb/4X1h14Pvv0638q4OzFJN91psvFQ8F7cCr wPQg== X-Gm-Message-State: AA+aEWY14YYDSL5un1HQwaQXaSCZ7nR/7Y1qpoVSQToJqkC5+RNnKUV5 EZ1y38WN0uLluwlfSaJzFqDpXQ== X-Received: by 2002:a63:4f5e:: with SMTP id p30mr5734462pgl.71.1543603393874; Fri, 30 Nov 2018 10:43:13 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id l184sm12743147pfc.112.2018.11.30.10.43.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Nov 2018 10:43:13 -0800 (PST) From: Mathieu Poirier To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] coresight: etm3x: Release CLAIM tag when operated from perf Date: Fri, 30 Nov 2018 11:43:06 -0700 Message-Id: <1543603387-32645-6-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1543603387-32645-1-git-send-email-mathieu.poirier@linaro.org> References: <1543603387-32645-1-git-send-email-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch deals with the release of the CLAIM tag when the ETM is operated from perf. Otherwise the tag is left asserted and subsequent requests to use the device fail. Signed-off-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm3x.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index 6f30d52da9e4..9a63e87ea5f3 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x.c +++ b/drivers/hwtracing/coresight/coresight-etm3x.c @@ -601,6 +601,7 @@ static void etm_disable_perf(struct coresight_device *csdev) * power down the tracer. */ etm_set_pwrdwn(drvdata); + coresight_disclaim_device_unlocked(drvdata->base); CS_LOCK(drvdata->base); }