From patchwork Thu Jul 16 17:57:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 11668235 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 76CFA913 for ; Thu, 16 Jul 2020 18:01:11 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 44DB520578 for ; Thu, 16 Jul 2020 18:01:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WeJys/KJ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="M2LwIBQd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 44DB520578 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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=Oj3vjiFpxdRbTxKptDQvUYQG+UC6m4KYwjSqH5GwjQw=; b=WeJys/KJ3nM1XlfSAMqREimdT C+K5ojGbQ8dNqQjUWd03+YgrgTjeMUskoYdAYkbIQ/3JSLR7SfhreCjpGGgkG/adEP/lrVSyfOPto mlJzBY8yO15RMShkFoSfvX6frpRta8JYx7N1G+Tcd29K/E6D6veouCwOL4ScW+5+6kdk9oJLn+o+m T7y7gsRUUG91wRJ9p1Q+OnxfBljHJp2w7b2zDK5CqyuEqm2qfQVqslm++wNl0Tb96kkrn6ItHfmvr u63BWwNDr+7MSbE7uWmS7b/CjMCV0dyYASUxRepjO4FR24xqdcoYqQZyWpyWT7D7ITtLObMI4ELjN RxoQvlo1w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw8AH-0003mE-Ga; Thu, 16 Jul 2020 17:59:25 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw88u-0003F6-Mv for linux-arm-kernel@lists.infradead.org; Thu, 16 Jul 2020 17:58:04 +0000 Received: by mail-pg1-x544.google.com with SMTP id m22so5193345pgv.9 for ; Thu, 16 Jul 2020 10:58: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 :mime-version:content-transfer-encoding; bh=IHDoN/BAPcUfN+U/oUh0Gxf3i/wqb1dGrY4pCKb8kz4=; b=M2LwIBQdC8BPjZVVUuNr0tCHPphTQ9ICLdXXsDvmMuQLJxi/eFEOEq3UbJ8+BiQqcY rgXcn7TtE6/yLWhJMyBN9RF4pvX06rZNTIkZbLSoNIQ5iZzdQVV6vuN19qujPL06Tbm9 HX0+F40SeO2TgON/1f65nkxyI5Y2zBKh0JL3TfENkx+uqbUssjMhFgk8q0qz7RhRsUSr 3G+pGSfRhN7OjewVaUwRJtPm2S7kOpFZpY+zg7GjuDIkOYpqjn1u3eIU3DnYeSyDcjPO +A/TCn1jihH0ZfjNzg3TkcZfCCIFJJp4IBAGnZ7JN8ZHQtvEDCDY4IaY6dGKLhq+7qyK 0tDA== 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:mime-version:content-transfer-encoding; bh=IHDoN/BAPcUfN+U/oUh0Gxf3i/wqb1dGrY4pCKb8kz4=; b=ieB3XjA7R0e2HZoBwl9eDm14j1PgAXE9IAE9xXBAG2lDgsilHfBVvIONMOB7WTvNxc 4pzeQrCqDh/Obl/FIoepv+9IpdKOd4MmfPye8H4130VaycVyzCkF0KKg27wl3aG+JgB6 2Ab3LpJo+chJFwSSRtU8848pAzs+Qh1xUB/yxJ+KxXUVTMC+aUtAWL1656kc5hC3X0hs gCwwpn7zPJGES4KxIbAW8V+zjJzf6PTJAcNrSkCuOXStnR0/jW7YDZVqj+L44UysSx3Q j9n5QlZH+71M7N3OrkJ+4iFGgsQT2F3WilWiSycZcG+GwiLJU3uVkuUngcBFRFxw48OR LfhQ== X-Gm-Message-State: AOAM531UDfPvbAM+hnie1NcBPBppJ1rDm7q8RR3jFmgN13nS5CmcDnCy Giadn8ZKKffGHn1YMrTpofVFkA== X-Google-Smtp-Source: ABdhPJyXPl51mGTF/c57zf28jvbXSB666r2jV19fWnE92ZpfF4pLuTJO32tr2jd7DIUWm9/U/JWn5A== X-Received: by 2002:a63:5a01:: with SMTP id o1mr5118567pgb.337.1594922278903; Thu, 16 Jul 2020 10:57:58 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id 83sm5473253pfu.60.2020.07.16.10.57.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 10:57:58 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org Subject: [PATCH 09/17] coresight: etmv4: Fix resource selector constant Date: Thu, 16 Jul 2020 11:57:38 -0600 Message-Id: <20200716175746.3338735-10-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200716175746.3338735-1-mathieu.poirier@linaro.org> References: <20200716175746.3338735-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200716_135800_831696_5B68E721 X-CRM114-Status: GOOD ( 11.46 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:544 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: saiprakash.ranjan@codeaurora.org, suzuki.poulose@arm.com, vulab@iscas.ac.cn, tingwei@codeaurora.org, andriy.shevchenko@linux.intel.com, linux-arm-kernel@lists.infradead.org, mike.leach@linaro.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Mike Leach ETMv4 max resource selector constant incorrectly set to 16. Updated to the correct 32 value, and adjustments made to limited code using it. Signed-off-by: Mike Leach Fixes: 2e1cdfe184b52 ("coresight-etm4x: Adding CoreSight ETM4x driver") Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm4x.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-etm4x.h b/drivers/hwtracing/coresight/coresight-etm4x.h index 72c9a55e67df..7da022e87218 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x.h +++ b/drivers/hwtracing/coresight/coresight-etm4x.h @@ -133,7 +133,7 @@ #define ETMv4_MAX_CTXID_CMP 8 #define ETM_MAX_VMID_CMP 8 #define ETM_MAX_PE_CMP 8 -#define ETM_MAX_RES_SEL 16 +#define ETM_MAX_RES_SEL 32 #define ETM_MAX_SS_CMP 8 #define ETM_ARCH_V4 0x40 @@ -325,7 +325,7 @@ struct etmv4_save_state { u32 trccntctlr[ETMv4_MAX_CNTR]; u32 trccntvr[ETMv4_MAX_CNTR]; - u32 trcrsctlr[ETM_MAX_RES_SEL * 2]; + u32 trcrsctlr[ETM_MAX_RES_SEL]; u32 trcssccr[ETM_MAX_SS_CMP]; u32 trcsscsr[ETM_MAX_SS_CMP];