Message ID | 20200916191737.4001561-12-mathieu.poirier@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=u8n1=CZ=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> 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 66D8459D for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 16 Sep 2020 19:19:41 +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 289242075E for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 16 Sep 2020 19:19:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="3Gloa4QP"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YtgtRm6T" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 289242075E 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=8JKLBh71iPapRPuMkHKD/ERSPdMC58sEX8zUVyazKeY=; b=3Gloa4QPNXuLhF+ob6zlFKnGA Y67cHPGZ1Zqpo5cSQpyS4W/Zms19CIRxixWydJ5DbsTy2iwbJKK7yxhUSAxG/wWsZS5gAkEVnQgiw guSWkCC1CBiratyfOO1cKyZ3ZZrZWMb2lJi4i7a4xMOg9HkRobOaJzscx/pwuHb42wH0IRO0ZGK5x SY9vn7880pAoDxn3EuEzLt6xKK6XybeZYwWUDyDQcY6ez8t2Uy3puWc2cpAB6G+9INwChgTGjfwWp V9fgvnbmOwWHlQbwNDQYlIeYZvFfUahMj2jVQJJWmB8XW8TrMY/ZRQQ2eutOmMxbRgdLvmBo5pQIf GC1frsdQg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIcxk-0005le-8G; Wed, 16 Sep 2020 19:19:28 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIcwD-00059O-BD for linux-arm-kernel@lists.infradead.org; Wed, 16 Sep 2020 19:17:57 +0000 Received: by mail-pl1-x641.google.com with SMTP id k13so3716775plk.3 for <linux-arm-kernel@lists.infradead.org>; Wed, 16 Sep 2020 12:17:53 -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=jRmm8bmeMmrl//Bh/Ohg4sjapVcVZVx2mLqHhA1BT1E=; b=YtgtRm6TEPQvXCCQlKgRxDG0S9XeFfuisPV0mES7rQozmfBpG5lrpS588yY1oBbI5j xlID4XzrtSFfGPpHD0b3cOkkmXzZ8p5fuNJQciDrQex4Sg0WcT/XHxsver3FlqKWyfmJ Sxv9k3XT9xtRmkNnCBfsdESg/J7TCgKnbH8MWiu+yIyB1CtJRFou8LGJxebilCWiWOvp gK52G2bLycPM7FhnDbG1EJxVM3LZiTLkXhvHuDRuetHavFy7Ytwq5WI1Y5uA5J3XiUuL AJHC4XV8l19lO380HPRoBKQw7dmCupL8GHaHt7xMkywIkcQGKWJlKM0XYI225SJXhA9g Duew== 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=jRmm8bmeMmrl//Bh/Ohg4sjapVcVZVx2mLqHhA1BT1E=; b=hoz0hVpojGHWLH9HJNTQhH+tm30o5GnZCJDnAn4TI0WUHLmEmw5vlV3chCzk1miXEr 9aY+A3IpL4NtXSogZ18pBMLEEol21Bvi9obpWXTL4Mmy8qVK9bKfGYi27+wYdrFwgEAP sUPtTM+JzZpBi98st6K6MWFfwY+IiKc9kGy4fKrOzUVI1TcQPxm066isASwIIplnXyw5 MUXp+9U+O8XZGOsA+li9j+GsjFdnfOSgfWGmgG9r7q7X9Ai8aHfDv/DnQf1Jc2GctUXy gJvmKGWsrONMpsTNJhlaKyrDN7XwVzbMqXeZ8HtrGhfkefQuqPrhx0XqxTt5oamv+uBS eTyA== X-Gm-Message-State: AOAM53250AEBnvWEWYkTLEuBXkygB1FTNgT6dd2KF8Ab+/mewmI1jK5a gHBM0zd7QORoiHfLX/iwKLgtWqEWgVnL+w== X-Google-Smtp-Source: ABdhPJyS90vU7UFhu+3Ljfr6q8tDhE2e9b1N/bzcYtV307XVKEF5v+8dvOcsbZ6QSd7yIayFFIe7yw== X-Received: by 2002:a17:902:bf4b:b029:d1:cc21:985b with SMTP id u11-20020a170902bf4bb02900d1cc21985bmr13973978pls.32.1600283871628; Wed, 16 Sep 2020 12:17:51 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id b2sm11373688pfp.3.2020.09.16.12.17.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 12:17:51 -0700 (PDT) From: Mathieu Poirier <mathieu.poirier@linaro.org> To: gregkh@linuxfoundation.org Subject: [PATCH 11/16] coresight: etm4x: Fix issues on trcseqevr access Date: Wed, 16 Sep 2020 13:17:32 -0600 Message-Id: <20200916191737.4001561-12-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200916191737.4001561-1-mathieu.poirier@linaro.org> References: <20200916191737.4001561-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-20200916_151753_430157_2DF64E52 X-CRM114-Status: GOOD ( 14.54 ) 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:641 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_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
coresight: next v5.9-rc5
|
expand
|
diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c b/drivers/hwtracing/coresight/coresight-etm4x.c index 63cb1e0d5953..b29ad4f7fac2 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x.c +++ b/drivers/hwtracing/coresight/coresight-etm4x.c @@ -1193,7 +1193,7 @@ static int etm4_cpu_save(struct etmv4_drvdata *drvdata) state->trcvdsacctlr = readl(drvdata->base + TRCVDSACCTLR); state->trcvdarcctlr = readl(drvdata->base + TRCVDARCCTLR); - for (i = 0; i < drvdata->nrseqstate; i++) + for (i = 0; i < drvdata->nrseqstate - 1; i++) state->trcseqevr[i] = readl(drvdata->base + TRCSEQEVRn(i)); state->trcseqrstevr = readl(drvdata->base + TRCSEQRSTEVR); @@ -1298,7 +1298,7 @@ static void etm4_cpu_restore(struct etmv4_drvdata *drvdata) writel_relaxed(state->trcvdsacctlr, drvdata->base + TRCVDSACCTLR); writel_relaxed(state->trcvdarcctlr, drvdata->base + TRCVDARCCTLR); - for (i = 0; i < drvdata->nrseqstate; i++) + for (i = 0; i < drvdata->nrseqstate - 1; i++) writel_relaxed(state->trcseqevr[i], drvdata->base + TRCSEQEVRn(i));