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 314CC3ACA64 for ; Fri, 17 Apr 2026 08:51:21 +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=1776415883; cv=none; b=KuAQ81kQuf0wMa6A9AT7vccgmW7kP3HL8PHpbkz7EWbOaR5pGx7uIiGH+INyJh7vg2pPMIse/7YTo4mK5sRBomtdaaQv7xVPue1WiHln0AXU+jOrXNRFr6o7PAMY7e3r/ioNWUYW/xf9zKxB6PpFBsipQD0hjhoPZnc4ejQ+hH8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776415883; c=relaxed/simple; bh=zD2FCxzAr7O0bZ+97EJwbHPQvE5oeQse3sAsT2epdAQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YhuqVsCZF/QFw/PMKpd031yOV3QLfdDBfM9+TyhNy/bmuyQny4sbm4V873fpAq3cfwCq5AGXkjUq0ourGelAoIaIIv+13ZKWRO5d4InjtCuIatHxBi94dIcE+NwGIf5BeDIIUWYqgfoJhOqMH/kLVNFAYEhCB7+mtWKqQNF6Sz4= 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=DTMlWHQZ; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=cwhPxnwh; 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="DTMlWHQZ"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="cwhPxnwh" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63H7lwQQ869715 for ; Fri, 17 Apr 2026 08:51:21 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= gfELObkOOanICF63Ijgm6+zg/NqF754KDKPUD2nRVCc=; b=DTMlWHQZ6+IgVl+B PNPeHAwSBu+DGLWcFdxvpGo71gIRKsMdCEjV41t4haZ1vmjxkMH1bIjh3VJ94beu yVGlCLXZ+XLvN1ExapV/zjxBs8gyyTASQ8QrNkShnZ/AoSed435XbjBVRH6Wkiwk HwvWR9vE2nR7Gsy9nEbzo0pglbPeYDfncEx9BaoaoHoTdVrWuIPkycbb/hYnRhWC ImtQbmTQ+oTTgiXfX7/famikK+Iy20BkpcDr1NCjbH2oYtw5P7LW0Ldh7JBtRUBS cLytm40I+ZDcZDvjPzv7p7pkfWTWhoRClwA7TIO5zd+f/zSRwVq84Er8Gkv1QDDE OpvpbQ== Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4djvruckm7-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 17 Apr 2026 08:51:20 +0000 (GMT) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-82f07078eaaso405676b3a.0 for ; Fri, 17 Apr 2026 01:51:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1776415880; x=1777020680; 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=gfELObkOOanICF63Ijgm6+zg/NqF754KDKPUD2nRVCc=; b=cwhPxnwhSGUlWyfRK/ddP8mZflNHVljxeYDNG/2BnH/aGXq6yfWhpao+AUXd6aiWpp XGY1IzL2hyBUoFu5DDv/hkhLKfQ5BM3kVyCiA4DzP0sh1+JYrsHmNhr0pVFTqV0FpAhx 0AQjM8cCGaDuBLjdENO3nKZZH5IiekdD81xbqqXG73v8Ux+mtDozp9CxawF9aO/hijjF a/CAQecMOHZU/+KtU0VXOsZjIkjadBI43Gz3uT0+pcP9oTbhdTFtLtknWG63WBw7qUKt exnE27AF7NsXNutEiMI+dsF0j84TpSIT+/aXI3y/Qg+PuU7xo7Op3Q+5saIxpNv6KRvQ GHqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776415880; x=1777020680; 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=gfELObkOOanICF63Ijgm6+zg/NqF754KDKPUD2nRVCc=; b=dA3s3LhIOGBO9q5/q4BDXAF4Q2PPOkSCaqCIg0fMXUk0C3GECu4RFVI5r0iHtpnw1v XKiiIekd/2MmwkMhC66JjZnLjM/GNIxoXNVouX3a0Q9EZjLzySwW8okb1BgCC2s+GXPb 1txfCIVnnwvHhY/05H7Je/ZP3IrMzKtqaO0lYj6oFXliAv15Omm5wH768BrAqwVKYfQt kPMjoa9xY2w0YpwcPLrAwt9klfFWjbochWq/DHp20UiMWYPy8TbDQPhlhFxJRreYHYdZ +TAmRaWRCpV2DL6Wx5AcykY60WDD+0bDUVXWjh6tvcI5KS0wHtq5nB2HSGFfnTtMkosh ADBw== X-Forwarded-Encrypted: i=1; AFNElJ9KqdG/84u6l75oPqgBIjKU7XoMQouWPMl1JUnKPNwMQw1P4XdO25YUbFSePzi+z7HEEm3/OM5MubhMSpA=@vger.kernel.org X-Gm-Message-State: AOJu0YyhJFTH+km6ERw4s7vPE2dmch9LkIUpkNmUNojqGaLG68Iun7dD RK/lUyIeSxhqyBrPyBdj3Fh/fsidDOsmxaA9qeiZ3tLd3DegpjitYbl62T4jyAv2CjLNsGe2nDw nYTc8Vy7XbMYhiby1IU/WqmD0p3pNRjeim/9JxnDrw/CKzc/xOlFUFYr1nySrz+xgT10= X-Gm-Gg: AeBDieugeLVJ7AF7ONPHBfY5AaHYpNwh1N2O3b9jXZL177V11PFL13oZzBESPK3JciI cXUfDyHUHbhsozZ7sM5E7H7wnIMCm9mtcccak9SrU3WNW91riKApzwWEETqFYiFGcH25nWPCGLa AT1qS5GkZr4FkIiqdyujyWIrS/s0A8zu7NFwk+3hXJXqKuUhRjdc3YW4VeeDAwLyuknZJ0m5WoX 74zfGQnc1KEVBOK2kdkEmbOq5Y7Db3/+1MmjplPaPwkoZAntriTD8rou+T91m471IaKUDjW5T0m DPvVz4DJqeUfQ/Dhw3EI4Vigi8oEX+izhOSBrOiX/KCEl6cBlalY9pY5AZLc+uEPN9CpuaLydvd LueDJq2y5/OEaDIpaMW5156brEtGjLV3nPC86RSsQpPj3mpXpCtJNtIHyXtiHZ5h61wjyKJICX7 IdyyZLZhkaVsigztSjpFP8 X-Received: by 2002:a05:6a00:3315:b0:81f:ac81:d597 with SMTP id d2e1a72fcca58-82f8c2a9ed7mr1948598b3a.0.1776415879972; Fri, 17 Apr 2026 01:51:19 -0700 (PDT) X-Received: by 2002:a05:6a00:3315:b0:81f:ac81:d597 with SMTP id d2e1a72fcca58-82f8c2a9ed7mr1948575b3a.0.1776415879510; Fri, 17 Apr 2026 01:51:19 -0700 (PDT) Received: from [10.133.33.81] (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82f8e981c07sm1637995b3a.1.2026.04.17.01.51.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Apr 2026 01:51:18 -0700 (PDT) Message-ID: <61c957b5-6072-4936-a37f-84e9aad8f5e3@oss.qualcomm.com> Date: Fri, 17 Apr 2026 16:51:13 +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 v5 06/12] coresight: etm4x: fix leaked trace id To: Leo Yan Cc: Yeoreum Yun , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, suzuki.poulose@arm.com, mike.leach@arm.com, james.clark@linaro.org, alexander.shishkin@linux.intel.com References: <20260415165528.3369607-1-yeoreum.yun@arm.com> <20260415165528.3369607-7-yeoreum.yun@arm.com> <20260416165541.GN356832@e132581.arm.com> <20260417084118.GP356832@e132581.arm.com> Content-Language: en-US From: Jie Gan In-Reply-To: <20260417084118.GP356832@e132581.arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDE3MDA4OCBTYWx0ZWRfX9Y4XCginxuot vD9Xe8vBtxYzYniCcqdSveeGWXBvansqlmJhzSyQfju/mWn3cGOEq7qzPNMYuiY4PqOoDB728U6 5lRodPBppxVGW9ZFdcOMEQafVy5Mni//GRt9IpSWw1HPzdZrg4CCcXTdkakKi8hrlJzKGQtswGH a5da6KTXJU0Nl4P0A51fIkXJavZRWl3hhH8Wn6uOQQvhc9vT3PbzzgkKtEcgyq9uFS9ft2bxF6o OqcMbKmQCFgl7D9soASpVQoaEtroTTGV5Um5fsLFZYw+Y4lhBc2pUY7785tToe+Wi2j7MhETGkE X6DvzI5U+BIwr3FguY0jltQFQJthSOfn+ww53VkaX3MY7AJcopMw/ksZjIZylViqz0JBBWdYyFL o1aTTYQD90LFYicoXKN4witXtTqbOqYk0FMbJLPyD3uJOlBY5ueAMBbtjuzY2DKndNP/KvyXmKe 1ljYZhzUVVM0XJZpuzw== X-Proofpoint-GUID: foIBIh1udWvNg63-q-H9taFZPPO7nFB3 X-Proofpoint-ORIG-GUID: foIBIh1udWvNg63-q-H9taFZPPO7nFB3 X-Authority-Analysis: v=2.4 cv=GcInWwXL c=1 sm=1 tr=0 ts=69e1f489 cx=c_pps a=rEQLjTOiSrHUhVqRoksmgQ==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=SV0BbDEl0i7SrRYoWUoA:9 a=QEXdDO2ut3YA:10 a=2VI0MkxyNR6bbpdq8BZq:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-16_04,2026-04-16_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 phishscore=0 suspectscore=0 bulkscore=0 spamscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604170088 On 4/17/2026 4:41 PM, Leo Yan wrote: > Hi Jie, > Hi Leo, > On Fri, Apr 17, 2026 at 09:01:17AM +0800, Jie Gan wrote: > > [...] > >> ... we still need support static trace ID allocation in parallel for >> the dummy sources and we should not break this logic in future refactor. > > Just confirm what is the reason you need to use static trace ID for the > dummy sources? > > I am wandering if we could use dev->devt as trace ID for dummy > devices. Since the device's MAJOR number is non-zero and occupies the > upper bits (see MINORBITS), it is naturally separated from the hardware > trace ID range. If so, we even don't need to bother ID alloc/release. > The data frame is generated by the dummy source(static TPDM, or some other static devices, connected to a funnel or replicator, or TPDA device) automatically(contained pre-assigned trace ID) and the data trace is enabled by default. What we should do for the dummy source is enabling its connected port in driver for outputting the trace data to the connected device(funnel/TPDA/replicator etc...). For this scenario, we cannot dynamic allocate trace ID for the dummy source device. Because it's pre-assigned during the hardware design. Thanks, Jie > Thanks, > Leo