Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp108653ybb; Thu, 19 Mar 2020 12:31:43 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuT9i1H3VMgGSpDCzOWRNxGz/3FaTo9tpTLlUIfKTezlz9zZfqgvhnneM+IpcfF0g1YCSNF X-Received: by 2002:aca:4183:: with SMTP id o125mr3494131oia.125.1584646303595; Thu, 19 Mar 2020 12:31:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584646303; cv=none; d=google.com; s=arc-20160816; b=I+eBvB+7eAfCmhi3rbwU+7jWFdvjbglOy/vC5hsNHbhRrEbHLt8j+cPz66qHil4Hq7 QXePZXfThWVLzsVheLxHPCfBiU0zHMpzsmgkPANJ68nHmUf/Kj5IpkEI3Qjtlz3C/35+ 3VyCTtfNONR6bK3PwIpBg57Se9qMt2d0knTnSex2aFCUfi8gQSFg9Qvm1JPgtsVDZGMH MlEaRijXWuIVuYVqdna8FSJZjaJ3yHbjSPE4weksdu1jVr/TQEr+RepeTTLuLdXsOQbF Dgz9Jg3FYRsM40P58/8Su8YWlLQrPxp2xZSu6Y16Bsj2YQl8amiKB+l8eTLL2/LBRmP1 P1IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=fO0ESG9ioh3Qb6IQVZmuJEmcqIIHJ324D9kNXryCnBo=; b=RtSQx4oEC8HRYVF7Hwu4ZHVhOkbsICsSyqrnku+iIg5gdsoQd6D59hUwzI6DnNo/U4 ZHBlcjTnyRHAum/rDkhA9gclkolnkJ9yxOdH3DCWL0xUuAwqvRO8gCO7NDOdkDhJ+F/n xR2SDtONWPs8Jbz3mzZCooZ361O3a7IlSTTLLgltxDzpGqxNoY9/r+a11CuCNiX83mm9 5UE3vA1UPqh2n9308Lg/3znWg/GRsSNGFA7tpMmV4IKCoyoqVePrfowOntzLOULZpfkM sBlcEnTXbVBt1j77Dv1YkDfcmHbZEenBhb73hqEJOCoMenV3eJlBs6ijRL5Da2Sfa4TW Zb7w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m185si1135540oib.102.2020.03.19.12.31.31; Thu, 19 Mar 2020 12:31:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727532AbgCST27 (ORCPT + 99 others); Thu, 19 Mar 2020 15:28:59 -0400 Received: from mail-qt1-f180.google.com ([209.85.160.180]:46382 "EHLO mail-qt1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726785AbgCST26 (ORCPT ); Thu, 19 Mar 2020 15:28:58 -0400 Received: by mail-qt1-f180.google.com with SMTP id t13so2879057qtn.13; Thu, 19 Mar 2020 12:28:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fO0ESG9ioh3Qb6IQVZmuJEmcqIIHJ324D9kNXryCnBo=; b=EH2FtY0xzd7cMj1PldoYDKGpOZDXxfW74bdEt1DKctIpL6QoUun4aUP+x/tHc829Y6 ErP6JVl3pSAqf+7lfVas/RgkwWvF5dkNFF9fSQ4MH8F293qPz4bh/Sd7JlLjm40ECdva oYFRyW9vMCBhMUBA4vDzNeizZOqkXKgo3qboYZgYXT1A5Ntkw9xMg2oTEvfLxYFPKRLk CRwGNSE3g6yyFahEcFcES5X8Wk8e0G+am7bXSBOKBDuW80oxEsYNgB0VfYbeW2o+BjRe VoQPAhTfgLtPa69i43p5ShVd+rlL6C5nSkmgAEzdk2MVLUiyrg91hldJISLUzPI09h8S tcEA== X-Gm-Message-State: ANhLgQ2BKm7+iz9pcE0gFlq3mJLXOyX3U6oh0n0tN7NTmCaxtTHeXva3 kba0XEWQhI6Dfr+GAzZhLPOlQqyd X-Received: by 2002:aed:24c2:: with SMTP id u2mr4671556qtc.269.1584646137247; Thu, 19 Mar 2020 12:28:57 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id x89sm2292649qtd.43.2020.03.19.12.28.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Mar 2020 12:28:56 -0700 (PDT) From: Arvind Sankar To: Ard Biesheuvel Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 00/14] efi/gop: Refactoring + mode-setting feature Date: Thu, 19 Mar 2020 15:28:41 -0400 Message-Id: <20200319192855.29876-1-nivedita@alum.mit.edu> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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