Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp831763pxb; Thu, 21 Oct 2021 10:17:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyL8OIoZ4X401OUaBpeww0lhJYMO19+NIRD9Z01MOo2AFJbSfb20M23FS6ePmrCs7HUKc1Q X-Received: by 2002:a05:6402:848:: with SMTP id b8mr9415358edz.328.1634836648373; Thu, 21 Oct 2021 10:17:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634836648; cv=none; d=google.com; s=arc-20160816; b=sWllw7q1pb3JuuIqMLmyjMyYMAYqyQDmrDWfGppcd7sRrBlREfkS12A+ySVQHePxQF wS3xxqi6cSTCp9hH4wAF+i4JR1S2v56dplCBb8MR+v2cR3NHFCaAyzKqVNXwchKb7e7H LaED/bmxeavcuI6P65TOIzP1cTy6WB5DtMpNFYSiZahMCJ6KpMZipPwnZtPK8G3WAhe/ YlOUOPTt/AV2vAgodYUGppQo9E+Zs5WJnRG+Y7GvSr12BAAq/mnf3RmDCa7j8TEaHO/c QP6VL12K9ctLTAcASb4EntJnY3QXOhR8628ZXYn+ouiCHuKiF2QnVuC5uC3Lo1MW/JWA lNqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qAoGLw6drI9R1j4qHjfBjMDXhe14eDMSEfxe7PtHo5M=; b=LV5NNYYzEJgG1IRZ58Q2SRGAInnaldPDIXoky9tKOAP4IAx8k8/hbSoxfST/e05GTZ G6Wf6N6alpHnf6hby1TWXhOJWrDSstq7cHN0vwD27oZPNvNcsX8tvGHaRBZUAPRu+TNh pQAayitHuLEVQkP1VwfHMl49ns7pGPXwoFFJqqdfQerA3cDCzrx1vMqaueXrl9YXmM33 9IrdEh5wL0D2v/4gLg9ix3b2HpEvlWpg1URwq2PM3/aur97emxcNYaEUKrGpDOp+zTev CYx3Tril8Mj8RvlSJi0SfMUE3nvyIUXYChku/KHmC10ybBf/P732dNgJo09x0T3uoWb3 KcvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AtL8W9yQ; 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 c10si9002842ejf.272.2021.10.21.10.17.03; Thu, 21 Oct 2021 10:17:28 -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; dkim=pass header.i=@linaro.org header.s=google header.b=AtL8W9yQ; 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 S232046AbhJURO3 (ORCPT + 99 others); Thu, 21 Oct 2021 13:14:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbhJURO0 (ORCPT ); Thu, 21 Oct 2021 13:14:26 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 235B1C061764 for ; Thu, 21 Oct 2021 10:12:10 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id w14so3846485edv.11 for ; Thu, 21 Oct 2021 10:12:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qAoGLw6drI9R1j4qHjfBjMDXhe14eDMSEfxe7PtHo5M=; b=AtL8W9yQZo5OypCxTMhudEFcBUxaPw8bq2jRqj3Ezq9pL9e0ZSGBRldCCUKqAG/bMB M+n+DZq2sQSEb8nMWk3heLIjIZN90Xj7XmSvLV2YQLxcvu6OpZ+s/BpcbdW/0TUt9yYP IXFcX7qba4PiYsy5xl5K97xqFUpuwTyi8Nv3oAqsPa7u/UlfF82MPS+6hgO4uzm84RPC nrFzdJaDmqbUEo1wOF52ALIiNxr6Kd8bVcFPc8bf+Vwfauatcc1xyjDt/js6mXT7uQvP uFN40x3TxUU8gBrqUxMYBDrItRMFytVO3GrsoGxYZC4UEtJLhgLZlK34N/ml3ZUSps+i ekZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qAoGLw6drI9R1j4qHjfBjMDXhe14eDMSEfxe7PtHo5M=; b=GDxjGOWV3eDOZaKPe0v3p9ktC6RWi4Jnzi5gGMtg7H8A2tZt+GR+Hy/ZFEG1fdfjuK ZKEywdtmqdmeDatGjp8WLvUTonwOgrESVvvY1/B5ltthgFa/0f37D4N32RGGpAUW9HgC XfU7txNYATVLn8AWysphCHu0S+syq9RPXzM184Rs5IKA4OKqdSGwBbBR2sSU9unf70BP tEzCz0v5nF0/llbAtf+M+N3k2sZGAvW8JcdpcBtxyYPw5rVAImku5ab9FXgLiAvmAg5A MfbrmhY2bDKLRvd5djZXUTpqBIKH5vTfvK6KzA+X/79hsMMgOH3IpH/FTskeJ0YbWSLZ rq6g== X-Gm-Message-State: AOAM532tSopZG59wjVdKzB23r7dLfpgO/ogIsp62J6FhgIWdcsnWPGin mwTHEBG0R8vTY759DvWyX2D55bkLub3xYcrowEmOcQ== X-Received: by 2002:a17:906:131a:: with SMTP id w26mr8286410ejb.548.1634836328610; Thu, 21 Oct 2021 10:12:08 -0700 (PDT) MIME-Version: 1.0 References: <20211019163153.3692640-1-suzuki.poulose@arm.com> <20211020154207.GA3456574@p14s> <20211021085313.GA15622@willie-the-truck> <20211021163531.GA3561043@p14s> <20211021164730.GA16889@willie-the-truck> In-Reply-To: <20211021164730.GA16889@willie-the-truck> From: Mathieu Poirier Date: Thu, 21 Oct 2021 11:11:56 -0600 Message-ID: Subject: Re: [PATCH v6 00/15] arm64: Self-hosted trace related errata workarounds To: Will Deacon , Greg KH Cc: Suzuki K Poulose , Catalin Marinas , Anshuman Khandual , Mike Leach , Leo Yan , Marc Zyngier , Coresight ML , linux-arm-kernel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Oct 2021 at 10:47, Will Deacon wrote: > > Hi Mathieu, > > [CC Greg] > > On Thu, Oct 21, 2021 at 10:35:31AM -0600, Mathieu Poirier wrote: > > On Thu, Oct 21, 2021 at 09:53:14AM +0100, Will Deacon wrote: > > > On Wed, Oct 20, 2021 at 09:42:07AM -0600, Mathieu Poirier wrote: > > > > On Tue, Oct 19, 2021 at 05:31:38PM +0100, Suzuki K Poulose wrote: > > > > > Suzuki K Poulose (15): > > > > > arm64: Add Neoverse-N2, Cortex-A710 CPU part definition > > > > > arm64: errata: Add detection for TRBE overwrite in FILL mode > > > > > arm64: errata: Add workaround for TSB flush failures > > > > > arm64: errata: Add detection for TRBE write to out-of-range > > > > > coresight: trbe: Add a helper to calculate the trace generated > > > > > coresight: trbe: Add a helper to pad a given buffer area > > > > > coresight: trbe: Decouple buffer base from the hardware base > > > > > coresight: trbe: Allow driver to choose a different alignment > > > > > coresight: trbe: Add infrastructure for Errata handling > > > > > coresight: trbe: Workaround TRBE errata overwrite in FILL mode > > > > > coresight: trbe: Add a helper to determine the minimum buffer size > > > > > coresight: trbe: Make sure we have enough space > > > > > coresight: trbe: Work around write to out of range > > > > > arm64: errata: Enable workaround for TRBE overwrite in FILL mode > > > > > arm64: errata: Enable TRBE workaround for write to out-of-range > > > > > address > > > > > > > > > > Documentation/arm64/silicon-errata.rst | 12 + > > > > > arch/arm64/Kconfig | 111 ++++++ > > > > > arch/arm64/include/asm/barrier.h | 16 +- > > > > > arch/arm64/include/asm/cputype.h | 4 + > > > > > arch/arm64/kernel/cpu_errata.c | 64 +++ > > > > > arch/arm64/tools/cpucaps | 3 + > > > > > drivers/hwtracing/coresight/coresight-trbe.c | 394 +++++++++++++++++-- > > > > > 7 files changed, 567 insertions(+), 37 deletions(-) > > > > > > > > I have applied this set. > > > > > > Mathieu -- the plan here (which we have discussed on the list [1]) is > > > for the first four patches to be shared with arm64. Since you've gone > > > ahead and applied the whole series, please can you provide me a stable > > > branch with the first four patches only so that I can include them in > > > the arm64 tree? > > > > > > Failing that, I can create a branch for you to pull and apply the remaining > > > patches on top. > > > > > > Please let me know. > > > > Coresight patches flow through Greg's tree and as such the coresight-next tree > > gets rebased anyway. I will remove the first 4 patches and push again. By the > > way do you also want to pick up patches 14 and 16 since they are concerned with > > "arch/arm64/Kconfig" or should I keep them? > > I'll take the first 4 and put them on a stable branch, which you can choose > to pull if you like (but please don't rebase it or we'll end up with > duplicate commits). The rest of the patches, including the later Kconfig > changes, are yours but I doubt they'll apply cleanly without the initial > changes. Right - I just had another look at them and what I suggested above won't work. > > Are you sure Greg rebases everything? That sounds a bit weird to me, as it > means it's impossible to share branches with other trees. How do you usually > handle this situation? Greg applies the patches I send to him near the end of every cycle - see this one [1] as an example. Unfortunately that way of working makes it hard to deal with patchsets such as this one. To move forward you can either pick up this whole series (just add my RB to all the CS patches) or I start sending pull requests to Greg. Greg - what's your take on this? [1]. https://www.spinics.net/lists/arm-kernel/msg915961.html > > Will