Re: [Intel-gfx] [PATCH 01/16] drm/i915: Introduce i915_gem_active_wait_unlocked()

2016-08-03 Thread Joonas Lahtinen
_gem_active_get_unlocked() > (Starting to get too unwieldy.) It's less confusing. I assume you intend to extend the rcu_read_lock() section? Regards, Joonas > -Chris > -- Joonas Lahtinen Open Source Technology Center Intel Corporation __

Re: [Intel-gfx] [PATCH 04/16] drm/i915/userptr: Remove superfluous interruptible=false on waiting

2016-08-03 Thread Joonas Lahtinen
27;t be interrupted */ >   WARN_ON(i915_gem_object_unbind(obj)); >   WARN_ON(i915_gem_object_put_pages(obj)); > - > - dev_priv->mm.interruptible = was_interruptible; >   } >   >   i915_gem_object_put(obj); -- Joonas Lahtinen Open

Re: [Intel-gfx] [PATCH 02/16] drm/i915: Convert non-blocking waits for requests over to using RCU

2016-08-03 Thread Joonas Lahtinen
On ke, 2016-08-03 at 14:36 +0100, Chris Wilson wrote: > On Wed, Aug 03, 2016 at 04:23:16PM +0300, Joonas Lahtinen wrote: > > > > On ma, 2016-08-01 at 19:22 +0100, Chris Wilson wrote: > > > > > >  /** > > > @@ -1647,6 +1629,15 @@ int i915_gem_fault

Re: [Intel-gfx] [PATCH 02/28] drm/i915: Split GGTT initialisation between probing and setup

2016-08-03 Thread Joonas Lahtinen
probing for the hardware location (part of the PCI BAR) and > later establishing the kernel resources for it. > > Signed-off-by: Chris Wilson The whole probing should be removed and just relayed from the early quirks code to the driver, but that's going to be after these series. Re

Re: [Intel-gfx] [PATCH 03/28] drm/i915: Keep ggtt->probe() as a local

2016-08-03 Thread Joonas Lahtinen
44 > --- a/drivers/gpu/drm/i915/i915_gem_gtt.h > +++ b/drivers/gpu/drm/i915/i915_gem_gtt.h > @@ -365,8 +365,6 @@ struct i915_ggtt { >   bool do_idle_maps; >   >   int mtrr; > - > - int (*probe)(struct i915_ggtt *ggtt); >  }; >   >  struct i915_hw_ppgtt { -- 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 04/28] drm/i915: Update GGTT initialisation functions to take drm_i915_private

2016-08-03 Thread Joonas Lahtinen
the norm in function parameters. > > Signed-off-by: Chris Wilson Pretty mechanical, so unless you hid an easter egg; Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx

Re: [Intel-gfx] [PATCH 05/28] drm/i915: Split early global GTT initialisation

2016-08-03 Thread Joonas Lahtinen
On ke, 2016-08-03 at 14:42 +0100, Chris Wilson wrote: > -   BUG_ON(mappable_end > end); This gets lost, with that restored somewhere or explained in commit message. Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corpo

Re: [Intel-gfx] [PATCH] drm/i915: Enable fine-grained kcov instrumentation

2016-08-03 Thread Joonas Lahtinen
ONFIG_DRM_I915_WERROR) := -Werror > +subdir-ccflags-$(CONFIG_DRM_I915_KCOV) := $(CFLAGS_KCOV) >  subdir-ccflags-y += \ >   $(call as-instr,movntdqa (%eax)$(comma)%xmm0,-DCONFIG_AS_MOVNTDQA) >   -- 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/3] drm/i915: Update GGTT initialisation functions to take drm_i915_private

2016-08-03 Thread Joonas Lahtinen
the norm in function parameters. > > v2: Include all the probe functions > > Signed-off-by: Chris Wilson Mechanical. Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Inte

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Rearrange GGTT probing to avoid needing a vfunc

2016-08-03 Thread Joonas Lahtinen
ecific probe. > > Signed-off-by: Chris Wilson > Cc: Joonas Lahtinen ggtt->size can be added back when there's need for it, so; Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation

Re: [Intel-gfx] [PATCH 06/16] drm/gem/shrinker: Wait before acquiring struct_mutex under oom

2016-08-03 Thread Joonas Lahtinen
i915_gem_shrinker_lock(&dev_priv->drm, &slu->unlock)) > + break; > + >   schedule_timeout_killable(1); >   if (fatal_signal_pending(current)) >   return false; > + >   if (--timeout == 0) { >

Re: [Intel-gfx] [PATCH 07/16] drm/i915: Tidy generation of the GTT mmap offset

2016-08-04 Thread Joonas Lahtinen
is brings us into line with the other > delayed checks (and madvise in general). > > Signed-off-by: Chris Wilson Don't necessarily agree with all the "== 0", because it's in the minority but; Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas

Re: [Intel-gfx] [PATCH 08/16] drm/i915: Remove unused no-shrinker-steal

2016-08-04 Thread Joonas Lahtinen
On ma, 2016-08-01 at 19:22 +0100, Chris Wilson wrote: > After removing the user of this wart, we can remove the wart entirely. > > Signed-off-by: Chris Wilson Reviewed-by: Joonas Lahtinen -- Joonas Lahtinen Open Source Technology Center Intel Co

Re: [Intel-gfx] [PATCH 09/16] drm/i915: Do a nonblocking wait first in pread/pwrite

2016-08-04 Thread Joonas Lahtinen
> + if (ret) > + goto out_unlocked; > + > + intel_runtime_pm_get(dev_priv); >   As discussed in IRC, pread_ioctl does not take RPM for the fallback path, it should. > + ret = i915_mutex_lock_interruptible(dev); > + if (ret) > +

Re: [Intel-gfx] [PATCH 10/16] drm/i915: Remove (struct_mutex) locking for wait-ioctl

2016-08-04 Thread Joonas Lahtinen
out_ns : NULL, > + to_rps_client(file)); Long line. This and explanation touched up, 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: Add missing rpm wakelock to GGTT pread

2016-08-04 Thread Joonas Lahtinen
m/i915: Support for pread/pwrite ...") > Reported-by: Joonas Lahtinen Reviewed-by: Joonas Lahtinen > Signed-off-by: Chris Wilson > Cc: Ankitprasad Sharma > Cc: Tvrtko Ursulin > Cc: Joonas Lahtinen > Cc: drm-intel-fi...@lists.freedesktop.org > --- >  drivers/gpu/

Re: [Intel-gfx] [PATCH 11/16] drm/i915: Remove (struct_mutex) locking for busy-ioctl

2016-08-04 Thread Joonas Lahtinen
after we lookup the engine's id, we double check that This double check is nowhere to be seen, time to update this comment too? The code itself is quite OK, but the comments mislead my understanding of the code again. Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Inte

Re: [Intel-gfx] [PATCH 12/16] drm/i915: Reduce locking inside swfinish ioctl

2016-08-04 Thread Joonas Lahtinen
mutex_unlock(&dev->struct_mutex); > + } else { > + ret = 0; > +unref: No, nope, nein, ei, njet, inte, nack; this shall not pass. Most inappropriate use of goto I've seen shortly. Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation

Re: [Intel-gfx] [PATCH 13/16] drm/i915: Remove pinned check from madvise ioctl

2016-08-04 Thread Joonas Lahtinen
b/drivers/gpu/drm/i915/i915_gem.c > @@ -3853,11 +3853,6 @@ i915_gem_madvise_ioctl(struct drm_device *dev, void > *data, >   goto unlock; >   } >   > - if (i915_gem_obj_is_pinned(obj)) { > - ret = -EINVAL; > - goto out; > - } > - Does not this

Re: [Intel-gfx] [PATCH 14/16] drm/i915: Remove locking for get_tiling

2016-08-04 Thread Joonas Lahtinen
ol over the flags > field was too noisy for a simple patch. Note, that we can use the lower s/, / /,s/can/could/ With that, Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation

Re: [Intel-gfx] [PATCH 16/16] drm/i915: Assert that the request hasn't been retired

2016-08-04 Thread Joonas Lahtinen
On ma, 2016-08-01 at 19:22 +0100, Chris Wilson wrote: > With all callers now not playing tricks with dropping the struct_mutex > between waiting and retiring, we can assert that the request is ready to > be retired. > > Signed-off-by: Chris Wilson Reviewed-by: Joonas Lahtinen &

Re: [Intel-gfx] [PATCH 15/16] drm/i915: Repack fence tiling mode and stride into a single integer

2016-08-04 Thread Joonas Lahtinen
modifier[0] == I915_FORMAT_MOD_X_TILED)) { >   DRM_DEBUG("tiling_mode doesn't match fb modifier\n"); >   return -EINVAL; >   } >   } else { -- 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 15/16] drm/i915: Repack fence tiling mode and stride into a single integer

2016-08-04 Thread Joonas Lahtinen
On to, 2016-08-04 at 12:34 +0100, Chris Wilson wrote: > On Thu, Aug 04, 2016 at 02:17:22PM +0300, Joonas Lahtinen wrote: > > > > > > > > --- a/drivers/gpu/drm/i915/intel_display.c > > > +++ b/drivers/gpu/drm/i915/intel_display.c > > > @@ -2465,9 +2

Re: [Intel-gfx] [PATCH 13/16] drm/i915: Remove pinned check from madvise ioctl

2016-08-04 Thread Joonas Lahtinen
On to, 2016-08-04 at 11:42 +0100, Chris Wilson wrote: > On Thu, Aug 04, 2016 at 01:36:24PM +0300, Joonas Lahtinen wrote: > > > > On ma, 2016-08-01 at 19:22 +0100, Chris Wilson wrote: > > > > > > We don't need to incur the overhead of checking whether the ob

Re: [Intel-gfx] [PATCH] drm/i915: Enable fine-grained kcov instrumentation

2016-08-04 Thread Joonas Lahtinen
On to, 2016-08-04 at 07:30 +0100, Chris Wilson wrote: > On Thu, Aug 04, 2016 at 09:12:07AM +0300, Joonas Lahtinen wrote: > > > > On ke, 2016-08-03 at 20:38 +0100, Chris Wilson wrote: > > > > > > In the next merge, we can build support for kcov at the individual

Re: [Intel-gfx] [PATCH 05/16] drm/i915: Enable i915_gem_wait_for_idle() without holding struct_mutex

2016-08-04 Thread Joonas Lahtinen
importantly, accessing > dev_priv->mm.interruptible not under any controlling lock. That takes > passing around bool interruptible and suddenly we have a bigger patch. > :| Not sure what to do with this information, will you send a new revision? Regards, Joonas &

Re: [Intel-gfx] [PATCH 01/16] drm/i915: Introduce i915_gem_active_wait_unlocked()

2016-08-04 Thread Joonas Lahtinen
On ke, 2016-08-03 at 14:43 +0100, Chris Wilson wrote: > On Wed, Aug 03, 2016 at 04:30:35PM +0300, Joonas Lahtinen wrote: > > > > On ke, 2016-08-03 at 13:04 +0100, Chris Wilson wrote: > > > > > > On Wed, Aug 03, 2016 at 12:56:39PM +0100, Chris Wilson wrote: > &

Re: [Intel-gfx] [PATCH 04/16] drm/i915/userptr: Remove superfluous interruptible=false on waiting

2016-08-04 Thread Joonas Lahtinen
On ke, 2016-08-03 at 14:49 +0100, Chris Wilson wrote: > On Wed, Aug 03, 2016 at 04:43:38PM +0300, Joonas Lahtinen wrote: > > > > On ma, 2016-08-01 at 19:22 +0100, Chris Wilson wrote: > > > > > > Inside the kthread context, we can't be interrupted by signals

Re: [Intel-gfx] [PATCH 07/16] drm/i915: Tidy generation of the GTT mmap offset

2016-08-04 Thread Joonas Lahtinen
On to, 2016-08-04 at 08:30 +0100, Chris Wilson wrote: > On Thu, Aug 04, 2016 at 10:25:42AM +0300, Joonas Lahtinen wrote: > > > > On ma, 2016-08-01 at 19:22 +0100, Chris Wilson wrote: > > > > > > If we make the observation that mmap-offsets are only released whe

Re: [Intel-gfx] [PATCH 10/16] drm/i915: Remove (struct_mutex) locking for wait-ioctl

2016-08-04 Thread Joonas Lahtinen
On to, 2016-08-04 at 11:02 +0100, Chris Wilson wrote: > On Thu, Aug 04, 2016 at 11:26:04AM +0300, Joonas Lahtinen wrote: > > > > On ma, 2016-08-01 at 19:22 +0100, Chris Wilson wrote: > > > > > > With a bit of care (and leniency) we can iterate over the o

Re: [Intel-gfx] [PATCH 15/16] drm/i915: Repack fence tiling mode and stride into a single integer

2016-08-04 Thread Joonas Lahtinen
On to, 2016-08-04 at 12:41 +0100, Chris Wilson wrote: > On Thu, Aug 04, 2016 at 02:17:22PM +0300, Joonas Lahtinen wrote: > > > > On ma, 2016-08-01 at 19:22 +0100, Chris Wilson wrote: > > > > > > --- a/drivers/gpu/drm/i915/i915_drv.h > > > +++ b/drivers

Re: [Intel-gfx] [PATCH 02/19] drm/i915: Convert non-blocking waits for requests over to using RCU

2016-08-04 Thread Joonas Lahtinen
that we gain further contention reduction, and overall the code > become simpler due to the reduced mutex dancing. > > v2: Move i915_gem_fault tracepoint to start of function, before the > unlocked wait. "Move i915_gem_fault tracepoint *back* to start of ..." to be exact :) R

Re: [Intel-gfx] [PATCH 05/19] drm/i915: Remove forced stop ring on suspend/unload

2016-08-04 Thread Joonas Lahtinen
again. 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 06/19] drm/i915: Enable i915_gem_wait_for_idle() without holding struct_mutex

2016-08-04 Thread Joonas Lahtinen
ret |= !list_empty(&engine->request_list); > + ret |= intel_engine_is_active(engine); |= always makes me think of bitfields because, well -- it is bitwise operation :P if (intel_engine_is_active(engine)) ret = true; But I can l

Re: [Intel-gfx] [PATCH 07/19] drm/i915: Simplify do_idling() (Ironlake vt-d w/a)

2016-08-04 Thread Joonas Lahtinen
dle() takes the interruptible status as the other > action, dma_map_sg(), is independent of i915.ko) > > Signed-off-by: Chris Wilson Looks far less hackish, good; Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology

Re: [Intel-gfx] [PATCH 08/19] drm/i915/shrinker: Wait before acquiring struct_mutex under oom

2016-08-04 Thread Joonas Lahtinen
ut detection should be more robust too; 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 17/19] drm/i915: Document and reject invalid tiling modes

2016-08-04 Thread Joonas Lahtinen
pts to set a tiling mode other than NONE, X or Y. > > Signed-off-by: Chris Wilson > Cc: Joonas Lahtinen Reviewed-by: Joonas Lahtinen -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.

Re: [Intel-gfx] [PATCH 14/19] drm/i915: Reduce locking inside swfinish ioctl

2016-08-04 Thread Joonas Lahtinen
ce for compiler hints (or not as it is a bitfield) > v3: READ_ONCE, obj->pin_display is not a bitfield anymore > v4: Don't be creative with goto. > > Signed-off-by: Chris Wilson > Cc: Daniel Vetter This is readable, and it wasn't that hard. Reviewed-by: Joonas Lahtinen

Re: [Intel-gfx] [PATCH 11/16] drm/i915: Remove (struct_mutex) locking for busy-ioctl

2016-08-05 Thread Joonas Lahtinen
eqno. > +  * > +  * So after we lookup the engine's id, we double check that > +  * the active request is the same and only then do we add it > +  * into the busy set. > +  */ > + rcu_re

