History log of /openbsd-src/sys/dev/pci/drm/drm_gem.c (Results 1 – 24 of 24)
Revision Date Author Comments
# f46a341e 15-Dec-2024 mpi <mpi@openbsd.org>

Return errno values rather than dying VM_PAGER_* in the pgo_fault() interfaces.

This doesn't introduce any value change. All errors are converted to EACCES
even if many could use EIO.

ok tb@, jsg@


# f005ef32 16-Jan-2024 jsg <jsg@openbsd.org>

update drm to linux 6.6.12

Thanks to the OpenBSD Foundation for sponsoring this work.


# 456c96b7 28-Mar-2023 jsg <jsg@openbsd.org>

drm/msm/gem: Prevent blocking within shrinker loop

From Dmitry Osipenko
96a5aee27439e56fca69628c3f87a042e7026b3e in linux-6.1.y/6.1.21
9630b585b607bd26f505d34620b14d75b9a5af7d in mainline linux


# 1bb76ff1 01-Jan-2023 jsg <jsg@openbsd.org>

update drm to linux 6.1.2

new hardware support includes

AMD
Raphael, Ryzen 7000 desktop, gfx1036/GC 10.3.6
Mendocino, Ryzen & Athlon 7020 Series mobile APU, gfx1037/GC 10.3.7
Navi 31, gfx1100 dGPU

update drm to linux 6.1.2

new hardware support includes

AMD
Raphael, Ryzen 7000 desktop, gfx1036/GC 10.3.6
Mendocino, Ryzen & Athlon 7020 Series mobile APU, gfx1037/GC 10.3.7
Navi 31, gfx1100 dGPU, GC 11.0.0, Radeon RX 7900 XT/XTX
gfx1101 dGPU
gfx1102 dGPU
gfx1103 APU

Thanks to the OpenBSD Foundation for sponsoring this work.

show more ...


# 9524f5bd 16-Sep-2022 jsg <jsg@openbsd.org>

drm/gem: Fix GEM handle release errors

From Jeffy Chen
1f574fbe9c2b831a8c3156260842a7abd280d59f in linux 5.15.y/5.15.68
ea2aa97ca37a9044ade001aef71dbc06318e8d44 in mainline linux


# 8534e9cf 18-Aug-2022 jsg <jsg@openbsd.org>

drm/gem: Properly annotate WW context on drm_gem_lock_reservations() error

From Dmitry Osipenko
da2a1aa058acd7eb2cccd9de74df0809cbe4f1f8 in linux 5.15.y/5.15.61
2939deac1fa220bc82b89235f146df1d9b52e

drm/gem: Properly annotate WW context on drm_gem_lock_reservations() error

From Dmitry Osipenko
da2a1aa058acd7eb2cccd9de74df0809cbe4f1f8 in linux 5.15.y/5.15.61
2939deac1fa220bc82b89235f146df1d9b52e876 in mainline linux

show more ...


# 5ca02815 14-Jan-2022 jsg <jsg@openbsd.org>

update drm to linux 5.15.14

new hardware support includes

Intel
ehl/Elkhart Lake (embedded)
jsl/Jasper Lake (atom)
rkl/Rocket Lake (desktop)

AMD
van gogh APU (gfx1033)
yellow carp / rembrandt AP

update drm to linux 5.15.14

new hardware support includes

Intel
ehl/Elkhart Lake (embedded)
jsl/Jasper Lake (atom)
rkl/Rocket Lake (desktop)

AMD
van gogh APU (gfx1033)
yellow carp / rembrandt APU (gfx1035?)
Ryzen 6000 APU
navy flounder / navi 22 (gfx1031)
RX 6700, RX 6700 XT, RX 6700M, RX 6800M, RX 6850M XT
dimgrey cavefish / navi 23 (gfx1032)
Pro W6600, Pro W6600M, RX 6600, RX 6600 XT, RX 6600M,
RX 6600S, RX 6650M, RX 6650M XT, RX 6700S, RX 6800S
beige goby / navi 24 (gfx1034)
RX 6500 XT, RX 6400, RX 6500M, RX 6300M

