From patchwork Fri Sep 20 07:59:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mao Jinlong X-Patchwork-Id: 13808233 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 8C4C1CF58E7 for ; Fri, 20 Sep 2024 08:01:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version: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:In-Reply-To:References:List-Owner; bh=DfTs2mGlvWQtriez7XKGqwRwsAlEuvGslLCdZozCd8o=; b=fGXqBY9tgrfiObM5HZvAQtggi3 KqYlJ/BKSD8CZ3QWWWRauk3X6aIfhs39uKuftwVD2CfqwpoiFI+tpNuxfnM+b2UyrVQMFB0R0zdYK Xi8331FKWMN8fNsMTrJbP0oD+09phuJHOl4ZHGp7byrBaStSD+RtaX07rLpJ0ikdn0R/87Mp6WH8I 2uvsvw1bq77pXdnRFHRKKNNObQs5nBGa5/HcnRMxJ2OoqjniBk2oGvrRFefhRVdQZIqRKUpnditbj 8n2mN525sKUepedFZuny8XIKAYHBn2HI/fKVbRfnHVz++doZx5TACGqmqeQFt5Solnybf6RLid3AE OQtR3thA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1srYZL-0000000BgJd-1eOE; Fri, 20 Sep 2024 08:00:47 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1srYYD-0000000BgEU-15s8 for linux-arm-kernel@lists.infradead.org; Fri, 20 Sep 2024 07:59:39 +0000 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48JJ401R003647; Fri, 20 Sep 2024 07:59:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=DfTs2mGlvWQtriez7XKGqw RwsAlEuvGslLCdZozCd8o=; b=HDNu5Q3+Itk32JGUum8lVXn9dBKc7mj6UKw7vV rEQ+h50KXfH1j8Uy3bXv3WFUCdSZaq9pUe2JDLpFUF5apq+NauZ8ALqIwXLDE63o Zm3ZrsSuXPZVsfHCrGGHSBBs24qRgrBKlwyKAoJUpBPx/yfmoWgMOYubBGWOtIWZ rDwYb7fJ7QvUUH6ACIEA7wbSUrZvlysl8R5zftfn2DQBlKz3FYC4DFs6p0CaN99S 46agEofa8RVDpxJ0RS0hcLobQ/MwjRkXswVS+sJLeV7b+LL2OlR0U/vim/m1BjN3 Vz5NcWQJWvqYkBc1TORpcfug6cKtImXM3EWHZMhbSaVDPH7A== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 41n4hf88b0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Sep 2024 07:59:22 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 48K7xLB4015492 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Sep 2024 07:59:21 GMT Received: from hu-jinlmao-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 20 Sep 2024 00:59:21 -0700 From: Mao Jinlong To: Catalin Marinas , Will Deacon , Bjorn Andersson , Geert Uytterhoeven , Dmitry Baryshkov , Krzysztof Kozlowski , Neil Armstrong , Arnd Bergmann , =?utf-8?b?J07DrWNvbGFzIEYgLiBSIC4gQSAuIFByYWRvJw==?= CC: Mao Jinlong , , Subject: [PATCH v1] arm64: defconfig: Enable Ftrace and STM configs Date: Fri, 20 Sep 2024 00:59:03 -0700 Message-ID: <20240920075905.19441-1-quic_jinlmao@quicinc.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 2d_a89At265j1FwTzpXSVOrrAJPn_YI7 X-Proofpoint-GUID: 2d_a89At265j1FwTzpXSVOrrAJPn_YI7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 spamscore=0 clxscore=1015 mlxlogscore=760 adultscore=0 malwarescore=0 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2408220000 definitions=main-2409200055 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240920_005937_437032_2C1698CE X-CRM114-Status: GOOD ( 12.47 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Ftrace logs can be captured by STM over TMC sink path. We can enable ftrace logs along with HW trace of coresight component. The timestamp of ftrace logs and hw traces will be in sync which helps to debug. Signed-off-by: Mao Jinlong --- arch/arm64/configs/defconfig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 4a3999eefa67..c0a56e58e554 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1554,6 +1554,12 @@ CONFIG_NVMEM_SNVS_LPGPR=y CONFIG_NVMEM_SPMI_SDAM=m CONFIG_NVMEM_SUNXI_SID=y CONFIG_NVMEM_UNIPHIER_EFUSE=y +CONFIG_STM_PROTO_BASIC=m +CONFIG_STM_PROTO_SYS_T=m +CONFIG_STM_DUMMY=m +CONFIG_STM_SOURCE_CONSOLE=m +CONFIG_STM_SOURCE_HEARTBEAT=m +CONFIG_STM_SOURCE_FTRACE=m CONFIG_FPGA=y CONFIG_FPGA_MGR_ALTERA_CVP=m CONFIG_FPGA_MGR_STRATIX10_SOC=m @@ -1663,7 +1669,7 @@ CONFIG_DEBUG_INFO_REDUCED=y CONFIG_MAGIC_SYSRQ=y CONFIG_DEBUG_FS=y # CONFIG_SCHED_DEBUG is not set -# CONFIG_FTRACE is not set +CONFIG_FTRACE=y CONFIG_CORESIGHT=m CONFIG_CORESIGHT_LINK_AND_SINK_TMC=m CONFIG_CORESIGHT_CATU=m