Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753177AbdHKNzE (ORCPT ); Fri, 11 Aug 2017 09:55:04 -0400 Received: from mail-by2nam03on0084.outbound.protection.outlook.com ([104.47.42.84]:46099 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752763AbdHKNzB (ORCPT ); Fri, 11 Aug 2017 09:55:01 -0400 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Date: Fri, 11 Aug 2017 15:54:53 +0200 From: "Edgar E. Iglesias" To: Michal Simek CC: Rob Herring , Edgar Iglesias , , Soren Brinkmann , , , , Mark Rutland Subject: Re: [PATCH 1/3] dt: xilinx: zynqmp: Add bindings for PM firmware Message-ID: <20170811135453.GU12347@toto> References: <8c27b7eec6cc00d37dfe9b3998212ce9c9c27a31.1501854302.git.michal.simek@xilinx.com> <20170810191056.ur5b3zdrcgmb6sim@rob-hp-laptop> <4e5d9f8c-9e87-bdcd-388a-aab3c32415e8@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <4e5d9f8c-9e87-bdcd-388a-aab3c32415e8@xilinx.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-23250.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.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(39860400002)(2980300002)(438002)(199003)(189002)(24454002)(106466001)(50986999)(76176999)(46406003)(63266004)(9786002)(97756001)(356003)(33716001)(5660300001)(93886004)(47776003)(229853002)(2950100002)(53546010)(6636002)(33656002)(4001350100001)(6862004)(8936002)(36386004)(478600001)(189998001)(83506001)(23726003)(8676002)(54356999)(9686003)(54906002)(77096006)(6246003)(305945005)(81166006)(81156014)(50466002)(4326008)(1076002)(626005)(2906002)(110136004)(18370500001)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR02MB2255;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;PTR:unknown-60-83.xilinx.com;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2NAM02FT035;1:5Q4PAH2svsMIXKtYipIj35ptK00RbxYQJ8o/j0yQd5/juGN7IrHPOVsyt4F4oyyCj/2aADm8RHomz4f8BTZhWdnswviT/rllU95kxAP2BEyCf/9tFtP5+7NVtppjeMlzxo8Hf83YhBKjVbKOVzNFwFOuDgIdEA9AS+ppC3SxjtHzMFL3T9S617Y5xI6CXtywHeb8+4A31oGLT2xRRHq8FAaPEyBTUIv+Qs/OXy+tNY+37TnCKv20a73Z4DxA8w8eA6VUqnxEJvMJ+I9TVDwhla55Skf5HOjt7v9spsRGMM9+rnRxDOBKV10unN4pZXVa/WS+h47lWFo/eiu6UA6gcUs7jtjJlnJN9gAZKNRNPF5lLjONOjaxhvIQQnAQsXYadcHOzD5jDP8AJaOysfbfgWFh3gQbp8pdb6bPZHGzrDJUjUfg+89YygpOGLqk1C3gMojoSdvmb2N5lYS3I3vbshrXQreGtgUPHXSBPUUDYhLBzfQk55IXWurEwCJUh1KDpYZJwMFqsEauxJZTjts8bfO3R74Lfs3g1rFohoYIVUtfzxA/pvUOiZYXpFaF7vEGQYiBGEP99VJhOfw16TllrvmtJ3VvkSqiMhmYnBiNAPK1H1fO9a6oykcEKmR4BJvRdatvy68heWj1qXCxSbHlsZ1D0zgHsrJfocRmcD0XYXkGOmoyihoC4gHF7TD+unmhVRF7xfZkUiIJyFdSt0eS+edEphFF50N7y9ypSUonwD35FL2F3KrovSpgjty/wppIYtXwwXEq0wNA7pzxoQ2VFeASd4Cw06YC3z01g7cKkUHjHQjL1S48xadvW7Vkgd/ygmCzbzwP8xnJdCw1t9NO3TdnB2YaSJz1oXlr73/RyCw= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c6192a39-0c9c-4ded-fde5-08d4e0c08dc4 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:MWHPR02MB2255; X-Microsoft-Exchange-Diagnostics: 1;MWHPR02MB2255;3:I49vPbEwZWIxPbG0y9qfrldyibqDai97NbDtgLlKOFYv9sxU8QCCBY2Dm2lQoWgainjoBY7Qkuba5zFjUaTUoLAJC5heEqyySAasjlf0fIH7CnqbhvjyCBacH3hE6DRw7VzPfwnHmoaNOiOMEmeeIfiUq8zrczRcQvGyBxdxe7mYT/B/4liRBpYc4sf4UXrTwoM3LoNPxWbSSRjzMPph4fJi3oVKOUuQb3GWelZHZWGeR+iIEznr/qAWIsqGJ4tZ9kyKxE6hi8Ph65s5OLxhWBgL5SXmr7YjqRJS51Esqe6R1k/WPffOvA9PDD+vAAjm5BODliNu8bL6A/anvG4wFWwrt8cFcs+HfTNRSmlSALw=;25:tSumPfhMSn55I3KF0CbE4KDcGt38SiVeesI2ZJay5hAfJV18lqujrOv58sgj95xcASuxjJbbcY9Hp912OmCbvok22A1P1EbQcNSVYxx54yzNj7PSJqy51WcmgSBrPu3fg0q/wUXqizekJhyqzlKRYzvEgireXa4fREunB4lCFMUiOffgNVsYPXotjQ/pUCfW1+BQVAhH4/cFhP87pI+7aD0hlyKA1oNBZYmumon+hHR1+H0MzzUXgv75aPovglT+jNVHzv8TbD+pjVvTnbneSc7sUg50pbeKZx9gJ/fSI4vS9Zh9zeF7WTABNyHTOmBT4NCO944UJX++s8+ge9h4Tw== X-MS-TrafficTypeDiagnostic: MWHPR02MB2255: X-LD-Processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr X-Microsoft-Exchange-Diagnostics: 1;MWHPR02MB2255;31:A50VDO+wHwy6/F8zCqu8KodaHQUmAdO4CQ72f1OyybheIBd1jYbTdytTyOk2Vsu2v88YnwxnxcYG3Z8Xrph0tkgY/GJiYlP3jsKLXfQU0OgEgP99ejxTqqjJ31bJBzqdhfOhATwL+hOEaWsC7o1IKiZsUcXSDWaa0OnzHue4QFbhuK3yksjL0TmjDMZo2IegZp6So8w/qMUXzTdi3qxCxStGMcJkfXVE5L6FuwHo45A=;20:xv0/TqoBaUSTvxf1o9TGosEJy8U5h8DwGYMVJPOmwDEMd6o+l78jFQDFx8YOaq0NXZ9Wvq0lCHbk51lcDFrevcR14R7X8ENszq4wun4F5QY5gj6X+N8o5Nl7NYNXJNhGLCFxOIY7lXuUecWU6hilXGJQ68SK8RD1os2iXaswT+w0pjkdzEzVCga0e2HxLD27U7v6inrljFxZ3vLSJS66+ZJuYa/VlnNAinUsH7UHFPI0xhagqMRqvgLTIc6adhIqClU+ySRQ7uPoFulCa1TqkhmaKOtzP+AEvHNKHUEAowBcCgE9kIXcxT1UhYk56VC60haY1DkDohdVTdSqwjJ7fg3Yo3fU0RAkNxqdvwSMK/FXRK5ekLxVFv4V2B4zI6TWZBII2kqJrjFRcKwUGzbR1KxWqtyFf+oc+HrklQYNV8ykyhgxF8daGV2D8y/BsrIM/6E2XmbSM3cMkk9XUx6nZZoHpjZqYpwBIELWKVX4GnkuoTYy4eK0j7uDUBAhIS23 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)(8121501046)(13016025)(13018025)(5005006)(100000703101)(100105400095)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123558100)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:MWHPR02MB2255;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:MWHPR02MB2255; X-Microsoft-Exchange-Diagnostics: 1;MWHPR02MB2255;4:aF0TcQXAimKo9AqxOxcw3xc403QL06FtDocVG6NUo3yw2e/r6jyxjaXwbdcmz+78OVh12BNNq6yCl4mCVRxLyzHAJELHFx/OIrvI4IRDH5EhNVX9TQPDxN1lnPK1FMsDcZiQjBmdOdTlhoi5ITFzfefiDgtz1Nm6jYqbc8nlnyB+1MSmWl4Pdj7UBbtXKIWNWZhcuC153yEmtXQPjT3V/PbYdoCdHJBtB4ntYy/Xrn9S3wcP4wCxHDN85QUIsLys6Rwaji8dRD8FKyVrF8NRda3fap8FZoLkmE0AohWBHY0= X-Forefront-PRVS: 03965EFC76 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;MWHPR02MB2255;23:bHPImnOfi7tGNav5xW+K5hxj1TDZBBbLbOwQAMzmy?= =?us-ascii?Q?ARjQBYORsYg4y7wztdKIJis4uyJemPb5gj59ghoLQRmjcT+tN3cyZnNGF3ke?= =?us-ascii?Q?uEVIF0FZI1K5Cw4sztLL78/j3GDXRnbXT83mcCq1QJvCBJwQLvMKzPCqnKxZ?= =?us-ascii?Q?dudryMyHaHlPWXYhn8jiBsSlFTdhcl0LuxBxYRUJYbn/I+MpUSxURj3oKhqL?= =?us-ascii?Q?KOnTQahmTePUmPkZI97Udwqlb9KLzFkMBxtyWctmk4PTY9ju8GZlNbDhiPSX?= =?us-ascii?Q?+mCDONiPBqMh28mwEc3AeJasxk+jIKpM04J6beDqH7TDGOTzDST3viWsRRMu?= =?us-ascii?Q?ffH0f9w8HdLbJF6fCgQgVKojn3R5qxztA3vTBP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GzOj7+iDYyEoxOeONRoTjWaQm2jvAX+uShYh5E6LDhdQKjNrG4T/Pz9c5yTcS/XT4zyWLUZyINbqQTJuiOXXVDOvGTZi0s9HWKfLrV/nVgQhaREWJZGVddNDp3QO9nnAGIfEvBZQkduVbSvVeaJjF6nvoIgcxe4Y8eiJz5/R+/cY0amHDEN58kJ6EXlp3eT1EN4OUpaS5Lw3iNPoHQ0FI3YflXiRx8qx0XAM6NInLNaqDxGPklzqLDVflbFpx1KRjBvKaIvsT/l1wwAub/g5/7z9w==;5:SEHJs5hG3p+P2BpsMHp/sWSjLghKZFcz0AjzpVJtBbVD4j0gYLgiZYyAlCQXNEumFxYJYA3jjPKszHx0Nq4Uje+T36A//hAvIOxHZoc1TW7YVW1Amo81cgaD55XTpxIgf/eHMOrycnfLifaUtRJQCA==;24:MFIdF+QwficwHimHh/tZFxm9bfcXLAH4VnXPs7JpF2Y0PL4PkwF8tj16KSGrx0QBMGqK8AO67kNERzxE6zXo4zH4gfP98Zt7IL3VcU+ob8A=;7:yQpVtBwveBLkkupUnjtrYK726+PDbJuLvKEUY6UJNDsXIES4rKDlWUsjtuHNaNe+CCFQkzFXtjMCNTOuSPbIpwzFTZ9VmNGj7F5rVinu/QRcxCEP6+9pLMMyW0wYtqMD+8w3TnA8EgnAUbRctq5JV6LgcZi9+FRDRG+qLHCJQJKTCfZrgRpqpd1LBc9Rzw43qCH0v37l4B2Gn1LJedm3BQOvEKAbzI4L0VuAXQ2xoEA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Aug 2017 13:54:58.1203 (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.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR02MB2255 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2233 Lines: 65 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. Cheers, Edgar