Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp39850pxf; Wed, 24 Mar 2021 20:16:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzM1bB8EirS4ztJ/C5yWbjqH9Y5M60STmBM24pi6PmXjiENN6WL48jbhFYp1naAL7aLnzK5 X-Received: by 2002:a17:906:7c48:: with SMTP id g8mr7289754ejp.138.1616642197785; Wed, 24 Mar 2021 20:16:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616642197; cv=none; d=google.com; s=arc-20160816; b=exRryRS62tx/LCzd/9rF6jEUS+GiG6Yq7VcQzU4jatYrjA61H+UrwT7xJGGdgOTQhJ LoHYdUvAgqht6IcxPcuApUHb3GY4JSMDNWbQqGrLhbygxd/Dpho7s4T+QsE9Rtp8fmwq Cwue7VA6QqeJWtEpJUvdqzWfHReDElM/qFC4t3mQpCqcVojD9ZtAV26lbLWeC4rg/p/2 GH+fOi8Vqg5Osx+UZbj6XjgNsnCQSlEqi6zq2VjSk26eNaiikkzId4efxLjVBNV1+oDO O8pC7nbfn3QVW6jNF3EsECsJknAV+3Vbu2DbWw++VF9sP5M/QtRqDstgpKsEO+yngJFR /fkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=uv0H/KcrtmqmcIdpUz12SZOzX1YeIIfmTq5ZGYdoC7A=; b=dalb1ZvESZ0FKAEgO94GqsIZ7tuPOjDVNQKWengxLw7W56TXbZu3MB3OwTy6H/5+nj PQBbUj/KWdCn9aaGvuYlkzm2lqdkg+7epXQzoJ18rIJNfNqYmwqeZzb0B4p1aZZYA3E9 9/5IVsUbncoTjQK6ckIqPVgexlrBLmeGdneK20YxJ41FOqF8vw9tps+2z8ukq4mbq6XS mY9XVV0bB4hMc9Sy9gB2IV9VEUyb5NNgPYz+n8f0PCQ2qy37dWizVcjy9vV1SCUInKXI JSpNiiXQM9M1ix76t4qVECHhw5Evz7T5RZO39W9wB3gaW3Z6Mtyi1LKNIMOqtX4nYpKQ Rwqg== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a18si3449053ejr.606.2021.03.24.20.16.15; Wed, 24 Mar 2021 20:16:37 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235288AbhCXQad (ORCPT + 99 others); Wed, 24 Mar 2021 12:30:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:38144 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbhCXQaa (ORCPT ); Wed, 24 Mar 2021 12:30:30 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4A18961A0E; Wed, 24 Mar 2021 16:30:30 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lP6Oq-003Yav-Hd; Wed, 24 Mar 2021 16:30:28 +0000 Date: Wed, 24 Mar 2021 16:30:27 +0000 Message-ID: <87tup0ikf0.wl-maz@kernel.org> From: Marc Zyngier To: Suzuki K Poulose Cc: Catalin Marinas , Mathieu Poirier , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org, mike.leach@linaro.org, leo.yan@linaro.org, anshuman.khandual@arm.com, Will Deacon Subject: Re: [PATCH v5 05/19] arm64: Add support for trace synchronization barrier In-Reply-To: <17e57b01-840b-dbeb-c09f-1c04becb8749@arm.com> References: <20210323120647.454211-1-suzuki.poulose@arm.com> <20210323120647.454211-6-suzuki.poulose@arm.com> <20210323182142.GA16080@arm.com> <7675ab71-c2ff-91e0-5728-fcb216ac1e0d@arm.com> <875z1gk6fo.wl-maz@kernel.org> <1b5e5bb2-b89f-fa35-0a8b-8c5476cb9ff6@arm.com> <871rc4jzn0.wl-maz@kernel.org> <17e57b01-840b-dbeb-c09f-1c04becb8749@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: suzuki.poulose@arm.com, catalin.marinas@arm.com, mathieu.poirier@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org, mike.leach@linaro.org, leo.yan@linaro.org, anshuman.khandual@arm.com, will.deacon@arm.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Mar 2021 16:25:12 +0000, Suzuki K Poulose wrote: > > On 24/03/2021 16:16, Marc Zyngier wrote: > > On Wed, 24 Mar 2021 15:51:14 +0000, > > Suzuki K Poulose wrote: > >> > >> On 24/03/2021 13:49, Marc Zyngier wrote: > >>> On Wed, 24 Mar 2021 09:39:13 +0000, > >>> Suzuki K Poulose wrote: > >>>> > >>>> On 23/03/2021 18:21, Catalin Marinas wrote: > >>>>> Hi Suzuki? > >>>>> > >>>>> On Tue, Mar 23, 2021 at 12:06:33PM +0000, Suzuki K Poulose wrote: > >>>>>> tsb csync synchronizes the trace operation of instructions. > >>>>>> The instruction is a nop when FEAT_TRF is not implemented. > >>>>>> > >>>>>> Cc: Mathieu Poirier > >>>>>> Cc: Mike Leach > >>>>>> Cc: Catalin Marinas > >>>>>> Cc: Will Deacon > >>>>>> Signed-off-by: Suzuki K Poulose > >>>>> > >>>>> How do you plan to merge these patches? If they go via the coresight > >>>>> tree: > >>>>> > >>>> > >>>> Ideally all of this should go via the CoreSight tree to have the > >>>> dependencies solved at one place. But there are some issues : > >>>> > >>>> If this makes to 5.13 queue for CoreSight, > >>>> > >>>> 1) CoreSight next is based on rc2 at the moment and we have fixes gone > >>>> into rc3 and later, which this series will depend on. (We could move > >>>> the next tree forward to a later rc to solve this). > >>>> > >>>> 2) There could be conflicts with the kvmarm tree for the KVM host > >>>> changes (That has dependency on the TRBE definitions patch). > >>>> > >>>> If it doesn't make to 5.13 queue, it would be good to have this patch, > >>>> the TRBE defintions and the KVM host patches queued for 5.13 (not sure > >>>> if this is acceptable) and we could rebase the CoreSight changes on 5.13 > >>>> and push it to next release. > >>>> > >>>> I am open for other suggestions. > >>>> > >>>> Marc, Mathieu, > >>>> > >>>> Thoughts ? > >>> > >>> I was planning to take the first two patches in 5.12 as fixes (they > >>> are queued already, and would hopefully land in -rc5). If that doesn't > >>> fit with the plan, please let me know ASAP. > >> > >> Marc, > >> > >> I think it would be better to hold on pushing those patches until we > >> have a clarity on how things will go. > > > > OK. I thought there was a need for these patches to prevent guest > > access to the v8.4 self hosted tracing feature that went in 5.12 > > though[1]... Did I get it wrong? > > Yes, that is correct. The guest could access the Trace Filter Control > register and fiddle with the host settings, without this patch. > e.g, it could disable tracing at EL0/EL1, without the host being > aware on nVHE host. OK, so we definitely do need these patches, don't we? Both? Just one? Please have a look at kvmarm/fixes and tell me what I must keep. Thanks, M. -- Without deviation from the norm, progress is not possible.