From nobody Thu May 2 13:14:59 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1591798278; cv=none; d=zohomail.com; s=zohoarc; b=FW/lKNvXB/bNTCovu/akbWKuT+NB9636A9z0Ywhtq1jYxeX+S7ZWHzbA5Tjhsbd5l80GGSrRQrAFdSuDdlYzYffp2K9VmLsMLGWOp5Ne/J2CfVrTtwcwJvXlKG+PgxZKEA876cr6iihP3tmD6SPimDtXfaCd0h3qxNTj1gOFxeM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1591798278; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=07ERMeRswpCecL7urwUpP92nuLpE0DYpd6hQopH0ZPI=; b=ReMb/RpcY/306c5CmGf+bkSCqaZbngM5qXCToGrev0wVZGmGGf7TWSyfV2lzUPc+F+FYOGoATBkXq2hXLwRVK2U3/Ui+2Pgwr71hXYiIxKmnvJ3WtdHDYEhX779BHScPP9VMK+nmUWuIRcwCVWVHq8CobAsYCX8o7aO9omV6qUE= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1591798278837157.39876540472494; Wed, 10 Jun 2020 07:11:18 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jj1RR-0004ZQ-AY; Wed, 10 Jun 2020 14:10:57 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jj1RQ-0004ZL-KU for xen-devel@lists.xenproject.org; Wed, 10 Jun 2020 14:10:56 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 333a76e2-ab24-11ea-bb8b-bc764e2007e4; Wed, 10 Jun 2020 14:10:56 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 36262ABC7; Wed, 10 Jun 2020 14:10:58 +0000 (UTC) X-Inumbo-ID: 333a76e2-ab24-11ea-bb8b-bc764e2007e4 X-Virus-Scanned: by amavisd-new at test-mx.suse.de From: Juergen Gross To: xen-devel@lists.xenproject.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] efi: avoid error message when booting under Xen Date: Wed, 10 Jun 2020 16:10:52 +0200 Message-Id: <20200610141052.13258-1-jgross@suse.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , Peter Jones , Bartlomiej Zolnierkiewicz Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Content-Type: text/plain; charset="utf-8" efifb_probe() will issue an error message in case the kernel is booted as Xen dom0 from UEFI as EFI_MEMMAP won't be set in this case. Avoid that message by calling efi_mem_desc_lookup() only if EFI_PARAVIRT isn't set. Fixes: 38ac0287b7f4 ("fbdev/efifb: Honour UEFI memory map attributes when m= apping the FB") Signed-off-by: Juergen Gross Acked-by: Bartlomiej Zolnierkiewicz --- drivers/video/fbdev/efifb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/efifb.c b/drivers/video/fbdev/efifb.c index 65491ae74808..f5eccd1373e9 100644 --- a/drivers/video/fbdev/efifb.c +++ b/drivers/video/fbdev/efifb.c @@ -453,7 +453,7 @@ static int efifb_probe(struct platform_device *dev) info->apertures->ranges[0].base =3D efifb_fix.smem_start; info->apertures->ranges[0].size =3D size_remap; =20 - if (efi_enabled(EFI_BOOT) && + if (efi_enabled(EFI_BOOT) && !efi_enabled(EFI_PARAVIRT) && !efi_mem_desc_lookup(efifb_fix.smem_start, &md)) { if ((efifb_fix.smem_start + efifb_fix.smem_len) > (md.phys_addr + (md.num_pages << EFI_PAGE_SHIFT))) { --=20 2.26.2