Thanks to the OpenBSD Foundation for sponsoring this work
niklas@ for helping with ttm and amdgpu and patrick@ for adapting
rockchip drm.

show more ...


# 5543f5ef 12-Oct-2021 kettenis <kettenis@openbsd.org>

Remove misleading uvm reference counting that isn't actually used.
Make sure uvm_obj_init() is only called once. Call uvm_obj_destroy()
when we release the GEM object that wraps an uvm object for wh

Remove misleading uvm reference counting that isn't actually used.
Make sure uvm_obj_init() is only called once. Call uvm_obj_destroy()
when we release the GEM object that wraps an uvm object for which we
called uvm_obj_init().

ok mpi@, jsg@

show more ...


# ad8b1aaf 07-Jul-2021 jsg <jsg@openbsd.org>

update drm to linux 5.10.47

hardware support changes include
inteldrm: better support for tiger lake
amdgpu: support for navi12, navi21 "sienna_cichlid", arcturus
amdgpu: support for cezanne "green

update drm to linux 5.10.47

hardware support changes include
inteldrm: better support for tiger lake
amdgpu: support for navi12, navi21 "sienna_cichlid", arcturus
amdgpu: support for cezanne "green sardine" ryzen 5000 apu

Thanks to the OpenBSD Foundation for sponsoring this work,
patrick@ for helping adapt rockchip drm, kettenis@ and mpi@
for uvm discussions and various testers.

show more ...


# da3d0110 16-Jun-2021 mpi <mpi@openbsd.org>

Change the prefix of UVM object functions to match NetBSD's.

For example uvm_objinit() becomes uvm_obj_init(). Reduce differences
between the trees and help porting new functions needed for UVM obj

Change the prefix of UVM object functions to match NetBSD's.

For example uvm_objinit() becomes uvm_obj_init(). Reduce differences
between the trees and help porting new functions needed for UVM object
locking.

No functionnal change.

show more ...


# ec3489ee 06-Nov-2020 mpi <mpi@openbsd.org>

Remove unused `anon' argument from uvmfault_unlockall().

It won't be used when amap and anon locking will be introduced.

This "fixes" passing a unrelated/uninitialized pointer in an error path
in c

Remove unused `anon' argument from uvmfault_unlockall().

It won't be used when amap and anon locking will be introduced.

This "fixes" passing a unrelated/uninitialized pointer in an error path
in case of memory shortage.

ok kettenis@

show more ...


# 9f7b7ef0 21-Oct-2020 mpi <mpi@openbsd.org>

Constify and use C99 initializer for "struct uvm_pagerops".

While here put some KERNEL_ASSERT_LOCKED() in the functions called from
the page fault handler. The removal of locking of `uobj' will nee

Constify and use C99 initializer for "struct uvm_pagerops".

While here put some KERNEL_ASSERT_LOCKED() in the functions called from
the page fault handler. The removal of locking of `uobj' will need to be
revisited and these are good indicator that something is missing and that
many comments are lying.

ok kettenis

show more ...


# 0608e4cb 21-Oct-2020 jsg <jsg@openbsd.org>

change drm_vma function arguments to take struct drm_file *

reduces the diff to linux 5.7.y
ok kettenis@


# 4363dc0f 22-Aug-2020 jsg <jsg@openbsd.org>

drm/gem: Fix a leak in drm_gem_objects_lookup()

From Dan Carpenter
04d83a826f68db88a1059ee8424f44739149b753 in linux 5.7.y/5.7.16
ec0bb482de0ad5e4aba2a4537ea53eaeb77d11a6 in mainline linux


# e2f5ef80 05-Aug-2020 jsg <jsg@openbsd.org>

drm: hold gem reference until object is no longer accessed

From Steve Cohen
5aa4eb5a6d915cf00bf104ddd76e1adbc3dabdc4 in linux 5.7.y/5.7.13
8490d6a7e0a0a6fab5c2d82d57a3937306660864 in mainline linux


# c349dbc7 08-Jun-2020 jsg <jsg@openbsd.org>

update drm to linux 5.7

adds kernel support for
amdgpu: vega20, raven2, renoir, navi10, navi14
inteldrm: icelake, tigerlake

