From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FC9FC433DF for ; Wed, 1 Jul 2020 22:45:40 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E881F2067D for ; Wed, 1 Jul 2020 22:45:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="j6JTVWgD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E881F2067D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UMar3PZUteXDXJj2JlSYF7xWIGgYqkVVpKHwdPrlLew=; b=j6JTVWgDnO9yQuBzwywTkMVv7 miGGBgD20y/VDGmkko8lZle9VfA1St9VkgYYI2Si78j+wLTdOtHKF2rNKpBZkz+BwufUGCfieGjkP pnO3ezG5towlmFpTeB5tbs9O6ar4Kauj+PY124PXz9bzFbm8Lbe5TKnKAvb74TA+tyv7/wcgdzAx+ 4mlskxXM1mHJoLbTzg9mE7MxsjUyD95s6UdiMEuqxp0JFUqjw7NKJZsbJZHH4YY9VG6HvKYNbdEH/ CFlIQGfcP5kSqeUPQm63bq9eX0iLaBcOzX4n7lL1Rf8vT9Pi/2YyZuNhF++jdw67jIBqrRCNZCBIh dkUMIqIGA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqlSl-0006E3-C9; Wed, 01 Jul 2020 22:44:19 +0000 Received: from foss.arm.com ([217.140.110.172]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqlSi-0006DQ-Th for linux-arm-kernel@lists.infradead.org; Wed, 01 Jul 2020 22:44:17 +0000 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 D42B81FB; Wed, 1 Jul 2020 15:44:13 -0700 (PDT) Received: from [10.37.12.95] (unknown [10.37.12.95]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 806643F73C; Wed, 1 Jul 2020 15:44:12 -0700 (PDT) Subject: Re: [PATCH v5 1/5] coresight: Add default sink selection to CoreSight base. To: mike.leach@linaro.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, coresight@lists.linaro.org, mathieu.poirier@linaro.org References: <20200616164006.15309-1-mike.leach@linaro.org> <20200616164006.15309-2-mike.leach@linaro.org> From: Suzuki K Poulose Message-ID: <104482e4-f674-0053-1c42-08518073105d@arm.com> Date: Wed, 1 Jul 2020 23:48:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20200616164006.15309-2-mike.leach@linaro.org> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200701_184417_148579_C99878D7 X-CRM114-Status: GOOD ( 15.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: corbet@lwn.net Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Mike, On 06/16/2020 05:40 PM, Mike Leach wrote: > Adds a method to select a suitable sink connected to a given source. > > In cases where no sink is defined, the coresight_find_default_sink > routine can search from a given source, through the child connections > until a suitable sink is found. > > The suitability is defined in by the sink coresight_dev_subtype on the > CoreSight device, and the distance from the source by counting > connections. > > Higher value subtype is preferred - where these are equal, shorter > distance from source is used as a tie-break. > > This allows for default sink to be discovered were none is specified > (e.g. perf command line) > > Signed-off-by: Mike Leach > Suggested-by: Suzuki K Poulose > Reviewed-by: Leo Yan > Reviewed-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel