No description
Find a file
Gurchetan Singh bbba9dde65 minigbm: stop faking the protected buffers
With real HW protection on the horizon, let's repurpose the
protection flag to mean that.

Currently, our protected buffer scheme on the Android side
allocates a dummy fd, which is sent to Chrome.  Chrome
associates that dummy fd with an unmappable shared memory
buffer.  In the entire process, minigbm doesn't really do
anything.

We prevent buffers allocated with the protected
flag from being mapped, but since it's a dummy fd it's not
really useful.

Chrome doesn't use the protected flag yet, but hopefully will
so in the future, but with real HW protection.

BUG=
TEST=

Change-Id: I57be26926539471f062ffeff33b523a3899c35f5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/2466958
Reviewed-by: David Stevens <stevensd@chromium.org>
Reviewed-by: Jeffrey Kardatzke <jkardatzke@google.com>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>
2020-10-14 04:32:55 +00:00
cros_gralloc minigbm: stop faking the protected buffers 2020-10-14 04:32:55 +00:00
external minigbm: virtgpu: add resource create blob function 2020-08-31 17:48:08 +00:00
.clang-format minigbm: add clang-format and presubmit hooks 2017-03-31 10:40:27 -07:00
amdgpu.c minigbm: reduce use of memset 2020-10-12 21:56:58 +00:00
Android.gralloc.mk minigbm: cros_gralloc: refactor for future HALs 2017-06-28 21:50:52 -07:00
Android.mk minigbm: remove vgem from minigbm (take 2) 2020-09-29 20:46:17 +00:00
common.mk minigbm: Remove (c) from copyright notice. 2016-12-17 19:33:05 -08:00
dri.c minigbm: reduce use of memset 2020-10-12 21:56:58 +00:00
dri.h minigbm: dri,amdgpu: Modifier support. 2020-03-10 15:39:10 +00:00
drv.c minigbm: reduce use of memset 2020-10-12 21:56:58 +00:00
drv.h virtgpu: improve blob support on ARCVM 2020-09-17 01:13:16 +00:00
drv_priv.h minigbm: stop faking the protected buffers 2020-10-14 04:32:55 +00:00
evdi.c minigbm: make drv_add_combinations return nothing 2017-11-16 13:52:02 -08:00
exynos.c minigbm: reduce use of memset 2020-10-12 21:56:58 +00:00
gbm.c minigbm: reduce use of memset 2020-10-12 21:56:58 +00:00
gbm.h minigbm: remove gbm_bo_map(..) discrepancy 2020-09-10 23:54:47 +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 minigbm: reduce use of memset 2020-10-12 21:56:58 +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 minigbm: stop faking the protected buffers 2020-10-14 04:32:55 +00:00
LICENSE minigbm: Add a LICENSE file 2017-04-21 21:57:32 -07:00
Makefile minigbm/msm: Add workaround for waffle 2020-08-10 15:50:39 +00:00
marvell.c minigbm: make drv_add_combinations return nothing 2017-11-16 13:52:02 -08:00
mediatek.c minigbm: stop faking the protected buffers 2020-10-14 04:32:55 +00:00
meson.c minigbm: run presubmit.sh 2020-08-25 05:23:28 +00:00
msm.c minigbm: stop faking the protected buffers 2020-10-14 04:32:55 +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 minigbm: virtgpu: add virgl_protocol.h, add external directory 2020-08-27 22:22:11 +00:00
radeon.c minigbm: make drv_add_combinations return nothing 2017-11-16 13:52:02 -08:00
rockchip.c minigbm: stop faking the protected buffers 2020-10-14 04:32:55 +00:00
synaptics.c minigbm: run presubmit.sh 2020-08-25 05:23:28 +00:00
tegra.c minigbm: reduce use of memset 2020-10-12 21:56:58 +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: reduce use of memset 2020-10-12 21:56:58 +00:00
virtio_gpu.c virtgpu: enable blobs for decoder output buffers 2020-10-13 11:21:04 +00:00