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: 10884805 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8B0DB13B5 for ; Thu, 4 Apr 2019 03:36:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7111E2847D for ; Thu, 4 Apr 2019 03:36:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 65652289BF; Thu, 4 Apr 2019 03:36:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 13CBF2847D for ; Thu, 4 Apr 2019 03:36:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Og7HA8VRfrlOAzQgktpnoAFpo79BKNqKz2OG39+xFUI=; b=KYQYPWvt5/FgI5vUOkt7JXym9N WNiZzCP8u3PwG3PpJidJcj2bmN2pJXcbVag8I6RaFPMgcD3hI0WV+dPkiF4qdbwW8/LPSSF7zhcww WL3wmv/Nd9uTokDmXSaCvTIohpaWPKFbAS+4vDJUra4dP09J+NINqxKxGRbFrwyHBwPndc6+TzLui rdf6Y5hDDoRZ2P41aFeV/V99tMRScxp3PwzTsfB+fBrxx0vEh3bFCVTN4vN/fkSAZL/T34DCgtOXt 1jkVhl2DylIBIgDAcG1cO2xaL0CCCdljKZgZHK4+1HIdiGUPYJshbELKufMAMrSmrRmDqx1CMuf5x kRH7D8TA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBtAv-0003P2-J6; Thu, 04 Apr 2019 03:36:25 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBtAX-0002r5-1C for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2019 03:36:06 +0000 Received: by mail-pl1-x641.google.com with SMTP id b65so438109plb.6 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=eRqx+EyxeCjhubeWe4mQOlzS0XLOrJaKcXwQlinG2yBWokI9kegWyHS9gT0MQym+AS QZdL0CuIhnwW65kRjF7nIODwBHgKbo2DuL2HOHJcMr+Z08J1ywtAogIrMPR92NkQwy71 ELxJzitSnzcFvNwTTLmsotiJq6dTmRTJV1gAKTlnMrhnVODxOagyPJuhTcWsKbWjjB82 73zug1yfwnieJGszGyER4yw6VsBjrNbov6QQGrsDfauxH1LJZaLoKfMiUoK94WRdbK3e qCGwMhAePhCNqdu4kiEBf3svQmmEfmz/QNvqvwmlYjzaEEJ0nnj+4pxMGiAnYoC55vN6 fMPQ== X-Gm-Message-State: APjAAAUAKiVaTvQlAbBRHB3mX6z3QmwhLi0i5Ld0qlIlCkSjaEEzjLqe O2D3wDghf39XEvLDzPy1nH7zMwXk9yw= X-Google-Smtp-Source: APXvYqytpomhj0mjfSVM/ijFF454SAG2sPiKLFlp7k9sL+o0fxnfoV1qjz3gARA+mBuLtY969NEIDQ== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190403_203601_928039_971E8DF9 X-CRM114-Status: GOOD ( 12.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: suzuki.poulose@arm.com, alexander.shishkin@linux.intel.com, coresight@lists.linaro.org, linux-kernel@vger.kernel.org, peterz@infradead.org, mike.leach@arm.com, leo.yan@linaro.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Resource selector pair 0 is always implemented and reserved. As such it should not be explicitly programmed. Signed-off-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm4x.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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));