<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/firmware/efi/libstub/gop.c, branch linux-6.18.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.18.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.18.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2025-01-14T07:35:27Z</updated>
<entry>
<title>efi/libstub: Refactor and clean up GOP resolution picker code</title>
<updated>2025-01-14T07:35:27Z</updated>
<author>
<name>Ard Biesheuvel</name>
<email>ardb@kernel.org</email>
</author>
<published>2024-12-20T11:00:28Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=b52587c5e897e91ad59a59741e8af086151e7fbc'/>
<id>urn:sha1:b52587c5e897e91ad59a59741e8af086151e7fbc</id>
<content type='text'>
The EFI stub implements various ways of setting the resolution of the
EFI framebuffer at boot, and this duplicates a lot of boilerplate for
iterating over the supported modes and extracting the resolution and
color depth.

Refactor this into a single helper that takes a callback, and use it for
the 'auto', 'list' and 'res' selection methods.

Signed-off-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
<entry>
<title>efi/libstub: Simplify GOP handling code</title>
<updated>2025-01-14T07:35:08Z</updated>
<author>
<name>Ard Biesheuvel</name>
<email>ardb@kernel.org</email>
</author>
<published>2024-12-19T09:37:40Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=60a34085c36d6eb292c1e03bc355b1aa3a74a689'/>
<id>urn:sha1:60a34085c36d6eb292c1e03bc355b1aa3a74a689</id>
<content type='text'>
Use the LocateHandleBuffer() API and a __free() function to simplify the
logic that allocates a handle buffer to iterate over all GOP protocols
in the EFI database.

Signed-off-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
<entry>
<title>efi/libstub: Use C99-style for loop to traverse handle buffer</title>
<updated>2025-01-14T07:34:25Z</updated>
<author>
<name>Ard Biesheuvel</name>
<email>ardb@kernel.org</email>
</author>
<published>2024-12-19T09:53:23Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c14bca3f7aa94fd8d3f5e621ce5b56535ef2396b'/>
<id>urn:sha1:c14bca3f7aa94fd8d3f5e621ce5b56535ef2396b</id>
<content type='text'>
Tweak the for_each_efi_handle() macro in order to avoid the need on the
part of the caller to provide a loop counter variable.

Also move efi_get_handle_num() to the callers, so that each occurrence
can be replaced with the actual number returned by the simplified
LocateHandleBuffer API.

Signed-off-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
<entry>
<title>efi/gop: Add an option to list out the available GOP modes</title>
<updated>2020-05-20T17:09:20Z</updated>
<author>
<name>Arvind Sankar</name>
<email>nivedita@alum.mit.edu</email>
</author>
<published>2020-05-18T19:07:11Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=14c574f35cfbc9272fc67b41f074c847db139652'/>
<id>urn:sha1:14c574f35cfbc9272fc67b41f074c847db139652</id>
<content type='text'>
Add video=efifb:list option to list the modes that are available.

Signed-off-by: Arvind Sankar &lt;nivedita@alum.mit.edu&gt;
Link: https://lore.kernel.org/r/20200518190716.751506-20-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
<entry>
<title>efi/gop: Use efi_err for error messages</title>
<updated>2020-05-01T07:40:02Z</updated>
<author>
<name>Arvind Sankar</name>
<email>nivedita@alum.mit.edu</email>
</author>
<published>2020-04-30T18:28:37Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=61eac6d92d351fc446c7a0ba3b55a9b8d9977e30'/>
<id>urn:sha1:61eac6d92d351fc446c7a0ba3b55a9b8d9977e30</id>
<content type='text'>
Use efi_err instead of bare efi_printk for error messages.

