Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5823642imm; Wed, 12 Sep 2018 11:40:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZKpD4G8o2hkHDH0u0+fzDZrgLlGfJ3ENwD4p6cviVaYF37A33QMWT22UPFDOOY9gqy9LkB X-Received: by 2002:a62:dbc5:: with SMTP id f188-v6mr3910049pfg.182.1536777628840; Wed, 12 Sep 2018 11:40:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536777628; cv=none; d=google.com; s=arc-20160816; b=zY9p587OnHEWYEzbs18za/vCwfOdQln18bwyuKWfjl4IJOSQTVJU1X8DbS/RgDBFvn lYIKxXPfPJiwow9/jcwlfjrsBTvLHOyfZj7Mx4QLtJobk967nU153UwH3a4Fj0/OqQ8n kbc5xW+AYORMStBZSpSltUl7QKJ0nVN3JCIWtdSN58YZoaUseIdSatvunc8XzlRl2a5H oZXXwYacFtOrRX0g+c+XLGn/zpevojgUEAmm3FNMzx/yduP3+r/501x/fWI7mwrBsq2Y 9tbp9bnlCZKcq8nHxo/ZQ0ZLK9kP8o7B0mea+i8RMh7gw8dUTH/CgLiNcQICOb3+aFrk wMFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=7PonDIHDj57NYUwqBclwBDQt3qui53gpoL+rJlXa0Uk=; b=S/c5HxmNUJiBVN1ZmBZ/h0CGsNGKnKVhdPLufAi5VLm6NcjBqMIViSHrWx5CD7+gz5 GgPlzVky2SOJr+O4Erh8vk4El53oi7RNk9Whsoi0z8nJvpkRuJLsjhVAX11TCkPlJziW JCIWcXxzQejWd6l95iksNaMyaqesGTdNed0yEzPzt0Q2if1k/wY4Iz6Xb350rnX2PMXG CZ6ZSkMJKg/GwlGgiKUY5BEs5NofUFKa0xf2oL0JjT+rd8SO4f5qzEWcVCBpfpkm60vy MlGGURkIEzLYSSmd1P4RWS3Nt/gBDynKcJsVf76hNVyTbHROTs4QpNCCIliAj0K0WfcQ EMkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WVe1x4LO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10-v6si1766859pgb.638.2018.09.12.11.40.12; Wed, 12 Sep 2018 11:40:28 -0700 (PDT) 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=@linaro.org header.s=google header.b=WVe1x4LO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728033AbeILXp2 (ORCPT + 99 others); Wed, 12 Sep 2018 19:45:28 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:39960 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727651AbeILXp2 (ORCPT ); Wed, 12 Sep 2018 19:45:28 -0400 Received: by mail-io1-f68.google.com with SMTP id l14-v6so1048686iob.7 for ; Wed, 12 Sep 2018 11:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7PonDIHDj57NYUwqBclwBDQt3qui53gpoL+rJlXa0Uk=; b=WVe1x4LOdokSMJdcPN7kZ3Tq2JNUmvKlfzE9MhTB3keYuNOxrDR5PNRLp/swiS5Mpn QxT3+PBFs9VTuv4TwAkBoAPDUeo0RHWsT5R/2u9g/bdr+ZAnRo1tFTj/o2u1OOjcTZG3 0FlZ1OL/O1xURPjVkcKBwAyQhXYrTUDWvqORg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7PonDIHDj57NYUwqBclwBDQt3qui53gpoL+rJlXa0Uk=; b=Kvk9ZR3hNP5A/h6fTd8hUt8MBj7IrzYlLGAw5RnmglyyxQMHZ/qQ342g1/wygL/jmo ntWCRF4foAVZ7K3O+GMKJ3xPKB+0+GPuziyu95XQsgYpEdkfW46g11xOqh0n68YjbPTD ptWflhc44DhSrzJyoLDhKRpxdXyHnHBPdkfTcsa04Gfji20CbWJHCOx406m7l6KHwehD p8WYg6C61IpGJjXZPHh1fdzjNnoJlTDLQs4QZ2nGPFc2/e/JnwaN4w9cXv7M36ZUaAvb ahLrHT+GLXpnbLpT2HQ9MUmoulJyZ6jNv8MzdCGqAvE84Qsu4YsPQpGIOXmq3j6Vp5kE 5NZQ== X-Gm-Message-State: APzg51AewCC2oYgpaUN1awZU9JJjsXkMlKmi98oJZuKt4fYbgpdwN6JX a2XBb7iwP6pCW96eVdPbabiqqfwWT0ymw6cbEEldeA== X-Received: by 2002:a6b:4516:: with SMTP id s22-v6mr3179897ioa.60.1536777579925; Wed, 12 Sep 2018 11:39:39 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:2848:0:0:0:0:0 with HTTP; Wed, 12 Sep 2018 11:39:39 -0700 (PDT) In-Reply-To: <1536775208-8064-1-git-send-email-aaron.ma@canonical.com> References: <1536423828-5693-1-git-send-email-aaron.ma@canonical.com> <1536775208-8064-1-git-send-email-aaron.ma@canonical.com> From: Ard Biesheuvel Date: Wed, 12 Sep 2018 20:39:39 +0200 Message-ID: Subject: Re: [PATCH v2] x86/efi: earlyprintk - Add 64bit efi fb address support To: Aaron Ma Cc: Thomas Gleixner , "the arch/x86 maintainers" , linux-efi , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12 September 2018 at 20:00, Aaron Ma wrote: > EFI GOP uses 64-bit frame buffer address in some BIOS. > Add 64bit address support in efi earlyprintk. > > V2: > Fix type of address. > > Signed-off-by: Aaron Ma Thanks. Queued in efi/next. > --- > arch/x86/platform/efi/early_printk.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/platform/efi/early_printk.c b/arch/x86/platform/efi/early_printk.c > index 5fdacb322ceb..7476b3b097e1 100644 > --- a/arch/x86/platform/efi/early_printk.c > +++ b/arch/x86/platform/efi/early_printk.c > @@ -26,12 +26,14 @@ static bool early_efi_keep; > */ > static __init int early_efi_map_fb(void) > { > - unsigned long base, size; > + u64 base, size; > > if (!early_efi_keep) > return 0; > > base = boot_params.screen_info.lfb_base; > + if (boot_params.screen_info.capabilities & VIDEO_CAPABILITY_64BIT_BASE) > + base |= (u64)boot_params.screen_info.ext_lfb_base << 32; > size = boot_params.screen_info.lfb_size; > efi_fb = ioremap(base, size); > > @@ -46,9 +48,11 @@ early_initcall(early_efi_map_fb); > */ > static __ref void *early_efi_map(unsigned long start, unsigned long len) > { > - unsigned long base; > + u64 base; > > base = boot_params.screen_info.lfb_base; > + if (boot_params.screen_info.capabilities & VIDEO_CAPABILITY_64BIT_BASE) > + base |= (u64)boot_params.screen_info.ext_lfb_base << 32; > > if (efi_fb) > return (efi_fb + start); > -- > 2.17.1 >