Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752100AbdHGGJx (ORCPT ); Mon, 7 Aug 2017 02:09:53 -0400 Received: from mail-sn1nam01on0064.outbound.protection.outlook.com ([104.47.32.64]:60195 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751901AbdHGGJu (ORCPT ); Mon, 7 Aug 2017 02:09:50 -0400 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; suse.de; dkim=none (message not signed) header.d=none;suse.de; dmarc=bestguesspass action=none header.from=xilinx.com; Subject: Re: [PATCH 0/3] arm64 xilinx zynqmp firmware interface To: Alexander Graf , Michal Simek CC: , Punnaiah Choudary Kalluri , Baoyou Xie , Bharat Kumar Gogada , Lucas Stach , Rob Herring , Nicolas Ferre , Catalin Marinas , Geert Uytterhoeven , yangbo lu , =?UTF-8?Q?S=c3=b6ren_Brinkmann?= , Alexandre Belloni , Krzysztof Kozlowski , Will Deacon , , =?UTF-8?Q?Andreas_F=c3=a4rber?= , Moritz Fischer , Michal Simek , Mark Rutland , Shawn Guo , Simon Horman , , Marc Zyngier References: <34C9E6FB-A8CA-462F-8B10-3E15F9EC87D4@suse.de> From: Michal Simek Message-ID: <1182e5f8-2588-32ff-8380-04273c28d1cd@xilinx.com> Date: Mon, 7 Aug 2017 08:09:32 +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: <34C9E6FB-A8CA-462F-8B10-3E15F9EC87D4@suse.de> 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-23240.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)(39410400002)(39860400002)(39840400002)(39450400003)(39850400002)(39400400002)(2980300002)(438002)(189002)(199003)(24454002)(4001350100001)(83506001)(106466001)(50986999)(33646002)(229853002)(77096006)(356003)(76176999)(7416002)(54356999)(9786002)(8656003)(63266004)(5660300001)(65826007)(6246003)(626005)(53546010)(305945005)(50466002)(54906002)(189998001)(508600001)(47776003)(65956001)(65806001)(64126003)(6666003)(36756003)(2950100002)(38730400002)(8676002)(81166006)(81156014)(8936002)(86362001)(31686004)(230700001)(2906002)(23676002)(36386004)(4326008)(31696002)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR02MB2721;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;PTR:unknown-60-83.xilinx.com;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2NAM02FT021;1:rkHAaSDEagxT9Xi/MrfFplVrKB1bGfUKSEmRiYauDV2xrL822KTxTwAWAHfBwt5f3FwHpYukxPOq38Sizy1tyssR66RS6YoPZLXeUPwrj5UlSvXI0yOxX8wYuIE936vWocg5qshf80hWr2gPj2bJXXGfzPOUicx7+rF7t9nfsUZc0JkzE0+Tl0+RD6uj+ahXHC4SPOq8q+ANWKzFkc2xF/+XjrZ2/NxIVXPRrCkYGJkZGD8S7giCzH6+yiGBbtR4BhkSbJWrexiTOgZ2vl4IxXQvn2T5lhNglhBXONZRKLaMzlecqA9diKmnGQ1SdLmhz7aYXX9oaZ2XlleGVunsKjEijOwmiVXmQcHvKa/MEKMqtiEhwOQVAMNd6D0PJBF86IdIYB82ccCGUQoxuiCZjtXnxDYGisshRwAp5SPNSanyahz6VHhzgplJ+iadBZzSrXzCoRSFY2zpGWuDTxXERy23eyiLWDMKsE0da4mZTx5penyCd8Qr/IwX01VKEZEB6tl+IPL0z8hxoqyUEKaX61dOWA20c2RR49iJrOYSkVDowm4iz38oSGj1j7QzALSiXkf2gOvsiW3vdZzlvXeMMERrCXce+phCBtOWsrbm1DyrvJJqE9zrlQlQdFL9Nzmy33FenxnEvoQG6RHWWG8M5uIbB3LB2+ZmEhQq+guR5Tr9lAziBZpCHv/u4eAdCXmnKtpnsg4k8wwPKSTtB5rKjKXUO7G82uh40gZryafm4thXw0f3Wm3qdznN84tyeBlw5/sVNtsC2IXW4YEeS8vHqpYUdJ1bQIUYq1zqPHwOzHoixyD9dOhCd4xx3nVjKMnNuH5Iv6D5bNSYc0FuZGevQ+qafx/7DA1rzqTmc6Vae9Q= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8f4d78a0-6965-463c-a9a9-08d4dd5ae719 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(8251501002)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BN6PR02MB2721; X-Microsoft-Exchange-Diagnostics: 1;BN6PR02MB2721;3:In1uHm40DQYvPFitOoaE+u968rSDUTCWZwUMaVLQ3TWSO6fmeu4/YAhZXZ7nlPv2DRj7eAoQkGSPIxapdoo7cZnnMUgt4dfIQu2ZtuaDGWI3qT6hKbUVi8qXPXkviKBVheGjcU02Yt5QVE+aJZMfZ/GDqosuAhERAT3Ft56OqOp+3C7HG7fpI/m7WpPbPo/qU7N+kItKQfvsaoyc8g2WU5UJNzrkkbD4ElA4jyDm0uUwvXxelIjv6DPdyJK6oEy39Z2cV2Lz77VyrzqmLFwyFuXLZsBnwgj9yyKP5zv0V5cnSrDKziWO0fpsZiIWN+TBBjh5RkkmJTTL4FfbR5GUtPSpeZ7PffqoHyPNEuW+zas=;25:7d/1eqG8ogqfFY08wJmovKwVa5X3dlE7jsIGy56G71lup2WKKUzSdqx2sZ+vPVRq7YKhBRKws1mc1omBBiZPCAwvCQ54XlWH2Ns3qZuLpYV+oo82SVZgAPY5YNNpNgqJbg5rKhZBAr5yhXi102RCalofVBuQ0FkwWKpAJs091DEyGJvH/0cRNEVb/3Ozgu9xaD4CU0YK//zfV+gSLQfiiKDi2g8CVdGOY1MNrqyrg6pR424iT4K+RpNSCoNvAfW811ut6pjgF07yOspHf+w7VI4cKwSLCfACP2KiBfxs0oqdgHuXMzv+Y1oynE3TCo7pXVh5BkdcNyTHcA+v9a0bPA== X-MS-TrafficTypeDiagnostic: BN6PR02MB2721: X-LD-Processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr X-Microsoft-Exchange-Diagnostics: 1;BN6PR02MB2721;31:XZx77dceU28d0ncBsYDlt2HyVcrc+nDvOACCOjQQ9Co1o7QBzdymmmL/P0Y0GOjKK4S346ikckPZaKNZY/8tpkNuAMtRM3BibZ3EUHIdVeBY66zJ3epKKCgv0QfHMDzMMEXoHypTZ0aGUBNfpjJywx0WHbBf2wuk2PCNJiBXBaFLY/h5OYt35aKN0gMg2XZf8Qtrvei8s5fqAIwb7KCCc7jTY/UlG5ReGHhdtt+ff7I=;20:J4wlkzqLlRl+3UyqO5OeQjYTTT5vEdkJljHRcsj+mKDJlcEJ90JWGDX7bC0oNb3WgIwqRoNlcQHzQCYtAI60OkYwqCNTnDkf37qqx3O4vBVRjf9/pnkJ6prLdIDkakd6zQWO691Bh8uJMo/f1uDP3oThooOtzlMDRgxIpMpcwL1liKyBotnfdhSLgxiQeFmC73GodnTyVoNJcvDZSanImuw9GrKAuzBzoPOAgRSP0dD5FcnquEq4+0SMm0s6nASQZemjaBX3DZ1v8V/+cRNkOtAveo00XJZeQIA3g+FkvxA7zkPMP+jbmJldOLTki/jOjSh7VGdqDmVucn0ufazAQmCmAQwyTpWRb+mDG7Mko5iMlj99ukStoohL6w4QydejNKrFoba/dwHhn8RaYzuB4vpWXiLpvb9LzB313e6tgjNB9Eub7uTIxg139cyZGkYLY7AgwyLf/VILKPWwaGC/xgmwlxHsOfrU4hXR1E77BTHqWMX7C8rS4O5M1b/m8jVH 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)(13018025)(13016025)(5005006)(8121501046)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93004095)(6055026)(6041248)(20161123562025)(20161123564025)(20161123560025)(201703131423075)(201703011903075)(201702281528075)(201703061421075)(20161123555025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN6PR02MB2721;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN6PR02MB2721; X-Microsoft-Exchange-Diagnostics: 1;BN6PR02MB2721;4:Tl0fhXtngqDepXECJSvDbmPz8vyhoyF4MuilrEIfneonVg/7kt3KSGXhWJ4u/z1QBxn/8oPCMVpGJkXTj0azBAPyR6164FW3Zc0/BxpUeJdwj3rLV3wk4Tb+iZ7V2ROZW/RzGsRm7JdKQ9S+3q5oSfQ2Qp6xzIUr8DH8uFeDP+a4JOu2WlvJroG8Fz9L1lJF8xvObzOCOJsLP2C2nNfSnjFjZfWrXqh1vuArbk7lQ6JtT4jWZMYDuE3xzR28ildXuqiFxv3H7pddNFU1y/s0M5Bhjkp95ivTv1/0aN6hHYs= X-Forefront-PRVS: 0392679D18 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjAyTUIyNzIxOzIzOmpiVDNXMG5qankvclVORlNiVUNob0hmVy9D?= =?utf-8?B?QmdQSFZCcEF2YnBnQzQ2TUQyK2pnMHlmMEwrREh6OHZtNGVuZ0xSNXVVM3RC?= =?utf-8?B?OXhpTkZrQzlnNENORkszOGF0eFU3Q05vOFhQR3BQQXRXY2g5V09SUlErbHZu?= =?utf-8?B?ZVg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Y8UgsIVDhcqrja8q2qVH8NsBSnSBhnGm/3e9SQsaikn0uc4j0xRAiYtT6Kl4M9TjW7+BzCHtTbDQ1j0NAKVSMw08bNC8cn6SvdWHX/mqtWGm3MvnudhlWRwoGr2Int3DQAphehpQzopRK8ZNsh+e2mLz/C0SWjCeHatdeWxxxMLQgICYCkoXyszC9dJVRE86mpGUi72hWwP0nX8Yu8ksz+s4+XxzTD8zunizTu2kNr9aAwsFyqzwgTHgmBTuowoPvX9GwaleQQ8EbahlcIPQn+qt71wg==;5:asAAAEPsd+/KYpolkoNHj+KJ0YFW+TLq0HmakzVjtlVOEvvf8JigOJiFAoZxsmxCyQsC8SFd4WjwXKIj1ek9fCq6nldA7kvBq67bUyGpMMTPNVJrw6i23OPvyOVuu28VxTD65zxoZLZztpdPScTwSQ==;24:JN80d2lmUzDTFbL84YYTDCuY2RkYG9k89gVPEAp36xyBscoC64zMCxzndnBBgaxQcq9RWimKxQq+rJkUlGPRP3Z2hDQSE3glKIPLQEjZQs4=;7:y95wMlZz6d7FUX7kTbwtXkZdSYSnj0g19wFFUwJvO3zEb1tQZrVUoYGrz+aln0rVPYBRAlbzK3L6Vq96MRjk9piZWiEde8B/CM3nKJeuF9q+uEFAkyG3Ysm94oih3ENCx4wHoG+HYO5L8fyLKR6j2tl6Tm57IEeVY5AQeUpOqng3SJJuQ1IrAZA2pXIVF/oXX8rqxg+BTj/DBxuSQpXy/u7EkmQjaL2omaETHwllWYs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2017 06:09:45.8221 (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: BN6PR02MB2721 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1221 Lines: 29 On 5.8.2017 06:23, Alexander Graf wrote: > > >> Am 04.08.2017 um 15:45 schrieb Michal Simek : >> >> Hi, >> >> xilinx is using this interface for very long time and we can't merge our >> driver changes to Linux because of missing communication layer with >> firmware. This interface was developed before scpi and scmi was >> available. In connection to power management scpi and scmi are missing >> pieces which we already use. There is a separate discussion how to >> extend scmi to support all our use cases. >> This simply patch is not adding any power management features but only >> adding minimum functionality which are needed for drivers. > > If you're thinking of changing the interface later down the road, wouldn't it make sense to probe EL3 for its existence? You could then expose this interface on today's EL3 and something scpi/scmi based on tomorrow's. Right now driver is checking pmu firmware version. Based on this it is clear how to communicate with it. The same checking could be there for ATF version. Both of these should tell you exactly what's the communication channel. If we decide to use scmi or any other implementation we will increase versions. Thanks, Michal