tangled
alpha
login
or
join now
jcs.org
/
openbsd-src
0
fork
atom
jcs's openbsd hax
openbsd
0
fork
atom
overview
issues
pulls
pipelines
openbsd-src
/
sys
/
arch
/
arm64
/
dev
/
at
jcs
54 files
acpicpu.c
Fix the hw.cpuspeed implementation and make sure frequency calculations don't end up triggering a divide by zero.
3 months ago
acpiiort.c
On the Lenovo X13s the named components don't have the single mapping flag set, which we so far had expected to be there. This is allowed by the IORT spec. In that case simply make use of the first mapping if there is a single one.
3 years ago
acpiiort.h
While it seems like we can choose any I/O virtual address for peripheral devices, this isn't really the case. It depends on the bus topology of how devices are connected. In the case of PCIe, devices are assigned addresses (in PCI BARs) from the PCI address spaces. Now if we take an address from one of these address spaces for our IOVA, transfers from from a PCI device to that address will terminate inside of the PCI bus. This is because from the PCI buses' point-of-view, the address we chose is part of its address space. To make sure we don't allocate addresses from there, reserve the PCI addresses in the IOVA.
4 years ago
acpipci.c
Advertise MSI multiple-vector support. This is assuming that in ACPI mode we probably have a GIC with MSI support that should give us have plenty of MSI vectors for us to use. Improves qwz(4) behavior on the Orion O6.
3 months ago
agintc.c
avoid including "xcall.h" in cpu.h to avoid confusing userland.
3 months ago
agtimer.c
Explicitly initialize initialize CNTKCTL_EL1 to a known state. Some of these bits are architecturally UNKNOWN and other bits might be initialized to different values than the documented defaults by the firmware.
1 year ago
ampchwm.c
Add ampchwm(4) a driver to access the Ampere Altra Fine-Grained Power Telemetry
2 years ago
ampintc.c
avoid including "xcall.h" in cpu.h to avoid confusing userland.
3 months ago
aplaudio.c
Make use of OF_is_enabled() instead of checking the status manually.
3 months ago
aplcpu.c
Apparently we can't have "generic" compatibles anymore, even though they were accepted when support for the M1 and M1 Pro chips was upstreamed. So now we have an incoherent mess where we need to add the right SoC-specific compatble to the list of compatibles to make sure drivers still attach when we update device trees to the latest Linux versions.
6 months ago
apldart.c
remove prototypes with no matching function ok mpi@
2 years ago
apldc.c
Fetch touchpad dimensions from firmware here as well.
2 years ago
apldma.c
Apparently we can't have "generic" compatibles anymore, even though they were accepted when support for the M1 and M1 Pro chips was upstreamed. So now we have an incoherent mess where we need to add the right SoC-specific compatble to the list of compatibles to make sure drivers still attach when we update device trees to the latest Linux versions.
6 months ago
apldma.h
Add apldma(4), a driver for the DMA controller found on Apple SoCs. This driver implements an interface for using DMA for audio output.
4 years ago
apldog.c
Apparently we can't have "generic" compatibles anymore, even though they were accepted when support for the M1 and M1 Pro chips was upstreamed. So now we have an incoherent mess where we need to add the right SoC-specific compatble to the list of compatibles to make sure drivers still attach when we update device trees to the latest Linux versions.
6 months ago
aplefuse.c
remove prototypes with no matching function ok mpi@
2 years ago
apliic.c
Make use of OF_is_enabled() instead of checking the status manually.
3 months ago
aplintc.c
avoid including "xcall.h" in cpu.h to avoid confusing userland.
3 months ago
aplmbox.c
Enable power domain.
2 years ago
aplmbox.h
Add aplmbox(4), a driver for the mailbox that provides a communication channel with additional cores integrated on Apple SoCs.
4 years ago
aplmca.c
Apparently we can't have "generic" compatibles anymore, even though they were accepted when support for the M1 and M1 Pro chips was upstreamed. So now we have an incoherent mess where we need to add the right SoC-specific compatble to the list of compatibles to make sure drivers still attach when we update device trees to the latest Linux versions.
6 months ago
aplmca.h
Add aplaudio(4) and aplmca(4). The aplmca(4) driver controls the hardware block that takes data from apldma(4), serializes it and sends it out on the i2s ports. The aplaudio(4) driver ties together aplmca(4) and various codecs to present an audio(4) interface to the system.
3 years ago
aplnco.c
Apparently we can't have "generic" compatibles anymore, even though they were accepted when support for the M1 and M1 Pro chips was upstreamed. So now we have an incoherent mess where we need to add the right SoC-specific compatble to the list of compatibles to make sure drivers still attach when we update device trees to the latest Linux versions.
6 months ago
aplns.c
Drop the "apple,nvme-m1" compatible; this was only used during early bringup.
3 months ago
aplpcie.c
Make use of OF_is_enabled() instead of checking the status manually.
3 months ago
aplpinctrl.c
Apparently we can't have "generic" compatibles anymore, even though they were accepted when support for the M1 and M1 Pro chips was upstreamed. So now we have an incoherent mess where we need to add the right SoC-specific compatble to the list of compatibles to make sure drivers still attach when we update device trees to the latest Linux versions.
6 months ago
aplpmgr.c
Apparently we can't have "generic" compatibles anymore, even though they were accepted when support for the M1 and M1 Pro chips was upstreamed. So now we have an incoherent mess where we need to add the right SoC-specific compatble to the list of compatibles to make sure drivers still attach when we update device trees to the latest Linux versions.
6 months ago
aplpmu.c
The device tree bindings changed during the upstreaming process. Since it is relatively easy to support both the old and the new, do so.
6 months ago
aplpwm.c
Add aplpwm(4), a driver for the PWM controller found on Apple silicon.
3 years ago
aplrtk.c
We should always set the AP power state, so fold the rtkit_set_ap_pwrstate() call into rtkit_boot().
1 year ago
aplsart.c
Unmap and free memory when we shutdown rtkit. This fixes an issue where we run out of SART entries after a few suspend/resume cycles.
3 years ago
aplsmc.c
Apparently we can't have "generic" compatibles anymore, even though they were accepted when support for the M1 and M1 Pro chips was upstreamed. So now we have an incoherent mess where we need to add the right SoC-specific compatble to the list of compatibles to make sure drivers still attach when we update device trees to the latest Linux versions.
6 months ago
aplspi.c
Apparently we can't have "generic" compatibles anymore, even though they were accepted when support for the M1 and M1 Pro chips was upstreamed. So now we have an incoherent mess where we need to add the right SoC-specific compatble to the list of compatibles to make sure drivers still attach when we update device trees to the latest Linux versions.
6 months ago
aplspmi.c
Apparently we can't have "generic" compatibles anymore, even though they were accepted when support for the M1 and M1 Pro chips was upstreamed. So now we have an incoherent mess where we need to add the right SoC-specific compatble to the list of compatibles to make sure drivers still attach when we update device trees to the latest Linux versions.
6 months ago
apm.c
directly use dev_t for swdevt[], remove struct swdevt ok mpi@ miod@
1 year ago
bcm2712_mip.c
Add bcmmpi(4), a driver for the MSI controller found on the BCM2712 SoC that remaps MSI to GIC SPIs and acts as a companion MSI controller for bcmpcie(4).
7 months ago
bcm2836_intr.c
avoid including "xcall.h" in cpu.h to avoid confusing userland.
3 months ago
efi_machdep.c
Implement access to EFI variables and ESRT through an ioctl(2) interface that is compatible with what FreeBSD and NetBSD have. Setting EFI variables is only allowed at securelevel 0 and below.
3 years ago
mainbus.c
Make use of OF_is_enabled() instead of checking the status manually.
3 months ago
pci_machdep.c
When trying to enable multiple MSI vectors, check the flag first whether or not it's supported. This allows qwx(4) to properly handle missing support for that and switch back to a single MSI vector.
2 years ago
rpiclock.c
Add rpiclock(4), a driver for the clock controller on the RP1 chip. Based on an early draft bt mglocker@
6 months ago
rpigpio.c
Add pin muxing functionality. Based on an earlier diff from mglocker@
6 months ago
rpipwm.c
Add rpipwm(4), a driver for the PWM controller on the RP1 chip. Together with the previous RP1-related commits this makes the fan work. Also based on eralier work by mglocker@
6 months ago
rpirtc.c
Add rpirtc(4), a driver for the firmware-managed RTC on the rpi5.
7 months ago
rpone.c
Add rpone(4), a driver for the Raspberry Pi RP1 chip. This chip integrates several peripherals including an Ethernet controller and two XHCI controllers. Those peipherals are handled by other drivers though. This driver only implements address and interrupt translation.
7 months ago
rtkit.c
fix memory leak; ok kettenis@
8 months ago
rtkit.h
Improve the RTKit code. This update brings us crashlog and syslog parsing support as well as bug fixes that are needed to bring up the DCP.
2 years ago
simplebus.c
Make use of OF_is_enabled() instead of checking the status manually.
3 months ago
smbios.c
The x13s only defines the (legacy) 32-bit SMBIOS entry point. Add code to handle that such that we can see the firmware version in dmesg.
3 years ago
smmu.c
Request 64k-aligned IOVA blocks. It's a bit unfortunate the alignment requirements only diffuse through to the bus dma API when we allocate memory; at that point we already have IOVA allocated, so it's hard to apply the right alignment. The good thing is that we basically cannot run out of an IOMMU domain's IOVA (which for us is per device), so we can easily bump the alignment of each DMA map. This helps qwz(4) FW come up on the Orion O6.
3 months ago
smmu_acpi.c
The Qualcomm QCS6490/SC7280 SoC needs the SMMUv2 workaround as well.
2 months ago
smmu_fdt.c
The Qualcomm QCS6490/SC7280 SoC needs the SMMUv2 workaround as well.
2 months ago
smmureg.h
Add SMMUv3 support to smmu(4). Functionality remains disabled for now, but it works well enough to be added and polished more in-tree.
7 months ago
smmuvar.h
Serialize concurrent access to command queues with a mutex. Fixes corruption visible on the Orion O6 with multiple devices and after the secondary cores spun up. Command queue handling/synchronization can probably the improved further.
3 months ago