Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2423498rwd; Fri, 19 May 2023 05:44:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6fVBG5bkXmwVMzAufRauEE91js9Qr8Hzse/3dxvMatwrvc9WZTyLQsYcQIPc1evy82BWSS X-Received: by 2002:a05:6a21:6317:b0:109:c4ff:80a4 with SMTP id wu23-20020a056a21631700b00109c4ff80a4mr1790517pzb.17.1684500285445; Fri, 19 May 2023 05:44:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684500285; cv=none; d=google.com; s=arc-20160816; b=UzHCGJMEtnTRT/lT60nxq1XOo9sPe7DZTvPaSIxTDEmqov9p5q870Y6O0Mey6GgiNK LdD+07PDJP68oPfPa3OCcPXggU5CZnV3t9IHzLNzrcc1P7v5BCPeNP1KDkaxJju580Rc f97OfVKEFn+wA5PqzlrKY4AAKFVqporolHqWi+pBuDdLVcIQYme9m8JO2/rM8gMKVvsY GJQ/qyNkYSjd6kE2pCJLb7oshX+qMZF8jtOjmjJdY5oj7j2Ru5YMhBaj5mB4OHUE+/RQ XnccReCMbp0aEdfOdgJkseCgCl9bgV6xtQC+q6npuDyaiJB2VQJXU7UBz0efKmkpnscI 7mww== 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=Lni9hFE/mB3UK1gbN4PAAlyvt8iH9u8ujogv160CMYA=; b=Sj63azDdmFHWglEWUkWL9OHR/wyBsIjCTWs9s25DPa7GCef1IgZa2RpbQa+wjw57r4 GtJEELE9RR4jFWGbEOstBiY4Dfo/M0+6PH8tJcOETaj8f37fssjD6hzsMrG5CA8gHloH 1lShvslq5S294pLlhHtU+M5718BGsRXKrNNH5BE6z3r7N7oedIABS8wlfz6rayOOojaU HsHKA1ZbWsGkGl7xVdjrKR7kunym6TnKk7egh2JbWFj4sK0AmOXVMHpLvk/PxyETCW3W El4OGunz5qB/kbE60f+HebzjDoc+tFFZya13SM7Eb64nf21932IPTI/PwNyq2OseqdsS WPDQ== 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 l65-20020a622544000000b0063a6dbeaa56si2801567pfl.60.2023.05.19.05.44.29; Fri, 19 May 2023 05:44:45 -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 S230499AbjESMkK (ORCPT + 99 others); Fri, 19 May 2023 08:40:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbjESMkJ (ORCPT ); Fri, 19 May 2023 08:40:09 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 59EB2106; Fri, 19 May 2023 05:40:08 -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 E83171FB; Fri, 19 May 2023 05:40:52 -0700 (PDT) Received: from [10.57.73.119] (unknown [10.57.73.119]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 990F13F762; Fri, 19 May 2023 05:40:05 -0700 (PDT) Message-ID: Date: Fri, 19 May 2023 13:40:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH V3 6/6] coresight: platform: acpi: Ignore the absence of graph To: Anshuman Khandual , 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: Suzuki K Poulose In-Reply-To: <20230519052149.1367814-7-anshuman.khandual@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.7 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 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. 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)