Re: [Intel-gfx] [PATCH 11/19] drm/i915: Do a nonblocking wait first in pread/pwrite

2016-08-05 Thread Joonas Lahtinen
et(dev_priv); > + > + ret = i915_mutex_lock_interruptible(dev); > + if (ret) > + goto err_rpm; > + > + trace_i915_gem_object_pwrite(obj, args->offset, args->size); This trace is still moved, maybe add your reasoning to commit message. With those addressed (a

Re: [Intel-gfx] [PATCH 06/19] drm/i915: Enable i915_gem_wait_for_idle() without holding struct_mutex

2016-08-05 Thread Joonas Lahtinen
On pe, 2016-08-05 at 07:51 +0100, Chris Wilson wrote: > On Fri, Aug 05, 2016 at 09:16:21AM +0300, Joonas Lahtinen wrote: > > > > On to, 2016-08-04 at 20:52 +0100, Chris Wilson wrote: > > > > > > @@ -486,7 +486,8 @@ void __i915_add_request(struct drm

Re: [Intel-gfx] [PATCH 11/16] drm/i915: Remove (struct_mutex) locking for busy-ioctl

2016-08-05 Thread Joonas Lahtinen
On pe, 2016-08-05 at 08:34 +0100, Chris Wilson wrote: > On Fri, Aug 05, 2016 at 10:05:38AM +0300, Joonas Lahtinen wrote: > > > > On ma, 2016-08-01 at 19:22 +0100, Chris Wilson wrote: > > > > > > By applying the same logic as for wait-ioctl, we can query whet

Re: [Intel-gfx] [PULL] drm-intel-next

2019-02-04 Thread Joonas Lahtinen
Wilson) > > Signed-off-by: Tvrtko Ursulin > Suggested-by: Chris Wilson > Cc: Chris Wilson > Reviewed-by: Chris Wilson > Reviewed-by: Joonas Lahtinen > Link: > https://patchwork.freedesktop.org/patch/msgid/20190125023005.1007-1-ch...@chris-wilson.

Re: [Intel-gfx] [PATCH 0/6] Add uAPI to support ICL VME hardware for new media-driver

2019-02-04 Thread Joonas Lahtinen
Quoting Joonas Lahtinen (2019-01-15 16:47:27) > Hi all, > > I would like to have some Acked-by's from you, the distro media > folks Cc'd here, to document your intent to start using Intel's > new media driver[1]. So if you recognize yourself (or are otherwise

Re: [Intel-gfx] [PATCH 0/6] Add uAPI to support ICL VME hardware for new media-driver

2019-02-05 Thread Joonas Lahtinen
Quoting Stéphane Marchesin (2019-02-05 06:16:48) > On Mon, Feb 4, 2019 at 1:07 AM Daniel Vetter wrote: > > > > On Mon, Feb 04, 2019 at 10:57:24AM +0200, Joonas Lahtinen wrote: > > > Quoting Joonas Lahtinen (2019-01-15 16:47:27) > > > > Hi all, > > > &

[Intel-gfx] [CI v2] drm/i915: Prevent a race during I915_GEM_MMAP ioctl with WC set

2019-02-07 Thread Joonas Lahtinen
compare function Fixes: 1816f9236303 ("drm/i915: Support creation of unbound wc user mappings for objects") Reported-by: Adam Zabrocki Suggested-by: Linus Torvalds Signed-off-by: Joonas Lahtinen Cc: # v4.0+ Cc: Akash Goel Cc: Chris Wilson Cc: Tvrtko Ursulin Cc: Adam Zabrocki R

[Intel-gfx] [CI v3 2/2] drm/i915: Handle vm_mmap error during I915_GEM_MMAP ioctl with WC set

2019-02-07 Thread Joonas Lahtinen
Add err goto label and use it when VMA can't be established or changes underneath. v2: - Dropping Fixes: as it's indeed impossible to race an object to the error address. (Chris) v3: - Use IS_ERR_VALUE (Chris) Reported-by: Adam Zabrocki Signed-off-by: Joonas Lahtinen Cc: Chris

[Intel-gfx] [CI v3 1/2] drm/i915: Prevent a race during I915_GEM_MMAP ioctl with WC set

2019-02-07 Thread Joonas Lahtinen
compare function Fixes: 1816f9236303 ("drm/i915: Support creation of unbound wc user mappings for objects") Reported-by: Adam Zabrocki Suggested-by: Linus Torvalds Signed-off-by: Joonas Lahtinen Cc: # v4.0+ Cc: Akash Goel Cc: Chris Wilson Cc: Tvrtko Ursulin Cc: Adam Zabrocki R

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Prevent a race during I915_GEM_MMAP ioctl with WC set

2019-02-07 Thread Joonas Lahtinen
Quoting Joonas Lahtinen (2019-01-07 10:56:55) > Make sure the underlying VMA in the process address space is the > same as it was during vm_mmap to avoid applying WC to wrong VMA. > > A more long-term solution would be to have vm_mmap_locked variant > in linux/mmap.h for when calle

Re: [Intel-gfx] [PATCH 1/8] drm/i915: Hack and slash, throttle execbuffer hogs

2019-02-07 Thread Joonas Lahtinen
ory) or any other global resources, see above for the long term > goal. Code checks out. Some Testcase: links and some relative perf numbers might be in place. It's pretty arbitarily tuned algorithm, after all :) Reviewed-by: Joonas Lahtinen Regards, Joonas > > Signed-off-by

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] i915/gem_exec_schedule: Rebuild signal handler in child

