Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp31919lqo; Wed, 15 May 2024 19:57:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWLvTsNHUvGIll9deZCdAFvyyc5gyYlv/klQAFJM71q0M2fpUng0NvSjlMytvvTKkoQb0UeVdlH0T6mIwnNiB7ttIaTvTI6xQ9PZ37/ZA== X-Google-Smtp-Source: AGHT+IE37P4HTJXCVhO3IjkdNlsefA0JsgwE71x4Bpa1jgsv+Vl5Fpao6lLHXvesw4SC/zqmUxLF X-Received: by 2002:a05:6102:4192:b0:47b:d7ef:243f with SMTP id ada2fe7eead31-48077e45cd1mr19235810137.26.1715828271707; Wed, 15 May 2024 19:57:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715828271; cv=pass; d=google.com; s=arc-20160816; b=Mq99aRtUTS2vxxEHIYOonDu+ela9nzmTR68ae3REDpUAEtV3jgeLdUGkWi3jTrymVs w4j5S08ppGSeQS+2lzoONIE9eX4lPUbYeHkEG2kvF+JDPu5uRH0o6mHcPLRRZU/rj1cF 6vOa35SQT4L/R8m66JFmtBCu6vNOea8Kbae+cL7mOt12hN2Y0zPslTXbyJTMYvzjQdcb XRKP174g8bT2To8OwwmMA5nr1xL5jQEs1c1sLnKhwuudZhMZ6WaTfoDrHunF4VGk7AEQ UDXZRrfpi8dYvq3Lipu/SKb6Ozt7626o7qIt0N720AhykguBhGRSzYo8ATjA+e2GH9We 3qLA== 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=KPSTHVOhJbfke8X0OKBwneEFhJUY7shxJp8KynfdjUI=; fh=SEZ8RLjv5iJhlA5O9kgXv9AVLNj0D6s/gyM1UUiqRmA=; b=xBoZCzTE2b0SUEPQ++cmSMFjDCTcHLPvCWaZ62UA8yCTsnEH6mYwxwImhe3BpvUrja d4D922Ge29QBFO9P0Y1bB6LtXpeNmBoRdbmJtJwwDy3t1RbHO1EWZYv6VwgnQN9hY8Td 7SFCjIl9/gnvtENQTkNtVBGhipvsttGFrrVviEsXo5k3/r1wXDZqL7RLadczlU/G7O8Y R8q2NLk7utGjcD5LTqRZRogRvzWwQn+zZJ8x95RlP49t1hXHf71YN8vm9Oj5KoS1WbhM mZCXA7APjrTgmO+VEnaeJ+3FPuMhqYYffktZefvFXpjhajYD1Pih4pjNFP2RspjUVQDq CZSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ReJ90PEl; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-180585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180585-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43dfc42197bsi141602411cf.140.2024.05.15.19.57.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 19:57:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ReJ90PEl; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-180585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180585-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6D1C81C211C6 for ; Thu, 16 May 2024 02:57:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 843FB11181; Thu, 16 May 2024 02:57:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="ReJ90PEl" 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 61203522E; Thu, 16 May 2024 02:57:14 +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=1715828235; cv=none; b=dwlt58DFftKw7zMLq1wozeKY90xChEtTXGPv6ceEki9M5ntxj1lhiFQqZMwY3IEYNaPnmvaETFTT6YlbWw7Aw0xnXjRyGn32Az1MB7XmtMhvGhk8POGGi0ofep+d004uCYJAWfNLruZhOHS78zx1XlFMVlZpZWOgPD43UcszEfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715828235; c=relaxed/simple; bh=GziP5EuxONdYvySF6zDKZ9ctaWsBMTU2rlgzt665eRg=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=cTRNSP6i3ifozcyvTYmliF2tzkwK7iH0P2+2pl32cbaZO9SRPzrvfbHaV+/5leGYAeYnjJzd08YXJypEKxGOFThOjUQqLz6pGeRTBlArMHRFUc0rxu5VN8GNs+uyQRD1nAkFU2qdf6BOMBFHAF5pVp/Y1JoX6f5QV/VkAGFnmdU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=ReJ90PEl; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44FLC8QM024800; Thu, 16 May 2024 02:56:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=qcppdkim1; bh=KPSTHVO hJbfke8X0OKBwneEFhJUY7shxJp8KynfdjUI=; b=ReJ90PEl0k+7Ub4iYp9ADYt HfKGcH6YWIg/trFkrq0dHkoYqDJqOjZ5LwBM/pxg1e8cOEfbCF6lej22M4Y6C1N/ 8+vskoSIo2l2hXn4sykix4KbQXHXXM4NHr1x+ZPvuX7CejgiJ9TEgC5f9SE61gSR chCeRqDrfD7w0OCOfpbD9k4xoHyofHFltDe8xSl4OpuglpgzsPdu9QWXNDrln62M Kco4z1BiAqZA32/1dyEuGSqRdu2buT2vzssFjX+zPH2y3nQmKwYWOpZn9eqQKP7x 8TS1X7S3zIEJyVZyC1lzg3mnDTMFaffX1phuWGLLd7FZiqHYQBMUvVGrpgqmL7A= = Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3y49gdv0vr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 May 2024 02:56:57 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44G2uuVb001680 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 May 2024 02:56:56 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; Wed, 15 May 2024 19:56:56 -0700 From: Mao Jinlong To: Suzuki K Poulose , Mike Leach , James Clark , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mao Jinlong , "Alexander Shishkin" CC: , , , , , Tingwei Zhang , Yuanfang Zhang , Tao Zhang , songchai Subject: [PATCH v1 0/3] coresight: Add reserve trace id support Date: Wed, 15 May 2024 19:56:39 -0700 Message-ID: <20240516025644.4383-1-quic_jinlmao@quicinc.com> X-Mailer: git-send-email 2.41.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) 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-GUID: ZR5JZ_7ZG0E4tv2M234P1Vu7hXVMu69p X-Proofpoint-ORIG-GUID: ZR5JZ_7ZG0E4tv2M234P1Vu7hXVMu69p X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-16_01,2024-05-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=828 impostorscore=0 clxscore=1011 priorityscore=1501 phishscore=0 spamscore=0 mlxscore=0 lowpriorityscore=0 suspectscore=0 bulkscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405160019 Some HW has static trace id which cannot be changed via software programming. For this case, configure the trace id in device tree with "trace-id = ", and call coresight_trace_id_reserve_system_id in device probe function. The id will be reserved for the HW all the time if the device is probed. Mao Jinlong (3): dt-bindings: arm: Add trace-id for coresight dummy source coresight: Add reserve trace id support coresight: dummy: Add reserve atid support for dummy source .../sysfs-bus-coresight-devices-dummy-source | 15 +++++ .../arm/arm,coresight-dummy-source.yaml | 6 ++ drivers/hwtracing/coresight/coresight-dummy.c | 56 +++++++++++++++++-- .../hwtracing/coresight/coresight-platform.c | 26 +++++++++ .../hwtracing/coresight/coresight-trace-id.c | 24 ++++++++ .../hwtracing/coresight/coresight-trace-id.h | 11 ++++ include/linux/coresight.h | 1 + 7 files changed, 135 insertions(+), 4 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-bus-coresight-devices-dummy-source -- 2.41.0