-
Notifications
You must be signed in to change notification settings - Fork 28
Added SMBIOS support #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ktrinh-anduril
wants to merge
21
commits into
AsahiLinux:asahi
Choose a base branch
from
ktrinh-anduril:ktrinh/smbios-support
base: asahi
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Added SMBIOS support #24
ktrinh-anduril
wants to merge
21
commits into
AsahiLinux:asahi
from
ktrinh-anduril:ktrinh/smbios-support
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The MTP HID driver will reuse this code, so split it off into another file. Signed-off-by: Hector Martin <[email protected]>
This is required for MTP to work properly Signed-off-by: Hector Martin <[email protected]>
For devices without specific buffer methods, just assume we can give them raw memory pointers when they request a buffer. Signed-off-by: Hector Martin <[email protected]>
This driver handles the MTP ASC coprocessor, which does not need any special handling on the RTKit side and communicates out-of-band. Signed-off-by: Hector Martin <[email protected]>
Apple M2 devices have an MTP coprocessor in charge of keyboard/trackpad handling, communicating over a DockChannel interface. Add a simple driver for this. The keyboard does not require any initialization messages, but we have a problem: we cannot reset the MTP so Linux can start it fresh, and it delivers a number of informative packets on startup. To work around this, we buffer those messages and re-inject them into the FIFO (which is big enough to hold all of them) on shutdown, so Linux finds them when it initializes its driver. The actual MTP coprocessor is quiesced, which does work properly. Signed-off-by: Hector Martin <[email protected]>
Signed-off-by: Hector Martin <[email protected]>
Find the appropriate EFI system partition on the internal NVMe storage and set the U-Boot environment variables such that the file system firmware loader can load firmware from it. Signed-off-by: Mark Kettenis <[email protected]>
Add a variant of readl_poll_sleep_timeout that reads a single byte to match the readb_poll_timeout API that Linux has. Signed-off-by: Mark Kettenis <[email protected]>
The ASMedia XHCI controller found on some of the Apple Silicon machines needs firmware to operate. Use the file system firmware loader interface to read the firmware and load it onto the controller. This allows keyboards connected to the type-A ports on these machines to function in U-Boot. Signed-off-by: Mark Kettenis <[email protected]>
Now that we have a way to find the appropriate EFI system partition on the internal NVMe storage, store the U-Boot environment there. Signed-off-by: Mark Kettenis <[email protected]>
Now that we have a way to find the appropriate EFI system partition on the internal NVMe storage, nail it down as the preferred EFI system partition such that we can use it to store EFI variables. This allows multiple OS installations to exist on Apple Silicon machines without interfering with eachother. Signed-off-by: Mark Kettenis <[email protected]>
Signed-off-by: Asahi Lina <[email protected]>
This synchronizes the device trees with those that are in the process of being upstreamed into Linux. These now match the current state of the device trees on the asahi branch of the Asahi Linux github repository. Signed-off-by: Mark Kettenis <[email protected]>
Device trees for the 14" and 16" MacBook Pro and the Mac Studio. Taken from the asahi branch of the Asahi Linux github repository. Signed-off-by: Mark Kettenis <[email protected]>
Device trees for the M2 MacBook Air and the M2 13" MacBook Pro. Taken from the asahi branch of the Asahi Linux github repository. Signed-off-by: Mark Kettenis <[email protected]>
Device trees for the 14" and 16" MacBook Pro and the Mac mini. Taken from the asahi branch of the Asahi Linux github repository. Signed-off-by: Mark Kettenis <[email protected]>
This will work for u-boot itself, but needs a special workaround in the MTP driver for Linux handoff to work. Signed-off-by: Hector Martin <[email protected]>
To be used for special-case oslog support in rtkit-helper. Signed-off-by: Hector Martin <[email protected]>
The new OSLog region in MTP (firmware 13.3+) persists on handoff to Linux. To avoid having to come up with some weird DART handoff or DAPF tricks, let's just steal some of the coprocessor's dedicated SRAM. This keeps it happy and Linux doesn't need any special handoff then. Signed-off-by: Hector Martin <[email protected]>
When booting from a block io device, prefer the EFI system partition over other partitions. Signed-off-by: Mark Kettenis <[email protected]>
Signed-off-by: Khoi Trinh <[email protected]>
f6f5bf4
to
d2ec1db
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With these changes, dmidecode works properly on my machine(serial and uuid censored out):