From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B0C1C35679 for ; Mon, 24 Feb 2020 10:34:17 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D1D6320828 for ; Mon, 24 Feb 2020 10:34:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="j9oe5mTo"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="ct9p3iJ3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D1D6320828 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0IOutBc6sAql4N6Rr9w3t8Nj3Mqf2wNCSdEx+B/jURU=; b=j9oe5mTohqFE60 HBZNoLQd+D/Wf5nwxQoX8yeuYz2VnkwwgcwtYGbhBXXUVvHpbBH2qofgCwZc2DrMAJOfC/mTGii5j L8bls3KhydDCh23yaSk5yaNbt1NWrt9EUmAVdBbWzjuXnTUe3VZiUd/YZ3rLQ6JnFKUrj51m2htai c45LO60RDFW6h8C/QdMD9j9WCydNU1tulqh/1dTKT7wamYoC9vYM7Syw4BAim9j3FZyw/BDs0b7rO lY04sPQU6B3OeNreBGdchtO4ytBj4O8NwSqThKhxMkxVVGjtFWGJsP5yAaONLZP5yC1QypTnUIUfg Ca+ZQeoR7GW+3IDbORfw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j6B44-0006Gw-HC; Mon, 24 Feb 2020 10:34:16 +0000 Received: from mail-bn8nam12on2080.outbound.protection.outlook.com ([40.107.237.80] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j6B41-0006Gb-HE for linux-arm-kernel@lists.infradead.org; Mon, 24 Feb 2020 10:34:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fDXAj1ayl1yVdzgxKcHeumVdXA7aIwAo2W6so+MJ1nOcQ2/M6EfqAheTF/Utpa+mkhbB0KOzdsRwoo/dj0cJCbIGP+5PVttWx0D0m8hrfcqGW10LvOhQrpeJEuGFggwKMm5AI7ZFje7NQiz0/g/4XMxKYdfYtZ7gnBAyFjykc8/4MzErhWdg/yPtohdASJcWmxnQHEbBDweCva415irZHWPjHyURT0YbNYYzh4NsZsZoEGnHLAjFQp7fQVHdEcUXbUOuC476nJbnHwjiATGin+4bktDTeJxkGuRWVMh38PZMh4iPpSDV3YVX08g2/40Fe0+GFdRrzwMPCUbXMABY1g== 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=4WFU7M0A2+uNnZ2gPnPRgJp6Oy+CNHRMaTFIUg3N8lc=; b=kA7rfWfoNC93G8XFazyHKOhogvDwSrJ0j8zZE8nAnaKaK2KVfMUZCCxTsXkNMOicZxbd3wXHNXyg1ovEK7oxuCAXXh6VvhjqSNk9gSPs614DnuVOSO0TvppdabwJnF8mTuhVsh0+3ZjBWxwvV1ntr+BQfFYFpsPRvzR3b9bOU+hcXVA7Z5p5p0j/iEm058fXIELsY/pbEcRPWhF+5SouOGY45KJ5cFqZzy+YhTV9vwH6vU55DvlndjWX1Cp+a+YQrv0Z5rrphOPJsIP4b6M8h9dJsU5TL4E1reNCTGrdUDe7m6aoDcZgYykJKZKI0eQYv22XiyUSqHtD/atK+4zNzg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); 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=4WFU7M0A2+uNnZ2gPnPRgJp6Oy+CNHRMaTFIUg3N8lc=; b=ct9p3iJ3v67pkcJ+R7gX1wjKZhjVGxEGk+xwX8wbNjdSIjkUlUVcvhjIaVMaRRC6yHdoFi3HNlNSEu5vmM59KxfSHPOrppVcM67QfW/7cJAxENr/NzIVDjjx7NZxZCiqVSAqRc1MY+vDca5jEPGKJhhQ7rYanpqBJ983VfZGOQg= Received: from DM6PR02CA0056.namprd02.prod.outlook.com (2603:10b6:5:177::33) by SN6PR02MB4286.namprd02.prod.outlook.com (2603:10b6:805:a8::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.17; Mon, 24 Feb 2020 10:34:10 +0000 Received: from CY1NAM02FT053.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::205) by DM6PR02CA0056.outlook.office365.com (2603:10b6:5:177::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.18 via Frontend Transport; Mon, 24 Feb 2020 10:34:09 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by CY1NAM02FT053.mail.protection.outlook.com (10.152.74.165) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.2750.18 via Frontend Transport; Mon, 24 Feb 2020 10:34:09 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1j6B3x-0004Gn-3O; Mon, 24 Feb 2020 02:34:09 -0800 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1j6B3s-0006b8-06; Mon, 24 Feb 2020 02:34:04 -0800 Received: from [172.30.17.108] by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1j6B3k-0006VH-Ug; Mon, 24 Feb 2020 02:33:57 -0800 Subject: Re: [PATCH 0/2] arch: arm64: xilinx: Make zynqmp_firmware driver optional To: Rajan Vaja , Sudeep Holla , Jolly Shah , Edgar Iglesias References: <1578596764-29351-1-git-send-email-jolly.shah@xilinx.com> <20200110115415.GC39451@bogus> From: Michal Simek Message-ID: <577cdec9-9f51-a8d3-7422-7c7ac85891d4@xilinx.com> Date: Mon, 24 Feb 2020 11:33:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.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:; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(346002)(39860400002)(136003)(376002)(396003)(189003)(199004)(426003)(5660300002)(336012)(9786002)(54906003)(31686004)(107886003)(2616005)(4326008)(44832011)(6666004)(110136005)(26005)(8676002)(6636002)(356004)(81156014)(81166006)(7416002)(2906002)(478600001)(53546011)(31696002)(316002)(36756003)(8936002)(186003)(70586007)(70206006); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR02MB4286; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; LANG:en; PTR:unknown-60-83.xilinx.com; MX:1; A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f8914e31-33f3-4280-e6a6-08d7b915152e X-MS-TrafficTypeDiagnostic: SN6PR02MB4286: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-Forefront-PRVS: 032334F434 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hmWow8Qc1iciA35maanmu0xbnsAyzyi3PvPJ95T23A3nyvkByrHKj8sOV+pwGgIoOyq0xCq3k83ETctnIfT9X4SmO+U0Wgl9fWbGsNTDdg254nkZMatbUy9od5KxP/UCAfSGd1sFACx103xWP8pehNhzwDReBkvAILtR7+y5nOrokE9xPXP0mTl2uuTvt3vjSPvKzx8i+A40sWaTkqBIFdTBvPTfe2qfp1Y7+touH06PutiHyt35rshKRIg4mvEmCvNIU4Yg0eWqWBjfsRjM0veGZdIPF3sriz7gZsuNguVGcoGec/XPV8TqQLaYBFVGjZ022p4k+lQwV1m47oHKCOV/A0gVuWMRmjwgVA7FUrZGQ2+DPofgWVNjlLPpzFTjVSCOu1BXdXYhWduVa1B1P6aymElJT22uxGMAHk6LZDA7UWCQg3nYTg3DaTv474is X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2020 10:34:09.5770 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f8914e31-33f3-4280-e6a6-08d7b915152e 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: SN6PR02MB4286 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200224_023413_576530_2A220A5C X-CRM114-Status: GOOD ( 14.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "keescook@chromium.org" , "ard.biesheuvel@linaro.org" , "matt@codeblueprint.co.uk" , "gregkh@linuxfoundation.org" , "dmitry.torokhov@gmail.com" , "linux-kernel@vger.kernel.org" , Tejas Patel , "mingo@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "hkallweit1@gmail.com" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 13. 01. 20 7:46, Rajan Vaja wrote: > 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.org; >> 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 >> >> EXTERNAL EMAIL >> >> 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. >>> >> >> 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 there 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. If this is just for qemu case why not just add this register for single instance solution. Edgar: Can we map this register when there is no second instance to PMU MB? Thanks, Michal _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel