Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[xsrc/xorg]: xsrc/external/mit/xf86-video-amdgpu/dist initial import of xf86-...
details: https://anonhg.NetBSD.org/xsrc/rev/cd9b7c3e2724
branches: xorg
changeset: 10775:cd9b7c3e2724
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Aug 23 21:18:39 2021 +0000
description:
initial import of xf86-video-amdgpu-21.0.0
diffstat:
external/mit/xf86-video-amdgpu/dist/ChangeLog | 382 +
external/mit/xf86-video-amdgpu/dist/Makefile.in | 39 +-
external/mit/xf86-video-amdgpu/dist/README.md | 2 +-
external/mit/xf86-video-amdgpu/dist/aclocal.m4 | 175 +-
external/mit/xf86-video-amdgpu/dist/compile | 6 +-
external/mit/xf86-video-amdgpu/dist/conf/Makefile.in | 5 +-
external/mit/xf86-video-amdgpu/dist/config.guess | 128 +-
external/mit/xf86-video-amdgpu/dist/config.sub | 2663 +++++------
external/mit/xf86-video-amdgpu/dist/configure | 221 +-
external/mit/xf86-video-amdgpu/dist/configure.ac | 2 +-
external/mit/xf86-video-amdgpu/dist/depcomp | 2 +-
external/mit/xf86-video-amdgpu/dist/install-sh | 13 +-
external/mit/xf86-video-amdgpu/dist/ltmain.sh | 782 +--
external/mit/xf86-video-amdgpu/dist/m4/libtool.m4 | 74 +-
external/mit/xf86-video-amdgpu/dist/m4/ltoptions.m4 | 2 +-
external/mit/xf86-video-amdgpu/dist/m4/ltsugar.m4 | 2 +-
external/mit/xf86-video-amdgpu/dist/m4/ltversion.m4 | 12 +-
external/mit/xf86-video-amdgpu/dist/m4/lt~obsolete.m4 | 2 +-
external/mit/xf86-video-amdgpu/dist/man/Makefile.in | 5 +-
external/mit/xf86-video-amdgpu/dist/man/amdgpu.man | 2 +-
external/mit/xf86-video-amdgpu/dist/missing | 2 +-
external/mit/xf86-video-amdgpu/dist/src/Makefile.in | 5 +-
external/mit/xf86-video-amdgpu/dist/src/amdgpu_bo_helper.c | 10 +-
external/mit/xf86-video-amdgpu/dist/src/amdgpu_dri3.c | 4 +-
external/mit/xf86-video-amdgpu/dist/src/amdgpu_drv.h | 12 +-
external/mit/xf86-video-amdgpu/dist/src/amdgpu_glamor.c | 20 +-
external/mit/xf86-video-amdgpu/dist/src/amdgpu_kms.c | 158 +-
external/mit/xf86-video-amdgpu/dist/src/amdgpu_pixmap.h | 2 +-
external/mit/xf86-video-amdgpu/dist/src/amdgpu_probe.c | 258 +-
external/mit/xf86-video-amdgpu/dist/src/amdgpu_probe.h | 1 +
external/mit/xf86-video-amdgpu/dist/src/compat-api.h | 6 +
external/mit/xf86-video-amdgpu/dist/src/drmmode_display.c | 178 +-
external/mit/xf86-video-amdgpu/dist/src/drmmode_display.h | 32 +-
33 files changed, 2667 insertions(+), 2540 deletions(-)
diffs (truncated from 7862 to 300 lines):
diff -r 64ed78ca3442 -r cd9b7c3e2724 external/mit/xf86-video-amdgpu/dist/ChangeLog
--- a/external/mit/xf86-video-amdgpu/dist/ChangeLog Mon Aug 23 21:04:26 2021 +0000
+++ b/external/mit/xf86-video-amdgpu/dist/ChangeLog Mon Aug 23 21:18:39 2021 +0000
@@ -1,3 +1,385 @@
+commit 0d68a91dce88eeacd15bf1159ddc6200a01b1f2e
+Author: Alex Deucher <alexander.deucher%amd.com@localhost>
+Date: Thu Jul 29 13:20:16 2021 -0400
+
+ Bump version for the 21.0.0 release
+
+ Reviewed-by: Michel Dänzer <mdaenzer%redhat.com@localhost>
+ Signed-off-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit aedbf47ffc9459c3654b66d8abf6d4f8515c4815
+Author: Michel Dänzer <mdaenzer%redhat.com@localhost>
+Date: Mon Apr 26 15:00:54 2021 +0200
+
+ Include xf86drm.h instead of sarea.h
+
+ Fixes build against current xorg-x11-server-devel from Fedora
+ 34/35/rawhide.
+
+ Reviewed-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit 6ed48634443e15a45f48e3a4ddf91e46041ad38f
+Author: Michel Dänzer <mdaenzer%redhat.com@localhost>
+Date: Tue Feb 2 12:45:54 2021 +0100
+
+ Drop dri.h includes
+
+ Not needed anymore.
+
+ Reviewed-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit 6234a1b2652f469071c0c9b0d8b0f4a8079efe74
+Author: Likun Gao <Likun.Gao%amd.com@localhost>
+Date: Fri Oct 30 12:23:20 2020 +0800
+
+ Fix drmmode_crtc_scanout_create logic
+
+ If crtc scanout create successfully, the function of
+ drmmode_crtc_scanout_create should return TURE.
+ This will fix the regression caused by commit: "Make
+ drmmode_crtc_scanout_create/destroy static" (442efe73), as it will
+ result to some function (such as drmmode_set_scanout_pixmap) go to wrong
+ code path and result to NULL pointer.
+ Fixes: 442efe73 ("Make drmmode_crtc_scanout_create/destroy static")
+
+ Signed-off-by: Likun Gao <Likun.Gao%amd.com@localhost>
+ Reviewed-by: Michel Dänzer <mdaenzer%redhat.com@localhost>
+
+commit 6bd3dc6bd8af238868154f24a37ff13cc9aa2705
+Author: Michel Dänzer <mdaenzer%redhat.com@localhost>
+Date: Fri Aug 28 10:50:50 2020 +0200
+
+ Check for AMDGPU_CREATE_PIXMAP_SCANOUT in amdgpu_glamor_create_pixmap
+
+ We must not call glamor_create_pixmap or fbCreatePixmap when it's set.
+
+ Closes: https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/-/issues/21
+
+commit 2202cdfb0ac79591b6d3a51634e3b9f507970d55
+Author: Michel Dänzer <mdaenzer%redhat.com@localhost>
+Date: Fri Jul 10 11:24:02 2020 +0200
+
+ Replace a few more instances of "master"
+
+ Reviewed-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit 0d1d479ecca424120ae1b0f16f9009aec64e5164
+Author: Michel Dänzer <mdaenzer%redhat.com@localhost>
+Date: Fri Jul 10 11:13:21 2020 +0200
+
+ Fix build against ABI_VIDEODRV_VERSION 25.2
+
+ Use primary/secondary instead of master/slave where applicable.
+
+ Reviewed-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit 442efe73dd579dc36445a3b232937abbed9d2fbb
+Author: Michel Dänzer <mdaenzer%redhat.com@localhost>
+Date: Wed Apr 22 16:47:33 2020 +0200
+
+ Make drmmode_crtc_scanout_create/destroy static
+
+ And the latter inline.
+
+commit 99f3c82e940e35642757ccd6dc5267004e1122f6
+Author: Michel Dänzer <mdaenzer%redhat.com@localhost>
+Date: Tue Apr 21 19:02:41 2020 +0200
+
+ Drop struct drmmode_scanout altogether in favour of PixmapPtrs
+
+commit cfce4b3e6b05b1be14b7ce716dbfb9a15e7e21f4
+Author: Michel Dänzer <mdaenzer%redhat.com@localhost>
+Date: Tue Apr 21 18:48:06 2020 +0200
+
+ Drop bo/width/height members from struct drmmode_scanout
+
+ The pixmap is all we really need.
+
+commit 680b9a2976f9eb8010c8160c425c2194fb5429d1
+Author: Niclas Zeising <zeising%daemonic.se@localhost>
+Date: Wed Apr 15 10:34:32 2020 +0200
+
+ Fix return value check of drmIoctl()
+
+ When the drmModeSetCursor2() call was replaced with bare drmIoctl() call in
+ b344e155, a bug was introduced. With the use of drmModeSetCursor2(),
+ the return value from drmIoctl() (which calls ioctl()) were mangled, if
+ they were negative, they were replaced by -errno by a wrapper function
+ in xf86drMode.c in libdrm. After replacing drmModeSetCursor2() with the
+ call to drmIoctl(), this mangling no longer happens, and we need to
+ explicitly check if the call to drmIoctl() fails, which is indicated by
+ returning -1, and then why it failed, by checking errno.
+ If the error indicated by errno is EINVAL, then we can't use the
+ DRM_IOCTL_MODE_CURSOR2 ioctl(), and need to fall back to the
+ DRM_IOCTL_MODE_CURSOR ioctl().
+
+ This bug can manifest itself by an invisible hw cursor on systems where the
+ DRM_IOCTL_MODE_CURSOR2 is not implemented by the graphics driver.
+
+ Signed-off-by: Niclas Zeising <zeising%daemonic.se@localhost>
+
+commit e923642bae6077f71a8f251fe885342757737224
+Author: Peter Hutterer <peter.hutterer%who-t.net@localhost>
+Date: Fri May 8 11:14:32 2020 +1000
+
+ gitlab CI: update to use the latest CI templates
+
+ Repository was moved there from wayland/ci-templates, and let's update to the
+ most recent version..
+
+ No real functional changes, we're just making use of the various CI template
+ bits and bobs now, specifically the FDO_* variables and the
+ .fdo.container-build and .fdo.distribution-image templates.
+
+ Signed-off-by: Peter Hutterer <peter.hutterer%who-t.net@localhost>
+
+commit 0732f81a2c67354ddfa7a495bee6b0997c6ef244
+Author: Michel Dänzer <mdaenzer%redhat.com@localhost>
+Date: Tue Apr 21 10:54:47 2020 +0200
+
+ glamor: Make pixmap scanout compatible if its dimensions are
+
+ Namely, if its dimensions match those of the screen pixmap (enough that
+ it could stand in for it). When that's the case, the pixmap may end up
+ being scanned out directly due to page flipping via the Present
+ extension, e.g. with xfwm4 --vblank=xpresent .
+
+ v2:
+ * Use AMDGPU_CREATE_PIXMAP_SCANOUT instead of second-guessing in
+ amdgpu_alloc_pixmap_bo, fixes corruption when resizing from smaller
+ to larger virtual size via RandR.
+
+ Closes: https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/-/issues/10
+
+commit cb27a5b1120266e4baaa3eb784ff041977ded43f
+Author: Michel Dänzer <mdaenzer%redhat.com@localhost>
+Date: Fri Nov 29 16:37:32 2019 +0100
+
+ Handle NULL fb_ptr in pixmap_get_fb
+
+ This can happen when HW acceleration is disabled.
+
+ Fixes https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/issues/188
+ (ported from radeon commit 4d84cf438e7f1bebf0053035ef0292e9fed257d1)
+ Reviewed-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit e2cd67abb4aa8b5c942b46dd66dac091b9fad7ad
+Author: Michel Dänzer <mdaenzer%redhat.com@localhost>
+Date: Mon Mar 16 17:43:54 2020 +0100
+
+ Bail from amdgpu_pixmap_get_handle with ShadowFB
+
+ There's no pixmap private in that case. The callers handle this
+ gracefully.
+
+ Reviewed-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit 42a3148ae14c6fd0d2e2e9013971188ca721d8f8
+Author: Emil Velikov <emil.velikov%collabora.com@localhost>
+Date: Sat Dec 10 18:53:37 2016 +0000
+
+ Factor out common code to amdgpu_probe()
+
+ Keep the distinct pci/platform screen management in the separate probe
+ entry point and fold the rest into a single function.
+
+ v2: Rebase
+
+ Signed-off-by: Emil Velikov <emil.velikov%collabora.com@localhost>
+ Reviewed-by: Michel Dänzer <michel.daenzer%amd.com@localhost>
+ Acked-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit eeaaf370854b63966f0b5adbd00d2e6809b773c1
+Author: Emil Velikov <emil.velikov%collabora.com@localhost>
+Date: Sat Mar 31 15:00:16 2018 +0100
+
+ Introduce amdgpu_device_setup helper
+
+ It folds the device specifics (open fd, device init) into a single
+ place.
+
+ v2:
+ - Rebase
+ - Pass pAMDGPUEnt to amdgpu_device_setup (Michel)
+
+ Signed-off-by: Emil Velikov <emil.velikov%collabora.com@localhost>
+ Reviewed-by: Michel Dänzer <michel.daenzer%amd.com@localhost>
+ Acked-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit 1c9742e304f4d198628cdc9487049cde472c7285
+Author: Emil Velikov <emil.velikov%collabora.com@localhost>
+Date: Sat Mar 31 14:27:52 2018 +0100
+
+ Kill off drmOpen/Close/drmSetInterfaceVersion in favour of drmDevices
+
+ The former has very subtle semantics (see the implementation in libdrm
+ for details) which were required in the UMS days.
+
+ With drmDevices around, we have enough information to build our
+ heuristics and avoid drmOpen all together.
+
+ In the odd case drmGetDevices2() can take a few extra cycles, so use a
+ reasonably sized local array.
+
+ v2:
+ - Rebase
+ - Rework now that amdgpu_kernel_mode_enabled() is staying
+ - Keep amdgpu_bus_id()
+ - Use local drmDevice array.
+
+ v3:
+ - Correct error handling (Michel)
+ - Preserve the "am I master" check (Michel)
+ - Always initialise the fd variable
+
+ v4:
+ - Don't print "-1" on drmGetDevices2 failure (Michel)
+ - Use uppercase DRM (Michel)
+
+ v5:
+ - Rebase on top of amdgpu_bus_id() rework
+ - Pass both pci and platform dev to amdgpu_kernel_open_fd() (Michel)
+ - Indent local_drmIsMaster() with tabs (Michel)
+
+ Signed-off-by: Emil Velikov <emil.velikov%collabora.com@localhost>
+ Acked-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit 2dd730784e632056c75a0fd62b33206b5fc01602
+Author: Emil Velikov <emil.velikov%collabora.com@localhost>
+Date: Tue Jul 16 22:04:57 2019 +0100
+
+ Use the device_id straight from gpu_info
+
+ This way we can remove the PciInfo and Chipset from the AMDGPUInfoRec.
+
+ Signed-off-by: Emil Velikov <emil.velikov%collabora.com@localhost>
+ Reviewed-by: Michel Dänzer <michel.daenzer%amd.com@localhost>
+ Acked-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit 655b3c55b9a6233091d4dc5d2e80a0373aa3e2d6
+Author: Emil Velikov <emil.velikov%collabora.com@localhost>
+Date: Wed Jul 17 00:04:39 2019 +0100
+
+ Reuse the existing busid string
+
+ Signed-off-by: Emil Velikov <emil.velikov%collabora.com@localhost>
+ Reviewed-by: Michel Dänzer <michel.daenzer%amd.com@localhost>
+ Acked-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit b357a8474074d911d1c03572d4d9db3ee420633a
+Author: Emil Velikov <emil.velikov%collabora.com@localhost>
+Date: Wed Jul 17 00:01:51 2019 +0100
+
+ Store the busid string in AMDGPUEnt
+
+ This way we can reuse it, instead of redoing it later on.
+
+ v2: Pass the AMDGPUEnt as argument.
+ v3: free() the string at AMDGPUFreeRec (Michel)
+ v4: Inline amdgpu_bus_id, move at top of mdgpu_kernel_open_fd (Michel)
+
+ Signed-off-by: Emil Velikov <emil.velikov%collabora.com@localhost>
+ Reviewed-by: Michel Dänzer <michel.daenzer%amd.com@localhost> (v3)
+ Acked-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit 2c0c154a838060eb683599faf9cbfa3e66dd42c8
+Author: Emil Velikov <emil.velikov%collabora.com@localhost>
+Date: Tue Jul 16 23:39:30 2019 +0100
+
+ Remove NULL check after a "cannot fail" function
+
+ XNFasprintf cannot fail - aka busid cannot be NULL.
+
+ Signed-off-by: Emil Velikov <emil.velikov%collabora.com@localhost>
+ Reviewed-by: Michel Dänzer <michel.daenzer%amd.com@localhost>
+ Acked-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
Home |
Main Index |
Thread Index |
Old Index