Thanks to the OpenBSD Foundation for sponsoring this work, kettenis@ for

update drm to linux 5.7

adds kernel support for
amdgpu: vega20, raven2, renoir, navi10, navi14
inteldrm: icelake, tigerlake

Thanks to the OpenBSD Foundation for sponsoring this work, kettenis@ for
helping, patrick@ for helping adapt rockchip drm and many developers for
testing.

show more ...


# 199892e7 30-Dec-2019 jsg <jsg@openbsd.org>

convert infinite msleep(9) to msleep_nsec(9)

ok mpi@


# 7f4dd379 14-Apr-2019 jsg <jsg@openbsd.org>

Update shared drm code, inteldrm(4) and radeondrm(4) from linux 4.4 to
linux 4.19.34.

Adds support for more Intel hardware:
Broxton/Apollo Lake (was is_preliminary in 4.4)
Amber Lake (another Kaby L

Update shared drm code, inteldrm(4) and radeondrm(4) from linux 4.4 to
linux 4.19.34.

Adds support for more Intel hardware:
Broxton/Apollo Lake (was is_preliminary in 4.4)
Amber Lake (another Kaby Lake refresh)
Gemini Lake
Coffee Lake
Whiskey Lake
Cannon Lake (though no hardware with Intel graphics ever shipped)
Ice Lake (alpha support, hardware not released)

This does not add support for new radeon hardware on the AMD side as
newer radeons have a different kernel driver (amdgpu).

Thanks to the OpenBSD Foundation for sponsoring this work, kettenis@ for
helping and a bunch of other developers for testing.

show more ...


# a9ee023b 25-Jun-2018 kettenis <kettenis@openbsd.org>

Implement DRI3/prime support. This allows graphics buffers to be passed
between processes using file descriptors. This provides an alternative to
eporting them with guesable 32-bit IDs. This imple

Implement DRI3/prime support. This allows graphics buffers to be passed
between processes using file descriptors. This provides an alternative to
eporting them with guesable 32-bit IDs. This implementation does not (yet)
allow sharing of graphics buffers between GPUs.

ok mpi@, visa@

show more ...


# 9e4f2651 03-Sep-2017 jsg <jsg@openbsd.org>

drm: Release driver tracking before making the object available again

From Chris Wilson
2a9d7664ffb2c223c488058ee6bee61512db9396 in linux-4.4.y/4.4.85
fe4600a548f2763dec91b3b27a1245c370ceee2a in mai

drm: Release driver tracking before making the object available again

From Chris Wilson
2a9d7664ffb2c223c488058ee6bee61512db9396 in linux-4.4.y/4.4.85
fe4600a548f2763dec91b3b27a1245c370ceee2a in mainline linux

show more ...


# e0b53cee 01-Jul-2017 kettenis <kettenis@openbsd.org>

Update inteldrm(4) to code based on Linux 4.4.70. This brings us support for
Skylake and Cherryview and better support for Broadwell and Valleyview. Also
adds MST support. Some tweaks to the TTM c

Update inteldrm(4) to code based on Linux 4.4.70. This brings us support for
Skylake and Cherryview and better support for Broadwell and Valleyview. Also
adds MST support. Some tweaks to the TTM code and radeondrm(4) to keep it
working with the updated generic DRM code needed for inteldrm(4).

Tested by many.

show more ...


# 6aabe252 05-Apr-2016 kettenis <kettenis@openbsd.org>

Add $OpenBSD$ markers.


# 4f6cc88c 05-Apr-2016 kettenis <kettenis@openbsd.org>

Now that we the "idr" API, we can get rid of a lot of

#ifdef __linux__
...
#else
...
#endif

code in the generic drm GEM code.


# 89859f0f 05-Apr-2016 kettenis <kettenis@openbsd.org>

Split out the generic GEM code (like Linux did) and switch it over to
the vma offset manager. This brings us a little bit more isolation between
applications as GEM buffers are now tied to a specifi

Split out the generic GEM code (like Linux did) and switch it over to
the vma offset manager. This brings us a little bit more isolation between
applications as GEM buffers are now tied to a specific /dev/drmX clone.

ok jsg@

show more ...