Commit Graph

2827 Commits

Author SHA1 Message Date
bjorn3 7f8ddd7a7e drivers/graphics: Add helpers for updating the connector state 2026-03-13 22:15:59 +01:00
bjorn3 c088e48948 drivers/graphics: Move DrmConnector and DrmEncoder to a separate module 2026-03-13 21:57:44 +01:00
bjorn3 37264a9e96 drivers/graphics: Slightly improve accuracy of connector info 2026-03-13 21:42:36 +01:00
Jeremy Soller efc2d688e3 Merge branch 'gpu_drm17' into 'main'
drivers/graphics: Unify buffer types between regular and cursor planes

See merge request redox-os/base!160
2026-03-13 14:09:35 -06:00
bjorn3 c6e479a622 drivers/graphics: Inline single call update_whole_screen method 2026-03-13 20:50:50 +01:00
bjorn3 5285281ff2 drivers/graphics: Slightly simplify add_connector 2026-03-13 20:31:47 +01:00
bjorn3 45d26b5374 drivers/graphics: Remove unnecessary object mutable accesses 2026-03-13 20:27:02 +01:00
bjorn3 d329c5b24a drivers/graphics: Allow disabling display output by setting no framebuffer 2026-03-13 19:42:17 +01:00
bjorn3 c8c5a3e240 drivers/graphics: Remove separate cursor framebuffer create/map methods 2026-03-13 19:42:17 +01:00
bjorn3 4317189d7b drivers/graphics: Unify buffer types between regular and cursor planes
Also correct the cursor size for virtio-gpu.
2026-03-13 19:42:17 +01:00
Jeremy Soller 2c8bc9bbf6 Update dependencies 2026-03-13 09:02:10 -06:00
Jeremy Soller 683b8fb74e Merge branch 'allow-skip' into 'main'
init: Allow skipping services, print service name in debug

See merge request redox-os/base!155
2026-03-12 18:46:59 -06:00
Jeremy Soller 93249717e8 Merge branch 'gpu_drm16' into 'main'
drivers/graphics: Mostly remove support for the v1 graphics api

See merge request redox-os/base!159
2026-03-12 17:00:29 -06:00
bjorn3 0d0fbd1935 drivers/graphics: Mostly remove support for the v1 graphics api
Orbclient still needs opening + fpath support for the v1 graphics api.
2026-03-12 21:40:40 +01:00
Jeremy Soller 05cf6f6814 Merge branch 'support_detecting_hwcursor' into 'main'
drivers/graphics: Support detecting hardware cursors for DRM

See merge request redox-os/base!158
2026-03-12 14:13:48 -06:00
Jeremy Soller 75b14b0891 Merge branch 'swcursor_fix_part1' into 'main'
driver/graphics: Avoid unconditionally enabling CursorPlaneHotspot

See merge request redox-os/base!157
2026-03-12 14:13:37 -06:00
bjorn3 60754b6fde drivers/graphics: Support detecting hardware cursors for DRM 2026-03-12 20:52:44 +01:00
bjorn3 d94edccf9a driver/graphics: Avoid unconditionally enabling CursorPlaneHotspot
This is necessary to fix software cursor support in Orbital.
2026-03-12 20:31:16 +01:00
Jeremy Soller 39cce0fd11 Merge branch 'orbclient_crates_io' into 'main'
Use orbclient from crates.io

See merge request redox-os/base!156
2026-03-12 12:26:05 -06:00
bjorn3 2c69d5f45f Use orbclient from crates.io 2026-03-12 19:22:09 +01:00
Wildan M 2784c98ddd init: Allow skipping services, print service name in debug 2026-03-12 21:20:04 +07:00
Jeremy Soller 725bf9f6f1 Merge branch 'gpu_drm15' into 'main'
drivers/graphics: Add framebuffer indirection to the DRM interface

See merge request redox-os/base!154
2026-03-11 18:05:43 -06:00
Jeremy Soller 26470d176e Merge branch 'fix_warnings' into 'main'
Fix a bunch of warnings

See merge request redox-os/base!153
2026-03-11 16:51:59 -06:00
bjorn3 f01d0fe8a1 drivers/graphics: Introduce UPDATE_CURSOR ioctl
Orbital needs this as we don't implement cursor planes yet.
2026-03-11 23:17:38 +01:00
bjorn3 511c6080ca drivers/graphics: Add framebuffer indirection to the DRM interface
This matches the Linux DRM interface. With this I believe the only
divergence from the Linux DRM interface that would be a breaking change
to the in-tree users of the graphics api to change to the proper
interface is the use of the UPDATE_PLANE ioctl in the place of proper
modesetting interface. It should be possible to support this in
parallel to UPDATE_PLANE, so updating Orbital to the DRM interface
should now be possible. Orbital can be updated to the proper modesetting
interface once it is implemented.
2026-03-11 22:49:19 +01:00
bjorn3 9795abb0ea Fix a bunch of warnings 2026-03-11 22:05:44 +01:00
Jeremy Soller 49ef369fed Merge branch 'ps2d-self-test' into 'main'
ps2d: disable keyboard before running self test

