From patchwork Tue Jun 16 09:33:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 11606949 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 67E7C618 for ; Tue, 16 Jun 2020 09:33:56 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 43D6A20707 for ; Tue, 16 Jun 2020 09:33:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Ccteqa5J"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Ma+8k4LR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 43D6A20707 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=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=MM9bphamxH5CuW5ALGKQ09B2SEVqRXQ6aevElk0dVtI=; b=Ccteqa5JflCHVopiUmC9JMmNU3 WnMFVt4rb646T/b2azeBGa1ijoHGqzk90JinDW7F8B0kuupzFAi6KGYb0d/dr32u/sewoU8BQ5aWK XzQKpD7aiuzgj9qOU03YlqA4h3N7Bh2DchhHYdfJ0cw7T+fFTQn4LBiRcuItbiVuuJzGu2UOEgvmH hSjfzj4LNU80rapFHdKALav3BRGA43iOXlfno8rl0nK0W50uNLihA/v4oSjRYzCYz5MAo8WCo5M3D /Ry0HYYTGm8gW1dKVM+ulBPo8fwUHmcf40VXnh5lhbNuzkTxGCM1B0WH5VKjYUjz96NeXo8fAHffG 65TEc7eg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jl7yZ-0005sy-Bb; Tue, 16 Jun 2020 09:33:51 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jl7yN-0005fe-Jq for linux-arm-kernel@lists.infradead.org; Tue, 16 Jun 2020 09:33:42 +0000 Received: by mail-wr1-x443.google.com with SMTP id l10so19973513wrr.10 for ; Tue, 16 Jun 2020 02:33:39 -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=UkxWceIqGQ7XQKBCF9BsfRIAOtRo9bMGnldWME5GM5Y=; b=Ma+8k4LR3nbuxqMK1pSQBi9He02YkzVDFiG5Jqtlk3+XnUBkct4frBtzw6ME21PLgh J4QrLAsGIkFaTg5TWACIW74Ym3jQb7y5RGGrGdCyYL4mWV8jD51TmjRzEDLE0p7oqLds twrbBnVOK9i80i7gFAmA2qcf2+LAVD1vQl2xi8/WLCJtMiiExSWMqX0CIwnZal0Yx/sW 2QktcBS1Rw0ntsno3X1ufnQpVqC8KhNUcIoUffLQuuRt7BUS6RgiBUapCT0vlbCzZT1E mcYy0H/Any31kARoBQnVqXWqw/Zxo8Osz4XhVYvKoTD5osfWz/RWD185rX9QS4BllAWq 7S9g== 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=UkxWceIqGQ7XQKBCF9BsfRIAOtRo9bMGnldWME5GM5Y=; b=mCXG8hctP7GVMJEDxD5WpAfxWXwxJfwCSRMjiI4iEFSi5u4vxI/3BT3EfBOGCwzTdp VZMGg3mYLFb0c0nFNXvHzKfDZKRug9pL840O/2cBgyWRzSX2Mg7cQ53EFIak1TeuVvfR HCnUHZdcDZ5i254DEKISbGaYrGJIJyq5YKRTOuCqydehFg9xyV4+ONC3RtUFbNaSBX9Z GIltbHlkbyVqzMJQ7jsVxl8afWvNwK9DP/nfT9V6Ejar6840T5LNQ0bXzFkBsKfUjWLX lRg9iOaEiVCkWzOpjy4mJxZvo4a8JwU8D/c/X4DM0NBPBLP0tKZxBnNLNoCpVxPDbW0t sqqQ== X-Gm-Message-State: AOAM530B93fFhYJq7WrSDIexNfnV/IkwBtmX/N876eVHPXk5ddxbBUmu Occ/l550qpxxlcss4MtF3GfqcTo9oTM= X-Google-Smtp-Source: ABdhPJwxawRamVODM5GFxF6vDRZPipRKcLiPXgHT5YIq0YRXlPVcaclmm2PuQlJOS4PoOVMbP2BDHA== X-Received: by 2002:a5d:6b86:: with SMTP id n6mr2014868wrx.167.1592300017807; Tue, 16 Jun 2020 02:33:37 -0700 (PDT) Received: from linaro.org ([2a00:23c5:6801:1801:c5c1:794c:e67f:3280]) by smtp.gmail.com with ESMTPSA id s72sm3166391wme.35.2020.06.16.02.33.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 02:33:36 -0700 (PDT) From: Mike Leach To: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, mathieu.poirier@linaro.org Subject: [PATCH 1/3] coresight: Fix comment in main header file. Date: Tue, 16 Jun 2020 10:33:31 +0100 Message-Id: <20200616093333.31283-2-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200616093333.31283-1-mike.leach@linaro.org> References: <20200616093333.31283-1-mike.leach@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200616_023341_299810_EDF42415 X-CRM114-Status: GOOD ( 11.81 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.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 [2a00:1450:4864:20:0:0:0:443 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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_SIGNED Message has a DKIM or DK signature, not necessarily valid -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: Mike Leach , suzuki.poulose@arm.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Comment for an elemnt in the coresight_device structure appears to have been corrupted & makes no sense. Fix this before making further changes. Signed-off-by: Mike Leach Reviewed-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose --- include/linux/coresight.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/coresight.h b/include/linux/coresight.h index e55499dcc010..fc320dd2cedc 100644 --- a/include/linux/coresight.h +++ b/include/linux/coresight.h @@ -180,7 +180,8 @@ struct coresight_sysfs_link { * @enable: 'true' if component is currently part of an active path. * @activated: 'true' only if a _sink_ has been activated. A sink can be * activated but not yet enabled. Enabling for a _sink_ - * appens when a source has been selected for that it. + * happens when a source has been selected and a path is enabled + * from source to that sink. * @ea: Device attribute for sink representation under PMU directory. * @def_sink: cached reference to default sink found for this device. * @last_sink: Name of last sink used for this source to trace into. Set when From patchwork Tue Jun 16 09:33:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 11606951 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 98976618 for ; Tue, 16 Jun 2020 09:34:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 76B9020707 for ; Tue, 16 Jun 2020 09:34:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="HtMADsvv"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="y5x+xGuX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 76B9020707 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=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=tXfuOvJXpLzgMlCH5bakNjEfHwfn98l5Esvq2JXQOXg=; b=HtMADsvvDiP6NWSkMf9a8oIRIv Kq3/elKL7YOfkMjpxXxJ0x83dJiH1/CIeAGrW814zIpl8u+2Go2Hu3XzABblBkggz3oV+JSE+gPKq Q4GQNfyTHR/9QgvXjyf6GBt5STb5ck/v8yXckPEtveCpLVZX1M+I41Y67s1bwDfUQ4Q5Wi++0w+72 Q+KkuSr5F59DqXaDdAEuFi2GEw2jLRHlrLhZzaCEENNOOnxajWoLcbyPUgrBpy6GhohDg05AZSxcl 8+IeZWoztvWQQay9xBUqIv0zzuDslCng68NAb1JbqNe8VuB0AGC5IW9/7Ab8czkCzLOJ6FUABscz1 1O8e1kfg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jl7yq-00069k-RV; Tue, 16 Jun 2020 09:34:08 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jl7yO-0005fi-Bg for linux-arm-kernel@lists.infradead.org; Tue, 16 Jun 2020 09:33:44 +0000 Received: by mail-wr1-x444.google.com with SMTP id q11so20022690wrp.3 for ; Tue, 16 Jun 2020 02:33:40 -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=Dy5D7VvQs6lAMvvvXI7RWH+DLEr70PY2Qco3Y2BGZWQ=; b=y5x+xGuXe1DYGI72EVJ9QLUkm7Xw/xXJ47Z5lyO79YYfur88Wtfk+N1cNEagdkOys2 CnR/JoGhKCD/2ld/3eUNThLJfe59H3XqQhNSgg/rsWYgwD3Ch/a1iaGJ/is4pF1B3lXy AEssqE7ycnWaqetbf21ddm+09P0vD37cuq1eeNOnCjdJrfO0QGthJ43vJbwIlt2f8Ys2 hTjArnHzn9SDISGePLvwzc087T0Vh+WDZpC/aotB2UXwAPmDa/S1Kces0i344Ggzopa4 k5sU5oMdq+DkrPkKisU4GHsju40ibyjy6spZ61+omSD2S8yH+ZiIjWssC4XRu/Ek8JWq TABQ== 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=Dy5D7VvQs6lAMvvvXI7RWH+DLEr70PY2Qco3Y2BGZWQ=; b=elDUkuATL6SMSUmH4czvkXIszLoksuWVml0OltCIes10EiUccVZ6oLYX8J76pG8e1Q 6O7VSDZdope91jCEa3lkeEN+85RzyPOoWrBbDgpiXrphEbr9i7XqV2a3mjDn9UxXTIoc 0m8hPMrkuo7rm7D2rN7kzeZrtWu+q33onnfUrOoaa4b9iDQmjpzXzTo5G8cW+i5a2Or2 vKdyEw2m2SoVg5TRoHaYABeAp7V8zf9Of7ZHDUnF7BYwY7mRk3HJUIv0SUVtnQpN5Wbe aE6+dZ6PA7fz6172d1rdEFXb9JJW1pAQ01J8aKacy4rmqbs4yHk+AAwCQnM+Ni5o/1HZ Bkaw== X-Gm-Message-State: AOAM531lNLHpI6dgl6xHw1kAGRr0o6PJjP4VCOMfy2E8DSVrYFr8C6ZE l4WxWpr/e/ioGa34qq5gX2yZ0vfwlII= X-Google-Smtp-Source: ABdhPJyA/kADmHum2cQMcQ5/JMV1u/yVEwJ45ZI1USVYiTIfLc4OS6jIx8x90lDlYWrj4/EeUmu0Zw== X-Received: by 2002:a5d:4701:: with SMTP id y1mr2055792wrq.310.1592300018888; Tue, 16 Jun 2020 02:33:38 -0700 (PDT) Received: from linaro.org ([2a00:23c5:6801:1801:c5c1:794c:e67f:3280]) by smtp.gmail.com with ESMTPSA id s72sm3166391wme.35.2020.06.16.02.33.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 02:33:38 -0700 (PDT) From: Mike Leach To: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, mathieu.poirier@linaro.org Subject: [PATCH 2/3] coresight: etmv4: Counter values not saved on disable. Date: Tue, 16 Jun 2020 10:33:32 +0100 Message-Id: <20200616093333.31283-3-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200616093333.31283-1-mike.leach@linaro.org> References: <20200616093333.31283-1-mike.leach@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200616_023341_302873_4ADD008D X-CRM114-Status: GOOD ( 11.00 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.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 [2a00:1450:4864:20:0:0:0:444 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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_SIGNED Message has a DKIM or DK signature, not necessarily valid -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: Mike Leach , suzuki.poulose@arm.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The counter value registers change during operation, however this change is not reflected in the values seen by the user in sysfs. This fixes the issue by reading back the values on disable. Signed-off-by: Mike Leach --- drivers/hwtracing/coresight/coresight-etm4x.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c b/drivers/hwtracing/coresight/coresight-etm4x.c index 747afc875f91..60a5133d801c 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x.c +++ b/drivers/hwtracing/coresight/coresight-etm4x.c @@ -507,6 +507,12 @@ static void etm4_disable_hw(void *info) readl_relaxed(drvdata->base + TRCSSCSRn(i)); } + /* read back the current counter values */ + for (i = 0; i < drvdata->nr_cntr; i++) { + config->cntr_val[i] = + readl_relaxed(drvdata->base + TRCCNTVRn(i)); + } + coresight_disclaim_device_unlocked(drvdata->base); CS_LOCK(drvdata->base); From patchwork Tue Jun 16 09:33:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 11606953 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 2D47E618 for ; Tue, 16 Jun 2020 09:34:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 CB65D20707 for ; Tue, 16 Jun 2020 09:34:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="tQZUkdcu"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LHlZxBIS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CB65D20707 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=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=nseAEE91vecqC1fNcg9ODN4nLXMsAv71/uGbQsYHeZ0=; b=tQZUkdcu95M26VtVhjVKfWH9HL iQdd+eVCisWgjg/esTs6awWAvx7hgTY9JhYH+QDXBT38kOgS8juhmZFtzKfzckTSSbn0O1EYH2BdQ qIBZeYxG1XBlqWlUhAUVdN8sOTdg/zW85iadapax3OqqMyr1l9Ive7Qtf3bHxAhHDth9SeB4bobZk c/bRTzpKGkqriuieSe0ZCdsh7z7zRsbSSddEP3R042lNFUh52Ah7ecvKGXimW9hyTlpmumPa1v4Tf Q+L0k4wq2tRzAT2+Cfl60544gaZHr26zB72B7/MbcbcjQBQTlObso8m2ZULlnvoP2V6EYG0ZZfDrn f69xgd/w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jl7z1-0006Mn-Ka; Tue, 16 Jun 2020 09:34:19 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jl7yP-0005fk-EA for linux-arm-kernel@lists.infradead.org; Tue, 16 Jun 2020 09:33:44 +0000 Received: by mail-wm1-x343.google.com with SMTP id c71so2177319wmd.5 for ; Tue, 16 Jun 2020 02:33:41 -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=o6N9FT2w61islGiceZYS1dUe0vQYBPvSszz+F4WBlPk=; b=LHlZxBIS0SBnmFdJE6Nem6dNu5dWAatajps0vyyX2TrGDDA/pCZIxCaR2IbQE8gUjd ZKa0qEj5egM0bF3jStLClwLMqhzDBsYhYGLdMkX6tRzBEQF2DMs+S3qh9uKCywtUydwS gtAOsqedKZ5w3FzLYHCwnTraLkT6Yw3WY91wToqLSMko0MeEzHyZpMnmTeDxWlbQUfLQ O3gKX8sNaIJ6LDgR6QXrxpWCLXBL9cx3gBUcf7vSLloz0zL7XC4Ertst9A+/ujqb9UA3 prAAV4j7kO4YEp/u2LSGDe5W/9QuyuksjkfvLm5TWTeiTckPWA5T4tBN/OCySrECeryi Hppw== 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=o6N9FT2w61islGiceZYS1dUe0vQYBPvSszz+F4WBlPk=; b=P227+yqEmuY9Sw3KD5dWdMv04Z1knzsSEsJDivu2cK5sLdYXo74y1WaJY2JkNrssNx rX3jM6PLfsZFgQqVNHgrDLghRyTjSohUhYuPxZCB8aAzylUG9i1S8tZ1zVBhVAKtzmL3 OwPf2EWSPAt7rxktd+LYIRetqW3REKyngbkKh3vrIDZdhTYenaUe1jacv0PkZHgVwxMD FqORpnGyBxTjsbNuRJO5SfpyVJMc9NmgwAgCOVXOgodLF8BuHmLqu9y9z3fZVv8GMKCx M+ozLoP9z6L6OyApWwfvb89QbYgzY0HENwC28BLCz0qtlHSsn1YKikzzRxc3EK/ooM3f jdIA== X-Gm-Message-State: AOAM532cnye1kDWbGr4+F/YEV/KbWrL2d+p/C7i94gy+9Jrp+/FexR/0 ELbJkvwS70BwANg9u4gzOLqKA5+jLA4= X-Google-Smtp-Source: ABdhPJwgqX3ZbmmyWDg8DQ/slBBCFxmrqQIoHWc2xyYwDKEiWzuDefjF96HXvLLhPDma9P9qKXdBdQ== X-Received: by 2002:a7b:c343:: with SMTP id l3mr2257735wmj.178.1592300020076; Tue, 16 Jun 2020 02:33:40 -0700 (PDT) Received: from linaro.org ([2a00:23c5:6801:1801:c5c1:794c:e67f:3280]) by smtp.gmail.com with ESMTPSA id s72sm3166391wme.35.2020.06.16.02.33.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 02:33:39 -0700 (PDT) From: Mike Leach To: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, mathieu.poirier@linaro.org Subject: [PATCH 3/3] coresight: etmv4: Fix resource selector constant. Date: Tue, 16 Jun 2020 10:33:33 +0100 Message-Id: <20200616093333.31283-4-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200616093333.31283-1-mike.leach@linaro.org> References: <20200616093333.31283-1-mike.leach@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200616_023341_470419_997FA22F X-CRM114-Status: GOOD ( 10.48 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.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 [2a00:1450:4864:20:0:0:0:343 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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_SIGNED Message has a DKIM or DK signature, not necessarily valid -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: Mike Leach , suzuki.poulose@arm.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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 --- 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 4a695bf90582..b0d633daf716 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];