Re: [Intel-gfx] [PATCH igt 1/2] igt: Add test case for EXEC_OBJECT_ASYNC

2016-08-31 Thread Joonas Lahtinen
e more similar functions (with more or less features) in other tests. Some of them are not even using hardcoded magic numbers. Adding as TODO for future. Other than that, Reviewed-by: Joonas Lahtinen This not need be a "basic" test? Regards, Joonas -- Joonas Lahtinen Open Source

[Intel-gfx] [PATCH] drm/i915: Use atomic for dev_priv->mm.bsd_engine_dispatch_index

2016-09-01 Thread Joonas Lahtinen
Use atomic type and operands for dev_priv->mm.bsd_engine_dispatch_index to avoid one struct_mutex locking scenario. Cc: Chris Wilson Cc: Imre Deak Cc: Zhao Yakui Cc: Daniel Vetter Signed-off-by: Joonas Lahtinen --- drivers/gpu/drm/i915/i915_drv.h| 2 +- drivers/gpu/drm/i

Re: [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Use atomic for dev_priv->mm.bsd_engine_dispatch_index

2016-09-01 Thread Joonas Lahtinen
c(i915, 0, &bo[0], fb_id[0])) ****  END   Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Use atomic for dev_priv->mm.bsd_engine_dispatch_index

2016-09-01 Thread Joonas Lahtinen
On to, 2016-09-01 at 15:32 +0300, Joonas Lahtinen wrote: > On to, 2016-09-01 at 13:27 +0100, Chris Wilson wrote: > > > > On Thu, Sep 01, 2016 at 12:20:18PM -, Patchwork wrote: > > > > > > Test prime_vgem: > > > Subgroup basic-fence-flip

Re: [Intel-gfx] [PATCH igt 2/2] igt: Add exerciser for execbuf fence-out <-> fence-in

2016-09-01 Thread Joonas Lahtinen
Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH] Another flavour of for_each_engine_masked()

2016-09-01 Thread Joonas Lahtinen
ked. I'd myself vote for loosing the temporary for 20 bytes too. Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH] drm/i915: Remove 64b mmio write vfuncs

2016-09-06 Thread Joonas Lahtinen
riv->uncore.funcs.mmio_readq(dev_priv, > (reg), true) >   Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH] drm/i915: Don't wait for a spinlock inside error capture

2016-09-06 Thread Joonas Lahtinen
hris Wilson Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 1/2] drm/i915: enable vGPU detection for all

2016-09-06 Thread Joonas Lahtinen
by: Zhenyu Wang Reviewed-by: Joonas Lahtinen > --- >  drivers/gpu/drm/i915/i915_vgpu.c | 3 --- >  1 file changed, 3 deletions(-) > > diff --git a/drivers/gpu/drm/i915/i915_vgpu.c > b/drivers/gpu/drm/i915/i915_vgpu.c > index ca2e912..dae340c 100644 > --- a/drivers/

Re: [Intel-gfx] [PATCH 2/2] drm/i915: disable 48bit full PPGTT when vGPU is active

2016-09-06 Thread Joonas Lahtinen
On ti, 2016-09-06 at 12:04 +0800, Zhenyu Wang wrote: > From: Zhi Wang > > Disable 48bit full PPGTT on vGPU too for now. > > Signed-off-by: Zhi Wang > Signed-off-by: Zhenyu Wang Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center

Re: [Intel-gfx] [PATCH v4 2/2] drm/i915/icl: Define MOCS table for Icelake

2018-11-06 Thread Joonas Lahtinen
Quoting Tomasz Lis (2018-11-05 15:50:21) > +++ b/drivers/gpu/drm/i915/intel_mocs.c > @@ -44,6 +44,8 @@ struct drm_i915_mocs_table { > #define LE_SCC(value) ((value) << 8) > #define LE_PFM(value) ((value) << 11) > #define LE_SCF(value) ((value) << 14) > +#define LE_CoS(

Re: [Intel-gfx] [PATCH] drm/i915: Break long iterations for get/put shmemfs pages

2018-11-06 Thread Joonas Lahtinen
> Testcase: igt/benchmarks/gem_syslatency > Signed-off-by: Chris Wilson > Cc: Kuo-Hsin Yang > Cc: Matthew Auld > Cc: Joonas Lahtinen Reviewed-by: Joonas Lahtinen Regards, Joonas ___ Intel-gfx mailing list Intel-g

Re: [Intel-gfx] [PULL] gvt-next-fixes for 4.20

2018-11-06 Thread Joonas Lahtinen
Quoting Zhenyu Wang (2018-10-26 09:43:20) > On 2018.10.25 16:07:14 +0300, Joonas Lahtinen wrote: > > Quoting Zhenyu Wang (2018-10-23 06:46:59) > > > > > > Hi, > > > > > > Here's gvt-next-fixes for 4.20 with three changes. Mostly > > &g

Re: [Intel-gfx] [PULL] gvt-fixes for 4.20-rc2

2018-11-07 Thread Joonas Lahtinen
Quoting Zhenyu Wang (2018-11-07 04:31:37) > > Hi, > > Here's re-generated -fixes pull for 4.20. Mostly on fixing > possible guest arbitrary update of GGTT entries, with one mask > fix for chicken register, and with one to fix eDP warning in guest. > > Thanks. Pulled. Thanks for re-spinning. Re

[Intel-gfx] [PULL] drm-intel-fixes

2018-11-08 Thread Joonas Lahtinen
en update ggtt entry drm/i915/gvt: support inconsecutive partial gtt entry write Joonas Lahtinen (1): Merge tag 'gvt-fixes-2018-11-07' of https://github.com/intel/gvt-linux into drm-intel-fixes Longhe Zheng (1): drm/i915/gvt: Handle values of EDP_PSR_IMR and EDP_PSR_II

[Intel-gfx] Backports for drm-intel-fixes

2018-11-12 Thread Joonas Lahtinen
The following patches with Fixes: do not cleanly apply to drm-intel-fixes: - 5a3aeca97af1 ("drm/i915: Fix hpd handling for pins with two encoders") Please provide a backported patch ASAP, if they are relevant to be backported. If they should not be included in drm-intel-fixes, please confirm that

Re: [Intel-gfx] [PATCH -fixes] drm/i915: Fix hpd handling for pins with two encoders

2018-11-12 Thread Joonas Lahtinen
Thanks for a quick backport, applied this now. Regards, Joonas ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] Backports for drm-intel-fixes

