From patchwork Mon Nov 5 22:26:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 150226 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3162552ljp; Mon, 5 Nov 2018 14:26:41 -0800 (PST) X-Google-Smtp-Source: AJdET5fOir8AuLcTKfIUWXoJelDvapV4pxUE66nMixIRkZFmj8rAcG8io8KE7mb9QrtlSjlNl73k X-Received: by 2002:a63:9306:: with SMTP id b6mr6198802pge.36.1541456801354; Mon, 05 Nov 2018 14:26:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541456801; cv=none; d=google.com; s=arc-20160816; b=rnwqeP/rwbi3GsDPXJaLFaH79KXebRoA0yTOsYyThRZ4f0pU5dbM+xvTAgTxVmpQzQ 9fY0+s2VliCkp1tHAYMHl50mIlpp4+ey4g3sxti7IyvrNt/9VIwpiF2g6KeO2C8tkb+d ewiC8LMse2zoXl8eXpaoSog88rWFpeCQeTg7kUF/QKmitqo8+3fL2Q6f76MmI6QniQt/ wolixIhE/EIVqboQ57WTupARrEt3ZBLrBxa8zYyXBABMXhDh8sIO3O3OtqB6H2kBnda8 cq+wcZYuJ0m0VEaM+KEkXRkz8rC/7JIzyUanvFDl6qBmqSsL6WxmTsKb8Jhd3cHnGqK2 U5Ww== 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=6VDjqPjW8rYmef6qwOzmJfwOTegdIgPPYLUTUP0LGhs=; b=iOa/Edm4bz2wEWDEx+ZoOd8Nw2GpJyl0SycAz4TCkteS8VdrfJuN4/cfcMbzVWPBLz nTxBYXC4fQvVeHt3AjBVHU99rmk01dYa+cT+zSUwf60qY1NdE49HN4vqdh/xqWaLZ1CM Y9Z9HNXLSya6xBQhXVXG6EieMBj3svO5XLua7aBQdnNhRFFf5VvrYEBL4ykxHNQrLNOR g3e2WerqgqEL70kdHwnfrJjLPo4AAIewt05ZFFdnhH/bXULfpP5jbD0itjlqicCsidaF wU1PEBlK7njRY95Sbz5NKd0YfgF2bKg8q4MkSZb8XxmVcNtAC8bR2ZF8Glq45sL5iNLM DmdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QYFDXvVS; 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 q33-v6si42456529pgk.2.2018.11.05.14.26.41; Mon, 05 Nov 2018 14:26:41 -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=QYFDXvVS; 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 S2388226AbeKFHsd (ORCPT + 32 others); Tue, 6 Nov 2018 02:48:33 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:35045 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388210AbeKFHsd (ORCPT ); Tue, 6 Nov 2018 02:48:33 -0500 Received: by mail-pl1-f195.google.com with SMTP id n4-v6so5150991plp.2 for ; Mon, 05 Nov 2018 14:26:38 -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=6VDjqPjW8rYmef6qwOzmJfwOTegdIgPPYLUTUP0LGhs=; b=QYFDXvVSGN6LV+stDAwrCDGj9RxxLZ/v07EkMeyefL4pYyg/93L5e/jrywDko1ENl3 9lhlhhW5uCqMQqnDMSmPgQq5j5JV29srtOEiHyju3pg35Fx4aP+bXeOUy22cOs/6/V/6 Fp415Hkxk5GQQYkforfhPaLOd8ZJQAMGeGhF4= 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=6VDjqPjW8rYmef6qwOzmJfwOTegdIgPPYLUTUP0LGhs=; b=Ohm37BQuQz8Q3hWjqlYHmjEW7oFclJzBdDR1J1HNw7E+f+Pgbu3HfgKOxArR1pi8i3 /4DjdK5eaW5FdR4ixyHqphukw3NvGNfwkk1PGtdK+SE4DhXwaLJlxRmVg1lgwqyWcES3 FkjTXv6gLFEz1+TZiKNWy2DZmdIlb8ipTBZmZsCcbYJDNGALPnI66a0bV9KoFWzFYESu 9RnE1vgSMvKrA9+mp2IfUl6fMoCbYwcJVM9xjUS2txaTE++EaUi9nNSeafM6XzHOV69t d0ylrzCF6W5U4HxrSfpuwsHsE1sNAajvtucR9adDYqSRRYcl0YgVjApR26h9WEHYpEey O42w== X-Gm-Message-State: AGRZ1gLQ1EVzSUv58PGPZ7tSCL2vAEj6kuiDmYaAOugqGkVEIbeUu4kC 6we7AKpDrAt0ovmR/wSdOoHjyA== X-Received: by 2002:a17:902:8608:: with SMTP id f8-v6mr18529767plo.95.1541456798236; Mon, 05 Nov 2018 14:26:38 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id q26-v6sm58669804pfi.165.2018.11.05.14.26.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Nov 2018 14:26:37 -0800 (PST) From: Mathieu Poirier To: linux-arm-kernel@lists.infradead.org Cc: alexander.shishkin@linux.intel.com, leo.yan@linaro.org, suzuki.poulose@arm.com, coresight@lists.linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] coresight: etm3x: Release CLAIM tag when operated from perf Date: Mon, 5 Nov 2018 15:26:30 -0700 Message-Id: <1541456790-28282-4-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1541456790-28282-1-git-send-email-mathieu.poirier@linaro.org> References: <1541456790-28282-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 --- drivers/hwtracing/coresight/coresight-etm3x.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index fd5c4cca7db5..000796394662 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x.c +++ b/drivers/hwtracing/coresight/coresight-etm3x.c @@ -603,6 +603,8 @@ static void etm_disable_perf(struct coresight_device *csdev) */ etm_set_pwrdwn(drvdata); + coresight_disclaim_device_unlocked(drvdata->base); + CS_LOCK(drvdata->base); }