From patchwork Wed Nov 7 23:08:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 150463 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp123799ljp; Wed, 7 Nov 2018 15:09:04 -0800 (PST) X-Google-Smtp-Source: AJdET5derF8SrwDDCJvTj/8Gm//XaiWH8B+xJqd7dH2UXGSBZperCzfQ9WDBQl75/NvMZiUVjaWE X-Received: by 2002:a63:2b01:: with SMTP id r1mr1870389pgr.432.1541632144272; Wed, 07 Nov 2018 15:09:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541632144; cv=none; d=google.com; s=arc-20160816; b=m23+WRp4YPTjDYFZL5n11ZhgFqjPF+3anNukBLJBUxVLsvHtkM1spEtsiIzWunzkVF PNpx6vEc5Sq8UhRyL+qbXSBE3x7u+MUz56H9X0HGQb383D2s+JtMkFFPQkmWDqkl6D5y E6vzev6jsYMc8Zx1P9Lb/11uSsiT5c4JlafFhV9rbCGovsUCzfQzQ89JTleFSpUQcSvQ 5tJVN+L78OHVQkVZ14zTRP3PGLfo/aZkClOUuNtl3NLF4I+SxTnIbeVxo9JEAkq6SRdj FNCQFBQsstYdI5stC1VEUa7yxUcx6a7+2xflFpMZSFTKUv9r8w91Q3WoqmLW0p0mG6ud /M5A== 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=KfFijGXJwU7EYqU+SdDNmXH5u5EZCG9E6Nv8N75Zm7o=; b=XD+Spcfjc2G7wMScByDB/xavhej9PVKw7gpb8xG10IdpT1jyWYnJjCFA8hs8VIv1Kx SAJ9Wlh2NCYx0PbhlV0htnf1P4z+NhSHZ22r7p2afd1m9G3STrANVMqq6IgA5njufFS/ mIIS9eDe4F5ETVJCU7spWjPhMHAmMQHb/XmnjoWM5vmELyDrOmpoEwSVeOBVZnuMy8NR mwl6AFNa2zpkPDSxyDlDrN6oTXdWYinStQbIsaIW3vr+A2OAjGO2CQPndiBFsxObQ9kc lKVHQo/H7AxEpKPOXqZhjgkz4UlkYkNMItAs5HEtXpzuWUPh7gJlJBcLFHsWb+eSwC6i aKbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dQ81GztV; 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 d9-v6si2079256pfo.108.2018.11.07.15.09.04; Wed, 07 Nov 2018 15:09:04 -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=dQ81GztV; 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 S1728393AbeKHIlh (ORCPT + 32 others); Thu, 8 Nov 2018 03:41:37 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:40993 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727374AbeKHIlg (ORCPT ); Thu, 8 Nov 2018 03:41:36 -0500 Received: by mail-pg1-f195.google.com with SMTP id 70so2385439pgh.8 for ; Wed, 07 Nov 2018 15:09:00 -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=KfFijGXJwU7EYqU+SdDNmXH5u5EZCG9E6Nv8N75Zm7o=; b=dQ81GztVCN/8T6I1e52qyjWwEl0/RCF9wQDvKZS2H3xNo/ItgsXkjnyzQmJTNVWFie TpxCp9atw7eIqjOSz6tUF0DDmPGeo8xseVtU30X9R7a8oAK8EDVkXS+cUxZurfJ2SouT qxxDw+TdYYvAsDgZRs/3xw2R6gUA+4quEl4Y4= 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=KfFijGXJwU7EYqU+SdDNmXH5u5EZCG9E6Nv8N75Zm7o=; b=EtWLS2vs7kWQGr88ijg1bsOBH2gVes4xrtK8SevcB4TfdlW/ksx0Q4DDN5J1dQThSV icxgnzwZS52gAWMWz13x4kT9w7T8GLwuCmMyjnu8OUfTbnXXYqKnbs4RWLRA2bNm0Rdd hdZfwot6gKEbLwTSMx2Jg0HkweeYeM3DBExlrxwsc1yyUUna2llxD2CultNRWKl/9HOv 59XCzXnrj6X2S1OXavMAHjzNThPtxIkrjaaSPWkJ0rVYj2j7Xr6HNoaCrIIGDhutnm6i B5A+s+W2gUldF9UchiYOi8lqC1rns5FUcMWsIYDaBff6sHoYNSSAIlLdufTZ6eWV/nok rDdQ== X-Gm-Message-State: AGRZ1gLzx+XhSwSCEq7UfoYaO8xIL2QLnzZv+98eW2sHjHZQS3/0zk0V TmRPhISoFpEtfufquAygP8pbXA== X-Received: by 2002:a62:ae06:: with SMTP id q6-v6mr2242703pff.126.1541632140457; Wed, 07 Nov 2018 15:09:00 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id e70-v6sm1802034pfb.113.2018.11.07.15.08.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Nov 2018 15:08:59 -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 v2 4/4] coresight: etm3x: Release CLAIM tag when operated from perf Date: Wed, 7 Nov 2018 16:08:52 -0700 Message-Id: <1541632132-1252-5-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1541632132-1252-1-git-send-email-mathieu.poirier@linaro.org> References: <1541632132-1252-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 | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 Reviewed-by: Suzuki K Poulose diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index 4f638d81a66a..d7f452e62193 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x.c +++ b/drivers/hwtracing/coresight/coresight-etm3x.c @@ -602,6 +602,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); }