Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752336AbdHNNr3 (ORCPT ); Mon, 14 Aug 2017 09:47:29 -0400 Received: from mail-sn1nam01on0069.outbound.protection.outlook.com ([104.47.32.69]:36164 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750876AbdHNNr0 (ORCPT ); Mon, 14 Aug 2017 09:47:26 -0400 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Subject: Re: [PATCH 1/3] dt: xilinx: zynqmp: Add bindings for PM firmware To: "Edgar E. Iglesias" , Michal Simek CC: Rob Herring , Edgar Iglesias , , Soren Brinkmann , , , , Mark Rutland References: <8c27b7eec6cc00d37dfe9b3998212ce9c9c27a31.1501854302.git.michal.simek@xilinx.com> <20170810191056.ur5b3zdrcgmb6sim@rob-hp-laptop> <4e5d9f8c-9e87-bdcd-388a-aab3c32415e8@xilinx.com> <20170811135453.GU12347@toto> From: Michal Simek Message-ID: <5d2e3a5e-6060-ff13-a065-c4b6be37e4c9@xilinx.com> Date: Mon, 14 Aug 2017 15:47:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170811135453.GU12347@toto> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-23256.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(39860400002)(2980300002)(438002)(189002)(24454002)(199003)(83506001)(230700001)(77096006)(64126003)(54906002)(106466001)(33646002)(4001350100001)(31686004)(229853002)(5660300001)(189998001)(36386004)(65826007)(65806001)(2950100002)(65956001)(54356999)(76176999)(23676002)(50986999)(36756003)(47776003)(31696002)(81156014)(81166006)(93886004)(8676002)(356003)(305945005)(86362001)(8936002)(6246003)(4326008)(478600001)(626005)(53546010)(9786002)(50466002)(63266004)(2906002)(107986001)(5001870100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR02MB2243;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;SN1NAM02FT038;1:at+t0U4L07noG0WCS2dFrwPwDt6BxRwDGuno/70rnWp2A3k/QhdYl7Nz+1fOWNeHFfeY62awqRpQOiCtAsmQV7pSP2SeG0iJSF4hIIzoUjNjf8j70COddK3EU1dSMeASZEStVFrw0ugc9PFw+C9AxhqpZqN3RYZZC2T5WJxMhEqeqsdVr2mpSZNWi+UeCNezOfZps0MEoJF84X5+7EjECxIBQlymeQASnrsMmue5fuEI64n9gy3O99nnwt3C7fwvVlb23leakmhaLNUosAhNPWh3fgzR0u2+9syGA+TZIUljAcv8JAaNv/xbyOiMIKE+9okjnb0TmVEhlAUdgEI7UZv8HYuQwv4aNUmpoPt5JDcqLulKnsuqos8otu4tIQ6PW579lfYZblzPF20jmAvvgsZrt0QW81tqRjurM9Fbbroy3tCHMhMBX2H9+upjNIPCS24sOiqF71tI1A3iM/LtKUbZVvpB2K9FcEGWUyATxYBiLNXypP0NsAxQRQ2E7hmu88Ztmst1RVuY6uuPMLiPT01N3lS3MEafQlACUDG3oVxsq+a7XfJsFFyAO/9JPqbklGG13n+erDpp81C5QhLXxLIxdkJGFd/3lNU7oOpS/X7DUF4P1dEzWtrdIQum8nXc8MAMuSBxKv3onZkolFzQ5jyfq4VsbVnTznQUL599+CuKpI5tpCOb1LW9Z1ODPRGIWEAC39QeA3q2uRdZvnBLoiDLQ1KYVIMCjRwXAFZ7ovj7DipdxshMH5WfPFrczEvIn3y9wAmDoiu3bPBg/xZZ6lX3jjYH0eycwFnHYs2NuJKl0Xv3bpOpa0G7jjaNhLF6XdYsBBls97B/2yiZist4+4OmhgadLZC/kjaKA/xb3+s= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d57760e9-a0f5-422e-f520-08d4e31afdf6 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(8251501002)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BN6PR02MB2243; X-Microsoft-Exchange-Diagnostics: 1;BN6PR02MB2243;3:iuPjiMKoueUgvkOR5NfWypMhpvIokj6kSFkgeHwHU7pz3SBRMosKMdbHqLsKWOK+HIxQ3E2swyb2khFKpH9I0Em7aYINkyMWqECRx8utybZkpugjoXhpAFvtvDmJVa25gVPr626IOCZ5ydzpTNeo9sPMI9PRUTg7zGKcVv2/o8x0Vgr8PnI6ej5oxdVDj15TNtSKyI0OfGiaojQOrH+CIFxbTfxSSwTssQ0b+KBcC1HuthIF8L1BXakERTvOFI0mjs6D1yezdNS8qhLTrZQ6ph7DBLRgwH6GUC6iI0gD+rQxab1kniGfIfAK+EfO4Rnx2OWNa7hs3HM1+OKiIsYefh9ilE7h98LoFHpF4dvoruo=;25:Oi6OJRJcD7Z1d37YilVt7WeUFq+8bLX7Gb7blStWmittyaO+Vu3J6zTwmKDvHLgFj1JYJyryELiLJJiPr/YI0geoT5bgIUIiOkXwwItjriwxl9QlVjKy5WrqL44YAYDuZS+ZmtYcddwz0deD5X6Tk+dvYshNb1KzxnADv77HxAlsf/ntq6dY4DGuFxsl9fmi1QDtGFNPa+ZWffXrI6MImN2lJI/gPdMZqrt11yPzrWgY6/NSupUU8XrzUyVj/PwUtNds7drGlswkjeevCtCeBEExI3BkUd4F3CFW4zVcxsfrC11LKtX8i4hw/SW4d0JtjrRnbGvw6ZHRefj4Zp4O2A== X-MS-TrafficTypeDiagnostic: BN6PR02MB2243: X-LD-Processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr X-Microsoft-Exchange-Diagnostics: 1;BN6PR02MB2243;31:ubFYCLj7fxybbRIMCDkl8zjTMIaPqKxlyj6Abyqd5nkQAe2ffxctnwO//1HvYGd+z+xQt6XVoYABEPLzGx2KoMu+fSCKKs3nRcnBAABUDffe2XvlSnVy9ICh71yvYiBOUJ21W+NRJ1XjAS4CnxsGAcl/t0FVkVP18BRj26XO+YBOE7KbAs2ceBc/DEgbRKqH9Jat4ZF5+FrfYB6I+zRcmlPjV9Tl47vY3K/6EHx685A=;20:9tK0Me4Ilr6AU7WtkwXj9GM0xRRFYrRcPaRgfgdvqtXNhDk1hZDeyRuYhJTiwEI+rCWz+Jj4HcMsaJ+NVYWVYLxy8FXJS1xW+JsRvYIahenz3Mc8e1QQrzZSY9n7yKf29TyRrGv+aS2vWPRLS6K7dMH1R6H3pvmksYQ3eidwVUSRcofZWnnnJr0CVhCR+ync5vUhUxpizGXbhwhibOCyoTeNaAWtSNpRrIP/Q7MdSTGNO2uOSfjRi2OchjFGrXQDFur2/luWAZWsm9ncsS3ChGSt4gEIOgpynine+tQNvnzG/kEI+21RXgpUF4p60yphxwD7OP/gXC9VueT2+glA5T+ZpyR3UKl4a+GNVOtFKaxPEYLGtqm5T++O6iXbRzUly6PFU2H9FODRS4UicpPS3feNclat8mSoDHfpoGlR2l+qtMijrnV/eSM3NmpzDW6ieNKXX5p0L8iav0cYAco6YktRUB/trb/DWUvs2BJewDsOnBjb9k1qhqAlii4jF67m X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(13016025)(8121501046)(13018025)(93006095)(93004095)(100000703101)(100105400095)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN6PR02MB2243;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN6PR02MB2243; X-Microsoft-Exchange-Diagnostics: 1;BN6PR02MB2243;4:CluEv0JygW7Fx/OMgG4hnJwC8AZsQQSVAPX49V22XlSq9IdoqSY9SrMz4pVNY9hReZ7DhMKVRCpEXOAR/EW0sul1tA2lxo8sO6/midC/q/DOSkq2crKFXcUkrdpWYHH1qbGxIy0MjivMkWdaAhdkA+ZaGnc5tmLwg69LTJ4qV3GY1hx2y/TFDmEH3OJD8QE0IAwVM9GKTiopzUVkfu/03plyhZwSG1cWUgKbLFqr0U/d31PumNGgx+LPJ9XnO0u7elaKxyVCauB5NUiSW51nfT1EwsU3Oey5r/h2bJHNhUY= X-Forefront-PRVS: 039975700A X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjAyTUIyMjQzOzIzOjlNZVlCVGhpT2dERldkNjdPd0ZhZUs4bUdo?= =?utf-8?B?R0grbkNUWExBYlFFZUdSVDZiSWZic2xVSVpWaHhma2k4bnU1dGMvaHVLRkdn?= =?utf-8?B?b08wWFNaOXd6RHErdEpGc25qR0o2R3kwaDVCQm5kREZ5ZVAvRW12cHpubFRP?= =?utf-8?B?cmtWNUxBaXBZZE1uSktZM00zOUpqVnpiMWpJMWlFRTNZNXJMVkc2L3RjbG1C?= =?utf-8?B?NTNrdlZtYVJpblJVRElySzNGMEdSVUs3L2JXRkZlaG9qRno1YzBxNmFRdTBG?= =?utf-8?B?TVZkY2plVVQ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Ffyu53w==;24:2geoeWk1EMxiWMQFTRkJfP09QPR2cyHNQlPfJArYTzjsn8fLZ/8cGaOwOLm8V1hbMP3lmOsBrzaChSFwxSiJ86ijbfnIuIJ8u0GN6BY5+lw=;7:Mkc0M2PmwVfLmT1pe8EcPoyC2hYo+gT175sOYrJtDufY4+g6e9fA+k4+D2jPOMbpbkxNXgU5h58ZlhpZSdn1sCyzRmJKzkTS80pQGtBsksvHjFjXNh8sfESGdpTsbl2eCz/L53BRR5NUu4m8O3eT14O9g2i4qlqNsmy5Fldg0v0/6yK7dcj5m2fu3+dZQF54VrpTnekW62RYO68/OGTHlGYrSNKm+nnNjc/fiZ5pZsQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Aug 2017 13:47:23.2745 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR02MB2243 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2340 Lines: 68 On 11.8.2017 15:54, Edgar E. Iglesias wrote: > On Fri, Aug 11, 2017 at 02:58:03PM +0200, Michal Simek wrote: >> Hi Rob, +Edgar, >> >> On 10.8.2017 21:10, Rob Herring wrote: >>> On Fri, Aug 04, 2017 at 03:45:30PM +0200, Michal Simek wrote: >>>> From: Soren Brinkmann >>>> >>>> Document the DT bindings for the Zynq UltraScale+ PM Firmware. >>>> >>>> Signed-off-by: Soren Brinkmann >>>> Signed-off-by: Michal Simek >>>> --- >>>> >>>> .../devicetree/bindings/soc/xilinx/xlnx,zynqmp-pm.txt | 19 +++++++++++++++++++ >>> >>> bindings/firmware/ >> >> will move. >> >>> >>>> 1 file changed, 19 insertions(+) >>>> create mode 100644 Documentation/devicetree/bindings/soc/xilinx/xlnx,zynqmp-pm.txt >>>> >>>> diff --git a/Documentation/devicetree/bindings/soc/xilinx/xlnx,zynqmp-pm.txt b/Documentation/devicetree/bindings/soc/xilinx/xlnx,zynqmp-pm.txt >>>> new file mode 100644 >>>> index 000000000000..222a18ce07fc >>>> --- /dev/null >>>> +++ b/Documentation/devicetree/bindings/soc/xilinx/xlnx,zynqmp-pm.txt >>>> @@ -0,0 +1,19 @@ >>>> +Xilinx Zynq MPSoC Firmware Device Tree Bindings >>>> + >>>> +The zynqmp-pm node describes the interface to platform firmware. >>> >>> Please define this should be under /firmware node. >>> >>>> +Required properties: >>>> + - compatible: Must contain: "xlnx,zynqmp-pm" >>>> + - method: The method of calling the PM-API firmware layer. >>>> + Permitted values are: >>>> + - "smc" : To be used in configurations without a hypervisor >>>> + - "hvc" : To be used when hypervisor is present >>> >>> Do you really use both? >>> >> >> SMCs definitely yes. >> >> Interface was designed in that way and I don't know if people are using >> it or not. >> >> Not sure if Xen is blocking SMCs. I know we have discussed it but not >> sure if this is enabled by default or only for certain configurations. >> Also not sure if xen contains handler for hvc. >> Edgar: Do you know? > > We have patches for Xen that implement a power-management mediator. > That implementation handles PM calls over both SMC and HVC insns. > Patches are on the Xen mailing list. > > Other hypervisors may work differently. > > I think we should support both but I don't have a strong opinion on it. Rob: Are you ok with having it there? Thanks, Michal