- 21 Apr, 2020 1 commit
-
-
Michel Dänzer authored
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: #10
-
- 18 Mar, 2020 1 commit
-
-
Michel Dänzer authored
This can happen when HW acceleration is disabled. Fixes xf86-video-ati#188 (ported from radeon commit 4d84cf438e7f1bebf0053035ef0292e9fed257d1) Reviewed-by:
Alex Deucher <alexander.deucher@amd.com>
-
- 16 Mar, 2020 11 commits
-
-
Michel Dänzer authored
There's no pixmap private in that case. The callers handle this gracefully. Reviewed-by:
Alex Deucher <alexander.deucher@amd.com>
-
Emil Velikov authored
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> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Acked-by:
Alex Deucher <alexander.deucher@amd.com>
-
Emil Velikov authored
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> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Acked-by:
Alex Deucher <alexander.deucher@amd.com>
-
Emil Velikov authored
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> Acked-by:
Alex Deucher <alexander.deucher@amd.com>
-
Emil Velikov authored
This way we can remove the PciInfo and Chipset from the AMDGPUInfoRec. Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Acked-by:
Alex Deucher <alexander.deucher@amd.com>
-
Emil Velikov authored
Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Acked-by:
Alex Deucher <alexander.deucher@amd.com>
-
Emil Velikov authored
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> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> (v3) Acked-by:
Alex Deucher <alexander.deucher@amd.com>
-
Emil Velikov authored
XNFasprintf cannot fail - aka busid cannot be NULL. Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Acked-by:
Alex Deucher <alexander.deucher@amd.com>
-
Emil Velikov authored
The func is a u, instead of a signed int. v2: Drop the precision - s/1u/u/ (Michel) Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Acked-by:
Alex Deucher <alexander.deucher@amd.com>
-
Emil Velikov authored
The former of these is a UMS artefact which gives incorrect and misleading promise whether KMS is supported. Not to mention that AMDGPU is a only KMS driver. In a similar fashion xf86LoadKernelModule() is a relic of the times, where platforms had no scheme of detecting and loading the appropriate kernel module. Notes: - Since there is no reply from Robert the code is still around, behind a FreeBSD guard. - If FreeBSD still needs this they should look and fix it ASAP, as: - wayland itself or compositors do _not_ load kernel modules - the kernel module should be loaded early to control the clocks/fan, hence temperature of the card v2: Keep the code as FreeBSD only, add 'Notes' in the commit message. Cc: Robert Millan <rmh@freebsd.org> Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Acked-by:
Alex Deucher <alexander.deucher@amd.com>
-
Emil Velikov authored
Use the device node path, if the server knows it. Note: ODEV_ATTRIB_PATH was introduced with xserver 1.13 - the minimum version required to build amdgpu. Yet it's defined in xf86platformBus.h. With the header included only when XSERVER_PLATFORM_BUS is set. Keep things obvious and use a ODEV_ATTRIB_PATH guard. v2: Rebase, add commit message Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Acked-by:
Alex Deucher <alexander.deucher@amd.com>
-
- 05 Feb, 2020 1 commit
-
-
Adam Jackson authored
Without the 'extern' this looks like a definition not just a declaration, in every file that includes the header. gcc 10 is stricter about this kind of multiple definition.
-
- 22 Nov, 2019 1 commit
-
-
Adam Jackson authored
xserver 19 expects the SourceValidate hook to always be filled in with something valid. For earlier servers it's harmless to simply fill this in with a do-nothing function instead of NULL. Reviewed-by:
Michel Dänzer <mdaenzer@redhat.com>
-
- 11 Oct, 2019 1 commit
-
-
Michel Dänzer authored
-
- 26 Sep, 2019 1 commit
-
-
Michel Dänzer authored
FindClientResourcesByType finds pixmaps from all screens, but trying to process ones from other screens here makes no sense and likely results in a crash or memory corruption. Fixes: c16ff42f ("Make all active CRTCs scan out an all-black framebuffer in LeaveVT") (Ported from radeon commit 2faaecc69b127248718e759c6c98c84d56dd1b6b)
-
- 18 Sep, 2019 1 commit
-
-
Michel Dänzer authored
Avoids a crash described in !43 (comment 223718)Reviewed-by:
Alex Deucher <alexander.deucher@amd.com>
-
- 07 Aug, 2019 3 commits
-
-
Michel Dänzer authored
The current non-DC kernel driver also handles flipping between different pitches correctly. Reviewed-by:
Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
-
Michel Dänzer authored
Current DC handles flipping between different pitches correctly. Reviewed-by:
Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
-
Michel Dänzer authored
The corresponding check in the xserver Present code was removed again, because flipping between different pitches can work in some cases. Reviewed-by:
Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
-
- 30 Jul, 2019 1 commit
-
-
Michel Dänzer authored
These are already used by xserver, Mesa and some other projects. Current Debian testing brings e.g. GCC 8.3.0 and clang 7.0.1.
-
- 05 Jul, 2019 1 commit
-
-
Michel Dänzer authored
Even with SW cursor, page flipping can be used while no X cursor is visible. Occurred to me in the context of xorg/xserver#828.
-
- 25 Jun, 2019 1 commit
-
-
Michel Dänzer authored
This can legitimately fail if the pixmap's storage is shared from another device, e.g. when using PRIME render offloading.
-
- 14 Jun, 2019 2 commits
-
-
Michel Dänzer authored
All callers were passing TRUE. Reviewed-and-tested-by:
Flora Cui <flora.cui@amd.com>
-
Michel Dänzer authored
This way, the MSC will continue ticking at the rate of (the last mode which was enabled for) that CRTC, instead of the client running unthrottled. Reviewed-and-tested-by:
Flora Cui <flora.cui@amd.com>
-
- 10 Jun, 2019 1 commit
-
-
fcui authored
otherwise client would wait for reply forever and desktop appears hang. Signed-off-by:
Flora Cui <flora.cui@amd.com> Acked-by:
Feifei Xu <Feifei.Xu@amd.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com>
-
- 30 Apr, 2019 1 commit
-
-
Michel Dänzer authored
Even if glamor_gbm_bo_from_pixmap / glamor_fd_from_pixmap themselves don't trigger any drawing, there could already be unflushed drawing to the pixmap whose storage we share with a client.
-
- 18 Apr, 2019 1 commit
-
-
Michel Dänzer authored
If get_fb_ptr returns NULL, try again after pixmap_get_handle, it should work then. Fixes spurious Present page flipping failures using "normal" pixmaps which aren't shared with direct rendering clients, e.g. with a compositor using the RENDER extension. Bugzilla: https://bugs.freedesktop.org/110417Reviewed-by:
Alex Deucher <alexander.deucher@amd.com>
-
- 19 Mar, 2019 1 commit
-
-
Michel Dänzer authored
-
- 07 Mar, 2019 1 commit
-
-
Dave Airlie authored
This adds tiling support to the driver, it retrieves the tile info from the kernel and translates it into the server format and exposes the property. (Ported from xserver commits 8fb8bbb3062f1a06621ab7030a9e89d5e8367b35 and 6abdb54a11dac4e8854ff94ecdcb90a14321ab31) Reviewed-by:
Alex Deucher <alexander.deucher@amd.com>
-
- 06 Mar, 2019 1 commit
-
-
Michel Dänzer authored
-
- 04 Mar, 2019 3 commits
-
-
Michel Dänzer authored
Current DC handles any changes of tiling parameters for flips. v2: * Just check all tiling bits if DRM minor < 31 or DC is disabled. Reviewed-by:
Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
-
Michel Dänzer authored
So that it can be used outside of drmmode_display.c as well. Reviewed-by:
Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
-
Michel Dänzer authored
This reverts commit 720a6100. We're going to make use of it now. Reviewed-by:
Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
-
- 01 Mar, 2019 2 commits
-
-
Michel Dänzer authored
This reverts commit 9c23076b. Some scenarios have come to light where this failed to ensure the docker image exists: * If the master branch of a forked repository is used for an MR which doesn't modify .gitlab-ci.yml, the docker-image job may not run. * If the docker-image job of the first pipeline in a forked repository is cancelled or fails for any reason, and .gitlab-ci.yml isn't modified for the next pipeline run.
-
Michel Dänzer authored
drm_queue_handler just puts the event on the signalled list; without calling drm_queue_handle_deferred, actual processing of the event may be delayed indefinitely, e.g. until another event arrives from the kernel. This could result in DRI2 clients hanging during DPMS off. Fixes: 739181c8 "Add amdgpu_drm_handle_event wrapper for drmHandleEvent" Reviewed-by:
Aaron Liu <aaron.liu@amd.com> Tested-by:
Aaron Liu <aaron.liu@amd.com>
-
- 27 Feb, 2019 1 commit
-
-
Michel Dänzer authored
If they don't, flipping will result in corrupted display. Test case: * Run Xorg at 1920x1080 with no window manager * glxgears -geometry 2048x1080 The Present extension code in xserver 1.21 will check for this. Tested-by:
Jax Lin <jax.lin@amd.com>
-
- 22 Feb, 2019 2 commits
-
-
Michel Dänzer authored
If the window is currently flipping. This might make a difference when the property gets disabled: Variable refresh will now be disabled immediately in that case, instead of only when the window can no longer use page flipping at all. Reviewed-by:
Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
-
Michel Dänzer authored
Instead of scanning for PropertyNotify events. Reasons: * Works even if no client listens to PropertyNotify events for the window. * No overhead on delivery of unrelated events, and no overhead at all if Option "VariableRefresh" is disabled. v2: * Use shorter variable name amdgpu_vrr_atom. * Call MakeAtom regardless of info->instance_id, for robustness vs VRR being enabled in some but not all AMDGPU screens. Reviewed-by:
Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
-