Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp759077pxb; Fri, 28 Jan 2022 09:20:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzI9Q4fyES/AVSwmYVzIgFdmmxMj5/C/j9cBAz3GLZRjpU4tiupAA/TO9n/DaraIhxqM0iD X-Received: by 2002:a17:90b:4f44:: with SMTP id pj4mr10886639pjb.167.1643390430973; Fri, 28 Jan 2022 09:20:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643390430; cv=none; d=google.com; s=arc-20160816; b=QwtwneSyCP4dm+MCDDXARM2zVFFJAyN/bH/zlylnULvdllbfw4zQTho6hz7Ovy3p0H kXpgyA4hT90m90NJySEDAXxYcz5n6WWTa7NbJkZae4UPRQbAV28bUm4gy5UMhgWtmfYK K0GF9QZyi6Q6nKsUG9uuEacdBYxU3x8S+eSZhGadOUBepeZwm9lbQL+/MJQAjLEIMQ3R lfVZxA9C3wZlIDiZhAjpy60SsBaEU/0nMb/S2102iZlItL7iU+aQtZd8gOJxPOQV0/Ou gcNKIOA/otPCPKlDEnEJwY1Qo8wP0k2LykBHjGATBzXj4o0BxKV8+Q/lhaM/rMlgkcmj qRNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iKuuVqdayh65BOs3QlcJ6pbf0rkmkRMe+Lp1oFkny8c=; b=wt0zHbPX1ac5vm65TZvqpJz49OYZH7HThSnAy3apBvtp7Ddl9MhN6UEUqmJMwThXnl XxIf5xT23aKNO4lnHdn42GnTNB2eRFT/h4/rBs6kKRToZ2gR0JsgQsq+OHCCJbYpKlkN 22zw5mZXm4aMYeqvfHZxQzrXGiiPZAcUrMO2XT+lzU8C07/K2wOkLj/a1GhqXbVcr23G vy3uBOUeKI6bvwzo2ES3zGRI5N0c/aYFL2fb4UdhSqsL0FP1tDRK1VMh4iiPi5cK/KOL 8KGt2lCiF/b4QkqyOxHYh0P9A8GKkVKVQHoj7cAUCnF1kg/sERW7ZdLFPyCggLf1EXrX Z4wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bbAvaOrB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x67si5291137pfx.122.2022.01.28.09.20.18; Fri, 28 Jan 2022 09:20:30 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=bbAvaOrB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344010AbiA0UWY (ORCPT + 99 others); Thu, 27 Jan 2022 15:22:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343981AbiA0UWX (ORCPT ); Thu, 27 Jan 2022 15:22:23 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B7E6C06173B for ; Thu, 27 Jan 2022 12:22:23 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id z14-20020a17090ab10e00b001b6175d4040so2994211pjq.0 for ; Thu, 27 Jan 2022 12:22:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=iKuuVqdayh65BOs3QlcJ6pbf0rkmkRMe+Lp1oFkny8c=; b=bbAvaOrBiYQC7RFxWBcx8VnN8m184zyOBkf16LekFtzpPyThJ4lx2gNpt/eZEV+wiy Im4jCQzSINPD87Ptw0Do0AmiL01Gc8WgVMJUSQaaWnppa0Ql7QMmxWs7d/uj5aW2thZG +gXMDt3UmgHUGpqJmeNIKGrHLTw1EEJ826Xy1IXiPYOMxipNOk6/HlYxa9GwVmZjU9oG Ck8IOzu+lLqAc4quoZGHI2vN0a1tEdQmf/4LeWrTpB1CkPTnxMHI1uPW4KjH/Yk+CioC QO062WshhfvjMHgzRibp9SknkZkQF0HqZCxk2ClfPL7gjAp+cr4k+r/6JJ7+K4LLVnXk 8jZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=iKuuVqdayh65BOs3QlcJ6pbf0rkmkRMe+Lp1oFkny8c=; b=MkPzuu9kP2jMLed4F6pi6tTaRk/fpPtR/nmMdCZoqM+qbQDrIDUycCAr5UyVnNSbVK JHnIpyw/ycGx1eiL8KjvUZ5rneLQaBklOysHc0DJAkDJWyiB2nMnkdL15XI+wKwj2chu 5XMrJM9JgI+hPhRXjXU3j+Sa3XQFfQ5YiAz5OfF/4ECwR9J08AraQG1c2Bhi2om4X2JH XifbJUBJrm60N7FoV/miyRmPTopWqbAfYTFhI3TuKpAgweDZJEYxGVA3bZQ569jYFmNK Cy4pSKYbp56k/VCDRkeQzhdtfmuSrlGTmQCchwGe4lPLRVeZp/wpfUhQVHhdSH9IkFh0 JLKw== X-Gm-Message-State: AOAM532kS/9p9kECqtPt/Z6JiRiAa4oIMakXOeU+4ah+NUZOWKrh47K/ 3ht/aIZ/NzIuY2tjq2GnedLKoQ== X-Received: by 2002:a17:902:ce84:: with SMTP id f4mr4634037plg.140.1643314943089; Thu, 27 Jan 2022 12:22:23 -0800 (PST) Received: from p14s (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id om6sm177678pjb.24.2022.01.27.12.22.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 12:22:22 -0800 (PST) Date: Thu, 27 Jan 2022 13:22:20 -0700 From: Mathieu Poirier To: Anshuman Khandual Cc: linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , Suzuki Poulose , coresight@lists.linaro.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V3 RESEND 0/7] coresight: trbe: Workaround Cortex-A510 erratas Message-ID: <20220127202220.GA2191206@p14s> References: <1643120437-14352-1-git-send-email-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1643120437-14352-1-git-send-email-anshuman.khandual@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 25, 2022 at 07:50:30PM +0530, Anshuman Khandual wrote: > This series adds three different workarounds in the TRBE driver for > Cortex-A510 specific erratas. But first, this adds Cortex-A510 specific cpu > part number definition in the platform. This series applies on 5.17-rc1. > > Relevant errata documents can be found here. > > https://developer.arm.com/documentation/SDEN2397239/900 > https://developer.arm.com/documentation/SDEN2397589/900 > > Changes in V3: > > https://lore.kernel.org/all/1641872346-3270-1-git-send-email-anshuman.khandual@arm.com/ > > - Moved the comment inside trbe_needs_drain_after_disable() > - Moved the comment inside trbe_needs_ctxt_sync_after_enable() > > Changes in V2: > > https://lore.kernel.org/all/1641517808-5735-1-git-send-email-anshuman.khandual@arm.com/ > > Accommodated most review comments from the previous version. > > - Split all patches into CPU errata definition, detection and TRBE workarounds > - s/TRBE_WORKAROUND_SYSREG_WRITE_FAILURE/TRBE_NEEDS_DRAIN_AFTER_DISABLE > - s/TRBE_WORKAROUND_CORRUPTION_WITH_ENABLE/TRBE_NEEDS_CTXT_SYNC_AFTER_ENABLE > - s/trbe_may_fail_sysreg_write()/trbe_needs_drain_after_disable() > - s/trbe_may_corrupt_with_enable()/trbe_needs_ctxt_sync_after_enable() > - Updated Kconfig help message for config ARM64_ERRATUM_1902691 > - Updated error message for trbe_is_broken() detection > - Added new trblimitr parameter to set_trbe_enabled(), improving performance > - Added COMPILE_TEST dependency in the errata, until TRBE part is available > > Changes in V1: > > https://lore.kernel.org/lkml/1641359159-22726-1-git-send-email-anshuman.khandual@arm.com/ > > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Mathieu Poirier > Cc: Suzuki Poulose > Cc: coresight@lists.linaro.org > Cc: linux-doc@vger.kernel.org > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > > Anshuman Khandual (7): > arm64: Add Cortex-A510 CPU part definition > arm64: errata: Add detection for TRBE ignored system register writes > arm64: errata: Add detection for TRBE invalid prohibited states > arm64: errata: Add detection for TRBE trace data corruption > coresight: trbe: Work around the ignored system register writes > coresight: trbe: Work around the invalid prohibited states > coresight: trbe: Work around the trace data corruption > > Documentation/arm64/silicon-errata.rst | 6 + > arch/arm64/Kconfig | 59 ++++++++++ > arch/arm64/include/asm/cputype.h | 2 + > arch/arm64/kernel/cpu_errata.c | 27 +++++ > arch/arm64/tools/cpucaps | 3 + > drivers/hwtracing/coresight/coresight-trbe.c | 114 ++++++++++++++----- > drivers/hwtracing/coresight/coresight-trbe.h | 8 -- > 7 files changed, 183 insertions(+), 36 deletions(-) I have applied this set and sent a pull request to Catalin for the arm64 portion. Thanks, Mathieu > > -- > 2.25.1 >