From patchwork Thu Apr 4 03:35:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 161722 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1087026jan; Wed, 3 Apr 2019 20:36:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqykP/upHKrR2IGKAy3BsBaaVrR2T+1KM4T9uXqNFmUiUG4gmLzdPUpt8o0CRUqkVW1B6sl/ X-Received: by 2002:a63:6942:: with SMTP id e63mr3531656pgc.102.1554348963162; Wed, 03 Apr 2019 20:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554348963; cv=none; d=google.com; s=arc-20160816; b=F2OidLzF9E865jh3hBWbgc5JXH0uzs1rmewEk676EXsjywZ/k1AZsELQ45aCUMuoyG 1bOYdET48HS+JddRQ9z3p0xi+DP02F+UF41lSeekylataqFcb217l10dhFU1m7BxEqFf iOFLadMdeG7BNnchryyZiTqVqEm/VkasuIISRm//+EkdvkMFSed9LCUW6n1JSQexZW41 x4pHcaxvJxyFJbuD3seA6VS6shNEUDLRbxT0nUM3/CFOtuPGjb4zwdMXmnNakMGkbbis xl+yq6ffbZoZOnesjNZ83hT/kmbN1J/ub7SmYW+x7PG6efWLA/SrbDAz6/DGr+zKanYL q6ug== 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=rHFVznWd3K/zryT+Tds7l4sZTdfDnutsgyti8B8Scew=; b=wf+V08CA0WfPde0c2RczeXeBxC4R+SCFyyG5tz9mzzXOQYmjuRraw5D+3MP5EKrGDq JHm3zYXcA6mLFxERA4hoYIx6WJAQq9fdzfiwHgQTlih7Qf4996OXPSOpuSV4KcgRc2Mp jsVcngpn+nLt0/PqKqh4GmiYBloDydP2l2W0VRMnTEdBPy1Pry+vgqAUaXuIt9paWtj4 iEjy7IVoUVNtZwvQ2bfZCqGIwy4DxqXObog+WJrmPHFckdNl8+BpXVD3o2aMUBR0p4Qi hFppXrml/F2FVmeeJRNYvOs9miVQn1J56qbFZUDqKXuJvTfY1ZbTRKiTHntqMGcDB2J6 vXlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TRzKh2vO; 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 f9si6620237plo.101.2019.04.03.20.36.02; Wed, 03 Apr 2019 20:36:03 -0700 (PDT) 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=TRzKh2vO; 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 S1726994AbfDDDgC (ORCPT + 31 others); Wed, 3 Apr 2019 23:36:02 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:45221 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726791AbfDDDgA (ORCPT ); Wed, 3 Apr 2019 23:36:00 -0400 Received: by mail-pl1-f195.google.com with SMTP id bf11so420734plb.12 for ; Wed, 03 Apr 2019 20:36:00 -0700 (PDT) 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=rHFVznWd3K/zryT+Tds7l4sZTdfDnutsgyti8B8Scew=; b=TRzKh2vOPOa2ZvsJuRkYqzZnXGyMeGuX67tGMNah46Ls86ESxy2T98bYlcFr3XX5Pk DKraZC1Md0//SeUaIhNQnCiQN2gQL4PFWNCaADEOZP4LpbFIACrY3Acn17x1LBbF85uw HJ3Cnm5HyTQErLC5YJqMSvvMdallW1tG/HC4NlV/b49PYn5ywYQ+mjNIGNciTAfGPbzn AdAhdAvw0pcWhT2TwZEbx6PnamyEkghvns7tqXOixdD5VKZRFqFwm1QLStM8JKC1ikfB ayyaufqpk1qc4Zwd7fF977eZdwWMGhCjNXb8jVSHrNQps8slJQw0rHTS7BEzsgZGhcQJ NVeA== 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=rHFVznWd3K/zryT+Tds7l4sZTdfDnutsgyti8B8Scew=; b=EHFboj9AcYGqMwv3dcSO0Urav/JaIlHgsRVI12Av6O2VM23iyvINbozH/N+4joUUMl +c0Sff9oWL2hEnp420E3mQNjKntlRFOeuqmBfhgcCItS6ls1Qb+y2vznHA+rr0vKEGbi HIkABimTMYp9DYl3+ep3GaTPES+OFbRYe+1qNjyH3zI+hFmvJ28OjLYyucoJP0ecr9aE 29p+h+QO0/DDWfibs5WfXvB81wFysz62S3JS8hYnJX+DR3feavL0IPB8J2x5yUxK24TY Glo6vzoWBhi03DCJZxoTI+EkifJu2qP8P87kqLWOqaZQwxdcmVbXQP3oMmvShRueXydU 006Q== X-Gm-Message-State: APjAAAWlHjf2RjP3pSKvJON7Sks+kR0W/vfAF0cqErBmvpZspWuz9zTz gCQlsMbjnTwUu5n9oVKbVpcVHA== X-Received: by 2002:a17:902:403:: with SMTP id 3mr3816530ple.48.1554348960246; Wed, 03 Apr 2019 20:36:00 -0700 (PDT) Received: from xps15.imgcgcw.net ([147.50.13.10]) by smtp.gmail.com with ESMTPSA id u5sm12212780pfm.121.2019.04.03.20.35.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Apr 2019 20:35:59 -0700 (PDT) From: Mathieu Poirier To: linux-arm-kernel@lists.infradead.org Cc: alexander.shishkin@linux.intel.com, peterz@infradead.org, suzuki.poulose@arm.com, mike.leach@arm.com, leo.yan@linaro.org, coresight@lists.linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 03/20] coresight: etm4x: Skip selector pair 0 Date: Wed, 3 Apr 2019 21:35:24 -0600 Message-Id: <20190404033541.14072-4-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190404033541.14072-1-mathieu.poirier@linaro.org> References: <20190404033541.14072-1-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Resource selector pair 0 is always implemented and reserved. As such it should not be explicitly programmed. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm4x.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) -- 2.17.1 Reviewed-by: Suzuki K Poulose diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c b/drivers/hwtracing/coresight/coresight-etm4x.c index 732ae12fca9b..d64192c29860 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x.c +++ b/drivers/hwtracing/coresight/coresight-etm4x.c @@ -138,8 +138,11 @@ static int etm4_enable_hw(struct etmv4_drvdata *drvdata) drvdata->base + TRCCNTVRn(i)); } - /* Resource selector pair 0 is always implemented and reserved */ - for (i = 0; i < drvdata->nr_resource * 2; i++) + /* + * Resource selector pair 0 is always implemented and reserved. As + * such start at 2. + */ + for (i = 2; i < drvdata->nr_resource * 2; i++) writel_relaxed(config->res_ctrl[i], drvdata->base + TRCRSCTLRn(i));