drm/intel
Ashutosh Dixit cd3681976c intel: Keep libdrm working without pread/pwrite ioctls
The general direction at this time is to phase out pread/write ioctls and
not support them in future products. The ioctls have already been disabled
in i915 for future products. This means libdrm must handle the absence of
these ioctls. This patch does this by modifying drm_intel_gem_bo_subdata()
and drm_intel_gem_bo_get_subdata() to do the read/write using the
pread/pwrite ioctls first but when these ioctls are unavailable fall back
to doing the read/write using a combination of mmap and memcpy.

A similar solution was added to igt-gpu-tools in commit
ad5eb02eb3 ("lib/ioctl_wrappers: Keep IGT working without pread/pwrite
ioctls").

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
2021-03-22 15:22:31 -07:00
..
tests intel: properly escape sed pattern for tests 2020-04-27 15:53:58 +00:00
.gitignore intel: Add a regression test program for intel_decode.c. 2012-01-04 14:49:44 -08:00
Android.mk Revert "libdrm: intel/Android.mk: Filter libdrm_intel library requirements on x86/x86_64" 2018-03-28 17:08:32 +01:00
Makefile.sources intel: include i915_pciids.h in the tarball 2018-10-04 15:22:30 +01:00
i915_pciids.h intel: sync i915_pciids.h with kernel 2021-02-18 10:12:28 +00:00
intel-symbols.txt intel: convert to new symbols check 2019-11-11 22:57:14 +00:00
intel_aub.h intel/aub: Sync the AUB defines with mesa's 2013-06-10 17:51:17 +01:00
intel_bufmgr.c intel: annotate public functions 2018-09-19 22:46:44 -07:00
intel_bufmgr.h intel: Export a function to re-enable implicit synchronisation 2017-01-27 20:25:04 +00:00
intel_bufmgr_fake.c intel: add missing drm_public exports 2018-09-20 18:23:19 +01:00
intel_bufmgr_gem.c intel: Keep libdrm working without pread/pwrite ioctls 2021-03-22 15:22:31 -07:00
intel_bufmgr_priv.h fix various typos 2019-04-17 18:23:25 +01:00
intel_chipset.c intel: Add support for JSL 2021-03-02 14:52:38 +05:30
intel_chipset.h intel: add the TGL 12 PCI IDs and macros 2019-07-29 17:00:08 -07:00
intel_debug.h intel: shared header for shader debugging 2011-08-01 14:44:58 -07:00
intel_decode.c intel: annotate public functions 2018-09-19 22:46:44 -07:00
libdrm_intel.pc.in intel: Update package name and description in libdrm_intel.pc 2013-08-30 12:10:50 -04:00
meson.build meson: use library() instead of shared_library(). 2021-03-09 16:57:32 +08:00
mm.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
mm.h fix various typos 2019-04-17 18:23:25 +01:00
test_decode.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
uthash.h intel: Migrate handle/name lookups from linear lists to hashtables 2016-10-22 09:32:54 +01:00