Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1865607lqm; Fri, 3 May 2024 08:36:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVsAGB5aAMnrV5vYsaBVMl24LpJliCjRHmxwCSJ/FUWnV9wgDZ4mxQtyp+ySQ27dp4cWzFOFySXnja5AxiR3CEKnLnt4ydO9Pqnnl9IAA== X-Google-Smtp-Source: AGHT+IGF8vXNqrnpBMIGGu56HJiq+5xxSWvJhotd8uYjFQt0DiydqHckcbmxGkjgNo1bfd+ziwoU X-Received: by 2002:a17:903:228b:b0:1e4:6253:2f15 with SMTP id b11-20020a170903228b00b001e462532f15mr3591922plh.16.1714750609042; Fri, 03 May 2024 08:36:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714750609; cv=pass; d=google.com; s=arc-20160816; b=Fim3ZvczTwWAwpjOFTLhCF2DYNTMIMbTUVoP8flfaHSQillcmd/0PEnaE04OSAf5LW D2awbtA8uTPznvqCJ5050fk6d6mi/Hf1lKOCkGkjVPU4Wws3/D1beOmLaNIT7UOm+tyZ k8Ojg576zLcuOgileJ7jpQ38gkHn7VbS8rlsTRtARjmbs1bJ37PtqvTrl0rCj8RB/WHV dSb7ob9XAMKzoh8Qdb8krBq4H5oB/Pu7gFj+vGO3odHsJ8d8zyLoDsf3L9ArXHgpncHi htPUyYLkHiuirDpB83L1dS5MUw9dfBx9zxuBEjTf4HpeALgKwOnPti/d2Eg2J11x0GdI Vn4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=kXyBtcH22l6DIAru77xF46RpqXHr2mETb8HciLCvN4U=; fh=XPRbsxF1CLQjjW3PhtCh+IAbGCYz5M9WhueHJ6mCsmM=; b=H3201pJ+FjAw67mDgkGtk4HhxH+A/q8J512MExd5fihfN/cIbjiM6j8siDq5ScIGYP mB5lZ8wWw/s1FAu6w6FrQ9Bp/gmsL/FDVxYQFK/u1/4ka/feo9FdfhLeHhyeW2Cjx2xu vnFfd35XIQ1ulleiKx/2+k9pI8TvwkHSM3ujmEVtWSTrwPR0RJjtB6sNEkkQ0j+UUkew TuVvw9r2iB8LL1a5YdY5CJXnyEzY6FjuQBo3bbs4ONfBi3tgGp2DG6Zi0prY3LcPdvYz 1kE5thYkQ6J3kAbVk+JCyI4j23a8mTVeBEPK28ak+0rZ3mZR+oIhokeCH3eHb++J8I4f QQYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=YVcFcUUe; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-167829-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167829-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a13-20020a170902eccd00b001ecc6bade44si3203274plh.13.2024.05.03.08.36.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 08:36:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167829-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=YVcFcUUe; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-167829-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167829-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 288F4B213BF for ; Fri, 3 May 2024 15:34:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E211B153BF3; Fri, 3 May 2024 15:34:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="YVcFcUUe" Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C73B326AF5 for ; Fri, 3 May 2024 15:34:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714750488; cv=none; b=axcYz064YtDzingTuXrYe3N7oylPz5WyCFIJQOkUotOrUT/FCkq/DVBQJHyvCEFUMU6UhO/ciS/0i9ZYf28PbplX2yeg2j8V4DV5PZyO7l2xIsaRg4KUdC+wwWxlAR1yH2wh37y6INFn+L78KjoONCTvMZ+v3KSXVB8+dZgcVE0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714750488; c=relaxed/simple; bh=/xSlG3SNs8+ppWCTbOL5BO1qKtZj2vhrm9qb8I7TPYY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=T8o82w3TZWnpjt25DEiqdW0EMhd9Oz0hV+qSNsGOAfdC09BMJy3KpgO0A9MWaPj0nYBFfJCJvh/mJAJwuVghbI3yHkxzctBWHzGPy0k4T1rVozOeL4FBtvsWDs3/Sphud/TUmBNezC0M1dqrERG+ogsc0sN/Lde9DP9VzMZ8f4A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=YVcFcUUe; arc=none smtp.client-ip=91.218.175.186 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714750484; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=kXyBtcH22l6DIAru77xF46RpqXHr2mETb8HciLCvN4U=; b=YVcFcUUeMeeSarSBoZQo+aQhE0A/dDAIhhH5fjHFo6Udy/iQUc2ZoceOWU5y+c7PN/ilWj E0Z+NYIkhFUYIsA149ZLACKLyu4ALg4pWBiJ7ADHYLdl5ygIRMfTVN0c/SqaDM417t5Vkr ho0kkCYYoo6bljeVAao6Q3fFgMMLlDA= From: Sean Anderson To: Michal Simek , linux-arm-kernel@lists.infradead.org Cc: Conor Dooley , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Sean Anderson Subject: [PATCH] arm64: zynqmp: Add coresight cpu debug support Date: Fri, 3 May 2024 11:34:22 -0400 Message-Id: <20240503153422.1958812-1-sean.anderson@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Add coresight debug support to the device tree. This can be useful when panicking, especially when a core is hung in EL3. Signed-off-by: Sean Anderson --- .../arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi | 16 +++++++++++ arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 28 +++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi index dd4569e7bd95..60d1b1acf9a0 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi @@ -70,6 +70,22 @@ &cpu0 { clocks = <&zynqmp_clk ACPU>; }; +&cpu0_debug { + clocks = <&zynqmp_clk DBF_FPD>; +}; + +&cpu1_debug { + clocks = <&zynqmp_clk DBF_FPD>; +}; + +&cpu2_debug { + clocks = <&zynqmp_clk DBF_FPD>; +}; + +&cpu3_debug { + clocks = <&zynqmp_clk DBF_FPD>; +}; + &fpd_dma_chan1 { clocks = <&zynqmp_clk GDMA_REF>, <&zynqmp_clk LPD_LSBUS>; }; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index 25d20d803230..ec8d5d19ac1c 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -330,6 +330,34 @@ pmu@9000 { }; }; + cpu0_debug: debug@fec10000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0x0 0xfec10000 0x0 0x1000>; + clock-names = "apb_pclk"; + cpu = <&cpu0>; + }; + + cpu1_debug: debug@fed10000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0x0 0xfed10000 0x0 0x1000>; + clock-names = "apb_pclk"; + cpu = <&cpu1>; + }; + + cpu2_debug: debug@fee10000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0x0 0xfee10000 0x0 0x1000>; + clock-names = "apb_pclk"; + cpu = <&cpu2>; + }; + + cpu3_debug: debug@fef10000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0x0 0xfef10000 0x0 0x1000>; + clock-names = "apb_pclk"; + cpu = <&cpu3>; + }; + /* GDMA */ fpd_dma_chan1: dma-controller@fd500000 { status = "disabled"; -- 2.35.1.1320.gc452695387.dirty