Handle the difference timestamp count, got from drm_intel_reg_read.
authorYang Rong <rong.r.yang@intel.com>
Thu, 12 Jun 2014 11:04:27 +0000 (19:04 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Thu, 12 Jun 2014 04:45:22 +0000 (12:45 +0800)
commit9e88dec0a78a26432bcf6545f107131219c18699
treec5324774d8e499d563fc41a50dc8d6a8e9a8f397
parent127b17a4d1a6fb23bd85074cf9bc15a729f17f73
Handle the difference timestamp count, got from drm_intel_reg_read.

In HSW and IVB, if x86_64 system, the low 32bits of timestamp count are stored in the high 32 bits of result which
got from drm_intel_reg_read, and 32-35 bits are lost; but in i386 system, the timestamp count match bspec.
It seems the kernel readq bug. So shift 32 bit in x86_64, and only remain 32 bits data in i386.

V2: In baytrail, don't have these issue, but need clear 32-35 bits.
Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
src/intel/intel_gpgpu.c