Skip to contentSkip to conversation

drm/i915:gen9: implement WaMtpRenderPowerGatingBug

PATCH Superseded [email protected] 3 participants 3 messages Jun 16, 2016

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915:gen9: implement WaMtpRenderPowerGatingBug

From: Tim Gore <[email protected]>

This patch applies WaMtpRenderPowerGatingBug which overcomes a hang during mid thread pre-emption when running OCL test: test_allocations64.exe single 5 all.

---
 drivers/gpu/drm/i915/i915_reg.h  |  5 ++++
 drivers/gpu/drm/i915/intel_lrc.c | 52 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 57 insertions(+)
drivers/gpu/drm/i915/i915_reg.h +5 -0
index d229a83..c219043 100644
@@ -223,6 +223,11 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)
 #define GEN8_CONFIG0			_MMIO(0xD00)
 #define  GEN9_DEFAULT_FIXES		(1 << 3 | 1 << 2 | 1 << 1)
 
+/* Slice GateWay mmio offset and related info*/
+#define GEN9_GW_DEST			_MMIO(0xE220)
+#define   GEN9_GW_DATA_PAIRS		32
+#define   GEN9_GW_PER_SLICE		3
+
 #define GAC_ECO_BITS			_MMIO(0x14090)
 #define   ECOBITS_SNB_BIT		(1<<13)
 #define   ECOBITS_PPGTT_CACHE64B	(3<<8)
drivers/gpu/drm/i915/intel_lrc.c +52 -0

64 lines not on this page · raw message

Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

✗ Ro.CI.BAT: failure for drm/i915:gen9: implement WaMtpRenderPowerGatingBug

== Series Details ==

== Series Details ==

Series: drm/i915:gen9: implement WaMtpRenderPowerGatingBug
URL : https://patchwork.freedesktop.org/series/8792/
State : failure

== Summary ==

  CC      drivers/usb/storage/usual-tables.o
  CC      drivers/usb/core/generic.o
  CC      drivers/usb/core/quirks.o
  CC      drivers/usb/core/devices.o
  CC      drivers/video/fbdev/core/cfbcopyarea.o
  LD      drivers/usb/gadget/udc/built-in.o
  CC      drivers/video/fbdev/core/cfbimgblt.o
  CC [M]  drivers/video/fbdev/core/sysfillrect.o
  CC [M]  drivers/video/fbdev/core/syscopyarea.o
  LD      drivers/usb/gadget/built-in.o
  LD      drivers/video/console/built-in.o
  CC      drivers/usb/core/port.o
  CC [M]  drivers/video/fbdev/core/sysimgblt.o
  CC      drivers/usb/core/of.o
  CC [M]  drivers/video/fbdev/core/fb_sys_fops.o
  CC      drivers/usb/core/hcd-pci.o
  CC      drivers/usb/core/usb-acpi.o
  LD      drivers/video/fbdev/core/fb.o
  LD      drivers/usb/host/xhci-hcd.o
  LD      drivers/video/fbdev/core/built-in.o
  LD      drivers/usb/storage/usb-storage.o
  LD      drivers/usb/storage/built-in.o
  LD      drivers/video/fbdev/built-in.o
  LD      drivers/usb/host/built-in.o
  LD      drivers/usb/core/usbcore.o
  LD      drivers/video/built-in.o
  LD      drivers/usb/core/built-in.o
  LD      drivers/usb/built-in.o

Makefile:985: recipe for target 'drivers' failed
make: *** [drivers] Error 2

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw
In reply to [email protected]
reproduce:

Hi,

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on next-20160616]
[cannot apply to v4.7-rc3]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/tim-gore-intel-com/drm-i915-gen9-implement-WaMtpRenderPowerGatingBug/20160616-235703
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-rhel (attached as .config)
compiler: gcc-4.9 (Debian 4.9.3-14) 4.9.3
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

drivers/gpu/drm/i915/intel_lrc.c: In function 'do_WaMtpRenderPowerGatingBug':

>> drivers/gpu/drm/i915/intel_lrc.c:1247:39: error: 'struct drm_i915_private' has no member named 'dev_priv'
     uint32_t SliceCountMax = engine->i915->dev_priv->info.slice_total;
                                          ^

vim +1247 drivers/gpu/drm/i915/intel_lrc.c

1241 {
1242 uint32_t num_lri = 0;
1243 uint32_t GwWriteValue = 0;
1244 i915_reg_t GwDestMmio = {0};
1245 uint32_t i = 0;
1246 uint32_t GwCount = 0;

> 1247		uint32_t SliceCountMax = engine->i915->dev_priv->info.slice_total;

1248 uint32_t SliceCount = 0;
1249
1250 /* Slice count should be non-zero */

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx