| Message ID | 20190522043224.14986-1-lokeshvutla@ti.com |
|---|---|
| Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="Ee278NK7"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45809F6ms7z9sBV for <incoming@patchwork.ozlabs.org>; Wed, 22 May 2019 14:32:33 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 97703C21E29; Wed, 22 May 2019 04:32:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id C1209C21BE5; Wed, 22 May 2019 04:32:29 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 45BB4C21CB6; Wed, 22 May 2019 04:32:28 +0000 (UTC) Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lists.denx.de (Postfix) with ESMTPS id B90D9C21BE5 for <u-boot@lists.denx.de>; Wed, 22 May 2019 04:32:27 +0000 (UTC) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x4M4WQRw061083; Tue, 21 May 2019 23:32:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1558499546; bh=sCRzYJnBIwpWJ5fCT1aiZvMTvcSdbOp/tjKBOwCzCgw=; h=From:To:CC:Subject:Date; b=Ee278NK7K2XrZ4Ma/+yFZkwHff71BjuwUD2R+1aymlbhVHGWikhS3CYBZpTpfafPs sV1Eor6Rk3IXmfmYvcn8ltiVKvo46X1pXJoEDJ8XzF3uLMFEPshf/5z4icA2gwLnJs rqbHz+QWH9yA9Bcf36pmjk42QIxh2U6lZzwbF3m4= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x4M4WQ6P114762 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 21 May 2019 23:32:26 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 21 May 2019 23:32:25 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Tue, 21 May 2019 23:32:25 -0500 Received: from a0131933.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x4M4WP44083051; Tue, 21 May 2019 23:32:25 -0500 From: Lokesh Vutla <lokeshvutla@ti.com> To: Tom Rini <trini@konsulko.com>, <u-boot@lists.denx.de> Date: Tue, 21 May 2019 23:32:17 -0500 Message-ID: <20190522043224.14986-1-lokeshvutla@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: Tero Kristo <t-kristo@ti.com> Subject: [U-Boot] [PATCH v2 0/7] arm: k3: Allow for exclusive and shared device requests X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
| Series |
arm: k3: Allow for exclusive and shared device requests
|
expand
|
Sysfw provides an option for requesting exclusive access for a device using the flags MSG_FLAG_DEVICE_EXCLUSIVE. If this flag is not used, the device is meant to be shared across hosts. Once a device is requested from a host with this flag set, any request to this device from a different host will be nacked by sysfw. Current tisci firmware and pm drivers always requests for device with exclusive permissions set. But this is not be true for certain devices that are expcted to be shared across different host contexts. So add support for getting the shared or exclusive permissions from DT and request firmware accordingly. Same bindings are acked in kernel: https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=103447 Also this series adds support for shutting down cores so that R5 cores can be shutdown right after jumping to ATF. Changes since v2: - Dropped patch 8. Andreas Dannenberg (2): firmware: ti_sci: Add processor shutdown API method armv7R: K3: am654: Shut down R5 core after ATF startup on A53 Lokesh Vutla (5): firmware: ti_sci: Allow for device shared and exclusive requests power-domain: Add private data to power domain dt-bindings: ti_sci_pm_domains: Add support for exclusive and shared access power: domain: ti_sci_power_domains: Add support for exclusive and shared access armv7R: dts: k3-am654: Update power-domains property for each node arch/arm/dts/k3-am65-wakeup.dtsi | 2 +- arch/arm/dts/k3-am65.dtsi | 1 + arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 2 +- arch/arm/dts/k3-am654-ddr.dtsi | 4 +- arch/arm/dts/k3-am654-r5-base-board.dts | 8 +- arch/arm/mach-k3/am6_init.c | 62 +++++ arch/arm/mach-k3/common.c | 6 +- arch/arm/mach-k3/include/mach/sys_proto.h | 1 + .../power/ti,sci-pm-domain.txt | 11 +- drivers/firmware/ti_sci.c | 216 +++++++++++++++++- drivers/firmware/ti_sci.h | 50 ++++ drivers/power/domain/ti-sci-power-domain.c | 31 ++- include/dt-bindings/soc/ti,sci_pm_domain.h | 9 + include/linux/soc/ti/ti_sci_protocol.h | 7 + include/power-domain.h | 15 +- 15 files changed, 393 insertions(+), 32 deletions(-) create mode 100644 include/dt-bindings/soc/ti,sci_pm_domain.h