Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp459734rwd; Wed, 7 Jun 2023 02:18:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5tlgPponO4aXT0Q8tgVOFyRa8dMt10FHflD/7uT5MvNGsbHYEV6argNH+ExIjBmgdNV9P6 X-Received: by 2002:a17:902:760f:b0:1b0:22f4:cc34 with SMTP id k15-20020a170902760f00b001b022f4cc34mr3956932pll.18.1686129518828; Wed, 07 Jun 2023 02:18:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686129518; cv=none; d=google.com; s=arc-20160816; b=eS7Onguckj3XtLMfhYaFqvaCNY9DK0YbVa+l0y9mIQuXREI3YCZrt5dGU+cbI4uInQ C1BjLiL82EAQrxdsCxa3nojB+Po8M/nvp0aSrEPQTyVaA43xKff76ZwuYkFLjAY5ZbxD s3ASlZRuVsnOL0Gta76R37J1qDAHjAwOtCVebiJ7nF4FJrARtLV0Y8UUnWc/hPIKnlUr vBn3WgMYjnHCjBmqSFBNJwo6jsdp0zbal9eOWhdr8DdPu9p/P4FdT0CU0hXST3mPZBmf beq9KkAnkX5NrmwOe9Ba4jYq0rGpzqwwXgW6lO+d0+h3s/wmlmSBlWXa0KBDIgkB9ni9 /tZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=QKXhoDtThKnyAEJdgihQHPGCQwcg30EudIJikfJpPiw=; b=DQMR48AV4qnxlqCvPwTTE0c8AyR1ZgD4z/Yl9xg3uW728bWP4AXZwpYW9eTgfYJ+GZ sg3E14Cp4TpMRrqUiAot7dZGPO3h179LEzduq0qfAj/5OPxzVHunX+g8RJMkR/Bdk1QX WFWt1flQXcF9XgrmjwVpi1jF63h76mk4ID/M0ACShdp/jM1hRkm7eZTN1k2cDq1TIIEd Y8ZiyKJ0HNK5+wjp3CkOe1Io3kZ8wsh1b0DAnU6JYWsV2xjgWiq6yK5Euz6RfASpLKQN IwjcMjUYA2trx2gClsHGTeWt+U7IR/WKuc2GRsolAnzVDLOk7POtn6NK7sRuDR9s3sU6 qKFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k8-20020a170902760800b001ae4c933bd4si8372704pll.446.2023.06.07.02.18.25; Wed, 07 Jun 2023 02:18:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239098AbjFGJGF (ORCPT + 99 others); Wed, 7 Jun 2023 05:06:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238467AbjFGJFf (ORCPT ); Wed, 7 Jun 2023 05:05:35 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 94FE82137; Wed, 7 Jun 2023 02:04:43 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 28CFEAB6; Wed, 7 Jun 2023 02:05:28 -0700 (PDT) Received: from [10.57.25.235] (unknown [10.57.25.235]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2612D3F587; Wed, 7 Jun 2023 02:04:40 -0700 (PDT) Message-ID: <95530dcc-aad3-cf4d-f5cc-9ba504ac7abf@arm.com> Date: Wed, 7 Jun 2023 10:04:38 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.1 Subject: Re: [PATCH V5 5/6] coresight: platform: acpi: Ignore the absence of graph To: Mike Leach , Anshuman Khandual Cc: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, scclevenger@os.amperecomputing.com, Ganapatrao Kulkarni , Rob Herring , Frank Rowand , Russell King , Greg Kroah-Hartman , "Rafael J. Wysocki" , Len Brown , Sudeep Holla , Lorenzo Pieralisi , Mathieu Poirier , Leo Yan , devicetree@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230529062511.52016-1-anshuman.khandual@arm.com> <20230529062511.52016-6-anshuman.khandual@arm.com> From: Suzuki K Poulose In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/06/2023 09:58, Mike Leach wrote: > HI Ansuman, > > On Mon, 29 May 2023 at 07:26, Anshuman Khandual > wrote: >> >> From: Suzuki K Poulose >> >> Some components may not have graph connections for describing >> the trace path. e.g., ETE, where it could directly use the per >> CPU TRBE. Ignore the absence of graph connections >> >> Signed-off-by: Suzuki K Poulose >> Signed-off-by: Anshuman Khandual >> --- >> drivers/hwtracing/coresight/coresight-platform.c | 6 +++++- >> 1 file changed, 5 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/hwtracing/coresight/coresight-platform.c b/drivers/hwtracing/coresight/coresight-platform.c >> index 475899714104..c4b4fbde8550 100644 >> --- a/drivers/hwtracing/coresight/coresight-platform.c >> +++ b/drivers/hwtracing/coresight/coresight-platform.c >> @@ -692,8 +692,12 @@ static int acpi_coresight_parse_graph(struct acpi_device *adev, >> >> pdata->nr_inport = pdata->nr_outport = 0; >> graph = acpi_get_coresight_graph(adev); >> + /* >> + * There are no graph connections, which is fine for some components. >> + * e.g., ETE >> + */ >> if (!graph) >> - return -ENOENT; >> + return 0; >> > > Should we not determine if it is valid for a particular component not > to have a graph connection? > Prior to this patch an incorrectly configured ETMv4 - which must have > a graph would return an error, after this it will fail silently I think it doesn't call for a failure. The ETM could still be probed but is not usable. We provide enough information via the sysfs, i.e., connection links, which should be sufficient for the user to detect this case. Also, this change is inline with what we do for ETMv4 with DT. Suzuki