Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3739183rwd; Mon, 22 May 2023 19:59:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7X4Rj4fF8xCziMA27seAl16cNkVqUajCrVKXwEErMeqevavFtroqLbdKWhObpJO7gX2M5T X-Received: by 2002:a05:6a00:24ce:b0:64e:bada:2411 with SMTP id d14-20020a056a0024ce00b0064ebada2411mr3305872pfv.25.1684810750244; Mon, 22 May 2023 19:59:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684810750; cv=none; d=google.com; s=arc-20160816; b=Qjqe5uOQLop7AoQl4E2IMPHCFz6krbbfOFHnhClp8s84hwLlozicb2Dg/53NUgF12b rORB67YMAMBfR9Nv+kHzUotJwr6a/ot62XTKj0QcQWbOIBR3FJg4UinpOHCu5q2LnRgs RwjwvQ0ugGkMi698SsaQ6njfKPLCEZ8d2hGUXeMw1T5cBEQWwJUcFFzZPiIp2uPl9i0M /645Lwxr/FKcPWrBZCXO6OWHMrXDt6fDSfHhDExX40YQxkMk9xWCjWBP2NvX2/I/E4MI 4EAkwf1kvAVz9e2D2Pr6F5fErrcERRcHmaDrJc1QAv+b2ceYhRMWiEvvxDeZ1TfD+zDX /Sfw== 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:content-language:subject:user-agent:mime-version :date:message-id; bh=iL3xz0emP6uW+EE+w3asWtfnVftICdj4nJxQOH8LKEY=; b=x5hMzWJWQRd6F1Ed2KPhklwgHmII6gkKTCUhx/lprQc7h6bonpeXRpvfu3XiYbkpWV JjV1wYin1P26FsdjpNPC/kGawQ/hsXhmBOBmO1PWASyheg44e3i3Z8AkVsIOsIMVBSqJ UDkjUvtUqEb+QFKyFeKmxXP62McoyYTvrahbfrAwCPGFR4YBf/5nr1e6wEB75w++Newm Qg/fJvapj1oeLtHUbCU71+yRSqCefQiT32cSBlVpmOQjJLwA+u1Ai7cRX7ZiZf60LENU OJ/4lMZJI9iPfhMPwDkpF4ckqrOOIKQpRnfnGnFpqOta+22FNvmigcXVcMXNbAX1ySd/ FXBg== 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 64-20020a620643000000b0064c9be61fa8si667058pfg.6.2023.05.22.19.58.55; Mon, 22 May 2023 19:59:10 -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 S234643AbjEWCq1 (ORCPT + 99 others); Mon, 22 May 2023 22:46:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232594AbjEWCqZ (ORCPT ); Mon, 22 May 2023 22:46:25 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E9A4ECA; Mon, 22 May 2023 19:46:15 -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 A36B411FB; Mon, 22 May 2023 19:47:00 -0700 (PDT) Received: from [10.162.42.7] (unknown [10.162.42.7]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CC1CA3F67D; Mon, 22 May 2023 19:46:09 -0700 (PDT) Message-ID: <8a47f7dd-4c53-50bf-0296-45a3f4f80067@arm.com> Date: Tue, 23 May 2023 08:16:06 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH V3 6/6] coresight: platform: acpi: Ignore the absence of graph Content-Language: en-US To: Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org Cc: 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 References: <20230519052149.1367814-1-anshuman.khandual@arm.com> <20230519052149.1367814-7-anshuman.khandual@arm.com> From: Anshuman Khandual In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 5/19/23 18:10, Suzuki K Poulose wrote: > On 19/05/2023 06:21, 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 > > Please could you move this before the Patch 5, where we add > ACPI support for etm4x with system instructions ? That way > the support is up with that patch, without an error that > is fixed by this patch. Sure, will move it before adding the ACPI support patch. > > Suzuki > > >> --- >>   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) >