From patchwork Mon Feb 18 05:15:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lokesh Vutla X-Patchwork-Id: 10817307 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 D3BAA922 for ; Mon, 18 Feb 2019 05:16:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB8362A04C for ; Mon, 18 Feb 2019 05:16:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ACD9C2A149; Mon, 18 Feb 2019 05:16:05 +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 963942A04C for ; Mon, 18 Feb 2019 05:16:04 +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=nGuHPvtAfRwzRTkSfQG1hHBKdCHvKPpP2z3KarN5J1g=; b=TnMocACkUQINPO WduMNyjPg0ZjOyNfkoFbJDVHA64RshOFpUMBa3rRdUo3/vTtVAE4cpS93sp6EQ9Hlq+EMKUtuC4Ea 2lz+W0UWcYCL/X2k9xRHtvhAvss2kux5gQple4WaqYw85MgFA/98qnDoKUhmRS6ihrmWWDoqQ0PEg ffdYUruEef9AkwRMSXexouh4pELW5hFcJ3CQPihj86RRZwrZZx6h+cH3W66HWpSUTjCPbLPlcsLro Dl6ewQei+IW87HSOaEsyVl/Xz+nmAtAjpWVXL1eSnYOFAuZZkYVaAy6XQBHmmxyF0dRubwGay6m2W oti3eyql8HmfUygLvgaQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gvbHd-0000oG-K8; Mon, 18 Feb 2019 05:16:01 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gvbHU-0000fC-8B for linux-arm-kernel@lists.infradead.org; Mon, 18 Feb 2019 05:15:53 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x1I5FeQ7114545; Sun, 17 Feb 2019 23:15:40 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1550466940; bh=g/fP70CmME5zIgH7uVWnK2y3g1qmmSxCLJR24kICilk=; h=From:To:CC:Subject:Date; b=OMW6Ep77BK5S5MvryyAdXKg6bEHQ7JelGzardIRmmzgnGPuntOhI5KQjH9AuphSlb sm9scaPVQOATo/m5HeZmTrnwXCJdBzqFvZ4a243xpGgZgD3ZgcR4b40NqxuCDj8lUQ lBO+9+ILj8BXrbAGg5DkZXdccK31NUOqSd6bva+4= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x1I5FePf052296 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 17 Feb 2019 23:15:40 -0600 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Sun, 17 Feb 2019 23:15:40 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Sun, 17 Feb 2019 23:15:40 -0600 Received: from uda0131933.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x1I5FbKg029067; Sun, 17 Feb 2019 23:15:38 -0600 From: Lokesh Vutla To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring Subject: [PATCH 0/4] soc: ti: k3-am654: Allow for exclsive request of devices Date: Mon, 18 Feb 2019 10:45:13 +0530 Message-ID: <20190218051517.9218-1-lokeshvutla@ti.com> X-Mailer: git-send-email 2.19.2 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-20190217_211552_328616_A22F37B7 X-CRM114-Status: GOOD ( 12.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 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. 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 driver enables this flag for every device requests. But this may not be true for all the devices. This series adds support for providing an option to enable or disable exclusive permissions. Lokesh Vutla (4): firmware: ti_sci: (Dis)Allow for device exclusive permissions soc: ti: ti_sci_pm_domains: Add support for exclusive access soc: ti: ti_sci_pm_domains: Switch to SPDX Licensing arm64: dts: ti: k3-am654: Update the power domain cells .../bindings/soc/ti/sci-pm-domain.txt | 7 ++- arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 26 +++++------ arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 10 ++--- arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi | 6 +-- drivers/firmware/ti_sci.c | 45 ++++++++++++++++++- drivers/soc/ti/ti_sci_pm_domains.c | 32 ++++++++----- include/linux/soc/ti/ti_sci_protocol.h | 3 ++ 7 files changed, 93 insertions(+), 36 deletions(-)