2018-11-14 Thread Joonas Lahtinen
Quoting Joonas Lahtinen (2018-11-12 14:49:14) > The following patches with Fixes: do not cleanly apply > to drm-intel-fixes: > > - 5a3aeca97af1 ("drm/i915: Fix hpd handling for pins with two encoders") One more: - e7a278a329dd ("drm/i915: Account for scale factor when

[Intel-gfx] [PULL] drm-intel-fixes

2018-11-15 Thread Joonas Lahtinen
Hi Dave, Most importantly we have a fix for an incorrect EU count reported from kernel, Gen9+ scaled output fix, and avoiding OOPS on MST display systems. So looking pretty stable. Regards, Joonas PS. Had some CI turbulence for this PR as we raised the bar so that now a loss of lockdep coverage

Re: [Intel-gfx] [PATCH 1/5] drm/i915: extract fixed point math to i915_fixed.h

2018-11-16 Thread Joonas Lahtinen
Quoting Jani Nikula (2018-11-15 14:01:22) > Reduce bloat in one of the bigger header files. Fix some indentation > while at it. No functional changes. > > Signed-off-by: Jani Nikula Do add include guards. Then this is: Reviewed-by: Joonas Lahtinen Reg

Re: [Intel-gfx] [PATCH 2/5] drm/i915/fixed: prefer kernel types over stdint types

2018-11-16 Thread Joonas Lahtinen
Quoting Jani Nikula (2018-11-15 14:01:23) > While at it, conform to kernel spacing (i.e. no space) after cast. No > functional changes. > > Signed-off-by: Jani Nikula Reviewed-by: Joonas Lahtinen Regards, Joonas ___ Intel-gfx mailing li

Re: [Intel-gfx] [PATCH 3/5] drm/i915/fixed: simplify FP_16_16_MAX definition

2018-11-16 Thread Joonas Lahtinen
Quoting Jani Nikula (2018-11-15 14:01:24) > No need to use a compound statement enclosed in parenthesis where a C99 > compound literal will do. No functional changes. > > Signed-off-by: Jani Nikula Out of curiosity, did this have an effect on asm generation? Presumably not. Reviewe

Re: [Intel-gfx] [PATCH 4/5] drm/i915/fixed: simplify is_fixed16_zero()

2018-11-16 Thread Joonas Lahtinen
Quoting Jani Nikula (2018-11-15 14:01:25) > Simply return the condition. No functional changes. > > Signed-off-by: Jani Nikula Reviewed-by: Joonas Lahtinen Regards, Joonas ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.

Re: [Intel-gfx] [PATCH 5/5] drm/i915/fixed: cosmetic cleanup

2018-11-16 Thread Joonas Lahtinen
gt; WARN_ON(val > U32_MAX); > - fp.val = (u32)val; Reviewed-by: Joonas Lahtinen Regards, Joonas ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 36/36] drm/i915: Support per-context user requests for GPU frequency control

2018-11-16 Thread Joonas Lahtinen
adjust > > their request (and not restrict raising the minimum to privileged > > CAP_SYS_NICE clients). > > > > Testcase: igt/gem_ctx_freq > > Signed-off-by: Chris Wilson > > Cc: Joonas Lahtinen > > Cc: Tvrtko Ursulin > > Cc: Praveen Paneri

Re: [Intel-gfx] [PATCH 05/25] drm/i915: Prevent machine hang from Broxton's vtd w/a and error capture

2018-11-16 Thread Joonas Lahtinen
> Cc: John Harrison > Cc: Tvrtko Ursulin > Cc: Joonas Lahtinen > Cc: Daniel Vetter Might be worthy splurting something to the dmesg? Reviewed-by: Joonas Lahtinen Regards, Joonas ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH v4 4/4] drm/i915/perf: add a parameter to control the size of OA buffer

