From patchwork Tue Oct 19 19:13:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 12570981 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CB03C433EF for ; Tue, 19 Oct 2021 19:16:02 +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 11A7161378 for ; Tue, 19 Oct 2021 19:16:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 11A7161378 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XG5eCA9/fXiUdoxu3n6DUPOyu0EtfUCNS07BkMF+YDA=; b=wBjMeFF6dxsQ7z P8N8WLoOdDXGxkXvbizETDPLdb7buHxOMJG3q+Jt7bDi2ggXGLFPl/1vE5v8r1wM5WYePGeL4cKmj MfGxEPrgeiEOmVklvyi6spNt5HgWHutE7F+0kQGw4FjGxsawoBlwZCiUOSfQTt3GxcCfHLBTLnkVQ kMjUDB4gOVI6ATvrzS914h6QtHiD3h6BQTmagQkJD1mBrFWhbFNkig9Y2t4CacFBWTp9n5EtZkgt7 svaEHBIrWWKMysgRsIoIjVwbrkpyUQ0xK1jWT0hEmAHhiAACmrm9GEbfv8HpLoG8F8MxbY3ncHFJP JL/indbqLFkSwsqjCjog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcuZF-002Txx-8a; Tue, 19 Oct 2021 19:14:33 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcuYg-002TqA-AK for linux-arm-kernel@lists.infradead.org; Tue, 19 Oct 2021 19:13:59 +0000 Received: by mail-wm1-x32e.google.com with SMTP id y74-20020a1c7d4d000000b00322f53b9bbfso4827794wmc.3 for ; Tue, 19 Oct 2021 12:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZJqHQDJEK6bVHLzhAz9/ZT2hLHClYkSQe86Zgmf8Y0M=; b=ff9eBw7wLMPNsAHMQ56VRwpW66XYE/4GiFASt67BW4bjrSBR9OldoROibeJ51rwjxI TdftjisVn1L0zPnkSdjqCT2rJnSigO4VctvoSKn3psrHgK67ofSyXsQkaSiZYmUh3Yrj 8LG0fW2fOvwf+mXsRg0aV+0xLQxxyhTUAC8x1LoT/jCXiH4xYV2oaaiTbi/GKWdtEujP iu1+jGs3iSJUbHwNtI7H6QoDdlp2JycWjjdsIby4QH9VfnIm+edaeEB/QZ6ii09w90iq fb8u5EjV5ft5jKBVEW1ChR8DE2tHB5noOW9NzJQD7hI2N7Np5U6a+g5RQO+vCRNlJm2X o9WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZJqHQDJEK6bVHLzhAz9/ZT2hLHClYkSQe86Zgmf8Y0M=; b=sqTGMhO9gFeWZ8xeslzikyFBN8+JvUekej7jcTTymBCszccraHm+0HXh2uVDpUouJd OcABsWUkCv5rWMOh7HEcvMtwSjjSUAT+Ajt/Nao8JNrCdet6mwwLeQMEz9LqC3fuhJ5s FTDWonqbe4iAMDL8r0RJsg/+X34Lhm+YxdBTf5Zdv0RYmXGXpNMHwvfIC4CH2DISbkMe Hr8bywCn2riiApqGWOs7g8dDSmhXA2UFqRjp4PZxmxbf/lKpmEyfSaBH9Sy3wAHwsIjb zX4II3cl9gWOaIW9yPILgsm4ZGNnxCi083WHiOoc0PAEGyxnvHHC6D64IUCfmXzmEqtu mztQ== X-Gm-Message-State: AOAM531iPPlTnTO5PanQDttfGxfNpYKgkSFhbgLk3czQQbvwdNHEz5Sf sPf2gN5Y8ljAX2PheboVyuEDHA== X-Google-Smtp-Source: ABdhPJyAytgtW8C+ifxlLoX8VxazJtfawfj2pKkfntGmcf48V4WA5heZfLQwvxTEL61hGnlnypIK8w== X-Received: by 2002:a1c:2507:: with SMTP id l7mr8146777wml.186.1634670836616; Tue, 19 Oct 2021 12:13:56 -0700 (PDT) Received: from linaro.org ([2a00:23c5:6809:2201:4cb1:37ba:8a95:ed1b]) by smtp.gmail.com with ESMTPSA id k22sm16012389wrd.59.2021.10.19.12.13.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Oct 2021 12:13:56 -0700 (PDT) From: Mike Leach To: coresight@lists.linaro.org Cc: linux-arm-kernel@lists.infradead.org, mathieu.poirier@linaro.org, suzuki.poulose@arm.com, leo.yan@linaro.org, Mike Leach Subject: [PATCH v2 5/5] Documentation: coresight: Update coresight configuration docs Date: Tue, 19 Oct 2021 20:13:51 +0100 Message-Id: <20211019191351.10242-6-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211019191351.10242-1-mike.leach@linaro.org> References: <20211019191351.10242-1-mike.leach@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211019_121358_404055_92060E0A X-CRM114-Status: GOOD ( 15.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Update the CoreSight System Configuration document to cover the use of loadable modules to add configurations and features to the system. Signed-off-by: Mike Leach --- .../trace/coresight/coresight-config.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/trace/coresight/coresight-config.rst b/Documentation/trace/coresight/coresight-config.rst index a4e3ef295240..911db4da7f99 100644 --- a/Documentation/trace/coresight/coresight-config.rst +++ b/Documentation/trace/coresight/coresight-config.rst @@ -242,3 +242,22 @@ A preset to override the current parameter values can also be selected:: When configurations are selected in this way, then the trace sink used is automatically selected. + +Creating and Loading Custom Configurations +========================================== + +Custom configurations and / or features can be dynamically loaded into the +system by using a loadable module. + +An example of a custom configuration is found in ./samples/coresight. + +This creates a new configuration that uses the existing built in +strobing feature, but provides a different set of presets. + +When the module is loaded, then the configuration appears in the configfs +file system and is selectable in the same way as the built in configuration +described above. + +Configurations can use previously loaded features. The system will ensure +that it is not possible to unload a feature that is currently in use, by +enforcing the unload order as the strict reverse of the load order.