Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp774219rwb; Thu, 22 Sep 2022 06:19:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Pa8Ppmg58sPMiI/BGo3LMLQ2/N5MUSyMEt4QupBbkol0/tpxQWZba3cPaqc3DjVRObNXa X-Received: by 2002:a17:907:7202:b0:780:c42e:8aa2 with SMTP id dr2-20020a170907720200b00780c42e8aa2mr2853021ejc.165.1663852753188; Thu, 22 Sep 2022 06:19:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663852753; cv=none; d=google.com; s=arc-20160816; b=gtyP7M4MA9YgzZN7yNO6lr91Syn7nXr6xWxCUtvXpmZ+eRcNSNiRr69j512dxsFoh0 6rcChxa6vbCXM+VJ48bjOEsH/rmNMO/7GbXQTIopBNcKjdk+rfuRlh42JFwkOgN2Cwez GjiNWC5sghXBxJna04bgU1RbBsRYO+fEB/E48AYZN1fptnYZx2sPTicI6yMlBDl3x1NF ltXcnGT34pzkvzAXjV8DEErLwZpBY22IE9sw+9erPYYg0OMFls2LATF8Dp+SKiJWo0Xc p7aWT1lPWvd2IvQqDERiPi7FpUUcxxFc3jELNRWxmHMLuxyIeowxerVS7CjwDwcMmWf3 KngQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=2T0mpan3KTPenK97kllp4v/49Ki93+xDI2DG7I02fd4=; b=DlDqQe7iaR+LXQu2XETPJHttsOSuJ7twV5v0bq0JOqQtxyciVW33pfvX7RM0m+S5Pk l1BMo7FJFGA/YAKhZj3+6t2Q+2knutBtkPIGbv4izuP+/ZkVc+NnLr/XV6O1fEOfKS6a jvOT0PzkXdnf14zMKSvAm1KvpFI9gqtqkSBakhf93T0CHAwJDTWFRObkacfIyy4USiDc AiWOB6JIK7ufF9XeK6zjklRpLiqMMhiMXtsq6VcDGowJCxgUCc1UNSO/ZSt/KuDdyQWZ yXlbKx1qtShcwUnsaa9941xFRLyaN/BsZTvYejIsfqGnn6VRPphi2Q1rUGKz4tkxmiYD GFUA== 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 hw8-20020a170907a0c800b00781714a1f26si5118040ejc.518.2022.09.22.06.18.46; Thu, 22 Sep 2022 06:19:13 -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 S230107AbiIVNGu (ORCPT + 99 others); Thu, 22 Sep 2022 09:06:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229704AbiIVNGq (ORCPT ); Thu, 22 Sep 2022 09:06:46 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CD799EBBC0 for ; Thu, 22 Sep 2022 06:06:45 -0700 (PDT) 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 29F8A1595; Thu, 22 Sep 2022 06:06:52 -0700 (PDT) Received: from [10.57.1.91] (unknown [10.57.1.91]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0ACD83F73B; Thu, 22 Sep 2022 06:06:43 -0700 (PDT) Message-ID: <489f42fc-2ec1-510b-6f3f-017ee10ee7d2@arm.com> Date: Thu, 22 Sep 2022 14:06:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 0/1] arm64: defconfig: Add Coresight as module Content-Language: en-US To: Catalin Marinas 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 References: <20220921140535.152627-1-james.clark@arm.com> From: James Clark In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE 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 22/09/2022 11:52, Catalin Marinas wrote: > 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. > Ok thanks I will take a look at this