2018-11-16 Thread Joonas Lahtinen
Quoting Lionel Landwerlin (2018-10-23 13:07:07) > The way our hardware is designed doesn't seem to let us use the > MI_RECORD_PERF_COUNT command without setting up a circular buffer. > > In the case where the user didn't request OA reports to be available > through the i915 perf stream, we can set

[Intel-gfx] [PATCH 1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer"

2018-11-16 Thread Joonas Lahtinen
Userspace portion is still missing. This reverts commit cd956bfcd0f58d20485ac0a785415f7d9327a95f. Cc: Lionel Landwerlin Cc: Matthew Auld Signed-off-by: Joonas Lahtinen --- drivers/gpu/drm/i915/i915_drv.h | 1 - drivers/gpu/drm/i915/i915_perf.c | 99 +++- drivers

[Intel-gfx] [PATCH 2/2] Revert "drm/i915/perf: Fix warning in documentation"

2018-11-16 Thread Joonas Lahtinen
Userspace portion is still missing. This reverts commit 9fa6e2f7609fdbb7d6f86be86371a5719bec0376. Cc: Lionel Landwerlin Cc: Matthew Auld Signed-off-by: Joonas Lahtinen --- drivers/gpu/drm/i915/i915_perf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_perf.c b

Re: [Intel-gfx] [GVT-g] [ANNOUNCE] 2018-Q3 release of KVMGT (Intel GVT-g for KVM)

2018-11-16 Thread Joonas Lahtinen
Quoting Xu, Terrence (2018-10-19 10:04:47) > Platform Support: > > -Server platforms: Intel(r) Xeon(r) E3_v4, E3_v5 and E3_v6 with Intel > Graphics processor > > -Client platforms: Intel(r) Core(tm) 5th generation (code name: > Broadwell), > 6th generation (code name: Skylake), 7th gener

[Intel-gfx] [PATCH] drm/i915: Hide enable_gvt modparam when not compiled in

2018-11-16 Thread Joonas Lahtinen
Hide the enable_gvt modparam in the default scenario where support has not been compiled in. Cc: Zhenyu Wang Cc: Zhi Wang Cc: Chris Wilson Signed-off-by: Joonas Lahtinen --- drivers/gpu/drm/i915/i915_params.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH v3] drm/i915: Remove partial attempt to swizzle on pread/pwrite

