Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp624272rwb; Thu, 22 Sep 2022 04:33:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ZYkp+dQAlf9Z8JC1VDZIOn3CN1eh2ZUEetJtum4eVRKIZLXWya57FH2sxZXliPKS8FLpD X-Received: by 2002:aa7:da4f:0:b0:44e:864b:7a3e with SMTP id w15-20020aa7da4f000000b0044e864b7a3emr2847011eds.378.1663846381649; Thu, 22 Sep 2022 04:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663846381; cv=none; d=google.com; s=arc-20160816; b=JJrnK7iaLBz16e+7hingLnISP2Fk/hoErnpC3moVYEreZElGib7/WVq8YdzDetSTGO Tb4ZRyMkZKXP0g0NbxFWdN9PVY3jK93O/nS1opIK3v3PBQFyIdT7OwVxVsA1JeWEgiYs v6Mg0xLqtoPx89L+Rm12bPArDroaozqxGuujYt1QhBSnOOKqmG6mLjLl0muQx+fLwLS4 nmtTdbLQmNo1Gu9xOHCheUTkGyqMS5rhP1OsA98IBKz8UWnMmP+Ww7kUiTQkosjOutFC k0DxjKz0rTz5X6Fp9m+ibRuI0NjGRVW65gc6L9uXOakzs+6+DKOcMt2NQYKBN7g3vzvJ H6gQ== 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; bh=yxTi8gjDQlUDKPBBRnfeZJ37BFsFC/AtYOUwv2JiexA=; b=uQajZRkNNZBmo610N26BIDUmnTL6QGzCKYjXV71NmNDRdHzq7liBgF/PRJWnKCjoe1 ETa/bTb36mQegKA6tqXW0R0xKhaPmbuNZiRA0GWxZUxldQ49fniaheBh5np6Ky7HTlct yCeHG/INWqDUdNc2W2b7q62YWjGHz4oPcccxUrP+VCiw+OHeFjkpDEOTv6dwpyELxoHS 1Q8QqQDJ7qMwlPBRrkQCgLB1jXSTERuQoJMB1GPrJF14CO82S+MgI9yUPke6M+2T28th M9+VLqxUBXH1/y1qY3cmfUGql3fSG2g3ezRy9MJwwOXTNbwoBDdKpCkZ/LsdwnG/cYf5 1kzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t23-20020a1709066bd700b00780b95a07b4si4589260ejs.873.2022.09.22.04.30.21; Thu, 22 Sep 2022 04:33:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230410AbiIVKw6 (ORCPT + 99 others); Thu, 22 Sep 2022 06:52:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230122AbiIVKw4 (ORCPT ); Thu, 22 Sep 2022 06:52:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10AEAD12CF for ; Thu, 22 Sep 2022 03:52:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A3B3B62C17 for ; Thu, 22 Sep 2022 10:52:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B825C433D6; Thu, 22 Sep 2022 10:52:52 +0000 (UTC) Date: Thu, 22 Sep 2022 11:52:48 +0100 From: Catalin Marinas To: James Clark Cc: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, suzuki.poulose@arm.com, mathieu.poirier@linaro.org, mike.leach@linaro.org, leo.yan@linaro.org, broonie@kernel.org, linux-kernel@vger.kernel.org, Will Deacon , Mark Rutland Subject: Re: [PATCH 0/1] arm64: defconfig: Add Coresight as module Message-ID: References: <20220921140535.152627-1-james.clark@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 22, 2022 at 10:34:45AM +0100, James Clark wrote: > On 21/09/2022 16:08, Catalin Marinas wrote: > > 2. Always on CONFIG_PID_IN_CONTEXTIDR (we might as well remove the > > Kconfig entry). This would write the root pid namespace value > > (task_pid_nr()). > > If we're not worried about the overhead after all, this would be the > easiest solution. And then SPE or Coresight already decide whether they > want to use the value or not, so no further changes are needed. > > From Leo's patch there is a table that shows a 1% overhead with it > enabled permanently, and I've heard a figure like that mentioned before. > So I could also resurrect that patch to use static keys? Although it's a > bit more complicated, that would be my preference. And then we can have > that mode always on. I don't think we should bother with static keys, just always enable it but try to reduce/group the ISBs from all the functions called on the __switch_to() path. We may actually get a speed-up. -- Catalin