drm/intel
Kenneth Graunke edf17dbdaa intel: Create a new drm_intel_bo offset64 field.
The existing 'offset' field is unfortunately typed as 'unsigned long',
which is unfortunately only 4 bytes with a 32-bit userspace.

Traditionally, the hardware has only supported 32-bit virtual addresses,
so even though the kernel uses a __u64, the value would always fit.

However, Broadwell supports 48-bit addressing.  So with a 64-bit kernel,
the card virtual address may be too large to fit in the 'offset' field.

Ideally, we would change the type of 'offset' to be a uint64_t---but
this would break the libdrm ABI.  Instead, we create a new 'offset64'
field to hold the full 64-bit value from the kernel, and store the
32-bit truncation in the existing 'offset' field, for compatibility.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2014-01-20 10:58:15 -08:00
..
tests intel-decode: Fix gen6 HIER_DEPTH_BUFFER decoding 2013-04-04 09:59:20 +02:00
.gitignore intel: Add a regression test program for intel_decode.c. 2012-01-04 14:49:44 -08:00
Makefile.am intel: fix build error 2012-07-20 10:28:46 -05: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: fix the wrong method check for bo_get_subdata 2011-07-20 10:46:45 -07:00
intel_bufmgr.h intel: Create a new drm_intel_bo offset64 field. 2014-01-20 10:58:15 -08:00
intel_bufmgr_fake.c intel: Shove the fake bufmgr subdata implementation into the fake bufmgr. 2010-11-01 06:54:58 -07:00
intel_bufmgr_gem.c intel: Create a new drm_intel_bo offset64 field. 2014-01-20 10:58:15 -08:00
intel_bufmgr_priv.h intel/context: Add drm_intel_context type 2012-06-27 09:57:16 -07:00
intel_chipset.h intel/bdw: Add broadwell chipset IDs 2013-11-07 17:07:25 -08:00
intel_debug.h intel: shared header for shader debugging 2011-08-01 14:44:58 -07:00
intel_decode.c intel/bdw: Add gen8 to the decode init 2013-11-07 17:09:07 -08:00
libdrm_intel.pc.in intel: Update package name and description in libdrm_intel.pc 2013-08-30 12:10:50 -04:00
mm.c Move libdrm/ up one level 2009-11-17 11:15:06 -05:00
mm.h Move libdrm/ up one level 2009-11-17 11:15:06 -05:00
test_decode.c intel/test_decode: Allow gen8 to be infered from the batch filenames 2013-12-13 18:18:53 +00:00