Commit Graph

261 Commits

Author SHA1 Message Date
Ruihan Li de0f8d1e54 Lazily acquire I/O memory 2026-01-28 16:48:58 +08:00
Ruihan Li 073aedb324 Prefer to return `Option<&Type>` 2026-01-28 16:48:57 +08:00
Ruihan Li a599a2c563 Disable BAR decoding when sizing PCI BARs 2026-01-27 23:05:02 -08:00
Ruihan Li eefdaf4de9 Fix minor problems in PCI 2026-01-27 23:05:02 -08:00
Ruihan Li b11fcdcf0b Remove unused code in PCI 2026-01-27 23:05:02 -08:00
Ruihan Li 000ad53c9f Support UART console 2026-01-27 17:44:41 -08:00
root dee39e21d1 x86/tdx: integrate fatal error reporting and improve initialization 2026-01-27 16:32:36 -08:00
Ruihan Li a82d185154 Use PCI ECAM in x86 if possible 2026-01-27 16:24:07 -08:00
Ruihan Li a09de99c1d Ensure PCI access atomicity 2026-01-27 16:24:07 -08:00
Ruihan Li f055a387a7 Get the PCI bus number range 2026-01-27 16:24:07 -08:00
Ruihan Li a3314c6432 Ignore high bits in PCI BAR sizes 2026-01-26 17:19:10 -08:00
Ruihan Li bd72728e04 Fix a typo in i8042 `is_present_cmdline` 2026-01-14 19:30:46 -08:00
Tao Su 1442060c2d Introduce `DmaStream::alloc` to reduce memory copy in TDX 2026-01-07 22:38:50 -08:00
Qingsong Chen 33f370966d Rename aster-nix to aster-kernel 2026-01-06 16:16:17 -08:00
Yuke Peng 4213908366 pci: Improves PCI device enumeration by suppporting multi-function detection 2026-01-05 19:08:34 -08:00
Yuke Peng c825c0d2c8 pci: Add `PciHeaderType` & `PciDeviceType` and refactor `BarManager` 2026-01-05 19:08:34 -08:00
Yuke Peng 7634a27ba6 pci: Split the configuration space offset into device-specific 2026-01-05 19:08:34 -08:00
jiangjianfeng c09654887c Let mlsdisk use Pod from OSTD 2026-01-04 10:51:36 -08:00
jiangjianfeng 01cac4268e Manage dependencies at workspace level 2026-01-04 10:51:36 -08:00
jiangjianfeng 34ab63addb Manage package metadata at workspace level 2026-01-04 10:51:36 -08:00
Ruihan Li eb83a38d12 Don't panic in LoongArch64 VirtIO MMIO probe 2026-01-03 11:16:36 -08:00
jiangjianfeng bc230b24e1 Fix doc warnings 2026-01-02 11:26:43 -08:00
Zhang Junyang 71681dd947 Refactor DMA APIs 2025-12-31 19:40:11 -08:00
Zhang Junyang 0c30edb5da Add a `Split` trait for `KVirtArea` and `Segment` 2025-12-31 19:40:11 -08:00
Marsman1996 b46a02463b Replace RwLock with RwMutex for child node management in SysTree 2025-12-26 14:08:17 +08:00
zjp 9c4f644bd9 Replace caps_lock's load+store by fetch_xor
It's a bit less efficient, but solves atomic violation.
2025-12-20 20:35:49 +08:00
Zhang Junyang c7a2c81366 Miscellaneous clippy fixes for Rust 2024 2025-12-09 09:23:58 +08:00
Zhang Junyang 69327eee8d Upgrade to Rust 2024 2025-12-09 09:23:58 +08:00
Zhang Junyang 6d2679852f Fix `if let` chains that can be collapsed 2025-12-09 09:23:58 +08:00
Zhang Junyang fc9f47a019 Fix manual implementations of `.is_multiple_of()` 2025-12-09 09:23:58 +08:00
Zhang Junyang 559ce94aba Fix elided lifetimes in return values 2025-12-09 09:23:58 +08:00
Zhang Junyang dd410444e5 Format with new `rustfmt` 2025-12-09 09:23:58 +08:00
Ruihan Li 6ac45fe406 Add methods to allow overlapping I/O ports 2025-12-08 11:12:05 +08:00
Cautreoxit 4f71f4bbe6 Add some ioctls for evdev 2025-12-07 17:30:04 +08:00
Ruihan Li 13afca6441 Add `i8042.exist` to override ACPI flags 2025-12-07 09:52:42 +08:00
Ruihan Li 04a2290812 Fix format issues like "initproc" and others 2025-12-07 09:52:42 +08:00
Hsy-Intel 2c9a11e43e Reduce #VE, disable SEPT #VE and enable notification for zero step attack detection in TDX environment 2025-12-04 09:48:17 +08:00
Chen Chengjun d58ae3a782 Implement controller framework for cgroup subsystem 2025-12-03 11:24:36 +08:00
Chen Chengjun dda8161bef Adjust the attributes-related APIs of SysNode 2025-12-03 11:24:36 +08:00
Ruihan Li f522bd72b2 Enable only one i8042 port at initialization 2025-12-01 10:22:14 +08:00
Ruihan Li 3258a264de Abstract common PS/2 logics 2025-12-01 10:22:14 +08:00
Ruihan Li 3ddbef06e4 Set timeout for i8042 transactions 2025-12-01 10:22:14 +08:00
Chen Chengjun e048a76afc Make the semantics of tty-related devices correct 2025-11-28 18:18:28 +08:00
Cautreoxit cc8fa23e07 Rename `keyboard` component to `i8042` 2025-11-28 11:25:58 +08:00
Cautreoxit 44768021a1 Add i8042 mouse 2025-11-28 11:25:58 +08:00
Cautreoxit aa6f248d03 Remove magic numbers in i8042 component 2025-11-28 11:25:58 +08:00
Qingsong Chen f026bf38d8 Fix bio request end sector calculation 2025-11-28 11:22:56 +08:00
Ruihan Li 0fd2066ac3 Fix potential atomic mode breaks 2025-11-26 17:35:42 +08:00
Zhe Tang 70eda539df Refactor IoMem acquisition to use appropriate cache policies across multiple components 2025-11-25 10:24:54 +08:00
Zhe Tang 0043cc7504 Implement the color map and the related `ioctl` handlers for the EFI framebuffer 2025-11-24 18:56:29 +08:00