From patchwork Mon Jan 16 12:49:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 13102974 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 98BECC54EBE for ; Mon, 16 Jan 2023 12:52:16 +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=VICwgyvwoocR5y gIhibZKTXHLQAJ5q7LZ+PiW6s6oJwI8Katsb4zgmbn/gElq81ofwojuZo+R5GWethS0mC5Faz8v5J XU37/dW0SJfwVDPG/iFk4HhobNakPflTOMa0h1Z0v7c/dA7gM6TMq33JddIKHyDhNe1/O80pyLLTf R+xt4pc/o7os3CLcI6BO3mTQjzCx81VBaW75Lhr/onCP5oizku8bJdudsLPzjVGqinjovpFwh8ifQ L73sKkeTQp6yrGtZ+VzKBYU2zjnJP0//17OGvRlpLr7Xtyry6FjQbrGhgHL+PnUAJvjZPKY7dfqTF S+GlWbaekxQM+wiB/LBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHOxH-00AAOY-H8; Mon, 16 Jan 2023 12:51:15 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHOvq-00A9kZ-IY for linux-arm-kernel@lists.infradead.org; Mon, 16 Jan 2023 12:49:48 +0000 Received: by mail-wm1-x330.google.com with SMTP id h12-20020a05600c314c00b003da50afcb33so3584262wmo.4 for ; Mon, 16 Jan 2023 04:49:44 -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=m40ji9um9rIDYtcSBCzb6wsXOm/+4ZmSZ0PolpM4qGrslipjQc1xEq5i8ANf1CwMJq QpNb+wGIKmEQukxBdW1asUI2YQC64wfuO1L3+klA7pR12I+TIw3us81Hon5uCmEzclXR 3wAycOW5mr8fiH6beZ9tDneJirIhtQpOJsu9f+qieextJ5+Njw/9vHyGAaRgsmiYnZjA 52IWNOmsFxh7jmXDtoQSpWxMscIUnv4evVfahHv6Lz1zJ+8yEO5P4D6aWOC/ZH9zNB5a gM6+djsGMmpwqVw4UOmSJgz94yM081Itav8bUQ+GexXWtR4t9PEGC47MhVP+nbc7Y9eY 963A== 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=3Cat42q2S+dc3ivrblRhozVeeAY2p5+EEEC0BnzvCfqL/ojZuL5o1Y41bIqQeQc3ls odgrLeLswu+P9rJu2Z5VYPsZ2ldSK6Ki6uvW9Tmpt2gCz5DAqcItYtyaVRHbXDcg1jBk qz4+//XJQeAVpUxEZ8mJH802ytgcqYEw/BWCXqTaTMOsLKT1jYAgVJgngUpdkYsBBcoP ojJHkTJazvC5qS65E90Fc0K9vudWV8VjMcuRyRiIOqMRyuYDLM1k+xVmx0yjNnZyhIVe fZLSG0qv2TmreEXlu27ue+uOCyR2j6sJUNC+hDnYmVP560eTbiNTLF6qZfSb2+3s6t/q R5Dg== X-Gm-Message-State: AFqh2kqILg32QrCoxaXmAGTFXKKK2CYCo0iDx9lVdb/F6at9NKnfraQO eHcco/0HKYBfHyq1RsgK3UyZIg== X-Google-Smtp-Source: AMrXdXuQYumzTqPmmsJ0ti/I9VoFo5/pKOswmOHwMggL/DaN9gZlGveuCdz5DpENUn8FqD2C8t3SeQ== X-Received: by 2002:a05:600c:4a28:b0:3da:f9e9:3a1a with SMTP id c40-20020a05600c4a2800b003daf9e93a1amr3896373wmp.20.1673873383205; Mon, 16 Jan 2023 04:49:43 -0800 (PST) Received: from linaro.org ([2a00:23c5:6809:2201:6c91:710d:9433:e868]) by smtp.gmail.com with ESMTPSA id fl12-20020a05600c0b8c00b003dab40f9eafsm6896832wmb.35.2023.01.16.04.49.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 04:49:42 -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 v7 08/15] coresight: trace id: Remove legacy get trace ID function. Date: Mon, 16 Jan 2023 12:49:21 +0000 Message-Id: <20230116124928.5440-9-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230116124928.5440-1-mike.leach@linaro.org> References: <20230116124928.5440-1-mike.leach@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230116_044946_645990_CC98FB96 X-CRM114-Status: GOOD ( 10.95 ) 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