From patchwork Mon Jul 22 05:07:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lokesh Vutla X-Patchwork-Id: 11051559 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6577B6C5 for ; Mon, 22 Jul 2019 05:08:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FA7427F86 for ; Mon, 22 Jul 2019 05:08:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4255427F93; Mon, 22 Jul 2019 05:08:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9D22227F86 for ; Mon, 22 Jul 2019 05:08:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=XRxVgU16SkGowx5IMr+bXLp0o0mKhWlzeAJ6daRiOVM=; b=Y4ln02wE2E7oDx oCcWlgES46Ah9P4G4S2gEWGlpSxvl0SqXrYYngyIDW3sT88ildrVqtHMaceUE1aezp+H+J3z1PZQf zqJTOALegjCbJJh5V4wXP/yUrNKqD0U44Ffh+s8y03KjLWBHnL1U8dF0vyFKmZ5hDALOSJalmntAy H0/EpO/io2XP9BJOsQhV65csDwbsxTfGn+lqaCxGbRzZfT6ydBoIYyFyOdhXt9H4U0RX/pBZZwlye mJnPfwgoD/QvrtfG+a/MzEchl8Su1nLt7tgF7bIVBuN8aZ26ZJiq6jQwAcJVxe6xtwx4kjjsYep9P OOD8HT/P3va2g9suyVtg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hpQZ8-0003NP-AB; Mon, 22 Jul 2019 05:08:50 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hpQZ4-0003MK-RJ for linux-arm-kernel@lists.infradead.org; Mon, 22 Jul 2019 05:08:48 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x6M58f8j094913; Mon, 22 Jul 2019 00:08:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1563772121; bh=SG0BY7NmARWHPZ46WvVxOLib4UKMaQ/abgenQMLS8pE=; h=From:To:CC:Subject:Date; b=MOW+KtI5PzXhXUYnhzvy+6XB0LJXGwc2/EyXxCrLVzsPcHa5lGYtGl/KVRq1jB/1O dub3kA6PzqfY2yGxggr9tiPSojozgvLqQvVyf4XolypJoTdPQdbpzE29FOSSdJAoNk R3j5DUJihG4zopf5J4xLL5PccOjUdjToqvZ4mMU8= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x6M58fCK010931 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 22 Jul 2019 00:08:41 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 22 Jul 2019 00:08:40 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE106.ent.ti.com (157.170.170.36) 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; Mon, 22 Jul 2019 00:08:40 -0500 Received: from uda0131933.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x6M58bwL039856; Mon, 22 Jul 2019 00:08:38 -0500 From: Lokesh Vutla To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring Subject: [PATCH v4 0/5] soc: ti: k3: Allow for exclusive and shared device requests Date: Mon, 22 Jul 2019 10:37:52 +0530 Message-ID: <20190722050757.29893-1-lokeshvutla@ti.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190721_220846_993177_48359499 X-CRM114-Status: GOOD ( 13.64 ) 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: Lokesh Vutla , Device Tree Mailing List , Sekhar Nori , Linux ARM Mailing List Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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. Changes since v3: https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=103447 - Rebased on top of v5.3-rc1 - Updated power-domain cells for j721e. - Mark the console uart as shared in am65x-base-board - Added Reviewed-by from Rob Lokesh Vutla (5): firmware: ti_sci: Allow for device shared and exclusive requests dt-bindings: ti_sci_pm_domains: Add support for exclusive and shared access soc: ti: ti_sci_pm_domains: Add support for exclusive and shared access arm64: dts: ti: k3-am654: Update the power domain cells arm64: dts: ti: k3-j721e: Update the power domain cells .../bindings/soc/ti/sci-pm-domain.txt | 11 ++++- MAINTAINERS | 1 + arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 44 +++++++++--------- arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 10 ++--- arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi | 6 +-- arch/arm64/boot/dts/ti/k3-am65.dtsi | 1 + .../arm64/boot/dts/ti/k3-am654-base-board.dts | 1 + .../dts/ti/k3-j721e-common-proc-board.dts | 4 ++ arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 20 ++++----- .../boot/dts/ti/k3-j721e-mcu-wakeup.dtsi | 6 +-- arch/arm64/boot/dts/ti/k3-j721e.dtsi | 1 + drivers/firmware/ti_sci.c | 45 ++++++++++++++++++- drivers/soc/ti/ti_sci_pm_domains.c | 23 +++++++++- include/dt-bindings/soc/ti,sci_pm_domain.h | 9 ++++ include/linux/soc/ti/ti_sci_protocol.h | 3 ++ 15 files changed, 136 insertions(+), 49 deletions(-) create mode 100644 include/dt-bindings/soc/ti,sci_pm_domain.h Reviewed-by: Nishanth Menon