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=-10.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,NICE_REPLY_A,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 5535DC433DB for ; Mon, 22 Mar 2021 16:59:25 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 D586861998 for ; Mon, 22 Mar 2021 16:59:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D586861998 Authentication-Results: mail.kernel.org; dmarc=fail (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=desiato.20200630; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:Cc:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cFQBN62EasKOsVhGY1ReDW49Wmkapqh8wb25UV4+M48=; b=EiuGML5OaqVSqAlckkrx8rnsr VF1JTYqCP4SVeh7KFncGqhttswklcvrFQkVEK6HbokrfRp0sPA9H9XQS0eHEisMGGcaTsen2dZ2g+ g7ZHJE8gZt5XmLWyK0oYzqACZYXPjF550oWHzLmlvjzqlWOjbz3rpmPR4kGI6SqCS5UfVjq/HI1ul sN4nNdNDdm7C5Cm6GOwmPGR/G/2fk/IW7me/sv6lfRe7zd4GRB1Q0a8BAydhaDCBIJnTM4Oo7rqeT azQyT4U2XCeCEEaJQRyNcTakda+tfvAZcaEdWGusamGW/aLuxO9t+mT712DndH14H9J8Cb0cEjEs2 j00kcHN4g==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lONsK-00C6v4-Bv; Mon, 22 Mar 2021 16:57:56 +0000 Received: from foss.arm.com ([217.140.110.172]) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lONsE-00C6u2-BF for linux-arm-kernel@lists.infradead.org; Mon, 22 Mar 2021 16:57:52 +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 505921063; Mon, 22 Mar 2021 09:57:47 -0700 (PDT) Received: from [10.57.55.187] (unknown [10.57.55.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 55B123F719; Mon, 22 Mar 2021 09:57:46 -0700 (PDT) Subject: Re: [PATCH v4 17/19] coresight: core: Add support for dedicated percpu sinks To: Mike Leach Cc: linux-arm-kernel , Linux Kernel Mailing List , Mathieu Poirier , Anshuman Khandual , Leo Yan References: <20210225193543.2920532-1-suzuki.poulose@arm.com> <20210225193543.2920532-18-suzuki.poulose@arm.com> From: Suzuki K Poulose Message-ID: <4fe2cce5-74b5-7ced-1a16-1dde90b920e2@arm.com> Date: Mon, 22 Mar 2021 16:57:45 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210322_165750_917729_4B0A2CB6 X-CRM114-Status: GOOD ( 19.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 08/03/2021 17:26, Mike Leach wrote: > Hi, > > On Thu, 25 Feb 2021 at 19:36, Suzuki K Poulose wrote: >> >> From: Anshuman Khandual >> >> Add support for dedicated sinks that are bound to individual CPUs. (e.g, >> TRBE). To allow quicker access to the sink for a given CPU bound source, >> keep a percpu array of the sink devices. Also, add support for building >> a path to the CPU local sink from the ETM. >> >> This adds a new percpu sink type CORESIGHT_DEV_SUBTYPE_SINK_PERCPU_SYSMEM. >> This new sink type is exclusively available and can only work with percpu >> source type device CORESIGHT_DEV_SUBTYPE_SOURCE_PROC. >> > > Minor nit: FEAT_TRBE architecturally guarantees a compatible > architectural FEAT_ETE source. > However _all_ CPU sources have CORESIGHT_DEV_SUBTYPE_SOURCE_PROC set, > ETMv3.x, PTM, ETM4.x and ETE alike. > In the code that follows - coresight_is_percpu_source() checks it is > any type of CPU source, not the FEAT_ETE type, which is fine as we > then check the cpu and if it has TRBE. Agreed. But we would like to keep this CoreSight generic code away from the specifics of underlying "source", which is why we used the generic notion of a per-CPU source. > So the simplifications to the code from the first couple of patch sets > make this explanation slightly misleading. Could do to adjust if > re-spinning set. > > Reviewed-by: Mike Leach Thanks Suzuki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel