Commit Graph

262 Commits

Author SHA1 Message Date
bjorn3 d528fb73b4 drivers: Use map_bar instead of physmap where possible
Physmap requires root, while map_bar in the future could be run as
unprivileged process given a pcid handle for the target device.
2026-05-09 20:12:41 +02:00
bjorn3 018d795eb0 drivers/graphics: Avoid unnecessary force probes
Force probes can be rather expensive on real hardware so according to
the drm_mode_get_connector docs it should only be done at startup, on a
hotplug event and when explicitly requested by the user.
2026-05-09 12:16:22 +02:00
bjorn3 2436639271 drivers/graphics: Avoid duplicate get_connector calls 2026-05-09 12:07:58 +02:00
bjorn3 15c3327adb drivers/graphics/ihdgd: Remove unnecessary reset call
alloc_buffers already starts as empty.
2026-05-08 20:24:09 +02:00
Jeremy Soller 485f2949ba Merge branch 'usb-rework' into 'main'
[xhcid] Push class specific descriptor parsing to the drivers

See merge request redox-os/base!255
2026-05-07 14:37:44 -06:00
bjorn3 1dcf00dc8e drivers/graphics/driver-graphics: Replace hw_cursor_size with has_cursor_plane
Clients get the cursor size using get_cap. hw_cursor_size is only used
to determine the existence of a cursor plane nowadays.
2026-05-07 22:20:59 +02:00
bjorn3 e9188e0f91 drivers/graphics/driver-graphics: Reduce visibility of some functions 2026-05-07 22:20:12 +02:00
Antoine Reversat 3f6c0c706f Run cargo fmt 2026-05-07 15:22:33 -04:00
Antoine Reversat f6bb61ba18 Move report descriptor parsing into usbhid 2026-05-07 14:05:13 -04:00
Antoine Reversat e22712d920 Replace hid_descs with unknown_descs 2026-05-07 12:20:07 -04:00
Antoine Reversat a43de9ea5d Run cargo fmt 2026-05-06 17:04:19 -04:00
bjorn3 7a08d30285 Rustfmt 2026-05-06 21:43:53 +02:00
bjorn3 8fdd5f3998 drivers/graphics/ihdgd: Replace DeviceFb with GpuBuffer for dumb buffers
Dumb buffers only have a size like GpuBuffer, not width, height and
stride like DeviceFb.
2026-05-06 21:32:32 +02:00
bjorn3 221d228f36 drivers/graphics/ihdgd: Support page flipping 2026-05-06 21:32:29 +02:00
Migue Magic e577bfc2ea Optimize console-draw write function 2026-05-03 09:06:37 -06:00
bjorn3 009ffe1dbc Fix compilation 2026-04-27 22:09:53 +02:00
Migue Magic 180bfe15a7 Fix typos across 3 drivers 2026-04-27 12:27:11 -06:00
Wildan M f2f834d412 Update ACPI crate 2026-04-27 15:57:46 +07:00
bjorn3 e217ff2c6a drivers/usb/xhcid: Load config files at runtime rather than compile time 2026-04-22 22:36:40 +02:00
bjorn3 daf726c30d scheme-utils: Have FpathWriter handle writing the scheme name 2026-04-19 19:07:41 +02:00
bjorn3 64d23e9e05 scheme-utils: Introduce FpathWriter helper 2026-04-19 19:07:41 +02:00
bjorn3 28900f7c49 scheme-utils: Introduce Blocking as counterpart to ReadinessBased for blocking schemes 2026-04-19 11:05:04 +02:00
bjorn3 6686c73d26 Implement on_close method of SchemeSync instead of using a separate method 2026-04-19 10:42:19 +02:00
bjorn3 a2bc1dd79c scheme-utils: Panic on scheme EOF
EOF used to be triggered by unmounting a scheme, but this is no longer
the case since namespaces got moved to userspace. Unmounting now only
closes the scheme root fd.
2026-04-18 16:49:21 +02:00
bjorn3 a5018ca37e scheme-utils: Merge read_requests and process_requests
And simplify some matches on the resulting method.
2026-04-18 16:49:21 +02:00
bjorn3 4ef2c7ad6f scheme-utils: Remove the need for RefCell wrappers around schemes for ReadinessBased 2026-04-18 16:49:21 +02:00
bjorn3 ca281c9395 scheme-utils: Copy ReadinessBased from redox-scheme to scheme-utils
To allow improving the implementation and interface in this repo and
move it back into redox-scheme later.
2026-04-18 16:49:03 +02:00
bjorn3 01183044a3 Workaround deadlock in initnsmgr 2026-04-18 12:58:41 +02:00
bjorn3 06af174ce6 drivers/virtio-core: Reduce log verbosity 2026-04-16 18:43:54 +02:00
Wildan M 9e7e04e3b8 Extend ided read timeout 2026-04-16 05:28:28 +07:00
bjorn3 feff62ba38 drivers/acpid: Couple minor cleanups 2026-04-14 21:54:25 +02:00
bjorn3 6311833765 drivers/graphics/bgad: Remove bgad
The only thing it does it changing the size of the region that the
graphics adapter sees as framebuffer. It doesn't actually tell vesad to
resize the framebuffer nor does it implement an actual full graphics
driver. For basic usage the bootloader setup framebuffer is sufficient
and for anything more advanced, virtio-gpu is a much better option that
we already have a full graphics driver for.
2026-04-14 21:18:43 +02:00
bjorn3 f80c51d2e1 drivers/audio: Minor code cleanups 2026-04-14 21:00:48 +02:00
bjorn3 317a0178b6 Introduce scheme-utils crate and HandleMap type
HandleMap deduplicates the id assignment for handles and unlike most
existing implementations handles overflow just fine.
2026-04-13 22:19:07 +02:00
Jeremy Soller 6deaaa71a7 Merge branch 'check-shadow-buf' into 'main'
drivers/graphics: Add API to check if shadow buffer present