2019-02-08 Thread Joonas Lahtinen
onable for super low SKUs. But the SIGALRM handler should be inherted, so that's a red herring. With the commit message and title adjusted for warming up the context: Reviewed-by: Joonas Lahtinen Regards, Joonas > --- > tests/i915/gem_exec_schedule.c | 19 +-- > 1

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] i915/gem_exec_schedule: Rebuild signal handler in child

2019-02-08 Thread Joonas Lahtinen
+ Petri for the fact that igt_fork is actually igt_forkoontula and messes up set up signal handlers when transitioning to child. Quoting Chris Wilson (2019-02-08 11:01:55) > Quoting Joonas Lahtinen (2019-02-08 08:59:53) > > Quoting Chris Wilson (2019-02-07 23:03:08) > > >

Re: [Intel-gfx] [PATCH i-g-t] i915/gem_exec_scheduler: Disable alarm before exiting child

2019-02-08 Thread Joonas Lahtinen
eek like broken libc. The patch below is just next level of paranoia, so: Reviewed-by: Joonas Lahtinen Regards, Joonas > > References https://bugs.freedesktop.org/show_bug.cgi?id=109584 > Signed-off-by: Chris Wilson > Cc: Joonas Lahtinen > --- > tests/i915/gem_exec_sche

Re: [Intel-gfx] [PULL] topic/component-typed

