Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp135005ybb; Thu, 19 Mar 2020 13:03:42 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsF+1UYune4HA8807RpWUnyXG91UvdvmQ8iSsHuWgJkYUvKgbztDRKZM+1sqdGRksxMPYM+ X-Received: by 2002:a9d:6a47:: with SMTP id h7mr3922012otn.297.1584648222611; Thu, 19 Mar 2020 13:03:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584648222; cv=none; d=google.com; s=arc-20160816; b=n8QCk4Lur+NN9QiEU8OepIHzWGn3CJcwLaak/kplQa92vkhhETBSBGLASQKvVe4GvS k3NrJBuHoUaRoTUdQc6L6pEGzppMpNz9XtW2vV2TwqNFv/98LWDxF+u8f/wjThjLyv/B hG63iSM8vd37BtN5jKcnyIKH8NLBpOSqefYj/Df+J2mY0AT20kZtBKd3NJ/1fc/bsx/z XgLUgVI/KmXF4JhmqJu6KKU2cWB3RHyD0S1wtMYD2u72w2mZSDj4EAqKChzfkB3HsMaA cd4L/RIUAGdrRbSdX7qwBznz87U5wXRBQTCMAZQgW7CPdEskilv+kGJM0NTWPVLp60IB jk1w== 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 :in-reply-to:references:mime-version:dkim-signature; bh=CskCHmVyU8MxOkAwq7xtA5gxrV660MG/jnCDHY4KjBc=; b=GPy8tzYd06pI12BJ2xFPfmLIq+AMZoFujMGrwJGKXCL35rrLtkXpPU8WcgK5/PFuni BYXOSxlM0AHvzaHiv4EjesEIyu0yhPUbzbdIazhy4TMFZCKLa0gnMO99dkaGqaaB/iWX QB60eTsxITkIidvpLSK/Oo0rerRGgljm8oamokHzpNpplZJe4pu9QWnRePTqQJMR2IRI bvAyhy5tp3K8qRjhGBf/oFNjJsrKMcX4sJElaU+EyeARGLxI+S9+yBJ9amCAidAz/2w4 dssVBXHNgSTqYX+XFsanc4JoO4opJEAVzYUBpmPm/UZRcXsT1ikw+mlVT0Cd4U/v3XYx wKsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0v8K0EmE; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4si1413712oic.213.2020.03.19.13.03.28; Thu, 19 Mar 2020 13:03:42 -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=@kernel.org header.s=default header.b=0v8K0EmE; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726930AbgCSUC4 (ORCPT + 99 others); Thu, 19 Mar 2020 16:02:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:38322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbgCSUC4 (ORCPT ); Thu, 19 Mar 2020 16:02:56 -0400 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8AE13206D7 for ; Thu, 19 Mar 2020 20:02:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584648175; bh=Lz6iUmdUUFtwGgC/vfuRKQ4BpFFpCfAxCeA22G6refY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=0v8K0EmEuvJPMlh3qwqIqEoNdNMDRYzWOhDG8ZHflMbjkX1mE3c39qm2ufoEp7bvk /ZNeZa0nMemahpY0k/3WEKHYWeT85NUSytMAs+6esUPxDIbjfmiB2H2/X/FZdz8ZJL r5orckpzSTjT+duWhyke9cTIP6GY3GnyZiPj+QOU= Received: by mail-wr1-f41.google.com with SMTP id w10so4777455wrm.4 for ; Thu, 19 Mar 2020 13:02:55 -0700 (PDT) X-Gm-Message-State: ANhLgQ2HPAhvcNM0zP1oWUPAZfYVjqPwduq2G+FJ3IU6wXLSwlPTIOPo rKVeT4Vf8IDxwb/VsFGOq8FFdNL4XMejFsrCMhQSSg== X-Received: by 2002:adf:afdb:: with SMTP id y27mr6463654wrd.208.1584648174030; Thu, 19 Mar 2020 13:02:54 -0700 (PDT) MIME-Version: 1.0 References: <20200319192855.29876-1-nivedita@alum.mit.edu> In-Reply-To: <20200319192855.29876-1-nivedita@alum.mit.edu> From: Ard Biesheuvel Date: Thu, 19 Mar 2020 16:02:42 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 00/14] efi/gop: Refactoring + mode-setting feature To: Arvind Sankar , Hans de Goede Cc: 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 Thu, 19 Mar 2020 at 15:28, Arvind Sankar wrote: > > This series is against tip:efi/core. > > Patches 1-9 are small cleanups and refactoring of the code in > libstub/gop.c. > > The rest of the patches add the ability to use a command-line option to > switch the gop's display mode. > > The options supported are: > video=efifb:mode=n > Choose a specific mode number > video=efifb:x[-(rgb|bgr|)] > Specify mode by resolution and optionally color depth > video=efifb:auto > Let the EFI stub choose the highest resolution mode available. > > The mode-setting additions increase code size of gop.o by about 3k on > x86-64 with EFI_MIXED enabled. > > Arvind Sankar (14): > efi/gop: Remove redundant current_fb_base > efi/gop: Move check for framebuffer before con_out > efi/gop: Get mode information outside the loop > efi/gop: Factor out locating the gop into a function > efi/gop: Slightly re-arrange logic of find_gop > efi/gop: Move variable declarations into loop block > efi/gop: Use helper macros for populating lfb_base > efi/gop: Use helper macros for find_bits > efi/gop: Remove unreachable code from setup_pixel_info > efi/gop: Add prototypes for query_mode and set_mode > efi/gop: Allow specifying mode number on command line > efi/gop: Allow specifying mode by x > efi/gop: Allow specifying depth as well as resolution > efi/gop: Allow automatically choosing the best mode > Thanks for this! I like it a lot. Adding Hans to cc as he has been working on seamless fb handover. I will review this somewhere next week. > Documentation/fb/efifb.rst | 33 +- > arch/x86/include/asm/efi.h | 4 + > .../firmware/efi/libstub/efi-stub-helper.c | 3 + > drivers/firmware/efi/libstub/efistub.h | 8 +- > drivers/firmware/efi/libstub/gop.c | 489 ++++++++++++++---- > 5 files changed, 428 insertions(+), 109 deletions(-) > > -- > 2.24.1 >