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=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 A121FC4332B for ; Thu, 19 Mar 2020 20:02:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6B042206D7 for ; Thu, 19 Mar 2020 20:02:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584648177; bh=Lz6iUmdUUFtwGgC/vfuRKQ4BpFFpCfAxCeA22G6refY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=l+FY2NaXvyufZ7Q5sLy8fZbGJaukBQMq1ELGhO7j3HOTHcISq7VEWZHGJkK8zck5T tt4g49xRzX8KszVM1J4qgNRDz3H2rMpqiuIRVBzaHueIVXIvuWzXrB+tzyG70EYh02 9fB2IOu0jbh69yzRqzV3qDAYl26qMdJs+C3DrQpw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726983AbgCSUC4 (ORCPT ); Thu, 19 Mar 2020 16:02:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:38324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbgCSUC4 (ORCPT ); Thu, 19 Mar 2020 16:02:56 -0400 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 B1E9420752 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=1584648176; bh=Lz6iUmdUUFtwGgC/vfuRKQ4BpFFpCfAxCeA22G6refY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=UNzpO6C9p3kkdMRO/wFsMOCfZCjvFGFOqXrMixglo9ZBkLOHXEI61lRXFEwob+2uO TC56t2GJFLmu3txDR4aKcOU/eDjF5fW2xVZxP3BrVaTK7Aiu8xpzwX5TTcyZhSo8AW PzQ5QKmgBZYgJT7h7QDx4gRY1KSRoUSzA8BehXwE= Received: by mail-wr1-f46.google.com with SMTP id h4so4799716wru.2 for ; Thu, 19 Mar 2020 13:02:55 -0700 (PDT) X-Gm-Message-State: ANhLgQ1ARK/lF+PKuO4IgMM5U1hYl8NQqhsr2HbNJQ9xSfLctFrOGMlX 35UyNBYg46f3zIf1bo5Y4/0hX1lj5CBYUM0ds+CeIw== X-Google-Smtp-Source: ADFU+vv0pjFJjqLm9+W9pQLQM0AJcDlx7TFtehByST5eabRXhk06kFShIyZpJ7BFdappIgjff7LYwTx1pfxTxuUJCu4= 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-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@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 >