2019-02-13 Thread Joonas Lahtinen
Quoting Rodrigo Vivi (2019-02-12 01:51:18) > On Mon, Feb 11, 2019 at 06:15:20PM +0100, Daniel Vetter wrote: > > Hi all, > > > > Here's the typed component topic branch. > > > > drm-intel maintainers: Please pull, I need this for the mei hdcp work from > > Ram. > > I'm about to handle dinq to Jo

Re: [Intel-gfx] [PATCH] drm/i915: Include reminders about leaving no holes in uAPI enums

2019-02-19 Thread Joonas Lahtinen
: Chris Wilson > Cc: Joonas Lahtinen > Cc: Jani Nikula Yeah, makes sense as I've had to bring this up on multiple occasions. Reviewed-by: Joonas Lahtinen Regards, Joonas > --- > include/uapi/drm/i915_drm.h | 8 > 1 file changed, 8 insertions(+) > > diff --gi

Re: [Intel-gfx] [RFC PATCH 00/42] Introduce memory region concept (including device local memory)

2019-02-19 Thread Joonas Lahtinen
+ dri-devel mailing list, especially for the buddy allocator part Quoting Dave Airlie (2019-02-15 02:47:07) > On Fri, 15 Feb 2019 at 00:57, Matthew Auld wrote: > > > > In preparation for upcoming devices with device local memory, introduce the > > concept of different memory regions, and a simple