2018-11-16 Thread Joonas Lahtinen
115628d567 ("drm/i915: Implement pwrite without struct-mutex") > Signed-off-by: Chris Wilson > Cc: Joonas Lahtinen > Cc: Tvrtko Ursulin > --- > drivers/gpu/drm/i915/i915_gem.c | 195 > 1 file changed, 25 insertions(+), 170 deletions(-

Re: [Intel-gfx] [PATCH] drm/i915: Downgrade unknown firmware warnings

2018-11-16 Thread Joonas Lahtinen
Quoting Chris Wilson (2018-10-09 14:12:59) > If we have released no firmware yet for a platform, stop scaring the > consumer and merely note its expected absence. > > Signed-off-by: Chris Wilson > Cc: Petri Latvala Reviewed-by: Joonas Lahtinen

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Downgrade unknown CSR firmware warnings

2018-11-19 Thread Joonas Lahtinen
no firmware yet for a platform, stop scaring the > > consumer and merely note its expected absence. > > > > By simply removing the warning and early return we hit the condition > > with the appropriate message. > > > > Cc: Chris Wilson > > Cc: Joonas Lahtin

Re: [Intel-gfx] [PATCH 1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer"

2018-11-19 Thread Joonas Lahtinen
Quoting Matthew Auld (2018-11-19 12:36:00) > On Fri, 16 Nov 2018 at 13:55, Joonas Lahtinen > wrote: > > > > Userspace portion is still missing. > > > > This reverts commit cd956bfcd0f58d20485ac0a785415f7d9327a95f. > > > > Cc: Lionel Landwerlin >

Re: [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Hide enable_gvt modparam when not compiled in

2018-11-19 Thread Joonas Lahtinen
Thanks for the reviews, pushed now. Regards, Joonas Quoting Patchwork (2018-11-16 17:31:58) > == Series Details == > > Series: drm/i915: Hide enable_gvt modparam when not compiled in > URL : https://patchwork.freedesktop.org/series/52616/ > State : success > > == Summary == > > = CI Bug Log

Re: [Intel-gfx] [PATCH] drm/i915: Write GPU relocs harder with gen3

2018-11-20 Thread Joonas Lahtinen
lits # blb/pnv > Signed-off-by: Chris Wilson > Cc: Joonas Lahtinen > +++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c > @@ -1268,7 +1268,7 @@ relocate_entry(struct i915_vma *vma, > else if (gen >= 4) > len = 4

Re: [Intel-gfx] [igt-dev] [PATCH v17 2/4] tests/gem_ctx_sseu: Dynamic (sub)slice programming tests

2018-11-20 Thread Joonas Lahtinen
context_create(fd), > + .size = sizeof(sseu), > + .value = to_user_pointer(&sseu) }; ... and this don't seem to be consitent with kernel coding style, which I thought we try to use in IGT? There seems to be some other strangely indented structs too,

Re: [Intel-gfx] [PATCH i-g-t 3/4] tests/gem_media_vme: Simple test to exercise the VME block

2018-11-20 Thread Joonas Lahtinen
+ Haihaho who's been involved with gem_media_fill test, if you could provide review, too. Quoting Tvrtko Ursulin (2018-11-13 16:36:28) > From: Tony Ye > > Simple test which exercises the VME fixed function block. > > v2: (Tvrtko Ursulin) > * Small cleanups like copyright date, tabs, remove unu

Re: [Intel-gfx] [PATCH] drm/i915/selftests: Hold task reference to reset worker

2018-11-20 Thread Joonas Lahtinen
ug of the above bug, I'm not seeing other connection. Reviewed-by: Joonas Lahtinen Regards, Joonas ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH] drm/i915: avoid rebuilding i915_gpu_error.o on version string updates

2018-11-21 Thread Joonas Lahtinen
Quoting Hans Holmberg (2018-11-21 11:54:23) > From: Hans Holmberg > > There is no need to rebuild i915_gpu_error.o when the version string > changes as the version is available in init_utsname()->release. > > Signed-off-by: Hans Holmberg Seems reasonable to me. Reviewe

Re: [Intel-gfx] v4.20-rc1: list_del corruption on thinkpad x220

2018-11-21 Thread Joonas Lahtinen
+ Chris Quoting Pavel Machek (2018-11-08 19:58:03) > Hi! > > My machine locked hard (thinkpad x220). After reboot, I found this in > syslog: > > Sounds like memory corruption..? Does not sound like easy to debug. Were you doing something GPU intense when you experienced the hard hang? And if s

Re: [Intel-gfx] [PATCH] drm/i915: avoid rebuilding i915_gpu_error.o on version string updates

2018-11-21 Thread Joonas Lahtinen
Quoting Hans Holmberg (2018-11-21 13:35:19) > On Wed, Nov 21, 2018 at 11:10 AM Joonas Lahtinen > wrote: > > > > Quoting Hans Holmberg (2018-11-21 11:54:23) > > > From: Hans Holmberg > > > > > > There is no need to rebuild i915_gpu_error.o when the v

Re: [Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: avoid rebuilding i915_gpu_error.o on version string updates

2018-11-22 Thread Joonas Lahtinen
Merged now, thanks for the patch and reviews. Quoting Patchwork (2018-11-22 02:05:03) > == Series Details == > > Series: drm/i915: avoid rebuilding i915_gpu_error.o on version string updates > URL : https://patchwork.freedesktop.org/series/52822/ > State : success > > == Summary == > > = CI B

[Intel-gfx] [PULL] drm-intel-fixes

2018-11-22 Thread Joonas Lahtinen
Hi Dave, Here's the -fixes for 4.20-rc4. Stuck backlight/flickering fix for DSI screen and GPU hang fix for SNB are the main user visible ones. Then two more fixes to prevent GPU hangs in more rare scenarios. Regards, Joonas *** drm-intel-fixes-2018-11-22: - Fix for fastboot DSI panel boot tim

Re: [Intel-gfx] [PATCH 2/2] gpu/i915: use HMM mirror for userptr buffer object.

2018-11-22 Thread Joonas Lahtinen
from kernel point of view, is that it does no longer > have a fast path with get_user_pages_fast() this can eventually added > back through HMM. > > Signed-off-by: Jérôme Glisse > Cc: dri-de...@lists.freedesktop.org > Cc: David Airlie > Cc: Daniel Vetter > Cc: Chris Wil

Re: [Intel-gfx] v4.20-rc1: list_del corruption on thinkpad x220

2018-11-23 Thread Joonas Lahtinen
Quoting Pavel Machek (2018-11-21 13:54:49) > Hi! > > > > My machine locked hard (thinkpad x220). After reboot, I found this in > > > syslog: > > > > > > Sounds like memory corruption..? Does not sound like easy to debug. > > > > Were you doing something GPU intense when you experienced the hard

Re: [Intel-gfx] [PATCH 07/25] drm/i915: Cache the error string

2018-11-23 Thread Joonas Lahtinen
nt err_print_to_sgl(struct i915_gpu_state *error) > +{ > + struct drm_i915_error_state_buf m; > struct drm_i915_error_object *obj; > struct timespec64 ts; > int i, j; > > - if (!error) { > - err_printf(m, "No error st

Re: [Intel-gfx] [PULL] gvt-fixes for 4.20-rc5

2018-11-26 Thread Joonas Lahtinen
Pulled this now. Regards, Joonas Quoting Zhenyu Wang (2018-11-26 04:18:20) > > Hi, > > Here's regular gvt fixes for 4.20-rc5. One to correct MOCS registers > load on engine list, one for rpm lock warning fix, and another for > use-after-free fix for partial ggtt list destroy. Details below. >

Re: [Intel-gfx] [PATCH 06/25] drm/i915: Always try to reset the GPU on takeover

2018-11-26 Thread Joonas Lahtinen
out the ancient gens, where display gets clobbered by reset or not. With these mentioned, this is: Reviewed-by: Joonas Lahtinen Regards, Joonas ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH] drm/i915/ringbuffer: 2-step restart

2018-11-26 Thread Joonas Lahtinen
it has to perform. > > References: https://bugs.freedesktop.org/show_bug.cgi?id=108735 > Signed-off-by: Chris Wilson Won't affect later Gens using ELSP, so: Reviewed-by: Joonas Lahtinen Regards, Joonas ___ Intel-gfx mailing list Intel-

Re: [Intel-gfx] [PATCH RFC 2/5] cgroup: Add mechanism to register vendor specific DRM devices

2018-11-27 Thread Joonas Lahtinen
Quoting Kasiviswanathan, Harish (2018-11-26 22:59:30) > Thanks Tejun,Eric and Christian for your replies. > > We want GPUs resource management to work seamlessly with containers and > container orchestration. With the Intel / bpf based approach this is not > possible. > > From your response we

Re: [Intel-gfx] [PATCH 08/13] drm/i915: Eliminate lots of iterations over the execobjects array

2017-04-04 Thread Joonas Lahtinen
gt; @@ -1422,10 +1674,11 @@ static struct i915_vma *eb_parse(struct > i915_execbuffer *eb, bool is_master) >   goto out; >   >   vma->exec_entry = > - memset(&eb->shadow_exec_entry, 0, sizeof(*vma->e

Re: [Intel-gfx] [PATCH 01/18] drm/i915: add page_size_mask to dev_info

2017-04-04 Thread Joonas Lahtinen
t;   CHV_COLORS, >  }; >   > +#define GEN9_DEFAULT_PAGE_SZ \ > + .page_size_mask = I915_GTT_PAGE_SIZE_4K | I915_GTT_PAGE_SIZE_64K | > I915_GTT_PAGE_SIZE_2M | I915_GTT_PAGE_SIZE_1G GEN9_DEFAULT_PAGE_SIZES, also split long line. With above, Reviewed-by: Joonas Lahtinen Regards, Joona

Re: [Intel-gfx] [PATCH 02/18] drm/i915: introduce drm_i915_gem_object page_size members

2017-04-04 Thread Joonas Lahtinen
size)); Patches should be split functionally, not for the sake of splitting. Tt's rather hard to complete review when the appearing code is pretty much no-op, so for next you could squash them a bit. For now, as a leap of faith; Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtin

Re: [Intel-gfx] [PATCH 04/18] drm/i915: s/i915_gtt_color_adjust/i915_ggtt_color_adjust

2017-04-04 Thread Joonas Lahtinen
Commit message for why we do this. On ti, 2017-04-04 at 23:11 +0100, Matthew Auld wrote: > Signed-off-by: Matthew Auld Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-

Re: [Intel-gfx] [PATCH 05/18] drm/i915: clean up cache coloring

2017-04-04 Thread Joonas Lahtinen
first check the is_ggtt() because it's more important one, and drop a comment here as to why we can make the decision. Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx ma

Re: [Intel-gfx] [PATCH 06/18] drm/i915: export color_differs

2017-04-04 Thread Joonas Lahtinen
On ti, 2017-04-04 at 23:11 +0100, Matthew Auld wrote: > Export color_differs so that we can use it elsewhere. > > v2: better naming > > Signed-off-by: Matthew Auld > Cc: Mika Kuoppala Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Techn

Re: [Intel-gfx] [PATCH v2 1/1] drm/i915: Suspend GuC prior to GPU Reset during GEM suspend

2017-04-05 Thread Joonas Lahtinen
in resume time, and we instead should be telling GuC to suspend and not reset the GPU, at most only reset the engines. Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@list

Re: [Intel-gfx] [PATCH 01/18] drm/i915: add page_size_mask to dev_info

2017-04-05 Thread Joonas Lahtinen
n of the series. Except if the feature is implemented in increments, but I already mentioned in another patch that the ordering could be shuffled to allow for easier review (which will lead to easier bisecting, too). Regards, Joonas -- Joonas Lahtinen Open Source Technology Center In

Re: [Intel-gfx] [PATCH] drm/i915: Use the right mapping_gfp_mask for final shmem allocation

2017-04-06 Thread Joonas Lahtinen
Jason Ekstrand > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100594 > Fixes: 24f8e00a8a2e ("drm/i915: Prefer to report ENOMEM rather than incur the > oom for gfx allocations") > Signed-off-by: Chris Wilson > Cc: Joonas Lahtinen > Cc: Daniel Vetter Revie

Re: [Intel-gfx] [PATCH] drm/i915: Treat WC a separate cache domain

2017-04-07 Thread Joonas Lahtinen
> + ret = i915_gem_object_pin_pages(obj); > + if (ret) > + return ret; > + > + i915_gem_object_flush_cpu_write_domain(obj); > + i915_gem_object_flush_gtt_write_domain(obj); I was thinking if WC should be a "substate" of CPU domain, because

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Assert the engine is idle before overwiting the HWS

2017-04-07 Thread Joonas Lahtinen
supposed to wait_for_idle before calling us to update the seqno, so > let's assert they have and the engine is indeed idle. > > Signed-off-by: Chris Wilson Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technolog

Re: [Intel-gfx] [PATCH v4] drm/i915: Advance ring->head fully when idle

2017-04-07 Thread Joonas Lahtinen
e block to its own function for some clarity. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100144 > Testcase: igt/gem_exec_whisper/hang-* > Signed-off-by: Chris Wilson > Cc: Mika Kuoppala Reviewed-by: Joonas Lahtinen Re

[Intel-gfx] [PATCH] drm/i915: Don't call synchronize_rcu_expedited under struct_mutex

2017-04-07 Thread Joonas Lahtinen
? process_one_work+0x3b0/0x3b0 ? kthread_create_on_node+0x40/0x40 ? ret_from_fork+0x23/0x30 Fixes: 3d3d18f086cd ("drm/i915: Avoid rcu_barrier() from reclaim paths (shrinker)") Reported-by: Andrea Arcangeli Signed-off-by: Joonas Lahtinen Cc: Andrea Arcangeli Cc: Chris Wilson Cc: Daniel

Re: [Intel-gfx] [PATCH 1/5] i915: avoid kernel hang caused by synchronize rcu struct_mutex deadlock

2017-04-07 Thread Joonas Lahtinen
ase struct_mutex. > +  */ > + synchronize_rcu_expedited(); > + >   return freed; >  } >   > ___ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Joonas Lahtinen Open Source Technol

Re: [Intel-gfx] [RFC 1/3] drm/i915: Rename intel_engine_cs.exec_id to uabi_id

2017-04-07 Thread Joonas Lahtinen
> Signed-off-by: Chris Wilson Please re-spin this over Oscar's series (and R-b the remaining two patches). Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@list

[Intel-gfx] [PATCH 2/2] drm/i915: Simplify shrinker locking

2017-04-07 Thread Joonas Lahtinen
wildest dreams considers exporting them. Signed-off-by: Joonas Lahtinen Cc: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.h | 6 drivers/gpu/drm/i915/i915_gem.c | 2 -- drivers/gpu/drm/i915/i915_gem_shrinker.c | 56 +++- drivers/gpu/drm/i915

[Intel-gfx] [PATCH 1/2] drm/i915: Don't call synchronize_rcu_expedited under struct_mutex

2017-04-07 Thread Joonas Lahtinen
? process_one_work+0x3b0/0x3b0 ? kthread_create_on_node+0x40/0x40 ? ret_from_fork+0x23/0x30 Fixes: 3d3d18f086cd ("drm/i915: Avoid rcu_barrier() from reclaim paths (shrinker)") Reported-by: Andrea Arcangeli Signed-off-by: Joonas Lahtinen Cc: Andrea Arcangeli Cc: Chris Wilson Cc: Daniel

Re: [Intel-gfx] [PATCH 1/4] drm/i915: The shrinker already acquires struct_mutex, so call it unlocked

2017-04-07 Thread Joonas Lahtinen
can be more aggressive when we know the caller isn't holding > struct_mutex. > > Signed-off-by: Chris Wilson > Cc: Joonas Lahtinen Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Drain any freed objects prior to hibernation

2017-04-07 Thread Joonas Lahtinen
nation image. > > Signed-off-by: Chris Wilson > Cc: Joonas Lahtinen Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://

Re: [Intel-gfx] [PATCH 3/4] drm/i915: Break up long runs of freeing objects

2017-04-07 Thread Joonas Lahtinen
ed-off-by: Chris Wilson > Cc: Joonas Lahtinen Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Insert cond_resched() into i915_gem_free_objects

2017-04-07 Thread Joonas Lahtinen
On pe, 2017-04-07 at 11:25 +0100, Chris Wilson wrote: > As we may have very many objects to free, check to see if the task needs > to be rescheduled whilst freeing them. > > Suggested-by: Andrea Arcangeli > Signed-off-by: Chris Wilson > Cc: Joonas Lahtinen Reviewed-b

Re: [Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915: Don't call synchronize_rcu_expedited under struct_mutex

2017-04-07 Thread Joonas Lahtinen
72a98636e9dfebc0 drm-tip: 2017y-04m-07d-10h-32m-49s > UTC integration manifest > 08e143d drm/i915: Simplify shrinker locking > 60dc19c drm/i915: Don't call synchronize_rcu_expedited under struct_mutex > > == Logs == > > For more details see: https://intel-gfx-ci.01.org/CI/Pa

Re: [Intel-gfx] [PATCH 1/5] drm/i915: Mark up clflushes as belonging to an unordered timeline

2017-04-10 Thread Joonas Lahtinen
reserve 0 to mean unordered (DMA_FENCE_NO_CONTEXT) to > have the same semantics everywhere. > > Signed-off-by: Chris Wilson > Cc: Daniel Vetter > Cc: Joonas Lahtinen > @@ -157,7 +156,7 @@ void i915_gem_clflush_object(struct drm_i915_gem_object > *obj, >  

Re: [Intel-gfx] [PATCH 2/5] drm/i915: Lift timeline ordering to await_dma_fence

2017-04-10 Thread Joonas Lahtinen
ce() (before the dependency is added) > using the observation that requests along the same timeline are > explicitly ordered via i915_add_request (along with the dependencies). > > Signed-off-by: Chris Wilson > Cc: Joonas Lahtinen Reviewed-by: Joonas Lahtinen Regards, Joonas --

Re: [Intel-gfx] [PATCH] drm/i915: Use drm_i915_private directly from debugfs

2017-04-10 Thread Joonas Lahtinen
On pe, 2017-04-07 at 20:42 +0100, Chris Wilson wrote: > The void *data passed to debugfs callbacks is actually the > drm_i915_private pointer, so use it thusly and avoid the to_i915(dev) > indirection. > > Signed-off-by: Chris Wilson Reviewed-by: Joonas Lahtinen Regards, Jo

Re: [Intel-gfx] [RFC 2/2] drm/i915/bdw: permit make_rpcs execution on BDW to enable slice shutdown

2017-04-10 Thread Joonas Lahtinen
rtko Ursulin > CC: Zhipeng Gong > CC: Joonas Lahtinen > CC: Chris Wilson Maybe this patch should get rid of the "!IS_SKYLAKE(dev_priv)" restriction in the setter function, too? Regards, Joonas -- Joonas Lahtinen Open Sourc

Re: [Intel-gfx] [PATCH] drm/i915: Lie and treat all engines as idle if wedged

2017-04-11 Thread Joonas Lahtinen
/0x190 > [  383.589026]  kthread+0xf7/0x130 > [  383.589030]  ? sort_range+0x20/0x20 > [  383.589034]  ? kthread_park+0x90/0x90 > [  383.589040]  ret_from_fork+0x2c/0x40 > > Fixes: 2ca9faa551c4 ("drm/i915: Assert the engine is idle before overwiting > the HWS") > Signed-off

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Combine write_domain flushes to a single function

2017-04-12 Thread Joonas Lahtinen
>   > - i915_gem_object_flush_gtt_write_domain(obj); > + flush_write_domain(obj, I915_GEM_DOMAIN_CPU); Let me tell ya, this reads really confusing. Maybe flush_write_domain(obj, ~I915_GEM_DOMAIN_CPU); and call the parameter "mask" instead of "exclude..."

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Add stub mmio read/write routines to mock device

2017-04-12 Thread Joonas Lahtinen
On ke, 2017-04-12 at 00:44 +0100, Chris Wilson wrote: > Provide dummy function pointers for the mock device in case we do hit > mmio during testing. > > Signed-off-by: Chris Wilson Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Pretend the engine is always idle when mocking

2017-04-12 Thread Joonas Lahtinen
ts idle bit and we get upset. > > Signed-off-by: Chris Wilson Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://l

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Wake device for emitting request during selftest

2017-04-12 Thread Joonas Lahtinen
during HW access" warnings. > > Signed-off-by: Chris Wilson Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://l

Re: [Intel-gfx] [PATCH v2] drm/i915: Combine write_domain flushes to a single function

2017-04-12 Thread Joonas Lahtinen
combine the existing two into one and > flushing WC writes will then be automatically handled as well. > > v2: Be smarter and clearer by passing in the write domains to flush (Joonas) > > Signed-off-by: Chris Wilson > Cc: Joonas Lahtinen > @@ -266,7 +266,7 @@ static

Re: [Intel-gfx] [PATCH] drm/i915/gvt: return the actual aperture size under gvt environment

2017-04-12 Thread Joonas Lahtinen
;ggtt.reserved; > > and doesn't need to know the identity of every possible consumer. I was writing an e-mail about the same thing. So +1 on the idea. Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH] drm/i915: Implement dma_buf_ops->kmap

2017-04-12 Thread Joonas Lahtinen
)PTR_ERR(dmabuf)); > + err = PTR_ERR(dmabuf); You could hoist this assignment on line up. and just make the pr_err use err, just saying. Maybe you could use phases array in this function too. Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technolo

Re: [Intel-gfx] [PATCH v2] drm/i915: Add stub mmio read/write routines to mock device

2017-04-12 Thread Joonas Lahtinen
On ke, 2017-04-12 at 10:21 +0100, Chris Wilson wrote: > Provide dummy function pointers for the mock device in case we do hit > mmio during testing. > > v2: Use ASSIGN_READ/WRITE_MMIO_FUNCS macros > > Signed-off-by: Chris Wilson > Reviewed-by: Joonas Lahtinen #v1 Reviewe

Re: [Intel-gfx] [PATCH V5] drm/i915: Disable stolen memory when i915 runs on qemu

2017-04-12 Thread Joonas Lahtinen
comes to my mind is exporting function like device_has_rmrr() from intel-iommu.com and consuming that, if we end up doing this. That way, if somebody, some day, goes and write RMRR pass-through code currently missing, it'll start working, just like it should. Regards, Joonas -- Joonas Laht

Re: [Intel-gfx] [PATCH v2 9/9] drm/i915: Switch the global i915.semaphores check to a local predicate

2017-04-12 Thread Joonas Lahtinen
On ke, 2017-04-12 at 13:48 +0100, Chris Wilson wrote: > Rather than use a global modparam, we can just check to see if the > engine has semaphores configured upon it. > > Signed-off-by: Chris Wilson Should be good. Reviewed-by: Joonas Lahtinen Regars, Joonas -- Joonas Lahtinen

Re: [Intel-gfx] [PATCH] drm/i915/gvt: return the actual aperture size under gvt environment

2017-04-13 Thread Joonas Lahtinen
On to, 2017-04-13 at 01:01 +, Li, Weinan Z wrote: > > > > -Original Message- > > From: Joonas Lahtinen [mailto:joonas.lahti...@linux.intel.com] > > Sent: Wednesday, April 12, 2017 6:19 PM > > To: Chris Wilson ; Li, Weinan Z > > > > Cc:

Re: [Intel-gfx] [PATCH v2 7/9] drm/i915: Confirm the request is still active before adding it to the await

2017-04-13 Thread Joonas Lahtinen
; > Signed-off-by: Chris Wilson Well, it's not going to hurt. Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https:

Re: [Intel-gfx] [PATCH v2 6/9] drm/i915: Rename intel_timeline.sync_seqno[] to .global_sync[]

2017-04-13 Thread Joonas Lahtinen
rt to the > global seqno. > > Signed-off-by: Chris Wilson Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lis

Re: [Intel-gfx] [PATCH] drm/i915/guc: write wopcm related register once during uc init

2017-04-13 Thread Joonas Lahtinen
rites in the intel_uc_init_hw function instead of moving it earlier > to make sure we attempt them every time we try to load GuC. > > Cc: Jeff McGee > Cc: Anusha Srivatsa > Signed-off-by: Daniele Ceraolo Spurio This is an improvement, so: Reviewed-by: Joonas Lahtinen To be exact, shouldn

Re: [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/guc: write wopcm related register once during uc init

2017-04-13 Thread Joonas Lahtinen
On pe, 2017-04-07 at 00:39 +, Patchwork wrote: > == Series Details == > > Series: drm/i915/guc: write wopcm related register once during uc init > URL   : https://patchwork.freedesktop.org/series/22625/ > State : success Pushed the patch. Regards, Joonas -- Joonas Lahti

Re: [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/guc: write wopcm related register once during uc init

2017-04-13 Thread Joonas Lahtinen
On to, 2017-04-13 at 14:02 +0300, Joonas Lahtinen wrote: > On pe, 2017-04-07 at 00:39 +, Patchwork wrote: > > > > == Series Details == > > > > Series: drm/i915/guc: write wopcm related register once during uc init > > URL   : https://patchwork.freede

Re: [Intel-gfx] [PATCH 01/27] drm/i915/selftests: Allocate inode/file dynamically

2017-04-20 Thread Joonas Lahtinen
ytes [-Werror=frame-larger-than=] > > Reported-by: Arnd Bergmann > Fixes: 66d9cb5d805a ("drm/i915: Mock the GEM device for self-testing") > Signed-off-by: Chris Wilson > Cc: Joonas Lahtinen > Cc: Tvrtko Ursulin > Cc: Matthew Auld > Cc: Arnd Bergmann >

Re: [Intel-gfx] [PATCH 22/27] drm/i915: Eliminate lots of iterations over the execobjects array

2017-04-20 Thread Joonas Lahtinen
ain some magic and hide other magic behind macros. > > Signed-off-by: Chris Wilson Changelog checks out. Assuming you peeked at the generated html docs: Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___

Re: [Intel-gfx] [PATCH 14/27] drm/i915: Don't mark an execlists context-switch when idle

2017-04-20 Thread Joonas Lahtinen
00 > > On the other hand, by ignoring the interrupt do we risk running out of > space in CSB ring? Testing for a few hours suggests not, i.e. that we > only seem to get the odd delayed CSB idle notification. > > Signed-off-by: Chris Wilson > Cc: Tvrtko Ursulin Slap your T

Re: [Intel-gfx] [PATCH] drm/i915: Use discardable buffers for rings

2017-04-20 Thread Joonas Lahtinen
memory for rings. > > Signed-off-by: Chris Wilson Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH v6 13/20] drm/i915/guc: Provide register list to be saved/restored during engine reset

2017-04-20 Thread Joonas Lahtinen
KEN1_RCS, > +     > _MASKED_BIT_ENABLE(GEN9_PREEMPT_GPGPU_SYNC_SWITCH_DISABLE)); To make grepping easier, how about? I915_WRITE(GUC_REG(GEN9_CSFE_CHICKEN1_RCS),    ...); Regards, Joonas -- Joonas Lahtinen Open Source Technolo

<    5   6   7   8   9   10   11   12   13   14   >