From patchwork Mon Jul 29 12:24:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lokesh Vutla X-Patchwork-Id: 11063735 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 C45501398 for ; Mon, 29 Jul 2019 12:25:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B10B627861 for ; Mon, 29 Jul 2019 12:25:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A42B027F8E; Mon, 29 Jul 2019 12:25:52 +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 2BE8027861 for ; Mon, 29 Jul 2019 12:25:52 +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=jwLDZ8YD7TXZ1UxMMwm95nJfzBs6XS9Ur9mipxkIFVI=; b=FNP8qEM8vl6BBw 9C49etcRW0kz6alO0uWxpTJrPx8fEf2NAROMVQ1inb53sXEZF//z9HuHB79uVsJiqGw8ljmWbYgY4 YIXzAaezpSRrYQZn0No/VmHotDMPN8qTfCzzoUWiqVov7COhKO9AWNe6jqZkwLLuz03nAmPtJYLNd Dg2P0tHnxMLJ0YZjvxJFkcA/0sRtrvjeO4TCavWwuNzpkWqiEKwdvzYm3ezZaQLI1eZ2h/HRhvWqY GftlKAlortmVyneqpVAUmup8Z8wkIHZhKrbUR11N9hv7yPMaIYrIP9u94IQAwNbyYXMat+x1dWLHU QwLSUlhFcEtNd0RbB2AQ==; 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 1hs4it-0005Qb-UU; Mon, 29 Jul 2019 12:25:51 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hs4iq-0005PL-GI for linux-arm-kernel@lists.infradead.org; Mon, 29 Jul 2019 12:25:50 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x6TCPeoP047169; Mon, 29 Jul 2019 07:25:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1564403140; bh=QONql/qooBcZcno2oWPNpb0xDksuazYqT9igEM/PyUM=; h=From:To:CC:Subject:Date; b=yEkpozwsyUme1bx5Lm9ChpOKaMf20NsOgwyL9ZM7YnfcxnfBUW67bUPsYeaQpFFxU axrBFS+3u1YE2LVRDByTlzkpivF9FpfN7N/pqesJw+/Jfr9PR4jhQl2zDNDI9aBQyz 8jrdZZpXkGqPG8WH7ENpyDQLRMCGH++mKzpAOkek= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x6TCPeeo089945 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 29 Jul 2019 07:25:40 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 29 Jul 2019 07:25:40 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE108.ent.ti.com (157.170.170.38) 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, 29 Jul 2019 07:25: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 x6TCPbCC085709; Mon, 29 Jul 2019 07:25:37 -0500 From: Lokesh Vutla To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring Subject: [PATCH v5 0/3] soc: ti: k3: Allow for exclusive and shared device requests Date: Mon, 29 Jul 2019 17:54:50 +0530 Message-ID: <20190729122453.32252-1-lokeshvutla@ti.com> X-Mailer: git-send-email 2.22.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-20190729_052548_652480_62720213 X-CRM114-Status: GOOD ( 12.74 ) 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 v4: https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=148371 - Split the driver and arch changes into a separate series. - Added Reviewed-by from Nishanth M - Rebased on top of v5.3-rc2 Lokesh Vutla (3): 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 .../bindings/soc/ti/sci-pm-domain.txt | 11 ++++- MAINTAINERS | 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 ++ 6 files changed, 86 insertions(+), 6 deletions(-) create mode 100644 include/dt-bindings/soc/ti,sci_pm_domain.h