Re: [Intel-gfx] [PULL] topic/mei-hdcp

2019-02-20 Thread Joonas Lahtinen
Quoting Daniel Vetter (2019-02-19 09:55:27) > Hi all, > > topic/mei-hdcp-2019-02-19: > Prep patches + headers for the mei-hdcp/i915 component interfaces > > Also contains the prep work in the component helpers plus adjustements > for the snd-hda/i915 component interface. > > Plus one small stati

Re: [Intel-gfx] [PATCH 7/7] drm/i915/perf: add flushing ioctl

2019-02-25 Thread Joonas Lahtinen
Quoting Lionel Landwerlin (2019-02-04 17:30:12) > On 22/01/2019 16:25, Joonas Lahtinen wrote: > > Quoting Lionel Landwerlin (2019-01-16 17:36:22) > >> With the currently available parameters for the i915-perf stream, > >> there are still situations that are not wel

Re: [Intel-gfx] [RFC PATCH 00/42] Introduce memory region concept (including device local memory)

2019-02-25 Thread Joonas Lahtinen
Quoting Dave Airlie (2019-02-25 12:24:48) > On Tue, 19 Feb 2019 at 23:32, Joonas Lahtinen > wrote: > > > > + dri-devel mailing list, especially for the buddy allocator part > > > > Quoting Dave Airlie (2019-02-15 02:47:07) > > > On Fri, 15

Re: [Intel-gfx] [RFC PATCH 00/42] Introduce memory region concept (including device local memory)

2019-02-26 Thread Joonas Lahtinen
Quoting Alex Deucher (2019-02-25 21:31:43) > On Mon, Feb 25, 2019 at 9:35 PM Joonas Lahtinen > wrote: > > > > Quoting Dave Airlie (2019-02-25 12:24:48) > > > On Tue, 19 Feb 2019 at 23:32, Joonas Lahtinen > > > wrote: > > > > > > > >

Re: [Intel-gfx] [RFC PATCH 00/42] Introduce memory region concept (including device local memory)

2019-02-27 Thread Joonas Lahtinen
Quoting Christian König (2019-02-27 04:17:01) > Am 27.02.19 um 00:04 schrieb Dave Airlie: > >>> At the end of the day, I don't really care that much. I get it, we > >>> all have large projects with scarce resources. I just think a few > >>> years down the road we'll all regret it as a community.

Re: [Intel-gfx] [PATCH v1 1/2] drm/selftests/mm: Switch to bitmap_zalloc()

2019-03-05 Thread Joonas Lahtinen
I take it that both instances are supposed to call bitmap_zalloc? If you can send a v2 that compiles, I can merge it after it passes the CI. Regards, Joonas Quoting Andy Shevchenko (2019-03-04 11:03:20) > Switch to bitmap_zalloc() to show clearly what we are allocating. > Besides that it returns

Re: [Intel-gfx] [PATCH 1/2] drm/i915/icl: Default to Thread Group preemption for compute workloads

2019-03-06 Thread Joonas Lahtinen
27;s also update the "workaround" naming. > > > > Yeah, in Mesa we are not implementing the SIP, so we can't do > > thread-level preemption yet and need the granularity to be no higher > > than thread group level. > > > > Acked-by: Rafael Antog

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

2018-11-28 Thread Joonas Lahtinen
Quoting Ho, Kenny (2018-11-27 17:41:17) > On Tue, Nov 27, 2018 at 4:46 AM Joonas Lahtinen > wrote: > > I think a more abstract property "% of GPU (processing power)" might > > be a more universal approach. One can then implement that through > > subdividing

Re: [Intel-gfx] [PATCH v2 2/7] drm/i915: Rename IS_GEN to GT_RANGE

