efi/gop: Allow automatically choosing the best mode
authorArvind Sankar <nivedita@alum.mit.edu>
Sat, 28 Mar 2020 16:06:01 +0000 (12:06 -0400)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 23 Apr 2020 18:15:06 +0000 (20:15 +0200)
commit45d97a749e9fec6d5324b19561ce5fbfa937d60b
tree3bf12305975b235657491767a0cd95ea7148e6ec
parent9a1663bc4d9856f6810786fec597dab5440a9d8d
efi/gop: Allow automatically choosing the best mode

Add the ability to automatically pick the highest resolution video mode
(defined as the product of vertical and horizontal resolution) by using
a command-line argument of the form
video=efifb:auto

If there are multiple modes with the highest resolution, pick one with
the highest color depth.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200328160601.378299-2-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Documentation/fb/efifb.rst
drivers/firmware/efi/libstub/gop.c