Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp287728iob; Wed, 18 May 2022 02:10:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmugMcG7z+eOcB27MBB7ZXswQTBoC1zzyxo2hFX63ceXVGeoWErwWt3XY/BsXVtroIrjso X-Received: by 2002:a62:15ca:0:b0:518:2bd1:aa65 with SMTP id 193-20020a6215ca000000b005182bd1aa65mr1920079pfv.78.1652865007293; Wed, 18 May 2022 02:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652865007; cv=none; d=google.com; s=arc-20160816; b=dLHJnS83fpniYNrty1fcyxZh3UEb6aHbUvvbZ+nkakgVegXYI74ftPrv8vlCBRTiu4 XdYzxf+9DXWdSttykJoWqINB6QQY1vZ9PyMqadJ+s+zibgb7f5OvW+nxPdMTu42pjfeE YHY48YXJltxCZ7FrasTsXUZJazGMYUx86QvJNrcYxid3136pEo+423VVeFyC3iYkKy3N H+ZiCpdvM5wyKL1XQ1nubALrJCvjDD3NfuFCyc3Ba/qwuTkz1itrUR5VtM5sP6E8pkn7 J5JAYi4Dr3J2Mowr22zWviYHUIaStU0kV4DTjnkIPhC2R8vdNyfKm+QC5FW2wQ6szDfZ MT/A== 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=wcrsvOrOm+mRa378F80R7USaGzcRNkSgm1WTWIJU7Qs=; b=dIY+lI9xSGefg1QcyPDmDoMTbGihbXHzExrUu7y5vmvZwiEKrat3h3OzFXHJ8jYB+d C5FpAFJk9TstWkjaC6TKUvjyREivUs/4G3+B8cSI15FdUuaOcKeZvrCLm4yV/qqhsvzD hPSSP3wTvowEpBROAJAZtBdDbI9M8VDHWyq/GqX5bgYh5soxXRLbG+k6pK45F5bQ9GZl S/OpbR68PV4v0hrn2WtBiwW5fNQI+obkTaRi996BUPri7XzbWdWmkEltI+Q8F1YYlMh5 t1OeA4N2UBRIpfrqhgkHf1HH/Vwxr7Ho2YJ85V4/ev45J+yrLlECcm9/lO3neYigfWVe JGug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dOowfJdU; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 7-20020a17090a0f8700b001da48da4de3si2195672pjz.102.2022.05.18.02.10.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 02:10:07 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dOowfJdU; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5C57D13CA02; Wed, 18 May 2022 02:07:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233341AbiERJHk (ORCPT + 99 others); Wed, 18 May 2022 05:07:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233798AbiERJHi (ORCPT ); Wed, 18 May 2022 05:07:38 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49ABB111BA6 for ; Wed, 18 May 2022 02:07:36 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id d15so2475875lfk.5 for ; Wed, 18 May 2022 02:07:36 -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=wcrsvOrOm+mRa378F80R7USaGzcRNkSgm1WTWIJU7Qs=; b=dOowfJdUkCgdm+X0sjpkSjkrWinBHywOfRCJNbbQg4ZKVRGegBTMgRLgdR+HsHFGKZ r4xFbL1vipCRMWGmh9nB0S8FKnGjgZbtewcVMVPp2bWC2O5toghr+ux4gKsXPzoghRsL WUOnQv3yOcw7YQOVrDk5ku5tDcNRyvk2u7JzYf93lhPHoYGlKPeYZMMpRm5144bV2zcT WKvj/zSILDcgH344tlgTJ/s606MgwrrA+qjyxf8zFhmnLzroOMdt5L3scY4FFq/gcHxV O3nplaMJWPnZBHVE3SMXQM6BNUvxKU0DNP0ZV6fdaX6iLjwlISaAEUpqQ6h78DIHQUHc rK+Q== 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=wcrsvOrOm+mRa378F80R7USaGzcRNkSgm1WTWIJU7Qs=; b=yROmjkG2C80i0VBQ/DrAiFuf6iDlkMkWEdpTNhko0eaokQY/LDL+iuBUJUWnj6v9Wj 8CafjokjQyEEJS4pMdkq3/78yJoDEMrviTKB46Rs2GOyrtMgT0VrWMBLIGsvoXOSdr1y 73R/hzQYdQb5idxhf9ugLJAJcVhC07tm2930UAE14HAw8P9i2x1+2VUD0aL3UvSI+Y0g QP6o/scqFnalzbvuvms6fB+Q3PtB8R9W5yzfTe9AAOpad1DVT1GIsCf4NXf1ReeT9+Yj 3purFGMjBZet8FZ1gyp5c0ViBB33AO6k6oh9maN/w0HDsbiuv1g9AaTlGobpLTEGKtVX ipQg== X-Gm-Message-State: AOAM532LHQPCw+/r9TZB/C8bqcwu3OkJCQtPeMST78mEGdp0TczWRWaG 4htUo6LfZuFtrowuqSoQNNrvyIQLWWjPyvLHToWS6Q== X-Received: by 2002:a05:6512:168d:b0:471:6cb9:c20f with SMTP id bu13-20020a056512168d00b004716cb9c20fmr19895367lfb.229.1652864854579; Wed, 18 May 2022 02:07:34 -0700 (PDT) MIME-Version: 1.0 References: <20220308205000.27646-1-mike.leach@linaro.org> <20220308205000.27646-9-mike.leach@linaro.org> <71c11820-433d-755d-0eb4-797313d693f9@huawei.com> In-Reply-To: <71c11820-433d-755d-0eb4-797313d693f9@huawei.com> From: Mike Leach Date: Wed, 18 May 2022 10:07:23 +0100 Message-ID: Subject: Re: [PATCH 08/10] coresight: Remove legacy Trace ID allocation mechanism To: "liuqi (BA)" Cc: suzuki.poulose@arm.com, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi On Tue, 17 May 2022 at 04:56, liuqi (BA) wrote: > > Hi Mike, > > On 2022/3/9 4:49, Mike Leach wrote: > > This static 'cpu * 2 + seed' was outdated and broken for systems with high > > core counts (>46). > > > > This has been replaced by a dynamic allocation system. > > > > Signed-off-by: Mike Leach > > --- > > include/linux/coresight-pmu.h | 12 ------------ > > 1 file changed, 12 deletions(-) > > Seems coresight_get_trace_id() in tools/include/linux/coresight-pmu.h > need to be deleted too. > > Thanks, > Qi > Agreed - I'll sort it for the next release. Thanks Mike > > > > diff --git a/include/linux/coresight-pmu.h b/include/linux/coresight-pmu.h > > index 4ac5c081af93..bb4eb4de3c77 100644 > > --- a/include/linux/coresight-pmu.h > > +++ b/include/linux/coresight-pmu.h > > @@ -8,7 +8,6 @@ > > #define _LINUX_CORESIGHT_PMU_H > > > > #define CORESIGHT_ETM_PMU_NAME "cs_etm" > > -#define CORESIGHT_ETM_PMU_SEED 0x10 > > > > /* > > * Below are the definition of bit offsets for perf option, and works as > > @@ -32,15 +31,4 @@ > > #define ETM4_CFG_BIT_RETSTK 12 > > #define ETM4_CFG_BIT_VMID_OPT 15 > > > > -static inline int coresight_get_trace_id(int cpu) > > -{ > > - /* > > - * A trace ID of value 0 is invalid, so let's start at some > > - * random value that fits in 7 bits and go from there. Since > > - * the common convention is to have data trace IDs be I(N) + 1, > > - * set instruction trace IDs as a function of the CPU number. > > - */ > > - return (CORESIGHT_ETM_PMU_SEED + (cpu * 2)); > > -} > > - > > #endif > > > _______________________________________________ > CoreSight mailing list -- coresight@lists.linaro.org > To unsubscribe send an email to coresight-leave@lists.linaro.org -- Mike Leach Principal Engineer, ARM Ltd. Manchester Design Centre. UK