Skip to contentSkip to conversation

drm/fourcc: 64 #defines need ULL postfix

PATCH In review Daniel Vetter 2 participants 3 messages Mar 11, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 drm/fourcc: 64 #defines need ULL postfix

I have no idea about the exact rules, but this angered Dave's 32bit rhel gcc.

---
 include/uapi/drm/drm_fourcc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/drm/drm_fourcc.h +1 -1
index e6efac23c7ea..07735822a28f 100644
@@ -151,7 +151,7 @@
 /* add more to the end as needed */
 
 #define fourcc_mod_code(vendor, val) \
-	((((u64)DRM_FORMAT_MOD_VENDOR_## vendor) << 56) | (val & 0x00ffffffffffffffL))
+	((((u64)DRM_FORMAT_MOD_VENDOR_## vendor) << 56) | (val & 0x00ffffffffffffffULL))
 
 /*
  * Format Modifier tokens:
Signature · 6 lines
2.1.4

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

PATCH 2/2 drm/i915: Add ULL postfix to VGT_MAGIC constant

Without this Dave's 32bit rhel compiler is annoyed. Don't ask me about the exact rules for this stuff though, but this should be safe.

---
 drivers/gpu/drm/i915/i915_vgpu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_vgpu.h +1 -1
index 0db9ccf32605..97a88b5f6a26 100644
@@ -32,7 +32,7 @@
  * The following structure pages are defined in GEN MMIO space
  * for virtualization. (One page for now)
  */
-#define VGT_MAGIC         0x4776544776544776	/* 'vGTvGTvG' */
+#define VGT_MAGIC         0x4776544776544776ULL	/* 'vGTvGTvG' */
 #define VGT_VERSION_MAJOR 1
 #define VGT_VERSION_MINOR 0
 
Signature · 6 lines
2.1.4

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Tested-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] drm/i915: Add ULL postfix to VGT_MAGIC constant

Task id: 5931 -------------------------------------Summary-------------------------------------
Platform Delta drm-intel-nightly Series Applied
PNV -7 281/281 274/281
ILK 308/308 308/308
SNB -1 284/284 283/284

IVB                                  375/375              375/375
BYT                                  294/294              294/294

HSW -2 384/384 382/384
BDW 315/315 315/315
-------------------------------------Detailed-------------------------------------
Platform Test drm-intel-nightly Series Applied

 PNV  igt_gem_userptr_blits_coherency-sync      CRASH(2)PASS(2)      CRASH(2)
*PNV  igt_gem_userptr_blits_coherency-unsync      CRASH(1)PASS(2)      CRASH(1)NRUN(1)
 PNV  igt_gen3_render_linear_blits      FAIL(1)PASS(1)      FAIL(2)
 PNV  igt_gen3_render_mixed_blits      FAIL(1)PASS(1)      FAIL(2)
 PNV  igt_gen3_render_tiledx_blits      FAIL(2)PASS(1)      FAIL(2)
 PNV  igt_gen3_render_tiledy_blits      FAIL(2)PASS(1)      FAIL(2)
 PNV  igt_gem_tiled_pread_pwrite      FAIL(1)PASS(1)      FAIL(1)PASS(1)
*SNB  igt_gem_largeobject      PASS(2)      DMESG_WARN(1)PASS(1)
*HSW  igt_drv_debugfs_reader      PASS(2)      DMESG_WARN(1)PASS(1)
*HSW  igt_drv_hangman_error-state-sysfs-entry      PASS(2)      TIMEOUT(1)PASS(1)

Note: You need to pay more attention to line start with '*'
_______________________________________________
Intel-gfx mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx