Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2743139pxb; Tue, 21 Sep 2021 06:47:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrhr3R51LSZv1iv/j5Dgp1RY1TiMHvB/colZhtcJgd+S2fyC7uclGr5l/SXbnL6z25PLes X-Received: by 2002:aa7:d0cf:: with SMTP id u15mr35021655edo.43.1632232026581; Tue, 21 Sep 2021 06:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632232026; cv=none; d=google.com; s=arc-20160816; b=tVlEhGSBrhYrY7c2tZAnNYAt4sRHks2JkZA4vZSG5xyToX7rSXfch2AXy7hpGovJLI rReBW6S1vA43qhzmTaNJRCzeEUgIFo8H4uMt8FIX4NbMQJ8BtJbq7bNi5dki6q5v74Ox xOM/gq/wdNy04EC1bVxMd0JclGxzWGaUnym28ZXLIwAn+zRDW1lZA1BkJzI/G285aX8k m04o4yXOlvNiyYJXXSThszLyPgU3IOIBGSyt+jknx4iVU4Vwd79ElZcop6lK7oxEFVBL pW+rvALzBuGo4DaVznIoozK1SNKLZdNfgBczTyEjlpkE8sMxlZqiD92O/5qMjtQa5b+I ciUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=E16OG92bJyCAICqqiF/wSIgBBt9JNFlJWGdnly0usZM=; b=tybXqm9rhQQ8Nh9BKPJWodToDAAG8KAGvuLxrX3kkrhvtCAGuhWe+v/nFIE9ZjJrDt wP9SthcuWeyZbI0O4MFfgrgXNCsNzZPt8O1xYIsVzDIe4StT2PBeLPDcl4A8JLid8bO/ dkZErN96OMPwEPlL5ZhxwL5PXUho+TKsFmcb+H7IEbc0ZufioZvmmqA2UjElLTvkGJRW t8MfQxuJr6bjM0eeOwgGsWgWtM/vtBbvxDLO8tK1y5g+5LK2IQk1TWLDRvYpRSvsGYPS WP4peDgHa6snHhtBSBsAg0tDEpqeTs5o6a1q9QhveiEM2qL6EkQ6PM4Wwvx4LKFLUxeu Wmow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q1si19375381ejr.43.2021.09.21.06.46.28; Tue, 21 Sep 2021 06:47:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233099AbhIUNnY (ORCPT + 99 others); Tue, 21 Sep 2021 09:43:24 -0400 Received: from foss.arm.com ([217.140.110.172]:33880 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233376AbhIUNnS (ORCPT ); Tue, 21 Sep 2021 09:43:18 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D801B11B3; Tue, 21 Sep 2021 06:41:49 -0700 (PDT) Received: from ewhatever.cambridge.arm.com (ewhatever.cambridge.arm.com [10.1.197.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1CA823F40C; Tue, 21 Sep 2021 06:41:48 -0700 (PDT) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, maz@kernel.org, catalin.marinas@arm.com, mark.rutland@arm.com, james.morse@arm.com, anshuman.khandual@arm.com, leo.yan@linaro.org, mike.leach@linaro.org, mathieu.poirier@linaro.org, will@kernel.org, lcherian@marvell.com, coresight@lists.linaro.org, Suzuki K Poulose Subject: [PATCH v2 10/17] arm64: Enable workaround for TRBE overwrite in FILL mode Date: Tue, 21 Sep 2021 14:41:14 +0100 Message-Id: <20210921134121.2423546-11-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20210921134121.2423546-1-suzuki.poulose@arm.com> References: <20210921134121.2423546-1-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that we have the work around implmented in the TRBE driver, add the Kconfig entries and document the errata. Cc: Mark Rutland Cc: Will Deacon Cc: Catalin Marinas Cc: Anshuman Khandual Cc: Mathieu Poirier Cc: Mike Leach Cc: Leo Yan Signed-off-by: Suzuki K Poulose --- Documentation/arm64/silicon-errata.rst | 4 +++ arch/arm64/Kconfig | 39 ++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/Documentation/arm64/silicon-errata.rst b/Documentation/arm64/silicon-errata.rst index d410a47ffa57..2f99229d993c 100644 --- a/Documentation/arm64/silicon-errata.rst +++ b/Documentation/arm64/silicon-errata.rst @@ -92,12 +92,16 @@ stable kernels. +----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-A77 | #1508412 | ARM64_ERRATUM_1508412 | +----------------+-----------------+-----------------+-----------------------------+ +| ARM | Cortex-A710 | #2119858 | ARM64_ERRATUM_2119858 | ++----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-N1 | #1188873,1418040| ARM64_ERRATUM_1418040 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-N1 | #1349291 | N/A | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-N1 | #1542419 | ARM64_ERRATUM_1542419 | +----------------+-----------------+-----------------+-----------------------------+ +| ARM | Neoverse-N2 | #2139208 | ARM64_ERRATUM_2139208 | ++----------------+-----------------+-----------------+-----------------------------+ | ARM | MMU-500 | #841119,826419 | N/A | +----------------+-----------------+-----------------+-----------------------------+ +----------------+-----------------+-----------------+-----------------------------+ diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 077f2ec4eeb2..eac4030322df 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -666,6 +666,45 @@ config ARM64_ERRATUM_1508412 If unsure, say Y. +config ARM64_WORKAROUND_TRBE_OVERWRITE_FILL_MODE + bool + +config ARM64_ERRATUM_2119858 + bool "Cortex-A710: 2119858: workaround TRBE overwriting trace data in FILL mode" + default y + depends on CORESIGHT_TRBE + select ARM64_WORKAROUND_TRBE_OVERWRITE_FILL_MODE + help + This option adds the workaround for ARM Cortex-A710 erratum 2119858. + + Affected Cortex-A710 cores could overwrite upto 3 cache lines of trace + data at the base of the buffer (ponited by TRBASER_EL1) in FILL mode in + the event of a WRAP event. + + Work around the issue by always making sure we move the TRBPTR_EL1 by + 256bytes before enabling the buffer and filling the first 256bytes of + the buffer with ETM ignore packets upon disabling. + + If unsure, say Y. + +config ARM64_ERRATUM_2139208 + bool "Neoverse-N2: 2139208: workaround TRBE overwriting trace data in FILL mode" + default y + depends on CORESIGHT_TRBE + select ARM64_WORKAROUND_TRBE_OVERWRITE_FILL_MODE + help + This option adds the workaround for ARM Neoverse-N2 erratum 2139208. + + Affected Neoverse-N2 cores could overwrite upto 3 cache lines of trace + data at the base of the buffer (ponited by TRBASER_EL1) in FILL mode in + the event of a WRAP event. + + Work around the issue by always making sure we move the TRBPTR_EL1 by + 256bytes before enabling the buffer and filling the first 256bytes of + the buffer with ETM ignore packets upon disabling. + + If unsure, say Y. + config CAVIUM_ERRATUM_22375 bool "Cavium erratum 22375, 24313" default y -- 2.24.1