From patchwork Tue Nov 1 16:30:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 13027288 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 37EB0C433FE for ; Tue, 1 Nov 2022 17:30:31 +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=jJRmcCvzH9HYZ1UD33KUcnNYWH2GOSM/56XUyDdee9Q=; b=yL/Wun3iZedwH7 fFwai2VU4r9/KfQphrk3TobfrA76cTx3UQcBCZFmuf5Hlh+d5iRtzlUDZDpTwTZtwBA/gaszvRhsc Uh2LHRrZRlXSEcwj5PsOBNqy7LuztvlvvTM1+8NZ9vNHnUyazveyG7d1xONeSFdVYb8PUaEXRfZ5N 4rooDDvmcL2HIgSC591qdRdEq5PFlk9tCiKkk1zfrzEozQT53puoYzDdYHBnmCk+FYT18kCjhtZq7 RRgYadGuyybVTFlc09WMC8Z3rXNuPQRDWpum7RNUK8CNKTQpYsDYNEKU7klNbtFwB+iC2M7gH9bqP eMiswN6Aph9wOYUkwHLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1opv4m-006HaU-BV; Tue, 01 Nov 2022 17:29:24 +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 1opv43-006H9V-NT for linux-arm-kernel@bombadil.infradead.org; Tue, 01 Nov 2022 17:28:39 +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=GM5W8kdEVZTdrJaLxSP8hWg1gbfPZ58r3qozGiSOj2M=; b=qizLZJw3dTk8EXqz2IQPxMl5hl OTlzLI8FSxjOhZkodyze4sFXFhkzLBMkR+s2XLaw8dM/bIm3rwBfx9BCDRrQwYspqSv1pRDHA10If c3tiRkBhH1rFJTFNVFKwoCYkwAeHjuBFRPQ1Vj6zgzNHbx+ulj5rl7jIAtWzUlAamKf1WqjmIbEdR Go/huEtCnrmwxxjv68t57p8GGxzneYeaCoOItilV/whA35ZMaM31vvWmpNLIvF1rK0vK0Urh0MF65 1tBKin/Z9J1Y93BEYR+x9Z9R8J5R1HOdWopcz7nfhUgtIBWNE8f4ddVvTNpSdVBpUbm4oM6VcB4Ny 3Xk3gmAg==; Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1opuAm-008AMK-8M for linux-arm-kernel@lists.infradead.org; Tue, 01 Nov 2022 16:31:34 +0000 Received: by mail-wr1-x436.google.com with SMTP id y16so20862239wrt.12 for ; Tue, 01 Nov 2022 09:31:31 -0700 (PDT) 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=GM5W8kdEVZTdrJaLxSP8hWg1gbfPZ58r3qozGiSOj2M=; b=SxPqmxfIyvPOuEndXUQFG+OUFf7gJowHMKLuR43rLJqZMJzPjxWJCbL8bE/XilZt6u 6OcjOItYooR+Q2TvHWn8iOG0TOznhm5YwJKGEfJuGuWM92s+qjwmDdYep/0sR/01hARH k77ELga2o+iLBhcgPLz5FQDVv4DLsVvS+i04iHADLF7Fhna9/c0urtxzzElRtrN5atxI diKTnNlY174lxr1n0aCGRLhts1ZUoTTsgQ3KfDI/iVWLKesoS1sjrLg/wfNiINooyk2A EFvbRZPbQY+OETVwXNJ3MAbquUr6loK4yFJLVh+6ocClsDMRcQr+YHwhiTfwbrBKTJJQ L4Ew== 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=GM5W8kdEVZTdrJaLxSP8hWg1gbfPZ58r3qozGiSOj2M=; b=LxqxonRB3s1+aN9xSSnYnSuO7sMZdm377NwfGXvcK3Qi8dVwN3pYw76Ixod/sjSCCU /bGGUCp5sS4Lg/6cKHm2DbZbO14fx1sdBmoshH5uISgilSYdsANPWQUDEH3PfqUj5g4L AFMj9X8kc5J78aEEmCguJqdr4vcRs+BGSnTSz/Yc38YVGWRY0RP9kVxSz482OSGyUDUm 2UO8vRgkEoEtBbqFiSng3CB4wvtpM9XmsDx80ch3KQV1hhJONnE2TlGc+KfjBKCJPKEr fNt5gou1uygcFSl2ZGUYxUjEQup21sLV96LynBIyH1LYVzhd2l/7mIV3rYMUbrX0WsqO rfYg== X-Gm-Message-State: ACrzQf3brb9MbBE+5lgNYCbuB92/ZA7FJ+TCRwgJNL6xU7/HiXwrNgi2 KDqPz6junqxE+XC5uAzAFSTrHg== X-Google-Smtp-Source: AMsMyM52kTyY2RnZxPGxRTLot7eIkG3eHfeIhr7G9iQxfhQaC2JfM90ZbCC99T+2gAx1zv6joxmHVg== X-Received: by 2002:a5d:484f:0:b0:236:9c97:6f85 with SMTP id n15-20020a5d484f000000b002369c976f85mr12476548wrs.636.1667320290279; Tue, 01 Nov 2022 09:31:30 -0700 (PDT) Received: from linaro.org ([2a00:23c5:6809:2201:e844:18b6:fc5:bbc9]) by smtp.gmail.com with ESMTPSA id bu15-20020a056000078f00b0022ac1be009esm8339844wrb.16.2022.11.01.09.31.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 09:31:29 -0700 (PDT) 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 v5 08/14] coresight: trace id: Remove legacy get trace ID function. Date: Tue, 1 Nov 2022 16:30:57 +0000 Message-Id: <20221101163103.17921-9-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221101163103.17921-1-mike.leach@linaro.org> References: <20221101163103.17921-1-mike.leach@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221101_163132_445419_BBB0363D X-CRM114-Status: GOOD ( 11.90 ) 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