From patchwork Tue May 23 04:45:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 97731 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1909496vqo; Mon, 22 May 2023 22:31:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7lZ8qIBoDdXQn0JR0MYGDw+FHBMOIM8/xTi86Arr3v1ajM7UFCNvUaEUDkafCP+01Fkj7K X-Received: by 2002:a05:6a20:441b:b0:10b:3d79:6832 with SMTP id ce27-20020a056a20441b00b0010b3d796832mr8021523pzb.61.1684819875654; Mon, 22 May 2023 22:31:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684819875; cv=none; d=google.com; s=arc-20160816; b=AYLsxcDd2h9DmeVVu/X+hv3+aeVrKsMxJIjw4/E+Me/MXbqNTJ+OGkDQIE0nFgxJxG doszVaOcQRnUzyzC5mLQFRb5c32wP2JaxOJ9ppn4rN2xopm6N8orC15pKHlVh4Ro+j+3 1mEPoaBv831vdo9dHAZgjCxFWtDM0KwGThpY4+M31STN+IROxtz5ZPUu70SXjoc5/utV DqV1lIPY1TzkqcDOgJy0YTQsYG3VSzA9YY3CHpckaify9EMdPOms0yto+fEuvAnNDVxF 7z5EkRGTZSnveJaD+wfiKKZjg4ipFZUI+PMXwwV2b52AwOScJsmc5dIS0B0S4d6cGBAz PZug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=SS8eFXdUUvA8OCPxf5Syhx2f4mz+ypgKZ9P0aUNsBxE=; b=MBMt2GKs8qR81NPOdsyZ9VoK8RX+Dl3ya1RJTvpcO/3qmo6xVblEe5BxDOYwUUU2cV sl5KeysEfoYtvcIorypqdzKoDcAVFcCEi4DoFtb2gDDJkHhP8dMrtECnp4L/x7XKXqCO 8u3D+4VYD2YdIyM87CphkBDcUV8nocURC8hKppM3a1X935pzhsCvC6poKIDSmsLcgTvR 8MnUJkJJqVZUifG7JuomSp0lHeVsFJ3w2KNm4vonu0qMIe9Oqx91F4lNZ546uYE2nVbZ /nK8kxU+8jFqh/g2w3tNqGTH+yyAvcMvVdQ2/sOzaHbWTd47ljNVOmwgkH7pmNGmlUjn /+2A== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p4-20020a63ab04000000b00535f192eac7si1984209pgf.211.2023.05.22.22.31.03; Mon, 22 May 2023 22:31:15 -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 S234930AbjEWEr0 (ORCPT + 99 others); Tue, 23 May 2023 00:47:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232888AbjEWEqv (ORCPT ); Tue, 23 May 2023 00:46:51 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CAF02188; Mon, 22 May 2023 21:46:44 -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 784B4139F; Mon, 22 May 2023 21:47:29 -0700 (PDT) Received: from a077893.blr.arm.com (unknown [10.162.42.7]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 80E6F3F6C4; Mon, 22 May 2023 21:46:38 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org, suzuki.poulose@arm.com Cc: Anshuman Khandual , Ganapatrao Kulkarni , Steve Clevenger , Rob Herring , Frank Rowand , Russell King , Greg Kroah-Hartman , "Rafael J. Wysocki" , Len Brown , Sudeep Holla , Lorenzo Pieralisi , Mathieu Poirier , Mike Leach , Leo Yan , devicetree@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH V4 5/6] coresight: platform: acpi: Ignore the absence of graph Date: Tue, 23 May 2023 10:15:52 +0530 Message-Id: <20230523044553.1525048-6-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230523044553.1525048-1-anshuman.khandual@arm.com> References: <20230523044553.1525048-1-anshuman.khandual@arm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766661685951581038?= X-GMAIL-MSGID: =?utf-8?q?1766661685951581038?= 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; nlinks = graph->package.elements[2].integer.value; if (!nlinks)