See merge request redox-os/base!152
2026-03-11 07:18:08 -06:00
Jeremy Soller 3ea1fbf5f7 Merge branch 'no-panic-aml' into 'main'
acpid: Do not panic on AML failure

See merge request redox-os/base!151
2026-03-11 07:16:28 -06:00
Connor-GH 15790b1e1a ps2d: disable keyboard before running self test
Beforehand, if you spammed 'enter' (or any key) upon startup, your self
test would fail with 1C or 9C (the scancodes for pressing and releasing
enter respectively). We now disable the keyboard earlier, and this fixes
the issue.
2026-03-10 14:19:11 -05:00
Wildan M 89855606c2 acpid: Do not panic on AML failure 2026-03-10 23:38:47 +07:00
Jeremy Soller 6393a33380 Merge branch 'shm_single_segment' into 'main'
ipcd: Use a single segment + mremap for shm

See merge request redox-os/base!150
2026-03-09 13:11:27 -06:00
bjorn3 53327b0969 ipcd: Use a single segment + mremap for shm
This way mmap fully functions even in the presence of growing. Fixes a
crash of Wayland applications when resizing the SHM pool.
2026-03-09 20:06:54 +01:00
Jeremy Soller 5fdc723c38 ps2d: limit mouse resets to 10 2026-03-08 20:23:09 -06:00
Jeremy Soller 683771cc3e Merge branch 'shm_fixes' into 'main'
Couple of shm fixes for Wayland

See merge request redox-os/base!149
2026-03-08 14:45:29 -06:00
bjorn3 bd6bc56d4d ipcd: Support ftruncate in shm 2026-03-08 21:42:50 +01:00
bjorn3 db4292da49 ipcd: Implement fsize for shm
To fix seek support.
2026-03-08 21:35:52 +01:00
Jeremy Soller 3338fc7708 Merge branch 'namespace_unmount' into 'main'
Support removing schemes from a namespace

See merge request redox-os/base!148
2026-03-07 14:38:40 -07:00
bjorn3 331189d846 Rustfmt 2026-03-07 22:12:56 +01:00
bjorn3 44614a0b3f Support removing schemes from a namespace
This can be done using rmdir /scheme/my_scheme. Scheme implementations
do not yet exit when all fds are closed, but you can now kill the
service and restart it after you removed its scheme.
2026-03-07 22:07:34 +01:00
Jeremy Soller be93450c91 Merge branch 'move_display_handle_create' into 'main'
Move DisplayHandle creation into GraphicsScheme::new

See merge request redox-os/base!147
2026-03-07 10:20:14 -07:00
bjorn3 48c652f5d1 Move DisplayHandle creation into GraphicsScheme::new 2026-03-07 17:49:45 +01:00
Jeremy Soller 70fe985736 Merge branch 'no_nulld' into 'main'
zerod: Don't require a copy named nulld for /dev/null

See merge request redox-os/base!146
2026-03-07 09:44:30 -07:00
bjorn3 0380521186 zerod: Don't require a copy named nulld for /dev/null
This saves 600kb on the initfs size.
2026-03-07 17:40:55 +01:00
Jeremy Soller 59cc1c30b2 Merge branch 'tidier_bootstrap_mappings' into 'main'
Tidier bootstrap memory mappings

See merge request redox-os/base!145
2026-03-07 06:32:10 -07:00
bjorn3 3a406b75e2 bootstrap: Only keep the initfs data mapped in the initfs process 2026-03-07 12:46:45 +01:00
bjorn3 ecaa58d5e5 bootstrap: Remove outdated fixme
The initfs data is already mapped as read-only by the "rest of memory"
mprotect.
2026-03-07 12:46:45 +01:00
bjorn3 a8f3e83e9d bootstrap: Map .data.rel.ro, GOT and PLT as read-only 2026-03-07 12:46:45 +01:00
Jeremy Soller 0216268ee3 Merge branch 'graphics_cleanup' into 'main'
Couple of cleanups to the graphic subsystem

See merge request redox-os/base!144
2026-03-06 14:56:37 -07:00
Jeremy Soller f6f29d8d93 Merge branch 'remove_unnecessary_patches' into 'main'
Remove no longer necessary patches

See merge request redox-os/base!143
2026-03-06 14:56:14 -07:00
bjorn3 3c79908b5a drivers/graphics: Directly pass scheme name to DisplayHandle::new 2026-03-06 22:55:50 +01:00