Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1779332ybm; Thu, 23 May 2019 06:40:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0OWrJvT8Z+cXuJ14i5lwadUj1vKAUv8s8fqsm7rFsM2plHTtXgSfKekqIfYN93c1H2aDa X-Received: by 2002:a17:902:f085:: with SMTP id go5mr88551079plb.53.1558618839561; Thu, 23 May 2019 06:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558618839; cv=none; d=google.com; s=arc-20160816; b=c4C9KXr0QKcufwZZZEVAkbpJGvTDExbdK09SinSXcgSewtpND0thM8ezkhUjGqxMkX 0GSz5SsU0SwQkiGrgWiQodhNTZrvZvzidISBiStrevmIzcGpEddeeGOVdP484iQm3H3I bEB9B4pZ1ZtTZyvawCm37rlhPx5OzZyMfbvqShLi7TRmRE2eVIkfxfW3WvGm4ar6NQTf p8dtKNfp1v7FaTYRDrzjohV4E3rGyUTXH2YMtNDkPu9dYvaPXUY+wZo4+BTeiNeIdlKL kL0wWOWQEUObIEVE6LOZx5HSS9o63hJ6d7ewHMgAaLb+8oGP3JMUHi3fUtLPQ5Iz8i5l a+bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=NC0kFTmUrqil5HCiB1pgVrR2Y9eWw2ss70NUII3CTPs=; b=n4zll7w1BgyPHfxk7WxK9hCIAhbJDos1dyNNpsZndKjqxqjiAPR7HZMfg/pBx35FuK M+NIqBL4sQh3AJ4+IGR6Dt39NMU7+yV8S1d6COn1x5tIknsMF/735TxD4FLHJqKWy46L 2UPQft0kOxvP41spN+KF7NFMTProS0sH11eWmnfvoB5VgkZ628RCJcVIYuqFL/OxgbTv 4dCKXjv6PTwrPNt3IiQjLkEiTq1fnA+SyKW2zOMgug2YuTo2XhcYL2wreQ7+DOY5MIHL 4EoHEdCp1aG53xD0Cn/VJ5sfNLVQFTjUnl0PSwJVd1hHPetiQrKuBQrxIyzyLWMEVbpO meSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k33si29784196pld.415.2019.05.23.06.40.23; Thu, 23 May 2019 06:40:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730684AbfEWNh7 (ORCPT + 99 others); Thu, 23 May 2019 09:37:59 -0400 Received: from foss.arm.com ([217.140.101.70]:46550 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729902AbfEWNh6 (ORCPT ); Thu, 23 May 2019 09:37:58 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1649D80D; Thu, 23 May 2019 06:37:58 -0700 (PDT) Received: from [10.1.196.93] (en101.cambridge.arm.com [10.1.196.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4C54A3F575; Thu, 23 May 2019 06:37:57 -0700 (PDT) Subject: Re: [PATCH v4 00/30] coresight: Support for ACPI bindings To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org, coresight@lists.linaro.org References: <1558521304-27469-1-git-send-email-suzuki.poulose@arm.com> From: Suzuki K Poulose Message-ID: Date: Thu, 23 May 2019 14:37:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <1558521304-27469-1-git-send-email-suzuki.poulose@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/05/2019 11:34, Suzuki K Poulose wrote: > This series adds the support for CoreSight devices on ACPI based > platforms. The device connections are encoded as _DSD graph property[0], > with CoreSight specific extensions to indicate the direction of data > flow as described in [1]. Components attached to CPUs are listed > as child devices of the corresponding CPU, removing explicit links > to the CPU like we do in the DT. > > The majority of the series cleans up the driver and prepares the subsystem > for platform agnostic firwmare probing, naming scheme, searching etc. > > We introduce platform independent helpers to parse the platform supplied > information. Thus we rename the platform handling code from: > of_coresight.c => coresight-platform.c > > The CoreSight driver creates shadow devices that appear on the Coresight > bus, in addition to the real devices (e.g, AMBA bus devices). The name > of these devices match the real device. This makes the device name > a bit cryptic for ACPI platform. So this series also introduces a generic > platform agnostic device naming scheme for the shadow Coresight devices. > Towards this we also make changes to the way we lookup devices to resolve > the connections, as we can't use the names to identify the devices. So, > we use the "fwnode_handle" of the real device for the device lookups. > Towards that we clean up the drivers to keep track of the "CoreSight" > device rather than the "real" device. However, all real operations, > like DMA allocation, Power management etc. must be performed on > the real device which is the parent of the shadow device. > > Finally we add the support for parsing the ACPI platform data. The power > management support is missing in the ACPI (and this is not specific to > CoreSight). The firmware must ensure that the respective power domains > are turned on. > > Applies on v5.2-rc1 > > Tested on a Juno-r0 board with ACPI bindings patch (Patch 31/30) added on > top of [2]. You would need to make sure that the debug power domain is > turned on before the Linux kernel boots. (e.g, connect the DS-5 to the > Juno board while at UEFI). arm32 code is only compile tested. > > [0] ACPI Device Graphs using _DSD (Not available online yet, approved but > awaiting publish and eventually should be linked at). > https://uefi.org/sites/default/files/resources/_DSD-implementation-guide-toplevel-1_1.htm > [1] https://developer.arm.com/docs/den0067/latest/acpi-for-coresighttm-10-platform-design-document > [2] https://github.com/tianocore/edk2-platforms.git The kernel patches are also available at : git://linux-arm.org/linux-skp.git coresight-acpi/v4 Suzuki