No description
Find a file
Bas Nieuwenhuizen 4daf12cff0 Revert "Revert "amdgpu: Set USWC for SCANOUT images.""
This reverts commit 91d36976aa84abde87f0f56d235d57042ca3ea81.i

The previous changes should fix the mapping performance with USWC
memory.

original change:
    amdgpu: Set USWC for SCANOUT images.

    This is necessary for scanout from GTT. Without it, the kernel will
    migrate it to the carveout. For large resolutions this would not be
    feasible due to small carveout sizes and hence it is important that
    we alloc scanout from GTT.

    The original patch was on top of
    4eebcea "amdgpu: make AMDGPU_GEM_CREATE_CPU_GTT_USWC flag default"
    which set USWC unconditionally, but has since been reverted. The
    main failure reason is being addressed in mesa-amd. This patch also
    still disables USWC if we can and the image will be read often on
    the CPU, to avoid staging textures during memory mapping.

TEST=Run android.hardware.camera2.cts.RecordingTest#testVideoPreviewSurfaceSharing on Grunt.
BUG=b:152378755

Change-Id: Ice0041de6676c057a2659986b962c2d54833e928
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/2246025
Tested-by: Bas Nieuwenhuizen <basni@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Queue: Bas Nieuwenhuizen <basni@chromium.org>
2020-06-25 18:41:30 +00:00
cros_gralloc minigbm: Fix cast to avoid null pointer arithmetic 2020-05-16 02:08:37 +00:00
.clang-format minigbm: add clang-format and presubmit hooks 2017-03-31 10:40:27 -07:00
amdgpu.c Revert "Revert "amdgpu: Set USWC for SCANOUT images."" 2020-06-25 18:41:30 +00:00
Android.gralloc.mk minigbm: cros_gralloc: refactor for future HALs 2017-06-28 21:50:52 -07:00
Android.mk minigbm: add synaptics gbm driver 2020-03-26 18:46:05 +00:00
common.mk minigbm: Remove (c) from copyright notice. 2016-12-17 19:33:05 -08:00
dri.c minigbm: dri: Set the plane sizes on bo creation. 2020-03-14 03:32:21 +00:00
dri.h minigbm: dri,amdgpu: Modifier support. 2020-03-10 15:39:10 +00:00
drv.c minigbm: add resource_info callback for virtio-gpu 2020-03-26 21:48:47 +00:00
drv.h minigbm: add resource_info callback for virtio-gpu 2020-03-26 21:48:47 +00:00
drv_priv.h minigbm: add resource_info callback for virtio-gpu 2020-03-26 21:48:47 +00:00
evdi.c minigbm: make drv_add_combinations return nothing 2017-11-16 13:52:02 -08:00
exynos.c minigbm: factor out metadata from struct bo 2019-09-24 17:23:42 +00:00
gbm.c minigbm: dri,amdgpu: Modifier support. 2020-03-10 15:39:10 +00:00
gbm.h Reland "minigbm: introduce test allocation" 2020-03-10 04:17:30 +00:00
gbm.pc minigbm: modify gbm.pc 2019-10-09 09:52:31 -07:00
gbm_helpers.c Add GBM_BO_USE_HW_VIDEO_ENCODER use flag 2019-08-16 12:40:30 -07:00
gbm_helpers.h minigbm: standardize naming of buffer creation flags 2017-10-02 17:27:17 -07:00
gbm_priv.h minigbm: add clang-format and presubmit hooks 2017-03-31 10:40:27 -07:00
helpers.c Fix YV12 dumb buffer plane sizes 2020-05-01 23:02:30 +00:00
helpers.h minigbm: remove KMS dependency 2020-02-18 22:37:26 +00:00
helpers_array.c minigbm: introduce drv_array 2017-11-09 00:38:12 -08:00
helpers_array.h minigbm: introduce drv_array 2017-11-09 00:38:12 -08:00
i915.c Modify NV12 allowed buffer usages for camera capture use case 2020-06-25 14:17:05 +00:00
LICENSE minigbm: Add a LICENSE file 2017-04-21 21:57:32 -07:00
Makefile minigbm: using dri extensions 2018-04-16 09:20:20 -07:00
marvell.c minigbm: make drv_add_combinations return nothing 2017-11-16 13:52:02 -08:00
mediatek.c Modify NV12 allowed buffer usages for camera capture use case 2020-06-25 14:17:05 +00:00
meson.c Add more scanout formats to meson driver 2020-03-25 16:55:20 +00:00
msm.c Modify NV12 allowed buffer usages for camera capture use case 2020-06-25 14:17:05 +00:00
nouveau.c minigbm: make drv_add_combinations return nothing 2017-11-16 13:52:02 -08:00
OWNERS Sort OWNERS and add ihf. 2020-04-21 08:10:50 +00:00
PRESUBMIT.cfg minigbm: fix typo in PRESUBMIT.cfg 2017-05-20 03:55:21 -07:00
presubmit.sh drm/virtgpu: add header 2020-03-26 21:48:45 +00:00
radeon.c minigbm: make drv_add_combinations return nothing 2017-11-16 13:52:02 -08:00
rockchip.c Modify NV12 allowed buffer usages for camera capture use case 2020-06-25 14:17:05 +00:00
synaptics.c minigbm: synaptics: add texture source format support 2020-04-27 15:05:09 +00:00
tegra.c minigbm: factor out metadata from struct bo 2019-09-24 17:23:42 +00:00
udl.c minigbm: make drv_add_combinations return nothing 2017-11-16 13:52:02 -08:00
util.h amdgpu: make libdir work on stock Linux 2020-01-21 20:43:23 +00:00
vc4.c minigbm: vc4: add create_with_modifiers function 2020-03-05 21:35:21 +00:00
vgem.c Revert "minigbm: remove vgem backend" 2019-09-19 14:47:01 +00:00
virgl_hw.h minigbm: virtio_gpu: use expanded bind flags 2020-06-08 03:30:24 +00:00
virtgpu_drm.h minigbm: add resource_info callback for virtio-gpu 2020-03-26 21:48:47 +00:00
virtio_gpu.c minigbm: virtio-gpu: Remove offset log message 2020-06-23 16:35:37 +00:00