2018-11-28 Thread Joonas Lahtinen
Quoting Jani Nikula (2018-11-28 10:02:22) > On Tue, 06 Nov 2018, Lucas De Marchi wrote: > > From: Rodrigo Vivi > > > > RANGE makes it longer, but clear. We are also going to add a check for > > the display part, so make rename to GT. > > I also still have my doubts about this patch I'm afraid. I

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

2018-11-28 Thread Joonas Lahtinen
drm/i915/gvt: ensure gpu is powered before do i915_gem_gtt_insert Joonas Lahtinen (1): Merge tag 'gvt-fixes-2018-11-26' of https://github.com/intel/gvt-linux into drm-intel-fixes Xinyun Liu (1): drm/i915/gvt: not to touch undefined MOCS registers drivers/gpu/drm/i915/gv

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

2018-12-05 Thread Joonas Lahtinen
Quoting Zhenyu Wang (2018-12-04 07:06:33) > > Hi, > > Just one BDW regression fix for tiling mode format return > on vfio gfx dmabuf. Pulled. Regards, Joonas > > Thanks > -- > The following changes since commit 7513edbc096a006f967eaf39088091442e623b83: > > drm/i915/gvt: Avoid use-after-fre

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

2018-12-05 Thread Joonas Lahtinen
Quoting Kuehling, Felix (2018-12-03 22:55:16) > > On 2018-11-28 4:14 a.m., Joonas Lahtinen wrote: > > Quoting Ho, Kenny (2018-11-27 17:41:17) > >> On Tue, Nov 27, 2018 at 4:46 AM Joonas Lahtinen > >> wrote: > >>> I think a more abstract property &quo

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

2018-12-07 Thread Joonas Lahtinen
1:47 +0200) - Fix for system crash after GPU hang (Bugzilla #107945) - GVT fix for guest graphics corruption (https://github.com/intel/gvt-linux/issues/61) -------- Joonas Lahtinen (1): Merg

Re: [Intel-gfx] [PATCH] drm/i915: Flush GPU relocs harder for gen3

2018-12-07 Thread Joonas Lahtinen
e GPU relocs harder with gen3") > Testcase: igt/gem_tiled_fence_blits # blb/pnv > Signed-off-by: Chris Wilson > Cc: Joonas Lahtinen As we're not going to be adding read-only scratch pages for Gen2 (I think it's a few generations too old to have it :P), this is: Reviewed-by

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

2018-12-10 Thread Joonas Lahtinen
sible to bisect which commit fixed it, and backport that. On the other hand, if it's still reproducible, we know we're not spending time on something we already fixed, and the priority gets a bump. > If you think it is useful, I can try to update my machine to > linux-next. linux-next is closer to drm-tip, so it's better. Do you have some specific reason for not wanting to run drm-tip (but linux-next is still ok)? Regards, Joonas > > Best regards, > Pavel > -- Joonas Lahtinen Open Source Graphics Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] v4.20-rc5+ on x220: Resetting chip for hang on rcs0

2018-12-10 Thread Joonas Lahtinen
#5 > [31850.668487] Hardware name: LENOVO 42872WU/42872WU, BIOS 8DET74WW > (1.44 ) 03/13/2018 > > Dmesg and /sys/class/drm/card0/error are attached. > > Best regards, > Pavel -- Joonas Lahtinen Open Source

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

2018-12-12 Thread Joonas Lahtinen
l and Gen3) Chris Wilson (3): drm/i915/execlists: Apply a full mb before execution for Braswell drm/i915: Allocate a common scratch page drm/i915: Flush GPU relocs harder for gen3 Joonas Lahtinen (1): Merge tag 'gvt-fixes-2018-12-04' of https://github.com/i

Re: [Intel-gfx] [drm-intel:for-linux-next-fixes 5/5] drivers/gpu//drm/i915/intel_ringbuffer.c:89:11: error: implicit declaration of function 'i915_scratch_offset'; did you mean 'i915_ggtt_offset'?

2018-12-12 Thread Joonas Lahtinen
Should be fixed already with an updated -fixes. Regards, Joonas Quoting kbuild test robot (2018-12-12 10:31:58) > tree: git://anongit.freedesktop.org/drm-intel for-linux-next-fixes > head: eeb139ca4b24d515265ad75f668333431896b1aa > commit: eeb139ca4b24d515265ad75f668333431896b1aa [5/5] drm/i9

Re: [Intel-gfx] 4.20.0-rc6-next-20181210, v4.20-rc1: list_del corruption on thinkpad x220, graphics related?

2018-12-13 Thread Joonas Lahtinen
Quoting Pavel Machek (2018-12-12 20:29:02) > Hi! > > > > > > > > > There's one similar for nouveau in Bugzilla, but it seems like > > > > > > > > a genuine > > > > > > > > memory corruption (1 bit flipped): > > > > > > > > > > > > > > > > https://bugs.freedesktop.org/show_bug.cgi?id=84880 > > >

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

2018-12-13 Thread Joonas Lahtinen
emoved definitions of reserved entries. (Michal) > > Increased limit of entries sent to the hardware on gen11+. > > > > BSpec: 34007 > > BSpec: 560 > > Signed-off-by: Tomasz Lis > > Reviewed-by: Daniele Ceraolo Spurio (v4) > > R-b upgrade needed here as well. &g

Re: [Intel-gfx] [PATCH v3 0/4] Dynamic EU configuration of Slice/Subslice/EU.

