Message ID | 20230519052149.1367814-7-anshuman.khandual@arm.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1001862vqo; Thu, 18 May 2023 22:33:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ74/V5N6HEuFk1QKE8ZOY6XhiGXYuZzTyUhIJ9enEgJ6DlMIH5HuTYXWmKywNj+1zqf++pD X-Received: by 2002:a17:90a:bf13:b0:252:aac9:8748 with SMTP id c19-20020a17090abf1300b00252aac98748mr1049002pjs.25.1684474405179; Thu, 18 May 2023 22:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684474405; cv=none; d=google.com; s=arc-20160816; b=VPrUuzhiflM8+Sk0BADPvEBHRGs6s0smEAJb/cZiRiMAafjT991DCvrNt7HsiJ06+1 vHIyMKMIMkP2RUH0+Tp7Mw6pn8pHG39BBupAQOHelLIDVzUEFKCsNl0lCAmn4yYbuYvc uwaXcr4evkAX9UCUyXZLdXcahyGYiNUnsYU5woO0BhwIW4NoJSYyEMb+dDmZYoqvWp9V jVWNHaBF2kMQAETyr/XZmyxMjns+4cJNPVHxs83Nj4Db4Vnd/QptddkPpF3H6MhBX5eD nHXvc9VphZiSjfdFAbewZmOX8uKvy+xabjpLUsYciEWZ62Sd+mmC8aIvOxTMSPFmttfM Gh3g== 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=DsLUsI+wjQpz67gKzi3IYf4FfgNj3guuab+f22lnjLrdBgmaFimN4fb7RkVHHDPXA9 bKH2Wz05mbPaclYcgDuenfklG/ZVANqci0wjMqkhJih4cvSIEcxANwuFoOPrFRoyMl/B I3xwSunZWaZqbbNi3jL0J5dE8Knka5Dv8kGocRSecQDzmVeTftO7fgoLv1oXWS/aOlXZ 3e35UbWXd7MTJeQr0+3oI/uaQMeIrgVeKs/GqMa1G+RnDcS3yWb2euYYivJkVifJ4e05 XURYDTBcUeOuVBmZhubptXZQae1ThJn0CB9yaFTKFEcKJJFr3PQ4gKlhVr8g7QLeMcmV aAMg== 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 f10-20020a17090aa78a00b002475696c010si1017112pjq.129.2023.05.18.22.33.09; Thu, 18 May 2023 22:33:25 -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 S231279AbjESFXy (ORCPT <rfc822;cscallsign@gmail.com> + 99 others); Fri, 19 May 2023 01:23:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231232AbjESFXF (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 19 May 2023 01:23:05 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3C3C11BD5; Thu, 18 May 2023 22:22:49 -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 B8E031FB; Thu, 18 May 2023 22:23:33 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.71.125]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2349C3F762; Thu, 18 May 2023 22:22:41 -0700 (PDT) From: Anshuman Khandual <anshuman.khandual@arm.com> To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org, suzuki.poulose@arm.com Cc: Anshuman Khandual <anshuman.khandual@arm.com>, Ganapatrao Kulkarni <gankulkarni@os.amperecomputing.com>, Steve Clevenger <scclevenger@os.amperecomputing.com>, Rob Herring <robh+dt@kernel.org>, Frank Rowand <frowand.list@gmail.com>, Russell King <linux@armlinux.org.uk>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Len Brown <lenb@kernel.org>, Sudeep Holla <sudeep.holla@arm.com>, Lorenzo Pieralisi <lpieralisi@kernel.org>, Mathieu Poirier <mathieu.poirier@linaro.org>, Mike Leach <mike.leach@linaro.org>, Leo Yan <leo.yan@linaro.org>, devicetree@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH V3 6/6] coresight: platform: acpi: Ignore the absence of graph Date: Fri, 19 May 2023 10:51:49 +0530 Message-Id: <20230519052149.1367814-7-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230519052149.1367814-1-anshuman.khandual@arm.com> References: <20230519052149.1367814-1-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766299433746289522?= X-GMAIL-MSGID: =?utf-8?q?1766299433746289522?= |
Series |
coresight: etm4x: Migrate ACPI AMBA devices to platform driver
|
|
Commit Message
Anshuman Khandual
May 19, 2023, 5:21 a.m. UTC
From: Suzuki K Poulose <suzuki.poulose@arm.com> 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 <suzuki.poulose@arm.com> Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com> --- drivers/hwtracing/coresight/coresight-platform.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
Comments
On 19/05/2023 06:21, Anshuman Khandual wrote: > From: Suzuki K Poulose <suzuki.poulose@arm.com> > > 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 <suzuki.poulose@arm.com> > Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com> 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)
On 5/19/23 18:10, Suzuki K Poulose wrote: > On 19/05/2023 06:21, Anshuman Khandual wrote: >> From: Suzuki K Poulose <suzuki.poulose@arm.com> >> >> 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 <suzuki.poulose@arm.com> >> Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com> > > 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) >
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)