From patchwork Wed Nov 23 19:50:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 13054262 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7FD96C4332F for ; Wed, 23 Nov 2022 20:30:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=q4ngJXPPMmqt2dk2fMxhx9vCoF22N8uWI/XDJNd2D5A=; b=R1G02vKrM53H1k v/Y3MP+kDsxC0xTI/BNa0H5plmNtsGRuZbtNw1ACf4mw9ICyUMo0358GeAm+qbQm1oDzxYcYd5bNa THXGo+SbI5XhK54kRCpRWiWjxpbgK3Ia/bw0fFVUYaxUg8L4sqIWwjrmUShGAaYBE3V64+dK1aZ7n M0AN6VqsjLayYrmG9kHOQlwT3Jkv9Qg1ECFCBLvcZKgupdEoRW7eHgpEDGjx/05qUQYJEDwvq/qOO NDOFAro2HAJFPi49KSlGfKSUAWgMdfjLOi2/QaAAlf9N6O2wK+MqR1rGkJ4mKvnl4lccWimB6AuYf vjdYvazCUStDllPVBB8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxwMb-002Gux-CO; Wed, 23 Nov 2022 20:28:57 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxwKf-002FuA-FA for linux-arm-kernel@bombadil.infradead.org; Wed, 23 Nov 2022 20:26:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=References:In-Reply-To:Message-Id:Date :Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=UhRbA3Bqp5wzwk6l8nkMnlzM8NPWC0TqClYGwAsB7GE=; b=hAo00kSHr3FF4j0YYGXBFJgJW2 AtTDByz0JH46VzoXT/+nOEDlRjsgEBdXmWfgf2ggWnJPyJbgZA07E3AY5ShtvjirvHlPWN2EqVqj0 Z7Or1MWy83Yp4XzBd0UfbxF59WmWTC6HZFzZOooUIPLJowGQ8xN2hSZmwX8nLj9pKxb5zg8XcPjmb YOseNygRMkPS2x572HJCxw+s7alMguVmHwFNNRrMMgeMB4Hrf58XYGaw2DFNeYk73NpLdyyLIn7MI 24zR4YkCxr5e48AEvAnq7mVzpkqyItwr4fw0ugzJiEogGZdFqMnavI2JUkIz0Af6gYFIdxN3txjeO gc2P28rQ==; Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxvlO-003uoi-Fi for linux-arm-kernel@lists.infradead.org; Wed, 23 Nov 2022 19:50:32 +0000 Received: by mail-wr1-x42b.google.com with SMTP id b12so17218730wrn.2 for ; Wed, 23 Nov 2022 11:50:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=UhRbA3Bqp5wzwk6l8nkMnlzM8NPWC0TqClYGwAsB7GE=; b=cZryXwPDfXWRdMGvqWJnGJRO7WwwLZ6mD2mcnPZr4X+qr6c/03itTmlsif+1sMK+0K +ymWQPWywcwdB2f0aGlNCRz3Vusw4tGDHnDQQlsqeziN0XCQSGVQ+T8yVSmRMbav/zYH jQp+Qc76B6SMBtg0oIFWcjRcaXNmKnQgif7N4Bhlg0aHUqo68nX7JLJK11PLJff4iHob x25BYSba4DwDQzRv0agSGZJcTa4PLQSxIpkUO3wznX5VBLf6oInRPJFsr7woJuPA3ags 2/JR8mD11FabTwv8yMheCmZlrfgEKZGpPL5EroRGf0e89KxRaK9tQw7D844ieOO7Bcza A70Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UhRbA3Bqp5wzwk6l8nkMnlzM8NPWC0TqClYGwAsB7GE=; b=KCjFLHOA1z1s7WNosx4dZ56bqBz6oCYo93RBqdPeYLCsB7QU5R+kWS6P3Z7JH7TvY8 WH2qRVfZHab4ai7X4/j1BWvN4EuJYMwe7o57BtOC+Dvtf/T71SpbQoWDp9SXtzF4LaDk VA/mbDlOSCFhRh/RHa9y8lpR+Cxw5pJ4XrzcStAg7IzcO67UZxbJDvtFRrJFuJEyPFv9 Ljww+8QxMc/vb/hnTUIYSCayzF35bVeHzoiHUFAbk4OpewNysONmQOO5ubfvbGUTDjDN CUyyDEaAcbF2bpWbwVAfa8QYxbjkaDd8AIGrD9li1ESgNO1DQJ+kEDpxw/AyM+AqtxmC PfTA== X-Gm-Message-State: ANoB5plVpRNQzEVh3MzzYftPdiJj0+pZ2+7lZME7TO+LxOE/OWyi3+6s Oj0WXzxpQDS1glARtkpq7/QwCA== X-Google-Smtp-Source: AA0mqf6KKEFVkffTxpaEdfZ0VXAsXtwCJbKntviKH0lMQ0dqFVgelLlQ7xjR+ByXKNG3AkjD+j1JnQ== X-Received: by 2002:a05:6000:691:b0:241:b92b:d086 with SMTP id bo17-20020a056000069100b00241b92bd086mr18360854wrb.259.1669233029527; Wed, 23 Nov 2022 11:50:29 -0800 (PST) Received: from linaro.org ([2a00:23c5:6809:2201:fcbc:7b5d:8d6c:43a4]) by smtp.gmail.com with ESMTPSA id w5-20020a5d6805000000b002364c77bcacsm7267414wru.38.2022.11.23.11.50.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 11:50:29 -0800 (PST) From: Mike Leach To: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: mathieu.poirier@linaro.org, suzuki.poulose@arm.com, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, linux-perf-users@vger.kernel.org, leo.yan@linaro.org, quic_jinlmao@quicinc.com, Mike Leach Subject: [PATCH v6 08/14] coresight: trace id: Remove legacy get trace ID function. Date: Wed, 23 Nov 2022 19:50:04 +0000 Message-Id: <20221123195010.6859-9-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221123195010.6859-1-mike.leach@linaro.org> References: <20221123195010.6859-1-mike.leach@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221123_195030_688101_8EAFFC56 X-CRM114-Status: GOOD ( 11.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Removes legacy coresight_get_trace_id() function now its use has been removed from the ETM code. Signed-off-by: Mike Leach Reviewed-by: Suzuki K Poulose --- include/linux/coresight-pmu.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/linux/coresight-pmu.h b/include/linux/coresight-pmu.h index ffff4e6277e5..624f4843453e 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 /* * The legacy Trace ID system based on fixed calculation from the cpu @@ -44,15 +43,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