2018-12-14 Thread Joonas Lahtinen
Quoting Ankit Navik (2018-12-11 12:14:17) > drm/i915: Context aware user agnostic EU/Slice/Sub-slice control within kernel > > Current GPU configuration code for i915 does not allow us to change > EU/Slice/Sub-slice configuration dynamically. Its done only once while context > is created. > > Whi

Re: [Intel-gfx] [PATCH v6] drm/i915/icl: Preempt-to-idle support in execlists.

2018-12-14 Thread Joonas Lahtinen
on trigger functions to one. (Chris) > > Fixed conyext state tonot assume COMPLETED_MASK after preemption, > > since idle-to-idle case will not have it set. > > > > v4: Simplified needs_preempt_context() change. (Daniele) > > Removed clearing HWACK flag

Re: [Intel-gfx] uABI / Removing DRM_I915_LOW_LEVEL_TRACEPOINTS Kconfig

2018-12-19 Thread Joonas Lahtinen
+ Adding Linus, Dave and Daniel (because by my knowledge, we're beating a dead horse here) Quoting Steven Rostedt (2018-12-18 04:14:17) > On Mon, 17 Dec 2018 18:26:03 -0700 > Michael Sartain wrote: > > > Ftrace and perf are fantastic, stable, very well known, and documented with > > ecosystems b

Re: [Intel-gfx] uABI / Removing DRM_I915_LOW_LEVEL_TRACEPOINTS Kconfig

2018-12-19 Thread Joonas Lahtinen
Quoting Pierre-Loup A. Griffais (2018-12-18 20:14:49) > > On 12/18/18 3:33 AM, Chris Wilson wrote: > > Quoting Michael Sartain (2018-12-18 01:26:03) > >> I'm writing to try and make a case for Tvrtko's "Remove > >> DRM_I915_LOW_LEVEL_TRACEPOINTS Kconfig" patch: > >> > >>https://lists.freedeskt

Re: [Intel-gfx] [RFC PATCH v2 1/2] drm/i915: Export current required functions for GVT

2018-12-20 Thread Joonas Lahtinen
Quoting Zhenyu Wang (2018-11-26 08:05:53) > This trys to export all required i915 functions for GVT. We have couple of __ prefixed functions proposed here. That'd mostly mean whoever wrote the function intended it to be used only at file scope for its nature (or with special caution outside of fil

Re: [Intel-gfx] [RFC PATCH v2 2/2] drm/i915: Move GVT device model into separate module

2018-12-20 Thread Joonas Lahtinen
e just copied > register list. So GVT will use initial dump instead when load. As discussed in IRC, lets try to get the golden MMIO concept going, so we could completely get rid of intel_gvt.c. Regards, Joonas > > Cc: Joonas Lahtinen > Signed-off-by: Zhenyu Wang > --- > driver

Re: [Intel-gfx] [PATCH v6 3/3] drm/i915/gvt: Change KVMGT as self load module

2018-12-20 Thread Joonas Lahtinen
en MMIO state (instead of capturing at boot). With those This should both expedite the i915 driver loading on DOM0, when GVT can be loaded as secondary module. And the golden MMIO state instead of capturing from host would avoid leaking any changes in host configuration (say, due to BIOS updat

Re: [Intel-gfx] uABI / Removing DRM_I915_LOW_LEVEL_TRACEPOINTS Kconfig

2018-12-20 Thread Joonas Lahtinen
Quoting Steven Rostedt (2018-12-19 21:22:57) > On Wed, 19 Dec 2018 12:08:18 +0200 > Joonas Lahtinen wrote: > > > To me, it seems almost as if folks are too preoccupied with thinking if > > we somehow can do this through tracepoints, to stop and actually think > > if we

Re: [Intel-gfx] uABI / Removing DRM_I915_LOW_LEVEL_TRACEPOINTS Kconfig

2018-12-20 Thread Joonas Lahtinen
Quoting Michael Sartain (2018-12-20 20:27:19) > On Wed, Dec 19, 2018, at 12:22 PM, Steven Rostedt wrote: > > On Wed, 19 Dec 2018 12:08:18 +0200 > > Joonas Lahtinen wrote: > >· > > > To me, it seems almost as if folks are too preoccupied with thinking if > &

Re: [Intel-gfx] [regression from v4.19] Re: 4.20.0-rc6-next-20181210, v4.20-rc1: list_del corruption on thinkpad x220, graphics related?

2019-01-02 Thread Joonas Lahtinen
Quoting Pavel Machek (2018-12-27 10:34:39) > Hi! > > > > > > If you think it is useful, I can try to update my machine to > > > > > linux-next. > > > > > > > > linux-next is closer to drm-tip, so it's better. Do you have some > > > > specific reason for not wanting to run drm-tip (but linux-next

Re: [Intel-gfx] iommu_intel or i915 regression in 4.18, 4.19.12 and drm-tip

2019-01-02 Thread Joonas Lahtinen
Quoting Eric Wong (2018-12-27 13:49:48) > I just got a used Thinkpad X201 (Core i5 M 520, Intel QM57 > chipset) and hit some kernel panics while trying to view > image/animation-intensive stuff in Firefox (X11) unless I use > "iommu_intel=igfx_off". > > With Debian stable backport kernels, "linux-

Re: [Intel-gfx] iommu_intel or i915 regression in 4.18, 4.19.12 and drm-tip

2019-01-04 Thread Joonas Lahtinen
Quoting Eric Wong (2019-01-04 03:06:26) > Joonas Lahtinen wrote: > > Quoting Eric Wong (2018-12-27 13:49:48) > > > I just got a used Thinkpad X201 (Core i5 M 520, Intel QM57 > > > chipset) and hit some kernel panics while trying to view > > > image/anima

[Intel-gfx] [PATCH 2/2] drm/i915: Handle vm_mmap error during I915_GEM_MMAP ioctl with WC set

2019-01-07 Thread Joonas Lahtinen
Add err goto label and use it when VMA can't be established or changes underneath. Fixes: 1816f9236303 ("drm/i915: Support creation of unbound wc user mappings for objects") Reported-by: Adam Zabrocki Signed-off-by: Joonas Lahtinen Cc: # v4.0+ Cc: Akash Goel Cc: Chris Wil

[Intel-gfx] [PATCH 1/2] drm/i915: Prevent a race during I915_GEM_MMAP ioctl with WC set

2019-01-07 Thread Joonas Lahtinen
("drm/i915: Support creation of unbound wc user mappings for objects") Reported-by: Adam Zabrocki Suggested-by: Linus Torvalds Signed-off-by: Joonas Lahtinen Cc: # v4.0+ Cc: Akash Goel Cc: Chris Wilson Cc: Tvrtko Ursulin Cc: Adam Zabrocki --- drivers/gpu/drm/i915/i915_

Re: [Intel-gfx] [PATCH] drm/i915: Fixup kerneldoc for intel_device_info_runtime_init

2019-01-07 Thread Joonas Lahtinen
drm/i915/intel_device_info.c:727: warning: Excess function > parameter 'info' description in 'intel_device_info_runtime_init' > > Signed-off-by: Chris Wilson > Cc: Jani Nikula > Cc: Tvrtko Ursulin Reviewed-by: Joonas Lahtinen Regards, Joonas _

Re: [Intel-gfx] [PATCH] drm/i915/icl: Apply WaEnablePreemptionGranularityControlByUMD

2019-01-07 Thread Joonas Lahtinen
Quoting José Roberto de Souza (2019-01-04 19:37:00) > According to Workaround database ICL also needs > WaEnablePreemptionGranularityControlByUMD, to allow userspace to do > fine-granularity preemptions per-context. I must wonder where is the userspace component that needs this, and why it hasn't

[Intel-gfx] [PATCH 2/2] drm/i915: Indent GuC/WOPCM documentation sections

2019-08-30 Thread Joonas Lahtinen
Indent GuC/WOPCM documentation correctly to reside under "Memory Management and Command Submission" section to avoid it escaping to the upper level navigation. Signed-off-by: Joonas Lahtinen Cc: Michal Wajdeczko Cc: Daniele Ceraolo Spurio Cc: Chris Wilson --- Documentation/gpu/i91

[Intel-gfx] [PATCH 1/2] drm/i915: Remove link to missing "Batchbuffer Pools" documentation

2019-08-30 Thread Joonas Lahtinen
The referenced documentation section has been removed. Remove the link to avoid warning when building the documentation. Signed-off-by: Joonas Lahtinen Cc: Chris Wilson Cc: Matthew Auld --- Documentation/gpu/i915.rst | 9 - 1 file changed, 9 deletions(-) diff --git a/Documentation

[Intel-gfx] [PATCH] drm/i915: Document locking guidelines

2019-08-30 Thread Joonas Lahtinen
To ensure cross-driver locking compatibility, document the expected guidelines for implementing the GEM locking in i915. Note that this is a description of how things should end up after being reworked, and does not reflect the current state of things. Signed-off-by: Joonas Lahtinen Signed-off

Re: [Intel-gfx] [PATCH] drm/i915: add plural() helper for logging plurals

2019-09-02 Thread Joonas Lahtinen
Quoting Jani Nikula (2019-09-02 21:29:16) > Add a helper instead of open coding the plurals in debug logs. Also > fixes the case for "0 display pipes available." > > Signed-off-by: Jani Nikula > > --- > > I stumbled upon the pipes one while working on ->num_pipes. I honestly > thought we'd have

Re: [Intel-gfx] [PATCH] drm/i915/selftests: Remove unused __engines_name()

2019-09-02 Thread Joonas Lahtinen
Quoting Chris Wilson (2019-09-01 14:04:31) > This function was never used and probably will never be used, so remove > it. > > Signed-off-by: Chris Wilson Reviewed-by: Joonas Lahtinen Regards, Joonas ___ Intel-gfx mailing li

Re: [Intel-gfx] [PATCH] drm/i915/tgl: Add sysfs interface to control class-of-service

2019-09-09 Thread Joonas Lahtinen
Quoting Prathap Kumar Valsan (2019-08-26 01:48:01) > To provide shared last-level-cache isolation to cpu workloads running > concurrently with gpu workloads, the gpu allocation of cache lines needs > to be restricted to certain ways. Currently GPU hardware supports four > class-of-service(CLOS) lev

Re: [Intel-gfx] [PATCH v3 00/37] Introduce memory region concept (including device local memory)

2019-09-12 Thread Joonas Lahtinen
Quoting Dave Airlie (2019-08-13 22:20:52) > On Sat, 10 Aug 2019 at 08:26, Matthew Auld wrote: > > > > In preparation for upcoming devices with device local memory, introduce the > > concept of different memory regions, and a simple buddy allocator to manage > > them in i915. > > > > One of the con

Re: [Intel-gfx] [PULL] topic/hdr-formats

2019-03-11 Thread Joonas Lahtinen
Quoting Maarten Lankhorst (2019-03-07 11:48:24) > Hi Sean and Joonas, > > Here's a pull request for HDR format enabling in i915. Can this be pulled to > drm-misc-next and dinq? I was travelling on Fri, so sorry for delay. This is now pulled to dinq, too. Regards, Joonas > > Cheers, > Maarten

<    1   2   3   4   5   6   7   8   9   10   >