[PATCH] x86/efistub: Add options for forcing Apple set_os protocol

From: Aditya Garg
Date: Mon Feb 10 2025 - 05:51:33 EST




> On 10 Feb 2025, at 4:11 PM, Ard Biesheuvel <ardb@xxxxxxxxxx> wrote:
>
> Hi Aditya,
>
>> On Sun, 9 Feb 2025 at 17:13, Aditya Garg <gargaditya08@xxxxxxxx> wrote:
>> Hi all
>
> Please don't top post.
>
>> I managed to get feedbacks regarding eGPUs on older non T2 MacBooks, and can confirm that apple-set-os is needed there as well.
>
> This is rather vague. Where did you get this feedback, and what
> systems does it cover?
>
> Also, this is not about being able to switch to the integrated GPU to
> drive the built-in panel, but for driving an external GPU connected to
> a different screen altogether. AIUI, this has never worked on these
> systems, right? So why is this important now, for 10 year old
> Macbooks?
>
>> I was wondering if we can reach a conclusion for this case here.
>
> I'd prefer to address this in a different way: instead of fixing this
> in the Linux kernel for the handful of systems that need this (and
> that will upgrade to v6.15 or later to get this fix), why not use a
> separate boot-time EFI app to call the protocol. That way, it works
> with existing kernels too, and no changes are needed to Linux.
Fair enough, let's close this thing then.

Thanks
Aditya

> https://paste.debian.net/1349311/