From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30BA4C43603 for ; Fri, 13 Dec 2019 22:23:57 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 094412077B for ; Fri, 13 Dec 2019 22:23:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="atpLhdb1"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GMXNLsI0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 094412077B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=4rkshJPOQd/5K+H9PDabNGcC8PVEyRSkfEDpkE0UWmg=; b=atp Lhdb16NG6P3u1xmqlOZ9QRZRUFjnoRe5PmlQwDg6x1pIJy+v/O8bhNUglkazs7I2iZQPaq382/dPp S8XKa2dQAjveSLKQ0wDyTtbsMCGVdoYMLiIxaOptmD7denutVA4WPSOMg4HE2k0opd7Qqzz1jhd33 FA9n9ExTWgKOmKghedQhf7wScw5xVKZuzhLu/uVQtm/YfvQfdUr1ZMWlSXOWYdVIK5XSGhN0Sn9uD V/puFr03d5c2xlmKVR1DGaELOxLC58JoVpROMWwoyAggNrBxXd2fPmpT+CZXYcMYoM2xbX60I2WN4 DEfJIQS78B2W2/kXi1eYb1/Md5czxeQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ifmLA-0000Fq-PS; Fri, 13 Dec 2019 14:54:48 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ifmL5-0000Dt-Q5 for linux-arm-kernel@lists.infradead.org; Fri, 13 Dec 2019 14:54:45 +0000 Received: by mail-wr1-x441.google.com with SMTP id b6so7001379wrq.0 for ; Fri, 13 Dec 2019 06:54:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Uo6+XZGMNTkft0H6aZfy4bG5kDxQR0Iolx1l0XRUcio=; b=GMXNLsI0WWja/RR+HGlhdm3ZA3pmxghfYWYqBVMdP7AiaL+MXIf+YZQmltb7doRgFV EDsLpRgqRbOJtUZJHLlXGvGdvYQji91fTSN/Nhcw6vzc+i1BfcOdD6mDf+C9bnc1Be8O 36LWJu5d/s+jH9jWBZVinuJ0mpuz/CkJ/w/OhenH9i2ezoAxyuGGQjhpOpPgKWovJekv YLDFX01/dNXB5P3jQo4VnJFE4PNYIPckEFZMkl6Htm5mhdoJg2+pRRu044fFPFgKvM7+ 2JpRL5tJJdTw8+Uwk27fQXEvOi2aPy6aGp7wvJG/VCvKR0MwB/PpSvLTFF45VlbBtPPC L42w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Uo6+XZGMNTkft0H6aZfy4bG5kDxQR0Iolx1l0XRUcio=; b=HZ4JTZK1/dpc19zT7iL6p/KjljyToYgdUAW3yqqPxmkK5t07cpAXZZwrpUrLc9av61 Pgay/WWUR5m2EWDXihGCMCCATgd2o/6O0wliprHRskzD5QwXd/sdiEtmiwd3wdFA1Coq 35aQaQNlpf236J4/lM/4h6EEWtLw6x9ZGzLPvadzqsDd79y1blrtm4A6Wm8VsUC4KdLF A3/pYz/rCDFzeBghNmMS+5XRbfr4yNWC1uQJ53RESwM8X4pqFvpBIj9LgZ3+hPNp+gVq J7hlsgKy/Yyv/wYhjFyEMYQ3qmlypJezSxY7znVx7sKFUlCjq4fuc/rthXXmPS8m3xjP PO7w== X-Gm-Message-State: APjAAAVok12hluc1IaaNfkF5uB8IVjNmfGGwnkM/jGHGYOo1WhqrEj2K K5n3g6B7FxhoHiZkdbj31uAWACTGBtE= X-Google-Smtp-Source: APXvYqynfeDaiazOqnf+uPa0CaJht8vTImScZqHs/rULucW5sFyMc6N54mDM1cJXTFkrzsZ0H6bLjg== X-Received: by 2002:adf:ef49:: with SMTP id c9mr13026144wrp.292.1576248881480; Fri, 13 Dec 2019 06:54:41 -0800 (PST) Received: from linaro.org ([2a00:23c5:6815:3901:54:d457:4f7b:f42c]) by smtp.gmail.com with ESMTPSA id n189sm10002979wme.33.2019.12.13.06.54.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2019 06:54:40 -0800 (PST) From: Mike Leach To: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, linux-doc@vger.kernel.org Subject: [PATCH v3 0/6] Describe CoreSight topology using sysfs links. Date: Fri, 13 Dec 2019 14:54:25 +0000 Message-Id: <20191213145431.24067-1-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191213_065443_974998_0D435127 X-CRM114-Status: GOOD ( 10.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mike Leach , mathieu.poirier@linaro.org, suzuki.poulose@arm.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org The connections between CoreSight sources, links and sinks is not obvious without documentation or access to the device tree / ACPI definitions for the platform. This patchset provides sysfs links to enable the user to follow the trace patch from source to sink. Components in the trace path are updated to have a connections sysfs group, which collates all the links for that component. The CTI components which exist aside from the main trace patch, also have an added connections directory showing connections to other CoreSight devices. This patchset applies on top of the recent CTI patchset [1]. Adaptation of an original patchset [2] from Suzuki, reusing 2 patches unchanged with update to 3rd adapt to the new common code for trace path and CTI component links & add a default connections group. Tested on Juno r1, DB410c; kernel 5.5-rc1 [1] https://lists.linaro.org/pipermail/coresight/2019-December/003504.html [2] https://lists.linaro.org/pipermail/coresight/2019-May/002803.html Changes since v2: 1) Fixed issues with signature ordering noted by Suzuki. 2) Alterations to main CTI set[1] to overcome issue noted by Matthieu. Changes since v1: 1) Code from original v4 CTI set moved here so that all connections related code in this set. 2) Connections directory mandatory for all CoreSight components and generated as part of the registration process. Mike Leach (3): coresight: Add generic sysfs link creation functions. coresight: cti: Add in sysfs links to other coresight devices. coresight: docs: Add information about the topology representations. Suzuki K Poulose (3): coresight: Pass coresight_device for coresight_release_platform_data coresight: add return value for fixup connections coresight: Expose device connections via sysfs .../trace/coresight/coresight-ect.rst | 5 +- Documentation/trace/coresight/coresight.rst | 85 ++++++++ drivers/hwtracing/coresight/Makefile | 3 +- drivers/hwtracing/coresight/coresight-cti.c | 41 +++- .../hwtracing/coresight/coresight-platform.c | 2 +- drivers/hwtracing/coresight/coresight-priv.h | 12 +- drivers/hwtracing/coresight/coresight-sysfs.c | 204 ++++++++++++++++++ drivers/hwtracing/coresight/coresight.c | 75 ++++--- include/linux/coresight.h | 22 ++ 9 files changed, 420 insertions(+), 29 deletions(-) create mode 100644 drivers/hwtracing/coresight/coresight-sysfs.c -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel