From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 49F783563CD for ; Fri, 17 Apr 2026 08:58:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776416337; cv=none; b=mk64GfSwtYEvVgrQHGTm7FcnbYOTdgtkIMFXIUW0trbQ7K+/yGyCYLIJDxh9WihHQRBgYYXBHWG/3D4ph3hcreb9b8CRN8tjxn324mwNljO5E/2ZdYM5QzOFFPh7IX2jkkQ5fXkavliHXoiOY4uT1aXns46eiGbgVd7t5BGlNF8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776416337; c=relaxed/simple; bh=q/Ja6IIcgbZloWLfrLvIo/XoasWCW4dUvksRCtQCy9Y=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=o5uGjh7JPo7tJXGYRlHmQsX7r2HzItWhoqsF6DuSC6L+mQNrJE02gNDDAP+EREYtSfXtL9NuUaProvQRzmXalqIlIU73cLuzNmnHmsyThkk1c8otxzj2SHUZCn/3yVy3zi4gZaKQThhO0mnGqyYzHPTwyeT4tYzwZbSi3j7ycWw= 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=aF42mgb3; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Kg1rzdVu; arc=none smtp.client-ip=205.220.180.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="aF42mgb3"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Kg1rzdVu" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63H7aDw11092079 for ; Fri, 17 Apr 2026 08:58:54 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= OBjkQbQbLcv9KZJAHyprk4RR5s9yvIq6reuhxR6To2c=; b=aF42mgb3xxGRL26C 5Z20j9IBCom1nHtCRm6xiuyPjGIaVzJAEwB3HUsrhqSZVz4Qe5bWD5+LOiVxSrk6 8vohcKQO1fN2CrgAwQWteQuaJ4LJ2j/LfsxS0dqK4SaGP/dZb8dk+idzXJeGDzI+ wnh78iXYTeeb9hTcAw/rijMDadyn4SzUXrrGUHLvmZsHJk5q2WEr5EhSVh4noaZP slByJs7hdu2W7LGWCNP9OspYsmTWZY3BM2Jwzi0/dTtN8clIDQANgSagXZqDZdWz h70tpMkeexU5SI4vCSrhzNx2hllGAyWfFszuRE/VM8slwYWKai0jDI7rEme/jXKA EGAx6Q== Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dk227ucm0-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 17 Apr 2026 08:58:53 +0000 (GMT) Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-82f70ae35c0so283486b3a.2 for ; Fri, 17 Apr 2026 01:58:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1776416333; x=1777021133; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=OBjkQbQbLcv9KZJAHyprk4RR5s9yvIq6reuhxR6To2c=; b=Kg1rzdVuodZNEgKMiOCEGhsGKtZFdUDXPnyKQ0CadOpk/EkVMyQVcg/gvReqbD5gHW YDWubmi2DScAUqhC2I6dtduXr6CUKHbVbWICo83jjxsomG8EtWnawhjfrcCewGsxvheF uY5zf2j4bPl1qUflNZ+/EvVA8G9kGriGXvv13S+FXBNfUxu6iAGsGgKayTL2UYFzN9na oCwQ4Wy0mw3tWuy6Wac9WojAD9AbWNUA7jp5+p5T8XQiJBOAtsXEHKZumJR7L9HNstRv CFlL1tq8Edv9IMFXToemFveMOO2njf9qfn/fFbpJcfL4+4nW0bfhRQZIOGhud2b2FTLe c+oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776416333; x=1777021133; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from: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=OBjkQbQbLcv9KZJAHyprk4RR5s9yvIq6reuhxR6To2c=; b=IlGXXem+JnKlg2ZpYzBreT1bLEGtHuvMeqH4sLbiVNIH1vOJX8WYxWMb94TCSXntcM zUQ9zc6z04uNKP4kOvtSmiQw97YgGZgLm2My94cWkWvPk9ZA1OPVUlHMUa1upXMn1bAi atI+LoIrwgMzidmLYUUI7Dx9JHcVbBYBmB4f8sA03VwdJkHv7nPYiJz347lha2V0T3D8 gHeDZUJYySTSz1o2UXSZrogq3r2leMxYe9xs6rwC9RNEXuwrifds/iy2lp70UPoixdkC tIXjrRoL5WgrI6x+aLcdoJSctTjD3wi7uHN7CjUwK5dtKUiaKhSkUA44jtLsBwd5reuG YsOg== X-Forwarded-Encrypted: i=1; AFNElJ/d9oE3X6TG3V4YDOTvffFRZ0hGD/zyaXuclLiYVGKPYiQp5N1o8YbBzHNn0qlDVvkpJU6W0fmdV0CtGYs=@vger.kernel.org X-Gm-Message-State: AOJu0YxqUGQx5XXaXBNVCX2nA0mySG+tRGYWNsosNXxuIE1Raqn9+VYi smszBw+5HTq9/8Y0PhhyO2JAKPPUqi6WLEjOg4vCC30fPxfl+KnzvUJpd2oRLqgtcwB0bKPEf4W m316m//jN9ybrT/rzJpQi2t5WadyGBl0XGBFhBFUJmr7BazznGisZubY51guobLMR0mY= X-Gm-Gg: AeBDieuah5gJCfZaYPaPhnnzgK5wuS68CQ0PL1agUycidRODkhp4+770ej5cSkDWW4d vjnP3XHIPWVoN1QY16F+y9g9KzYznoCNZ9hHNwvOX2dv+vhOR8YiHHcLzpkOyUzdmRIqMTl41Fj mLLA5Q1M+AKQwQlp8Lp1+o2UJxsc8WOWXJsjclofADKmBcBYEafZRZlR3IRayWcVjmFIfGdgNMt kdCDI8Lwl/NtZefXm4XGFdcs3SEPkzA9Cd22Cdxe2DwVJIcRL0LBvR25Ryh3X7qSP+eOUY2hopm P1QlNQkj9sbUH/p4BgSwal6CMeuNPTPwhYiJwsQZ14SSS28NDRs8sBHpLkf677grLbEJPtsrRQv Lhsn5smotXr8u6T8T0HQkCzgDnylfYG7G0u29ruxa46sy5T+sgHRDw9BI7cyx5axK8WizoT6amI 68Y44VJoCeaPkW1a2XgLSm X-Received: by 2002:a05:6a00:1f09:b0:82f:5576:2860 with SMTP id d2e1a72fcca58-82f8c7ded1dmr2041535b3a.9.1776416332846; Fri, 17 Apr 2026 01:58:52 -0700 (PDT) X-Received: by 2002:a05:6a00:1f09:b0:82f:5576:2860 with SMTP id d2e1a72fcca58-82f8c7ded1dmr2041515b3a.9.1776416332341; Fri, 17 Apr 2026 01:58:52 -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-82f8e981a0asm1323635b3a.3.2026.04.17.01.58.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Apr 2026 01:58:51 -0700 (PDT) Message-ID: <44addb42-e8b8-49f6-8b71-d89136e706da@oss.qualcomm.com> Date: Fri, 17 Apr 2026 16:58:47 +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 From: Jie Gan 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> <61c957b5-6072-4936-a37f-84e9aad8f5e3@oss.qualcomm.com> Content-Language: en-US In-Reply-To: <61c957b5-6072-4936-a37f-84e9aad8f5e3@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDE3MDA4OSBTYWx0ZWRfX/+OS72Rwb05k B6ihF9BW2Ud5FmgxWSygTfONpnBXIaKa/IPVAXb6bDk0nCiGCpCKWRv8e3FUWeJexIpqVOLxzoa LgUrlQa+AJRcFnhGEZMkbh9eTtKUuFt7175is6jn1+Ke7qzORDg8GXNcmPJv1cHLRlgOfaydS6q OE9yRbsoBVy2GnEn/3LBYtHlVk8kPozpCdVzQdIR1hdOvDC0TBRvCHrfJ2GIMBxCBJoz9LqvKk+ jcTrdVvH9Qvs/5jkzz3/WytOhKabTKCdwyeYBP8lol9Dzz7ku9e6QoSnUaCPe7Dbu0uwgsgKGty DwPY6I0F0AuHNtEu+VLzvQ3qMgl7x1MfwwGqWi+dlXJQXntr/YbY8IKiPa9twt60Lxu2I54BG5F Nomyz2GnhgXOz4jjApxybq/9iv3kEVbOYx6Jf3gT9rROLlX+jH0M6oYv3SXQ3tWjWgK6Dt9vXTj fqQvzyPZac5LeAyqd3g== X-Proofpoint-ORIG-GUID: Rlp987VdNJDXPbVjBaLUvRco0DBfkTOh X-Proofpoint-GUID: Rlp987VdNJDXPbVjBaLUvRco0DBfkTOh X-Authority-Analysis: v=2.4 cv=Iuoutr/g c=1 sm=1 tr=0 ts=69e1f64d cx=c_pps a=mDZGXZTwRPZaeRUbqKGCBw==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=mDRyvFsd6lRcwDeC3cAA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=zc0IvFSfCIW2DFIPzwfm: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 bulkscore=0 adultscore=0 suspectscore=0 clxscore=1015 impostorscore=0 malwarescore=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604170089 On 4/17/2026 4:51 PM, Jie Gan wrote: > > > 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 I shouldnt take TPDM as example here, TPDM is a special source device and it's trace data will be re-constructed in it's connected TPDA device with TPDA's trace ID. We have some other dummy sources designed for the CDSP/ADSP/MODEM subsystems... which cannot be directly accessed by the kernel. Thanks, Jie > 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 >