Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp459497rwd; Wed, 7 Jun 2023 02:18:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7sbd6SH18CBoJko83f0oW8xTlSCRWuFnClhgKI1eFm5UxB2HV24tY/FPp7fzSKq8rzaUtc X-Received: by 2002:a05:6808:3bb:b0:398:f84:2862 with SMTP id n27-20020a05680803bb00b003980f842862mr4625278oie.52.1686129502678; Wed, 07 Jun 2023 02:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686129502; cv=none; d=google.com; s=arc-20160816; b=CHty0g+8k5XvHfp41g6TRmB4OQg7DWeKXy4yN7b+NoykLZoa2I11+HMEaeyZbW2BBa WXT/9rT6TkH9uCZ38/xl5n7NzejuK/VOSE3LFAEF7m4AB5vxmzfFCJIins1A7CxsEMLW 8oSD7fCumCq6pyWAg4WixGYXIPKRGpjRYNIt4BZJh8xg5dwE6DAg70oeAwsUaSggGm6S qPORUI4VX3sgHlFwy0ioCGHviCD9DW9pZpOSYeTl+sbjbSu13r2ylDk8YVfPYr8wG/Tb itMom5amT10yOhQywWfoRHyYiUdjfQo1GpwF7Hs9YGrgaIBCCUdXwzoNM6DCi1OVTEbP 1EQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hBdjUmLLxTMipCtOKQafeZ6YaOeoY5bbnR9kUaMiMR8=; b=gfMZvCmGxlwUY7rRufzGZaI8T0PWZh/g6Ja6jezf9D0rzoB5GkZgFc/ul33z+Ben09 gWqCyc6yu30EX+DsikAh45qzgxXIwJ7RsFogpTffGxAy7cyvSx3BhLHdBr0vYhkAl3YH Dmp9WXkKadBWSdSJHi+hDJQ6GJf/iljIwvLvVhxL4PsYL/LC54HU4QqHySCVdhqi13ik j/iSTGtmFqd/4PZrJ1uppplENILf4AahwTCfl9GFi8Ax+KXu04iWrsR5x+oh+bRz3tyT 3XCr9QvKuzupFVVL/DKb3zP0XhbW5VtcVsC7Vrg6k5hd/7gAO//nerH8a6jI1Z9ofMra agFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jsrrj31d; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id la11-20020a170902fa0b00b001a65688c863si8437392plb.56.2023.06.07.02.18.09; Wed, 07 Jun 2023 02:18:22 -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; dkim=pass header.i=@linaro.org header.s=google header.b=jsrrj31d; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239414AbjFGJB0 (ORCPT + 99 others); Wed, 7 Jun 2023 05:01:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235702AbjFGJAx (ORCPT ); Wed, 7 Jun 2023 05:00:53 -0400 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0ABD2122 for ; Wed, 7 Jun 2023 01:59:07 -0700 (PDT) Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-39c6a912cc5so233939b6e.1 for ; Wed, 07 Jun 2023 01:59:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686128347; x=1688720347; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hBdjUmLLxTMipCtOKQafeZ6YaOeoY5bbnR9kUaMiMR8=; b=jsrrj31dMSZIbXb6poLk+N0BvihdLqH/JjRk6kRQ8CuxsF4eUzJZT7EJKYb2550fMx K83PUI/+23opZQgiJRIQzZzwdEq/0RcaOdgoCYoGY314fiTZDc/xzHPoqCEIclLbTCML klrGBtBtIYMajaM193uWBkXXjlfmFTj02kkZ61DxCeLvh2tOEhYkyM49b4IzWmbf0S8l a9HjtvM14SwVf3KXyvNnWY5f/NLHD7oKEHmTlED3VxUCDfRm0i0S/K4FVevYFkn61tWb o0BmY4F63xRMkoN75bsLUX+27YMcINWK190TXD6d36PBEs1sUzw2CznAZMr9oIqPPVtI FY8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686128347; x=1688720347; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hBdjUmLLxTMipCtOKQafeZ6YaOeoY5bbnR9kUaMiMR8=; b=GVVphLUMBm/+pvgYdF71pUjC52ZVpZjsgS5xFLwgxlh1W0KFYN4mqhByVTYkZ3F0bc NU9xuklOAQiagLmzmWvrzrS89JtIk8uS1h28J/wrZL4lfZbwkPk+gjq/6q9wnnEc5e2F x8374f4lONkMnn0AsNWEDyADkUF+pnS0aSnQIzcX/D8w3SF5j78CVgnjFU0ONOXri2oq gGHwQM1rONvTsqpuu4Yq3n9sKCfBL0MMRaHAAM1WyZyj1lyX9ko6LJN/utvK7p5fP27u J0YLOdtosZuJiTaEFNNgQzaQWRJ424uX8Q/D8kdnDlgqxc1oTK63EBT/PHhQI3xAOdHV RLtQ== X-Gm-Message-State: AC+VfDyVneIFUFk+OvyZoqtuFXEO3VmDg3kLMx3U2haDWUDrtrGvup/Y zWWE6i9F/MQ/iOBgBZK93NMLA/kI2vPo9VEn3OBJgA== X-Received: by 2002:a05:6808:4294:b0:396:4977:e148 with SMTP id dq20-20020a056808429400b003964977e148mr4766073oib.9.1686128347140; Wed, 07 Jun 2023 01:59:07 -0700 (PDT) MIME-Version: 1.0 References: <20230529062511.52016-1-anshuman.khandual@arm.com> <20230529062511.52016-6-anshuman.khandual@arm.com> In-Reply-To: <20230529062511.52016-6-anshuman.khandual@arm.com> From: Mike Leach Date: Wed, 7 Jun 2023 09:58:55 +0100 Message-ID: Subject: Re: [PATCH V5 5/6] coresight: platform: acpi: Ignore the absence of graph To: Anshuman Khandual Cc: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, suzuki.poulose@arm.com, 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 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 Mike > nlinks = graph->package.elements[2].integer.value; > if (!nlinks) > -- > 2.25.1 > -- Mike Leach Principal Engineer, ARM Ltd. Manchester Design Centre. UK