See merge request redox-os/base!222
2026-04-12 06:49:51 -06:00
Wildan M c2f46bf383 drivers/graphics: Add API to check if shadow buffer present 2026-04-12 12:39:09 +07:00
bjorn3 8506ae5581 init: Move daemon spawning from daemon to init
In preparation for concurrent daemon spawning.
2026-04-10 22:14:24 +02:00
bjorn3 0915db5ec4 drivers/inputd: Remove unused open_display method 2026-04-05 13:09:02 +02:00
bjorn3 071ce1e98f drivers/graphics/ihdgd: Fix a couple of warnings 2026-04-05 13:06:06 +02:00
bjorn3 2572723da9 drivers/inputd: Remove unused fields from VtEvent 2026-04-05 13:05:51 +02:00
bjorn3 21d1db3538 drivers/graphics/driver-graphics: Extract activate_vt method 2026-04-05 12:56:30 +02:00
bjorn3 bf5286d25d drivers/graphics: Replace CpuBackedBuffer::sync_range with CpuBackedBuffer::sync_rect
This can be a bit more efficient by doing bounds checks before the main
loop.
2026-03-28 16:53:59 +01:00
Jeremy Soller 58459178b0 Merge branch 'gpu_drm36' into 'main'
drivers/graphics/ihdgd: Implement support for mapping memory to the GPU

See merge request redox-os/base!208
2026-03-27 20:40:22 -06:00
bjorn3 6473d987c3 drivers/graphics/ihdgd: List correct pipes for Alchemist 2026-03-28 00:02:38 +01:00
bjorn3 f152bbad23 drivers/graphics/ihdgd: Implement support for mapping memory to the GPU
This is done by adding entries to the global GTT page table. At startup
it only contains entries for a small chunk of memory reserved for the
GPU. This small chunk is rarely enough to contain all framebuffers we
need to allocate.
2026-03-27 22:45:26 +01:00
bjorn3 1f8d5a62ef drivers/common: PROT_NONE in Sgl::new for memory reservation 2026-03-27 22:22:12 +01:00
Jeremy Soller ed739009c2 Merge branch 'gpu_drm37' into 'main'
drivers/graphics/ihdgd: Introduce GpuBuffer

See merge request redox-os/base!206
2026-03-27 14:49:47 -06:00
auronandace 749d0bb5ef cargo fmt 2026-03-24 10:34:07 +00:00
auronandace a65d6c411c add documentation to public functions in common 2026-03-24 10:30:45 +00:00
Jeremy Soller e0a6c3b574 Merge branch 'thiserror' into 'main'
update thiserror and add to workspace

See merge request redox-os/base!199
2026-03-23 17:52:30 -06:00