From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 5A30F1D95A3 for ; Mon, 17 Nov 2025 05:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763357890; cv=none; b=srqYO8L05dJXS87M7F0UQ9fAKjQvC4UiGPdyQgvKcTQ1uSU0yTws8Pm/eykvWWt6vjwVsdiB39kw/fOlBPy9geliSZsSfADQx0jHLX841KQjh5jJxABtxTjXtzXhe7Em9VJs5T7c7+RdMiFd3uAl9vcMKsk/o1C946ZeNFC1lJE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763357890; c=relaxed/simple; bh=p+qe00afHvbvaXXEGYxAPPbKvcvlSaRRzwMcBzB3Bb4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fHaj1EVT13sl5bqZ3GO8ZTibCRcJyLVHwi52DvkJyIjQnekM+DHVfC+RXLdyCpu4lewWTGAcsxHNuoiC+594ZHarlI5GzfOIOHH1d8R1sWWNV8vy+BXp0uorBqVcISBgGITZejIFUJpzKAEmLryeuLiddZE79gmEoGxrWiNyc2M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=LZVJCNzr; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=SouiduU5; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="LZVJCNzr"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="SouiduU5" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5AH4o43I2838100 for ; Mon, 17 Nov 2025 05:38:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Ij+zGrZP39izW7VSXxtNQBt2rAsGHOP1QJw0Oj7RuU8=; b=LZVJCNzrzdDIg2w4 IQ3kEGgsz6n1+UdO4UbFEFF+hkRA3abfumbtTPJe0vXgSD0Q+KvtsrTz5i/S5KEa Chuhqc0nWKjxPaBRoYyR1Hid00Zybu0VAm5f+/RstcpZli8imJTAcU0B6aGSycu2 +MT3tvDHq4bx5Qkj+Imn/ulRKg09tu1PuGFSG/VdVeyxlhduy7Qfq/kq50MqD/Gh rhavpk3wV5fqEtLfPc2hXxiqT7XauNHIXLDwC86nOWnYfVVdx5t6QjTX1WD711nf PCppVrBYhhk3OuWuW2iCFLhK3sOdh6pmW9rjjOfj9iSq12pA9wPSxo9Bxo4PPhoK tDbD6A== Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4aejmyuefd-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 17 Nov 2025 05:38:08 +0000 (GMT) Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-298535ef0ccso46261215ad.3 for ; Sun, 16 Nov 2025 21:38:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1763357888; x=1763962688; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Ij+zGrZP39izW7VSXxtNQBt2rAsGHOP1QJw0Oj7RuU8=; b=SouiduU59DEhjZXkOEQ4b1ib1Shvzr+4RBbvjg6DCXiSwndgmJSK/eOyEvHz4usSSK MQngvcIuLntFHRNVbgYiAuwUW4pEdfpYwOKPH6Q3bGrgFZe+auK0f1PTbp6OGl7f00MT JqFkGkk3J5QQ9K54fWNKCOdBx8W9PcgisHNWz12zkLunwZV2T+1WmxNRt/SOOUiHN0Bd onpRlPKvZhcwpSkFZl1oSrSpOQYxifYveCCR71hGPG3JfjT7ERwEjObrUmlxZ7I4opSZ pPR8C1xI7p6Hp87mdrFt9TXf1gEmWXAsC6Lwd4iUP3Muwp5i5SOZAaOjUSRBoZ7OwA4/ +3pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763357888; x=1763962688; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ij+zGrZP39izW7VSXxtNQBt2rAsGHOP1QJw0Oj7RuU8=; b=g6fhRILW6tuguIoaNVHQ+WQNLBUhHNcfgcpx5yMbBsW7FWeWiAJ0b55UOWAPJLumt3 vQI/7DVrYVpDdysQaLIxIB1TOZ4XA0YYxU+a6WgyVN41/LwH/lvZ+wBdHBL8FctSfhMC Ob9csuilzlVRZYMI+pRyL38nib57YWsC2HxpvpZGYsgtm9YEfw4vKyA3O1N7r24XilhR 81rN9JmmdOU9Zx/Jacr4Y8giDuu/KFBv+RB0jM4WycGo41GY+4EKpZdH1e2Y4HCqTMp9 nrSbtV9rCjp8yIW3JgC6OAVnzPhnd5shU6fw3nNHui57MUrcwovqoX+DbKBwyGttbh1z oHJg== X-Forwarded-Encrypted: i=1; AJvYcCU+3RpZxI+gDJb0H3MUJ7+S4oty8e9LSEvOQMvTpBicMq5gI4p4oM4ebTh6kMgOK7ZGN0+wqTA3Yy+fqZE=@vger.kernel.org X-Gm-Message-State: AOJu0Yz76FpR2+woGSn5pboV/ZbdWHkn43lTasd7ax4YaOjNeNB0kO0m Peje6v1OpiTcXC3jFwJ1s9bW4F1TePDY0dm/t3Oost2XMMnxYn51vb9JN3bs/P6n/5k0qcK8xxp inQ/tH/e5Nv1crndqe8cwnny/7VutsAxh/OiDOTRz8Q+vPOROdVrxQcU1kKnuiHRaZwY= X-Gm-Gg: ASbGnctS7VJHN7z0IQmAq5Ai7dtd1KJRX6lLXNDws5XfuF5TTvIW/bmAwrKm7j0jVhl 5Tp2iPrxZoCwWbSg46ZSUksapJWh+kRv0oTNgTILGMEQLR//kLPbJw/HK/kbHuVhA+Mn6qKXFWR 0Gq7JwcexJyPtNo/fHFbRDdj419h/8z5ZZ/eAIXiY/9h5I3k4tW1c3b8FpuCJlIvVQUcMsl/5hC QvJ5jZmohrZBG+gpBRirVBxdvOeQU7WhAWqJXY4OTsv4spBLyMFbPJPp7Qh6hOnhErDFCTfjfSM xc32rr8AVAgW/+jQ7765gzvM4Umn8GPSxYa8GSblx5m8WKhcLJsmBh+Px82LqmOoD2s7k80nEl3 IMimbaB4c30YcaJuuhNzIG+ZB19YNXTJersPOedMJ+PUFnTWXvI+zLDtRWghTuds= X-Received: by 2002:a17:903:1a28:b0:297:f088:56e6 with SMTP id d9443c01a7336-2986a6ec32emr130499435ad.25.1763357887794; Sun, 16 Nov 2025 21:38:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYqUFXKLsOkhEiX9l4+zz+nyyWRjSor9RSpHrl4xaX6xAJ0ck8S4Cs4Tcptvd5SBcxgZNH4A== X-Received: by 2002:a17:903:1a28:b0:297:f088:56e6 with SMTP id d9443c01a7336-2986a6ec32emr130499255ad.25.1763357887305; Sun, 16 Nov 2025 21:38:07 -0800 (PST) Received: from [10.133.33.82] (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2985c2c0fe8sm124895515ad.80.2025.11.16.21.38.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 16 Nov 2025 21:38:06 -0800 (PST) Message-ID: <06f4fbac-1f49-4dd0-8834-d23f8abd3fe3@oss.qualcomm.com> Date: Mon, 17 Nov 2025 13:38:01 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 0/3] add sysfs nodes to configure TPDA's registers To: Suzuki K Poulose , Mike Leach , James Clark , Alexander Shishkin , Tingwei Zhang Cc: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Tao Zhang References: <20251028-configure_tpda_reg-v4-0-23000805d21d@oss.qualcomm.com> Content-Language: en-US From: Jie Gan In-Reply-To: <20251028-configure_tpda_reg-v4-0-23000805d21d@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTE3MDA0NSBTYWx0ZWRfX4sKJ1VVR9pkv RQluXinEM9BZZ/8oi7EQGBSySg1N9/Jk7eQM/nk3scAj4oyH0oMaVSg7/XTX3iImh4WW702Z3YG +s3SwA97QxndJPibng8KjVPVPDjF9/zy4NzESRdwPFDrf8RGrY8ZT24d7CcA+cmS1glBDMj/rbp z82ACEygak2jHCUu9+2s1iYWVE5Tc4WsX0E21JAJ4iGdhZni2UaYPwxuvYvyH3TZUfE/Kv9+7U+ 85SXpK2oak6hRSw1XDs4PWXPKldRxPV6dZOdSA7oWqLQ1MQ7Gxmdj+g+m4Y8N5Vg7AX53FzvOAm vApSpRdi0gTVevC5wjbznXa1zGb5rQANvIHa8DkeNc/FJKiusT/GS1A5D/5nG0SRpdG4+N6jObV UIWGa5w4S/I7eURFRF5+QBKmoKUuSA== X-Authority-Analysis: v=2.4 cv=BPK+bVQG c=1 sm=1 tr=0 ts=691ab4c0 cx=c_pps a=IZJwPbhc+fLeJZngyXXI0A==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=IkcTkHD0fZMA:10 a=6UeiqGixMTsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=rf22lFbXz3lptHW25oMA:9 a=QEXdDO2ut3YA:10 a=uG9DUKGECoFWVXl0Dc02:22 X-Proofpoint-ORIG-GUID: CpUczTOfhTzBwIh_xuBZsgC9LnGt8z7o X-Proofpoint-GUID: CpUczTOfhTzBwIh_xuBZsgC9LnGt8z7o X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-17_02,2025-11-13_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 adultscore=0 suspectscore=0 phishscore=0 malwarescore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511170045 On 10/28/2025 10:02 AM, Jie Gan wrote: > Patchset 1 introduces configuration of the cross-trigger registers with > appropriate values to enable proper generation of cross-trigger packets. > > Patchset 2 introduces a logic to configure the TPDA_SYNCR register, > which determines the frequency of ASYNC packet generation. These packets > assist userspace tools in accurately identifying each valid packet. > > Patchset 3 introduces a sysfs node to initiate a flush request for the > specific port, forcing the data to synchronize and be transmitted to the > sink device. > Gentle reminder. > Changes in V4: > 1. Document sysfs nodes with correct kernel version and date. > Link to V3 - https://lore.kernel.org/linux-arm-kernel/20250827105545.7140-1-jie.gan@oss.qualcomm.com/ > > Changes in V3: > 1. Optimizing codes according to James's comment. > Link to V2 - https://lore.kernel.org/all/20250827042042.6786-1-jie.gan@oss.qualcomm.com/ > > Changes in V2: > 1. Refactoring the code based on James's comment for optimization. > Link to V1 - https://lore.kernel.org/all/20250826070150.5603-1-jie.gan@oss.qualcomm.com/ > > Signed-off-by: Jie Gan > --- > Tao Zhang (3): > coresight: tpda: add sysfs nodes for tpda cross-trigger configuration > coresight: tpda: add logic to configure TPDA_SYNCR register > coresight: tpda: add sysfs node to flush specific port > > .../ABI/testing/sysfs-bus-coresight-devices-tpda | 50 ++++ > drivers/hwtracing/coresight/coresight-tpda.c | 278 +++++++++++++++++++++ > drivers/hwtracing/coresight/coresight-tpda.h | 33 ++- > 3 files changed, 360 insertions(+), 1 deletion(-) > --- > base-commit: 8fec172c82c2b5f6f8e47ab837c1dc91ee3d1b87 > change-id: 20251028-configure_tpda_reg-f3396f97f9a1 > > Best regards,