Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3614244ybl; Sun, 12 Jan 2020 22:48:11 -0800 (PST) X-Google-Smtp-Source: APXvYqy7LNbWevNgIbKyK/zJQ0wJ0HrVMNLOOe05xnqoHsPWSoeoNTSYCxoEhPjk/ffrjjxFYF7A X-Received: by 2002:aca:51c9:: with SMTP id f192mr11990278oib.10.1578898091005; Sun, 12 Jan 2020 22:48:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578898091; cv=pass; d=google.com; s=arc-20160816; b=jyzmLKr9UtZgB67syHIT3jE9j3HMx05j8sW6bvowpRmcsZ2qrBPDj/Y0tBrQJ6qhV0 WPRW8Ot9bK8yO4GW4LOvHSErEz1fa1mC0nbjZIrcE393ntDqVQiwC4wLycP29L2bvaIW zCbp8uR7M+qLVYBGiWCBRKKj6kOsPFIbhXVkhKj5hhMTR9Fjt+cCnDgZ/Lp1fg6B5BN1 IOP1ezcSM3Iyv2LnTqicmFla4Mz9qV6XlYJkJNPn02eVNCwrOcerct/CEoelnr89KRZA mXOP6W6JhzOEDRkT237cTthC37FdYtifz0GxhxBlySfKnoCx+FuJpC7sUILCTjCo26LD +fnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=8oPjHj4o/d7Xv4MBb9hIWNEje+pKnsEqxm8je1jYIcw=; b=sejMW07bOXSJrSZGWpxoO7o18f3EwRCmaq4UaJyduVFUrDYBaAB19MP9doTSTQWX6+ BU6ZebGG8ULplZxdyJ4UblChQtWB+rmH3aJBylCFmJl1hZyLN2GVqLb808VH5QAYOaUb Ad9gIwehM4zuZCDBMd4mb0/hpOMO+eG3ZK3UJQ1kabmvFCh3indrrcjtmycdL92to7Rg AsJCr4k6ub2OQxp2Yp0YC1syvV9XznybiU0x1jQGIiYZSJEJ63FRz3KtyjQUyQXcbdIU OvvDfxaAjIDZbibWkGdtmZ3Lao7zTaOCroVhS8FqLqPiDCNaWJ+IzqwZHyaT5ZJOkXKK WHOA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=r6dMLAb7; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s3si4137589otk.261.2020.01.12.22.47.58; Sun, 12 Jan 2020 22:48:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=r6dMLAb7; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728643AbgAMGq5 (ORCPT + 99 others); Mon, 13 Jan 2020 01:46:57 -0500 Received: from mail-co1nam11on2084.outbound.protection.outlook.com ([40.107.220.84]:14848 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726435AbgAMGq4 (ORCPT ); Mon, 13 Jan 2020 01:46:56 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n1OUK7rQ6HupzMNr0wLveSMl9s76FbkDRMRYW2eN8iEi0uiwqN1R4hoEQKndRq2dY4UobqwsgF8V9FhqnLkton3mUlReeUsenzY7IzMe8GTc/coq2Yju9s7SE9KyoP7C7mwRc82/obKwU8456IoBXQvXaSuesw+jJSpnctlVPUs3MbYWYBgJnDnZmmvlgK2O0QYt6tnIoZDRNxbbztjgwkhHlocMVYpBvIoluYJCjVZNExKxZiTFi4Vkc5H2Hmz0Q6vykAY8XdXaESyn0HbvaaFCDKIU8AfmT+yCgpqFaT7I2tGQQg5r3NWZZ1H2Zl4xMwhcj/b5QSaJARrMuHNzOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8oPjHj4o/d7Xv4MBb9hIWNEje+pKnsEqxm8je1jYIcw=; b=cPvXVijhmgjMzTrrE6IwmcvTeH+vsXthUqOF+Yml07ESvq7ZzD6pc7V6U8wWwCpfkqpRiLfLkdWi7kjvxfzsNYHgcBkiIcF3+kWI9QWu6dauJHkZV3MRdCGyi4MiU2uJJleE6tQm3m9RaGQRyjbB9s9vsrRphak4ce2jmP8QSf/UGNhafU8Xb6HiWao/7/SIq6LUNf5UjyRhn3OpZVR7qyD4CtfHtWEm6JJV0F1nWjhZTlV04yOQ+Yv1WJkETXYHXHT8lvh3ATAwDF9mM7t6k5sTczERZV/g4fkX0/WRrqdoun5KCgX9ZDywjFCwvNAgag7kVqm5hU2ItVQtDUQkMA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=xilinx.com; dmarc=pass action=none header.from=xilinx.com; dkim=pass header.d=xilinx.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8oPjHj4o/d7Xv4MBb9hIWNEje+pKnsEqxm8je1jYIcw=; b=r6dMLAb7fH/LUzp6hFTc985roRs/oFHkQbHzaK0qOm7Avsf265TduDqZiuXFyxvttb9u8Sx5Y/72xUVm36H3N8MNsMeuWSHWDgAWR9FeplPnLjPRwsmJw0gM+nwtE3Ch4wDb8Fcfs8rtAq89vSrr5mxTo9ULw0ux7fbhTBV3tqE= Received: from BYAPR02MB4055.namprd02.prod.outlook.com (52.135.202.143) by BYAPR02MB4007.namprd02.prod.outlook.com (52.135.204.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.9; Mon, 13 Jan 2020 06:46:53 +0000 Received: from BYAPR02MB4055.namprd02.prod.outlook.com ([fe80::f964:6ae7:834b:8fa7]) by BYAPR02MB4055.namprd02.prod.outlook.com ([fe80::f964:6ae7:834b:8fa7%5]) with mapi id 15.20.2623.015; Mon, 13 Jan 2020 06:46:53 +0000 From: Rajan Vaja To: Sudeep Holla , Jolly Shah CC: "ard.biesheuvel@linaro.org" , "mingo@kernel.org" , "gregkh@linuxfoundation.org" , "matt@codeblueprint.co.uk" , "hkallweit1@gmail.com" , "keescook@chromium.org" , "dmitry.torokhov@gmail.com" , Michal Simek , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Tejas Patel Subject: RE: [PATCH 0/2] arch: arm64: xilinx: Make zynqmp_firmware driver optional Thread-Topic: [PATCH 0/2] arch: arm64: xilinx: Make zynqmp_firmware driver optional Thread-Index: AQHVxx/fTp0hk3voQU+k+EbrUrDiSqfjyxyAgARcgUA= Date: Mon, 13 Jan 2020 06:46:52 +0000 Message-ID: References: <1578596764-29351-1-git-send-email-jolly.shah@xilinx.com> <20200110115415.GC39451@bogus> In-Reply-To: <20200110115415.GC39451@bogus> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=RAJANV@xilinx.com; x-originating-ip: [149.199.62.133] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 1bcce14a-0afb-4db4-60bf-08d797f45fbe x-ms-traffictypediagnostic: BYAPR02MB4007:|BYAPR02MB4007: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 028166BF91 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(376002)(396003)(39860400002)(346002)(366004)(199004)(189003)(26005)(7696005)(33656002)(9686003)(55016002)(478600001)(186003)(86362001)(4326008)(107886003)(8676002)(81156014)(81166006)(54906003)(6506007)(53546011)(2906002)(110136005)(8936002)(316002)(66476007)(66446008)(66556008)(66946007)(52536014)(5660300002)(71200400001)(7416002)(76116006)(64756008)(6636002);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR02MB4007;H:BYAPR02MB4055.namprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: xilinx.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: nAKgNQZhGFoNroJhafWP73JhB+Mn6usySi2myHF2ba4sw9b17vs2GkzltV0RyhbK55/1HhtVae14jcyb2BK39XLN+6ftzhfxB2mH9vVqEqnfSTNRkvKjqCHIkML0jbo9b5AqhIeCEJh/I4WFaCSz/86kSLyIn8H6dZP/khVt47cKDym++6kO8bFraRzCxnZ4aKgfxbhBtLhH0IjHVo/+2E9J0MH2CcXnKh7VIRo29RgK/yLXPJXjwCTxVGt6YKjNbIWSs6lqWH4lTKzFHVzbru6Di+SlxsY26VeZ6+QWSpVlLVrWsdJ8OA+bRsVPMcQ/StdNeJK1UhVCC8uDOKeJG/dobwc4xhojJHdmQR1lq0OpaYa2ssvTJhmqw3aT3xg0MpZ4PNqHaZFo0XlCaa0Aq3J168QFgxYbTQ4LUi5fTtBkcHHSzTEiY8hH9EzqK4Vm Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1bcce14a-0afb-4db4-60bf-08d797f45fbe X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jan 2020 06:46:52.8891 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 6z1nV7YtSIYq67J+gveFWN2FlgQZ+UInLbrkHSVhKNoAIOkHAL+tIJRJgebpl2LYaK0lCCQZT5WuRClMnem3nw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB4007 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sudeep, Thanks for the reviewing patch. > -----Original Message----- > From: Sudeep Holla > Sent: 10 January 2020 05:24 PM > To: Jolly Shah > Cc: ard.biesheuvel@linaro.org; mingo@kernel.org; gregkh@linuxfoundation.o= rg; > matt@codeblueprint.co.uk; hkallweit1@gmail.com; keescook@chromium.org; > dmitry.torokhov@gmail.com; Michal Simek ; Rajan Vaja > ; linux-arm-kernel@lists.infradead.org; linux- > kernel@vger.kernel.org; Sudeep Holla ; Tejas Patel > > Subject: Re: [PATCH 0/2] arch: arm64: xilinx: Make zynqmp_firmware driver > optional >=20 > EXTERNAL EMAIL >=20 > On Thu, Jan 09, 2020 at 11:06:02AM -0800, Jolly Shah wrote: > > From: Tejas Patel > > > > Zynqmp firmware driver requires firmware to be present in system. > > Zynqmp firmware driver will crash if firmware is not present in system. > > For example single arch QEMU, may not have firmware, with such setup > > Linux booting fails. > > > > So make zynqmp_firmware driver as optional to disable it if user don't > > have firmware in system. > > >=20 > Why can't it be detected runtime ? How do you handle single binary if you > make this compile time option ? [Rajan] There is PMU register which indicates if firmware is present or not= , but in case of single arch QEMU that register will not be available so t= here is no way to detect if firmware is present or not from Linux. Linux firmware crashes while arm_smccc_smc() call for firmware, but before = this call there is no way to identify if firmware is present or not. So we= are just giving user an option if they want to use it on single arch Platform they can disable firmware driver. Thanks, Rajan > -- > Regards, > Sudeep