Merge branch 'akpm' (patches from Andrew)
[linux-2.6-microblaze.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_umc.h
index bbcccf5..e5a75fb 100644 (file)
 #ifndef __AMDGPU_UMC_H__
 #define __AMDGPU_UMC_H__
 
+/*
+ * (addr / 256) * 4096, the higher 26 bits in ErrorAddr
+ * is the index of 4KB block
+ */
+#define ADDR_OF_4KB_BLOCK(addr)                        (((addr) & ~0xffULL) << 4)
 /*
  * (addr / 256) * 8192, the higher 26 bits in ErrorAddr
  * is the index of 8KB block