Signed-off-by: Arvind Sankar &lt;nivedita@alum.mit.edu&gt;
Link: https://lore.kernel.org/r/20200430182843.2510180-6-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
<entry>
<title>efi/libstub: Add a helper function to split 64-bit values</title>
<updated>2020-05-01T07:40:02Z</updated>
<author>
<name>Arvind Sankar</name>
<email>nivedita@alum.mit.edu</email>
</author>
<published>2020-04-30T18:28:34Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=eed4e0193ee7b00213791f7732bce0fc0c54f3b3'/>
<id>urn:sha1:eed4e0193ee7b00213791f7732bce0fc0c54f3b3</id>
<content type='text'>
In several places 64-bit values need to be split up into two 32-bit
fields, in order to be backward-compatible with the old 32-bit ABIs.

Instead of open-coding this, add a helper function to set a 64-bit value
as two 32-bit fields.

Signed-off-by: Arvind Sankar &lt;nivedita@alum.mit.edu&gt;
Link: https://lore.kernel.org/r/20200430182843.2510180-3-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
<entry>
<title>efi: Kill __efistub_global</title>
<updated>2020-04-24T12:52:16Z</updated>
<author>
<name>Arvind Sankar</name>
<email>nivedita@alum.mit.edu</email>
</author>
<published>2020-04-16T15:12:27Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=544393707f3ca4f185ea1e41cc3206d1526c99cf'/>
<id>urn:sha1:544393707f3ca4f185ea1e41cc3206d1526c99cf</id>
<content type='text'>
Now that both arm and x86 are using the linker script to place the EFI
stub's global variables in the correct section, remove __efistub_global.

Signed-off-by: Arvind Sankar &lt;nivedita@alum.mit.edu&gt;
Reviewed-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
Link: https://lore.kernel.org/r/20200416151227.3360778-4-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
<entry>
<title>efi/gop: Allow automatically choosing the best mode</title>
<updated>2020-04-23T18:15:06Z</updated>
<author>
<name>Arvind Sankar</name>
<email>nivedita@alum.mit.edu</email>
</author>
<published>2020-03-28T16:06:01Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=45d97a749e9fec6d5324b19561ce5fbfa937d60b'/>
<id>urn:sha1:45d97a749e9fec6d5324b19561ce5fbfa937d60b</id>
<content type='text'>
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 &lt;nivedita@alum.mit.edu&gt;
Link: https://lore.kernel.org/r/20200328160601.378299-2-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
<entry>
<title>efi/gop: Allow specifying depth as well as resolution</title>
<updated>2020-04-23T18:15:06Z</updated>
<author>
<name>Arvind Sankar</name>
<email>nivedita@alum.mit.edu</email>
</author>
<published>2020-03-20T02:00:27Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=9a1663bc4d9856f6810786fec597dab5440a9d8d'/>
<id>urn:sha1:9a1663bc4d9856f6810786fec597dab5440a9d8d</id>
<content type='text'>
Extend the video mode argument to handle an optional color depth
specification of the form
	video=efifb:&lt;xres&gt;x&lt;yres&gt;[-(rgb|bgr|&lt;bpp&gt;)]

Signed-off-by: Arvind Sankar &lt;nivedita@alum.mit.edu&gt;
Link: https://lore.kernel.org/r/20200320020028.1936003-14-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
<entry>
<title>efi/gop: Allow specifying mode by &lt;xres&gt;x&lt;yres&gt;</title>
<updated>2020-04-23T18:15:06Z</updated>
<author>
<name>Arvind Sankar</name>
<email>nivedita@alum.mit.edu</email>
</author>
<published>2020-03-20T02:00:26Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=d9ff0323d074c6c06467118c7a43d5748f147369'/>
<id>urn:sha1:d9ff0323d074c6c06467118c7a43d5748f147369</id>
<content type='text'>
Add the ability to choose a video mode using a command-line argument of
the form
	video=efifb:&lt;xres&gt;x&lt;yres&gt;

Signed-off-by: Arvind Sankar &lt;nivedita@alum.mit.edu&gt;
Link: https://lore.kernel.org/r/20200320020028.1936003-13-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
</feed>
