Re: [Intel-gfx] [PATCH 4/9] drm/i915: refactor cursor code out of i915_display.c

2020-12-10 Thread Daniel Vetter
On Thu, Dec 10, 2020 at 5:12 PM Jani Nikula wrote: > > On Thu, 10 Dec 2020, Ville Syrjälä wrote: > > On Thu, Dec 10, 2020 at 02:17:50PM +1000, Dave Airlie wrote: > >> From: Dave Airlie > >> > >> This file is a monster, let's start simple, the cursor plane code > >> seems pretty standalone, and s

Re: [Intel-gfx] [PATCH 6/9] drm/i915: refactor pll code out into intel_dpll_legacy.c

2020-12-10 Thread Daniel Vetter
uses the intel_dpll_mgr.c stuff. Probably more splitting to do eventually, but just intel_dpll.c sounds reasonable for now. -Daniel > > -- > Ville Syrjälä > Intel > ___ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH 1/4] dma-buf: Remove kmap kerneldoc vestiges

2020-12-11 Thread Daniel Vetter
Also try to clarify a bit when dma_buf_begin/end_cpu_access should be called. Signed-off-by: Daniel Vetter Cc: Thomas Zimmermann Cc: Sumit Semwal Cc: "Christian König" Cc: linux-me...@vger.kernel.org Cc: linaro-mm-...@lists.linaro.org --- drivers/dma-buf/dma-

[Intel-gfx] [PATCH 2/4] dma-buf: some kerneldoc formatting fixes

2020-12-11 Thread Daniel Vetter
Noticed while reviewing the output. Adds a bunch more links and fixes the function interface quoting. Signed-off-by: Daniel Vetter Cc: Thomas Zimmermann Cc: Sumit Semwal Cc: "Christian König" Cc: linux-me...@vger.kernel.org Cc: linaro-mm-...@lists.linaro.org --- drivers/dma-buf

[Intel-gfx] [PATCH 3/4] dma-buf: begin/end_cpu might lock the dma_resv lock

2020-12-11 Thread Daniel Vetter
At least amdgpu and i915 do, so lets just document this as the rule. Signed-off-by: Daniel Vetter Cc: Thomas Zimmermann Cc: Sumit Semwal Cc: "Christian König" Cc: linux-me...@vger.kernel.org Cc: linaro-mm-...@lists.linaro.org --- drivers/dma-buf/dma-buf.c | 4 1 file

[Intel-gfx] [PATCH 4/4] dma-buf: doc polish for pin/unpin

2020-12-11 Thread Daniel Vetter
Motivated by a discussion with Christian and Thomas: Try to untangle a bit what's relevant for importers and what's relevant for exporters. Also add an assert that really only dynamic importers use the api function, anything else doesn't make sense. Signed-off-by: Daniel Vet

Re: [Intel-gfx] [PATCH 28/65] drm/ttm: WARN_ON non-empty lru when disabling a resource manager

2020-12-11 Thread Daniel Vetter
On Fri, Oct 23, 2020 at 04:56:20PM +0200, Daniel Vetter wrote: > On Fri, Oct 23, 2020 at 4:54 PM Christian König > wrote: > > > > Am 23.10.20 um 14:21 schrieb Daniel Vetter: > > > ttm_resource_manager->use_type is only used for runtime changes by > > >

Re: [Intel-gfx] [PATCH v5 1/6] drm/damage_helper: Check if damage clips has valid values

2020-12-14 Thread Daniel Vetter
lips. (Plane's damage clip might exist outside > of fb src geometry.) Since this is causing confusion, please make sure that the igt for damage clips validates this correctly. I think some of the igts that vmwgfx people have created have still not yet landed, so we definitely want to land thes

Re: [Intel-gfx] [PATCH 1/4] dma-buf: Remove kmap kerneldoc vestiges

2020-12-14 Thread Daniel Vetter
On Mon, Dec 14, 2020 at 11:33:10AM +0100, Christian König wrote: > Am 11.12.20 um 16:58 schrieb Daniel Vetter: > > Also try to clarify a bit when dma_buf_begin/end_cpu_access should > > be called. > > > > Signed-off-by: Daniel Vetter > > Cc: Thomas Zimmerm

[Intel-gfx] [PATCH] dma-buf: begin/end_cpu might lock the dma_resv lock

2020-12-14 Thread Daniel Vetter
At least amdgpu and i915 do, so lets just document this as the rule. v2: Works better with less typos (intel-gfx-ci) Signed-off-by: Daniel Vetter Cc: Thomas Zimmermann Cc: Sumit Semwal Cc: "Christian König" Cc: linux-me...@vger.kernel.org Cc: linaro-mm-...@lists.linaro.org --- d

Re: [Intel-gfx] [PULL] drm-misc-next-fixes

2020-12-15 Thread Daniel Vetter
f fixes pull (less than what git shortlog provides): > > * dma-buf: Fix docs > * mxsfb: Silence invalid error message > * radeon: Fix TTM multihop > > -------- > Christian König (1): > drm/radeon: fix check or

Re: [Intel-gfx] [PATCH 14/65] drm/rcar-du: Annotate dma-fence critical section in commit path

2020-12-16 Thread Daniel Vetter
On Wed, Dec 16, 2020 at 2:29 AM Laurent Pinchart wrote: > > Hi Daniel, > > Thank you for the patch. > > On Fri, Oct 23, 2020 at 02:21:25PM +0200, Daniel Vetter wrote: > > Ends right after drm_atomic_helper_commit_hw_done(), absolutely > > nothing fancy going on here.

Re: [Intel-gfx] [PATCH 1/4] dma-buf: Remove kmap kerneldoc vestiges

2020-12-16 Thread Daniel Vetter
On Tue, Dec 15, 2020 at 03:18:49PM +0100, Christian König wrote: > Am 14.12.20 um 17:01 schrieb Daniel Vetter: > > On Mon, Dec 14, 2020 at 11:33:10AM +0100, Christian König wrote: > > > Am 11.12.20 um 16:58 schrieb Daniel Vetter: > > > > Also try to clarify a bit whe

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

2020-12-18 Thread Daniel Vetter
gem_execbuffer.c | 2 +- > drivers/gpu/drm/i915/i915_drv.h| 12 ++-- > drivers/gpu/drm/i915/i915_irq.c| 27 > ++ > drivers/gpu/drm/i915/i915_perf.c | 2 +- > 4 files changed, 23 ins

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

2021-01-07 Thread Daniel Vetter
i915_gem_execbuffer.c | 4 +++- > drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 1 + > drivers/gpu/drm/i915/i915_cmd_parser.c | 27 > -- > drivers/gpu/drm/i915/i915_drv.c| 5 > drivers/gpu/drm/i915/i915_drv

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

2021-01-07 Thread Daniel Vetter
RU handling further > > Chuhong Yuan (1): > drm/fb-helper: Add missed unlocks in setcmap_legacy() > > Dafna Hirschfeld (2): > drm/rockchip: for error print, use the correct device pointer > drm/rockchip: fix typo in Kconfig 's/HDMI/dsi/' > > Dan Carpenter (

Re: [Intel-gfx] [PULL] topic/dp-hdmi-2.1-pcon for drm-misc-next

2021-01-07 Thread Daniel Vetter
| 103 > drivers/gpu/drm/i915/display/intel_ddi.c | 6 +- > drivers/gpu/drm/i915/display/intel_display_types.h | 10 + > drivers/gpu/drm/i915/display/intel_dp.c| 440 +++- > drivers/gpu/drm/i915/display/intel_dp.h| 7 +-

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

2021-01-07 Thread Daniel Vetter
rs/gpu/drm/i915/i915_suspend.c| 33 +- > drivers/gpu/drm/i915/intel_device_info.c |2 +- > drivers/gpu/drm/i915/intel_pm.c| 552 +++--- > drivers/gpu/drm/i915/intel_sideband.c |4 +- > drivers/gpu/drm/i915/intel_uncore.c|4 +- > drivers/gpu/drm/i915/intel_uncore.h|6 +- > include/drm/drm_dsc.h |1 + > 49 files changed, 3222 insertions(+), 3075 deletions(-) > create mode 100644 drivers/gpu/drm/i915/display/i9xx_plane.c > create mode 100644 drivers/gpu/drm/i915/display/i9xx_plane.h > create mode 100644 drivers/gpu/drm/i915/display/intel_cursor.c > create mode 100644 drivers/gpu/drm/i915/display/intel_cursor.h -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

2021-01-07 Thread Daniel Vetter
drm/ttm: cleanup LRU handling further > > Chuhong Yuan (1): > drm/fb-helper: Add missed unlocks in setcmap_legacy() > > Dafna Hirschfeld (2): > drm/rockchip: for error print, use the correct device pointer > drm/rockchip: fix typo in Kconfig 's/

Re: [Intel-gfx] [kbuild-all] Re: [PATCH v3 8/8] drm: Upcast struct drm_device.dev to struct pci_device; replace pdev

2021-01-08 Thread Daniel Vetter
> > > 'dev'? > > > > 1316 |    &dev_priv->dev->pdev->dev, > > > >   |    ^~~~ > > > >   |    dev > > > >     drivers/gpu/drm/vmwgfx/

Re: [Intel-gfx] [PULL] drm-misc-fixes

2021-01-08 Thread Daniel Vetter
a-buf/dma-buf.c | 21 + > drivers/gpu/drm/radeon/radeon_ttm.c | 3 --- > drivers/gpu/drm/ttm/ttm_pool.c | 2 -- > 3 files changed, 17 insertions(+), 9 deletions(-) > > -- > Thomas Zimmermann > Graphics Driver Developer > SUSE Software Sol

Re: [Intel-gfx] [PATCH v2] drm: Check actual format for legacy pageflip.

2021-01-12 Thread Daniel Vetter
> > > > > I checked other drivers and it doesn't look like they end up triggering > > > > this case so I think this is safe to relax. > > > > > > > > Signed-off-by: Bas Nieuwenhuizen > > > > Reviewed-by: Daniel Vetter

Re: [Intel-gfx] [RFC PATCH 098/162] drm/i915/gtt: map the PD up front

2021-01-12 Thread Daniel Vetter
at has a long-term mapping intention behind it. And at that point it's probably equally amounts of work to just go back to ad-hoc kmap. Also the rules have changed somewhat with kmap_local anyway, a kmap is a lot less painful in the code than it was with kmap_atomic. -Daniel -- Daniel

[Intel-gfx] [PATCH 1/2] mm/dmapool: Use might_alloc()

2021-01-13 Thread Daniel Vetter
Now that my little helper has landed, use it more. On top of the existing check this also uses lockdep through the fs_reclaim annotations. Signed-off-by: Daniel Vetter Cc: Andrew Morton Cc: linux...@kvack.org -- v2: git add everything ... :-/ --- mm/dmapool.c | 3 ++- 1 file changed, 2

[Intel-gfx] [PATCH 2/2] bdi: Use might_alloc()

2021-01-13 Thread Daniel Vetter
Now that my little helper has landed, use it more. On top of the existing check this also uses lockdep through the fs_reclaim annotations. Signed-off-by: Daniel Vetter Cc: Andrew Morton Cc: linux...@kvack.org -- v2: git add everything ... oops --- mm/backing-dev.c | 2 +- 1 file changed, 1

[Intel-gfx] [PATCH] drm-buf: Add debug option

2021-01-13 Thread Daniel Vetter
irly low in the kernel mapping, so flipping all the bits gives us a very high pointer in userspace and hence excellent chances for an invalid dereference. Signed-off-by: Daniel Vetter Cc: Sumit Semwal Cc: "Christian König" Cc: David Stevens Cc: linux-me...@vger.kernel.org Cc: linar

Re: [Intel-gfx] [PATCH] drm/i915: Use DRIVER_NAME for tracing unattached requests

2021-05-31 Thread Daniel Vetter
On Thu, May 20, 2021 at 4:28 PM Daniel Vetter wrote: > > On Thu, May 20, 2021 at 08:35:14AM +0100, Matthew Auld wrote: > > From: Chris Wilson > > > > The first tracepoint for a request is trace_dma_fence_init called before > > we have associated the request with

Re: [Intel-gfx] [PATCH 1/1] drm/i915: Introduce i915_sched_engine object

2021-05-31 Thread Daniel Vetter
gether > > c968d4d87cf4 drm/i915: Extract the ability to defer and rerun a request > > later > > 746cafc44205 drm/i915: Extract request suspension from the execlists > > 3d473f1476d8 drm/i915: Extract request rewinding from execlists > > d353a704a6db drm/i915: Extract

Re: [Intel-gfx] [PATCH 16/29] drm/i915/gem: Add an intermediate proto_context struct

2021-05-31 Thread Daniel Vetter
1 +80,17 @@ void mock_init_contexts(struct drm_i915_private *i915) > struct i915_gem_context * > live_context(struct drm_i915_private *i915, struct file *file) > { > + struct i915_gem_proto_context *pc; > struct i915_gem_context *ctx; > int err; > u32 id; > >

Re: [Intel-gfx] [PATCH 18/29] drm/i915/gem: Optionally set SSEU in intel_context_set_gem

2021-05-31 Thread Daniel Vetter
; > mutex_init(&ctx->engines_mutex); > - e = default_engines(ctx); > + e = default_engines(ctx, null_sseu); > if (IS_ERR(e)) > goto err_free; > RCU_INIT_POINTER(ctx->engines, e); > @@ -112,6 +113,7 @@ live_context_for_engine(st

Re: [Intel-gfx] [PATCH 21/29] drm/i915/gem: Use the proto-context to handle create parameters (v2)

2021-05-31 Thread Daniel Vetter
e have think about those interactions. > > v2 (Daniel Vetter): > - Add a proto_context_free_user_engines helper > - Comment on SSEU in the commit message > - Use proto_context_set_persistence in set_proto_ctx_param > > Signed-off-by: Jason Ekstrand &g

Re: [Intel-gfx] [PATCH 24/29] drm/i915/gem: Delay context creation

2021-05-31 Thread Daniel Vetter
44 > --- a/drivers/gpu/drm/i915/i915_drv.h > +++ b/drivers/gpu/drm/i915/i915_drv.h > @@ -201,6 +201,16 @@ struct drm_i915_file_private { > struct rcu_head rcu; > }; > > + /** @proto_context_lock: Guards all i915_gem_proto_context operations > + * > + * See i915_gem_proto_context. Please add locking rules here, like "This is always held whenever we manipulate any proto context, including finalizing it on first actual use of the GEM context". > + */ > + struct mutex proto_context_lock; > + > + /** @proto_context_xa: xarray of i915_gem_proto_context */ Pls fix hyperlinks. Also please put your nice explainer from the commit message here ... > + struct xarray proto_context_xa; > + > + /** @context_xa: xarray of fully created i915_gem_context */ ... and reference it with a "See @proto_context_xa" here. Maybe also reference i915_gem_context_lookup() from these so readers of the code can easily find all the pieces of this magic. Also mention here that write access to @context_xa is protected by @proto_context_lock. It must be held to avoid races with finalization of proto context in e.g. i915_gem_context_destroy_ioctl(), and this wasn't obvious to me at all. > struct xarray context_xa; > struct xarray vm_xa; > > @@ -1857,20 +1867,6 @@ struct drm_gem_object *i915_gem_prime_import(struct > drm_device *dev, > > struct dma_buf *i915_gem_prime_export(struct drm_gem_object *gem_obj, int > flags); > > -static inline struct i915_gem_context * > -i915_gem_context_lookup(struct drm_i915_file_private *file_priv, u32 id) > -{ > - struct i915_gem_context *ctx; > - > - rcu_read_lock(); > - ctx = xa_load(&file_priv->context_xa, id); > - if (ctx && !kref_get_unless_zero(&ctx->ref)) > - ctx = NULL; > - rcu_read_unlock(); > - > - return ctx ? ctx : ERR_PTR(-ENOENT); > -} > - > static inline struct i915_address_space * > i915_gem_vm_lookup(struct drm_i915_file_private *file_priv, u32 id) > { > -- > 2.31.1 Nothing big looks wrong, with the nits addressed: Reviewed-by: Daniel Vetter > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 26/29] drm/i915/gem: Don't allow changing the engine set on running contexts (v2)

2021-05-31 Thread Daniel Vetter
cks. Iirc drm_file disappearing at a bad time is a large reasons for all these tricks we need for context/request/engine cleanup. But yeah definitely needs a pile more analysis. > > v2 (Jason Ekstrand): > - Expand the commit mesage I already gave you an r-b assuming you type so

Re: [Intel-gfx] [PATCH 25/29] drm/i915/gem: Don't allow changing the VM on running contexts (v2)

2021-05-31 Thread Daniel Vetter
ell as a > duplicated (and slightly different) copy of the code which programs the > PPGTT registers. > > v2 (Jason Ekstrand): > - Expand the commit message > > Signed-off-by: Jason Ekstrand Already scored an Reviewed-by: Daniel Vetter now that the commit message is th

Re: [Intel-gfx] [PATCH 29/29] drm/i915/gem: Roll all of context creation together

2021-05-31 Thread Daniel Vetter
engine sets and lets us get rid of the complex VM setting code. > > Signed-off-by: Jason Ekstrand On the last three patches: Reviewed-by: Daniel Vetter Looking at the end result we still have the ctx->user_flags which are muttable, and I think for again no reason at all. Especially fo

Re: [Intel-gfx] [PATCH] drm/i915: Add relocation exceptions for two other platforms

2021-06-01 Thread Daniel Vetter
On Tue, Jun 1, 2021 at 9:19 AM Dave Airlie wrote: > On Thu, 27 May 2021 at 20:04, Daniel Vetter wrote: > > On Wed, May 26, 2021 at 10:35:49AM +1000, Dave Airlie wrote: > > > On Wed, 12 May 2021 at 03:05, Daniel Vetter wrote: > > > > On Tue, May 11, 2021 at 10:31:39

Re: [Intel-gfx] [PATCH] drm/i915: Use DRIVER_NAME for tracing unattached requests

2021-06-01 Thread Daniel Vetter
On Tue, Jun 1, 2021 at 1:13 PM Matthew Auld wrote: > On 31/05/2021 08:53, Daniel Vetter wrote: > > On Thu, May 20, 2021 at 4:28 PM Daniel Vetter wrote: > >> > >> On Thu, May 20, 2021 at 08:35:14AM +0100, Matthew Auld wrote: > >>> From: Chris Wilson > &g

Re: [Intel-gfx] [PATCH 1/1] Let userspace know if they can trust timeslicing by including it as part of the I915_PARAM_HAS_SCHEDULER::I915_SCHEDULER_CAP_TIMESLICING

2021-06-01 Thread Daniel Vetter
On Tue, Jun 01, 2021 at 11:09:47AM +0100, Tvrtko Ursulin wrote: > > On 27/05/2021 11:27, Daniel Vetter wrote: > > On Thu, May 27, 2021 at 11:22:16AM +0100, Tvrtko Ursulin wrote: > > > > > > On 27/05/2021 11:13, Daniel Vetter wrote: > > > > On Wed, May 26

Re: [Intel-gfx] [PATCH 2/7] dma-buf: Rename dma_resv helpers from _rcu to _unlocked (v2)

2021-06-01 Thread Daniel Vetter
On Thu, May 27, 2021 at 03:41:02PM +0200, Christian König wrote: > Am 27.05.21 um 15:25 schrieb Daniel Vetter: > > On Thu, May 27, 2021 at 1:59 PM Christian König > > wrote: > > > Am 27.05.21 um 12:39 schrieb Daniel Vetter: > > > > On Wed, May 26, 2021 at 12:

Re: [Intel-gfx] [PATCH] Revert "i915: use io_mapping_map_user"

2021-06-02 Thread Daniel Vetter
07] do_user_addr_fault+0x1c5/0x660 > > > > Reverting this commit is reported to fix the issue. > > > > Reported-by: Eero Tamminen > > References: https://gitlab.freedesktop.org/drm/intel/-/issues/3519 > > Fixes: b739f125e4eb ("i915: use io_mapping_map_user&q

Re: [Intel-gfx] [PATCH] Revert "i915: use io_mapping_map_user"

2021-06-02 Thread Daniel Vetter
Adding Jani and Rodrigo since drm-intel-fixes is on them. -Daniel On Wed, Jun 2, 2021 at 12:10 PM Matthew Auld wrote: > > On Wed, 2 Jun 2021 at 09:01, Daniel Vetter wrote: > > > > On Wed, Jun 2, 2021 at 9:28 AM Matthew Auld > > wrote: > > > > > >

Re: [Intel-gfx] Merging TTM branches through the Intel tree?

2021-06-02 Thread Daniel Vetter
n both drm-misc-next and drm-intel-gt-next in the merge commit. If it's not too bad (I haven't looked at what exactly we need for the i915 side from ttm in detail). But also often figuring out the topic branch logistics takes longer than just merging to drm-misc-next as the patches get ready

Re: [Intel-gfx] [PATCH 03/11] drm/panfrost: Use xarray and helpers for depedency tracking

2021-06-02 Thread Daniel Vetter
On Wed, Jun 02, 2021 at 03:06:50PM +0100, Steven Price wrote: > On 21/05/2021 10:09, Daniel Vetter wrote: > > More consistency and prep work for the next patch. > > > > Aside: I wonder whether we shouldn't just move this entire xarray > > business into the sched

Re: [Intel-gfx] [RFC PATCH 00/97] Basic GuC submission support in the i915

2021-06-02 Thread Daniel Vetter
've merged already. Minimally this needs a comment here and in the struct next to @pin_count to explain where all this is abused, which would already make it better than most of the in-tree ones. As part of the ttm conversion we have a plan to sunset the "pin_count as a lock" stuff,

Re: [Intel-gfx] [RFC PATCH 00/97] Basic GuC submission support in the i915

2021-06-02 Thread Daniel Vetter
On Thu, Jun 3, 2021 at 5:48 AM Matthew Brost wrote: > > On Wed, Jun 02, 2021 at 08:57:02PM +0200, Daniel Vetter wrote: > > On Wed, Jun 2, 2021 at 5:27 PM Tvrtko Ursulin > > wrote: > > > On 25/05/2021 17:45, Matthew Brost wrote: > > > > On Tue, May 25, 2

Re: [Intel-gfx] [PATCH 16/27] drm/i915/gem: Add an intermediate proto_context struct

2021-06-03 Thread Daniel Vetter
On Wed, Jun 2, 2021 at 11:53 PM Jason Ekstrand wrote: > > On Tue, May 4, 2021 at 11:13 AM Daniel Vetter wrote: > > > > On Mon, May 03, 2021 at 10:57:37AM -0500, Jason Ekstrand wrote: > > > The current context uAPI allows for two methods of setting context > > &g

Re: [Intel-gfx] [PATCH 16/29] drm/i915/gem: Add an intermediate proto_context struct

2021-06-03 Thread Daniel Vetter
On Wed, Jun 2, 2021 at 11:24 PM Jason Ekstrand wrote: > > On Mon, May 31, 2021 at 3:47 AM Daniel Vetter wrote: > > > > On Thu, May 27, 2021 at 11:26:37AM -0500, Jason Ekstrand wrote: > > > The current context uAPI allows for two methods of setting context > > &g

Re: [Intel-gfx] [PATCH 24/29] drm/i915/gem: Delay context creation

2021-06-03 Thread Daniel Vetter
On Thu, Jun 3, 2021 at 12:55 AM Jason Ekstrand wrote: > > On Mon, May 31, 2021 at 4:50 AM Daniel Vetter wrote: > > > > On Thu, May 27, 2021 at 11:26:45AM -0500, Jason Ekstrand wrote: > > > @@ -2692,16 +2792,41 @@ int i915_gem_context_setparam_ioctl(struct > &

Re: [Intel-gfx] [PATCH 21/29] drm/i915/gem: Use the proto-context to handle create parameters (v2)

2021-06-03 Thread Daniel Vetter
On Thu, Jun 3, 2021 at 12:23 AM Jason Ekstrand wrote: > > On Mon, May 31, 2021 at 4:12 AM Daniel Vetter wrote: > > > > On Thu, May 27, 2021 at 11:26:42AM -0500, Jason Ekstrand wrote: > > > +static int set_proto_ctx_engines(struct d

Re: [Intel-gfx] Merging TTM branches through the Intel tree?

2021-06-03 Thread Daniel Vetter
On Thu, Jun 3, 2021 at 8:50 AM Thomas Hellström wrote: > > > On 6/2/21 8:40 PM, Daniel Vetter wrote: > > On Wed, Jun 02, 2021 at 11:48:41AM +0200, Christian König wrote: > >> Am 02.06.21 um 11:16 schrieb Thomas Hellström (Intel): > >>> On 6/2/21 10:32 AM, C

Re: [Intel-gfx] [PATCH 3/5] drm/i915: Drop error handling from dma_fence_work

2021-06-03 Thread Daniel Vetter
d_vma(vw->vm, &vw->stash, > vma, vw->cache_level, vw->flags); > - return 0; > } > > static void __vma_release(struct dma_fence_work *work) > -- > 2.31.1 > > ___ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 1/5] drm/i915: Revert "drm/i915/gem: Asynchronous cmdparser"

2021-06-03 Thread Daniel Vetter
, > + &needs_clflush_after); > + if (IS_ERR(cmd)) { > + DRM_DEBUG("CMD: Failed to copy batch\n"); > + return PTR_ERR(cmd); > + } > + > + jump_whitelist = NULL; > + if (!trampoline) > + /* Defer failure until attempted use */ > + jump_whitelist = alloc_whitelist(batch_length); > > shadow_addr = gen8_canonical_addr(shadow->node.start); > batch_addr = gen8_canonical_addr(batch->node.start + batch_offset); > @@ -1549,6 +1560,9 @@ int intel_engine_cmd_parser(struct intel_engine_cs > *engine, > > i915_gem_object_flush_map(shadow->obj); > > + if (!IS_ERR_OR_NULL(jump_whitelist)) > + kfree(jump_whitelist); > + i915_gem_object_unpin_map(shadow->obj); > return ret; > } > > diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h > index 39b5e019c1a5b..92003970253e5 100644 > --- a/drivers/gpu/drm/i915/i915_drv.h > +++ b/drivers/gpu/drm/i915/i915_drv.h > @@ -1913,17 +1913,12 @@ const char *i915_cache_level_str(struct > drm_i915_private *i915, int type); > int i915_cmd_parser_get_version(struct drm_i915_private *dev_priv); > int intel_engine_init_cmd_parser(struct intel_engine_cs *engine); > void intel_engine_cleanup_cmd_parser(struct intel_engine_cs *engine); > -unsigned long *intel_engine_cmd_parser_alloc_jump_whitelist(u32 batch_length, > - bool trampoline); > - > int intel_engine_cmd_parser(struct intel_engine_cs *engine, > struct i915_vma *batch, > unsigned long batch_offset, > unsigned long batch_length, > struct i915_vma *shadow, > - unsigned long *jump_whitelist, > - void *shadow_map, > - const void *batch_map); > + bool trampoline); > #define I915_CMD_PARSER_TRAMPOLINE_SIZE 8 > > /* intel_device_info.c */ > -- > 2.31.1 > > ___ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 4/5] Revert "drm/i915: Propagate errors on awaiting already signaled fences"

2021-06-03 Thread Daniel Vetter
("drm/i915: Propagate errors on awaiting already signaled > fences") > Signed-off-by: Daniel Vetter > Reviewed-by: Jon Bloomfield > --- > drivers/gpu/drm/i915/i915_request.c | 8 ++-- > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/dr

Re: [Intel-gfx] [PATCH 4/5] Revert "drm/i915: Propagate errors on awaiting already signaled fences"

2021-06-03 Thread Daniel Vetter
On Thu, Jun 03, 2021 at 10:24:21AM +0200, Daniel Vetter wrote: > On Wed, Jun 02, 2021 at 11:41:48AM -0500, Jason Ekstrand wrote: > > This reverts commit 9e31c1fe45d555a948ff66f1f0e3fe1f83ca63f7. Ever > > since that commit, we've been having issues where a hang in one client

Re: [Intel-gfx] [PATCH 4/5] Revert "drm/i915: Propagate errors on awaiting already signaled fences"

2021-06-03 Thread Daniel Vetter
On Thu, Jun 03, 2021 at 10:25:00AM +0200, Daniel Vetter wrote: > On Thu, Jun 03, 2021 at 10:24:21AM +0200, Daniel Vetter wrote: > > On Wed, Jun 02, 2021 at 11:41:48AM -0500, Jason Ekstrand wrote: > > > This reverts commit 9e31c1fe45d555a948ff66f1f0e3fe1f83ca63f7. Ever >

Re: [Intel-gfx] [PATCH 0/5] drm/i915: Get rid of fence error propagation

2021-06-03 Thread Daniel Vetter
ease if needed for > Greg to back-port. I think just the two reversts are enough to be backported, other 3 are cleanups. Also I guess this will need to come with an igt patch to adjust the cmdparser test. With all the nits addressed, on the series. Acked-by: Daniel Vetter > > Cc: Dan

Re: [Intel-gfx] [PATCH 1/1] drm/i915: Introduce i915_sched_engine object

2021-06-03 Thread Daniel Vetter
On Thu, Jun 3, 2021 at 5:30 AM Matthew Brost wrote: > > On Mon, May 31, 2021 at 10:31:53AM +0200, Daniel Vetter wrote: > > On Thu, May 27, 2021 at 4:19 PM Matthew Brost > > wrote: > > > > > > On Thu, May 27, 2021 at 10:41:10AM +0100, Tvrtko Ursulin wrote:

[Intel-gfx] [PATCH v2 0/4] shmem helpers for igt

2021-06-03 Thread Daniel Vetter
Hi all, I finally figured out why CI is unhappy on some machines, we've lost WC mode on the vgem side! Test-with: 20210527140732.5762-1-daniel.vet...@ffwll.ch Cheers, Daniel Daniel Vetter (4): drm/gem-shmem-helper: Export drm_gem_shmem_funcs drm/shmem-helper: Switch to vmf_insert_pfn

[Intel-gfx] [PATCH v2 2/4] drm/shmem-helper: Switch to vmf_insert_pfn

2021-06-03 Thread Daniel Vetter
We want to stop gup, which isn't the case if we use vmf_insert_page and VM_MIXEDMAP, because that does not set pte_special. v2: With this shmem gem helpers now definitely need CONFIG_MMU (0day) Signed-off-by: Daniel Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmerman

[Intel-gfx] [PATCH v2 1/4] drm/gem-shmem-helper: Export drm_gem_shmem_funcs

2021-06-03 Thread Daniel Vetter
Drivers which need to overwrite the drm_driver->gem_create_object hook need this. Specifically vgem, which wants wc mode, but everything else is fine as-is. Signed-off-by: Daniel Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: David Airlie Cc: Daniel Vet

[Intel-gfx] [PATCH v2 3/4] drm/shmem-helper: Align to page size in dumb_create

2021-06-03 Thread Daniel Vetter
shmem helpers seem a bit sloppy here by automatically rounding up when actually creating the buffer, which results in under-reporting of what we actually have. Caught by igt/vgem_basic tests. Acked-by: Thomas Zimmermann Signed-off-by: Daniel Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard Cc

[Intel-gfx] [PATCH v2 4/4] drm/vgem: use shmem helpers

2021-06-03 Thread Daniel Vetter
appings by default"), and we need WC in vgem because vgem doesn't have explicit begin/end cpu access ioctls. Also add a comment why exactly vgem has to use wc. Cc: Thomas Zimmermann Acked-by: Thomas Zimmermann Cc: John Stultz Cc: Sumit Semwal Cc: "Christian König" Sign

[Intel-gfx] [PATCH v3 0/4] shmem helpers for vgem

2021-06-03 Thread Daniel Vetter
Hi all, Another small iteration, lost another patch, so another full resend. Thomas Zimmermann pointed out how to get at drm_gem_shmem_funcs without getting at drm_gem_shmem_funcs directly. Test-with: 20210527140732.5762-1-daniel.vet...@ffwll.ch Cheers, Daniel Daniel Vetter (4): dma-buf

[Intel-gfx] [PATCH v3 2/4] drm/shmem-helper: Switch to vmf_insert_pfn

2021-06-03 Thread Daniel Vetter
We want to stop gup, which isn't the case if we use vmf_insert_page and VM_MIXEDMAP, because that does not set pte_special. v2: With this shmem gem helpers now definitely need CONFIG_MMU (0day) Signed-off-by: Daniel Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmerman

[Intel-gfx] [PATCH v3 1/4] dma-buf: Require VM_PFNMAP vma for mmap

2021-06-03 Thread Daniel Vetter
.gmail.com/ Acked-by: Christian König Cc: Jason Gunthorpe Cc: Suren Baghdasaryan Cc: Matthew Wilcox Cc: John Stultz Signed-off-by: Daniel Vetter Cc: Sumit Semwal Cc: "Christian König" Cc: linux-me...@vger.kernel.org Cc: linaro-mm-...@lists.linaro.org -- Resending this so I can test

[Intel-gfx] [PATCH v3 4/4] drm/vgem: use shmem helpers

2021-06-03 Thread Daniel Vetter
omas Zimmermann Cc: John Stultz Cc: Sumit Semwal Cc: "Christian König" Signed-off-by: Daniel Vetter Cc: Melissa Wen Cc: Chris Wilson --- drivers/gpu/drm/Kconfig | 1 + drivers/gpu/drm/vgem/vgem_drv.c | 342 ++-- 2 files changed, 14 insertions(+), 3

[Intel-gfx] [PATCH v3 3/4] drm/shmem-helper: Align to page size in dumb_create

2021-06-03 Thread Daniel Vetter
shmem helpers seem a bit sloppy here by automatically rounding up when actually creating the buffer, which results in under-reporting of what we actually have. Caught by igt/vgem_basic tests. Acked-by: Thomas Zimmermann Signed-off-by: Daniel Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard Cc

Re: [Intel-gfx] [PATCH v2 4/4] drm/vgem: use shmem helpers

2021-06-03 Thread Daniel Vetter
&obj->base; > > here you are allocating a bigger object than what you are > returning, in size. How does it get freed? We're using the drm_gem_shmem_helper.c helpers, which set up all the shmem functions for us, including an appropriate free callback. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH] drm/shmem-helper: Switch to vmf_insert_pfn

2021-06-03 Thread Daniel Vetter
pages are non-contig to begin with. Signed-off-by: Daniel Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/Kconfig| 2 +- drivers/gpu/drm/drm_gem_shmem_helper.c | 4 ++-- drivers/gpu/drm/gud/Kc

[Intel-gfx] [PATCH] drm/vgem: use shmem helpers

2021-06-03 Thread Daniel Vetter
ng Cc: Thomas Zimmermann Acked-by: Thomas Zimmermann Cc: John Stultz Cc: Sumit Semwal Cc: "Christian König" Signed-off-by: Daniel Vetter Cc: Melissa Wen Cc: Chris Wilson --- drivers/gpu/drm/Kconfig | 5 +- drivers/gpu/drm/vgem/vgem_drv.c | 342 ++-

Re: [Intel-gfx] [PATCH 08/20] drm/i915: Promote ptrdiff() to i915_utils.h

2021-06-03 Thread Daniel Vetter
id *b) > -{ > - return a - b; > -} > - > static inline long > i915_vma_compare(struct i915_vma *vma, >struct i915_address_space *vm, > -- > 2.28.0 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 11/20] drm/i915/guc: Replace CTB array with explicit members

2021-06-03 Thread Daniel Vetter
2 #ifdef CONFIG_DRM_I915_DEBUG_GUC > 77b20896d57e91 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c Michal Wajdeczko > 2020-01-17 33 #define CT_DEBUG(_ct, _fmt, ...) \ > a4c78275ba7e01 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c Daniele Ceraolo > Spurio 2021-06-02 @34drm_dbg(ct_

Re: [Intel-gfx] [PATCH 08/20] drm/i915: Promote ptrdiff() to i915_utils.h

2021-06-04 Thread Daniel Vetter
On Thu, Jun 03, 2021 at 07:02:57PM -0700, Matthew Brost wrote: > On Thu, Jun 03, 2021 at 11:35:28PM +0200, Daniel Vetter wrote: > > On Wed, Jun 02, 2021 at 10:16:18PM -0700, Matthew Brost wrote: > > > From: Michal Wajdeczko > > > > > > Generic help

Re: [Intel-gfx] [RFC PATCH 64/97] drm/i915/guc: Reset implementation for new GuC interface

2021-06-04 Thread Daniel Vetter
On Fri, Jun 4, 2021 at 5:25 AM Matthew Brost wrote: > > On Wed, Jun 02, 2021 at 03:33:43PM +0100, Tvrtko Ursulin wrote: > > > > On 06/05/2021 20:14, Matthew Brost wrote: > > > Reset implementation for new GuC interface. This is the legacy reset > > > implementation which is called when the i915 ow

Re: [Intel-gfx] [v3 PATCH 2/2] drm/i915/guc: Update sizes of CTB buffers

2021-06-04 Thread Daniel Vetter
4; > - cmds = blob + PAGE_SIZE / 4 + PAGE_SIZE / 2; > - cmds_size = PAGE_SIZE / 4; > + desc = blob + CTB_DESC_SIZE; > + cmds = blob + 2 * CTB_DESC_SIZE + CTB_H2G_BUFFER_SIZE; > + cmds_size = CTB_G2H_BUFFER_SIZE; > CT_DEBUG(ct, "%s desc %#tx cmds %#tx size %u\n", "recv", >ptrdiff(desc, blob), ptrdiff(cmds, blob), cmds_size); > > -- > 2.28.0 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 13/20] drm/i915/guc: Relax CTB response timeout

2021-06-04 Thread Daniel Vetter
= CONFIG_DRM_I915_GUC_CTB_TIMEOUT; > + > #define done INTEL_GUC_MSG_IS_RESPONSE(READ_ONCE(req->status)) > err = wait_for_us(done, 10); > if (err) > - err = wait_for(done, 10); > + err = wait_for(done, timeout); > #und

Re: [Intel-gfx] [PATCH 14/20] drm/i915/guc: Start protecting access to CTB descriptors

2021-06-04 Thread Daniel Vetter
ts _much_ preferred, since then you can make them multi-line and actually explain stuff - the header format strictly speaking also allows multi-line, but not with nice formatting and so encourages people to lean way too much towards brevity. Plus it's closer where people look (for big structs). I guess add that to the kerneldoc cleanup work. -Daniel > struct guc_ct_buffer_desc *desc; > u32 *cmds; > u32 size; > -- > 2.28.0 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 15/20] drm/i915/guc: Ensure H2G buffer updates visible before tail update

2021-06-04 Thread Daniel Vetter
4bade6...@intel.com/ > > > > > + } else { > > > + /* wmb() sufficient for a barrier if in smem */ > > > + wmb(); > > > + } > > > +} > > > + > > > /** > > > * DOC: CTB Host to GuC request > > > *

Re: [Intel-gfx] [PATCH 20/20] drm/i915/guc: Use guc_class instead of engine_class in fw interface

2021-06-04 Thread Daniel Vetter
NE_INSTANCE(guc_id) \ > (((guc_id) & GUC_ENGINE_INSTANCE_MASK) >> GUC_ENGINE_INSTANCE_SHIFT) > > +static inline u8 engine_class_to_guc_class(u8 class) > +{ > + BUILD_BUG_ON(GUC_RENDER_CLASS != RENDER_CLASS); > + BUILD_BUG_ON(G

Re: [Intel-gfx] Merging TTM branches through the Intel tree?

2021-06-04 Thread Daniel Vetter
On Fri, Jun 04, 2021 at 11:01:40AM +0200, Thomas Hellström wrote: > > On 6/4/21 9:51 AM, Christian König wrote: > > Am 03.06.21 um 09:36 schrieb Daniel Vetter: > > > On Thu, Jun 3, 2021 at 8:50 AM Thomas Hellström > > > wrote: > > > > > > > >

Re: [Intel-gfx] [RFC PATCH 1/2] drm/doc/rfc: i915 GuC submission / DRM scheduler

2021-06-04 Thread Daniel Vetter
On Wed, May 26, 2021 at 04:33:56PM -0700, Matthew Brost wrote: > Add entry for i915 GuC submission / DRM scheduler integration plan. > Follow up patch with details of new parallel submission uAPI to come. > > v2: > (Daniel Vetter) > - Expand explaination of why bonding isn&#

Re: [Intel-gfx] [RFC PATCH 2/2] drm/doc/rfc: i915 new parallel submission uAPI plan

2021-06-04 Thread Daniel Vetter
On Wed, May 26, 2021 at 04:33:57PM -0700, Matthew Brost wrote: > Add entry for i915 new parallel submission uAPI plan. > > v2: > (Daniel Vetter): > - Expand logical order explaination > - Add dummy header > - Only allow N BBs in execbuf IOCTL > - Configure para

Re: [Intel-gfx] [RFC PATCH 36/97] drm/i915/guc: Add non blocking CTB send function

2021-06-08 Thread Daniel Vetter
> >>>>>> > >>>>>> So it looks like a change to ct_send to me. Is that wrong? > >>>> > >>>> What about this part - is the patch changing the blocking ct_send or not, > >>>> and if it is why? > >>>> > &g

Re: [Intel-gfx] [PATCH 16/31] drm/i915/gem: Add an intermediate proto_context struct (v4)

2021-06-09 Thread Daniel Vetter
in > active use today so we can't simply disallow setting the VM or engine > set vial SET_CONTEXT_PARAM. In order to work around this wart, this > commit adds a proto-context struct which contains all the context create > parameters. > > v2 (Daniel Vetter): > - Bett

Re: [Intel-gfx] [PATCH 25/31] drm/i915/gem: Don't allow changing the VM on running contexts (v2)

2021-06-09 Thread Daniel Vetter
ell as a > duplicated (and slightly different) copy of the code which programs the > PPGTT registers. > > v2 (Jason Ekstrand): > - Expand the commit message > > Signed-off-by: Jason Ekstrand > Reviewed-by: Daniel Vetter Need to retract this r-b here until the issue

Re: [Intel-gfx] [PATCH 25/31] drm/i915/gem: Don't allow changing the VM on running contexts (v2)

2021-06-09 Thread Daniel Vetter
On Wed, Jun 09, 2021 at 01:34:00PM +0200, Daniel Vetter wrote: > On Tue, Jun 08, 2021 at 11:36:07PM -0500, Jason Ekstrand wrote: > > When the APIs were added to manage VMs more directly from userspace, the > > questionable choice was made to allow changing out the VM on a context

Re: [Intel-gfx] [PATCH 30/31] drm/i915: Finalize contexts in GEM_CONTEXT_CREATE on version 13+

2021-06-09 Thread Daniel Vetter
. Force the issue by blocking the old mechanism on any future > hardware generations. > > Signed-off-by: Jason Ekstrand With that static added here (same ofc holds for the other one 0day spotted): Reviewed-by: Daniel Vetter But also I think an ack from Jon Bloomfield here would be

Re: [Intel-gfx] [PATCH 31/31] drm/i915: Drop some RCU usage around context VMs

2021-06-09 Thread Daniel Vetter
; + ce->vm = i915_vm_get(ctx->vm); > } > > if (ctx->sched.priority >= I915_PRIORITY_NORMAL && > -- > 2.31.1 > > _______ > Intel-gfx mail

Re: [Intel-gfx] [PATCH v2 0/9] Prereqs for TTM accelerated migration

2021-06-09 Thread Daniel Vetter
2.31.1 > > ___ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH] drm/i915: Add relocation exceptions for two other platforms

2021-06-09 Thread Daniel Vetter
gniew Kempczyński > Cc: Dave Airlie > Cc: Daniel Vetter > Cc: Jason Ekstrand This conflicts with Lucas' switch from INTEL_GEN to GRAPHICS_VER. Can you pls rebase and resend (with Dave's ack included). -Daniel > --- > .../gpu/drm/i915/gem/i915_gem_execbuffer.c|

Re: [Intel-gfx] [PATCH 13/20] drm/i915/guc: Relax CTB response timeout

2021-06-09 Thread Daniel Vetter
On Fri, Jun 04, 2021 at 11:35:39AM -0700, Matthew Brost wrote: > On Fri, Jun 04, 2021 at 10:33:07AM +0200, Daniel Vetter wrote: > > On Wed, Jun 02, 2021 at 10:16:23PM -0700, Matthew Brost wrote: > > > From: Michal Wajdeczko > > > > > > In upcoming patch we wil

Re: [Intel-gfx] linux-next: build failure after merge of the drm-misc tree

2021-06-09 Thread Daniel Vetter
n 2021 12:41:16 +1000 > > > > > Subject: [PATCH] hack fix up for needed amdgpu_preempt_mgr_new() fix > > > > > up > > > > > > > > > > Signed-off-by: Stephen Rothwell > > > > > --- > > > > >   driver

Re: [Intel-gfx] [PATCH v2 0/9] Prereqs for TTM accelerated migration

2021-06-09 Thread Daniel Vetter
On Wed, Jun 09, 2021 at 04:35:57PM +0200, Thomas Hellström wrote: > > On 6/9/21 3:08 PM, Thomas Hellström wrote: > > > > On 6/9/21 2:20 PM, Matthew Auld wrote: > > > On 09/06/2021 13:16, Thomas Hellström wrote: > > > > > > > > On 6/9/21 1:4

Re: [Intel-gfx] [PATCH 0/5] dma-fence, i915: Stop allowing SLAB_TYPESAFE_BY_RCU for dma_fence

2021-06-10 Thread Daniel Vetter
ent hw doesn't have userspace ringbuffer, but we have a pretty clever trick in the works to make this possible with current hw, essentially by submitting a CS that loops on itself, and then inserting batches into this "ring" by latching a conditional branch in this CS. It's not

Re: [Intel-gfx] [PATCH 0/5] dma-fence, i915: Stop allowing SLAB_TYPESAFE_BY_RCU for dma_fence

2021-06-10 Thread Daniel Vetter
On Thu, Jun 10, 2021 at 1:29 PM Daniel Vetter wrote: > On Thu, Jun 10, 2021 at 11:39 AM Christian König > wrote: > > Am 10.06.21 um 11:29 schrieb Tvrtko Ursulin: > > > On 09/06/2021 22:29, Jason Ekstrand wrote: > > >> Ever since 0eafec6d3244 ("drm/i

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

2021-06-10 Thread Daniel Vetter
rs/gpu/drm/nouveau/nouveau_backlight.c| 166 +- > drivers/gpu/drm/nouveau/nouveau_bo.c | 6 + > drivers/gpu/drm/nouveau/nouveau_connector.h| 9 +- > drivers/gpu/drm/nouveau/nouveau_encoder.h | 1 + > include/drm/drm_dp_helper.h

Re: [Intel-gfx] [PATCH 5/5] DONOTMERGE: dma-buf: Get rid of dma_fence_get_rcu_safe

2021-06-10 Thread Daniel Vetter
et of fences across exclusive and all shared slot. Not to protect against the fence disappearing due to typesafe_by_rcu. -Daniel > --Jason > > > Regards, > > Christian. > > > > > > > > Signed-off-by: Jason Ekstrand > > > Cc: Daniel Vetter

Re: [Intel-gfx] [RFC PATCH 36/97] drm/i915/guc: Add non blocking CTB send function

2021-06-10 Thread Daniel Vetter
On Wed, Jun 09, 2021 at 04:10:23PM -0700, Matthew Brost wrote: > On Tue, Jun 08, 2021 at 10:46:15AM +0200, Daniel Vetter wrote: > > On Tue, Jun 8, 2021 at 10:39 AM Tvrtko Ursulin > > wrote: > > > > > > > > > On 07/06/2021 18:31, Matthew Brost wrote:

Re: [Intel-gfx] [PATCH 5/5] DONOTMERGE: dma-buf: Get rid of dma_fence_get_rcu_safe

2021-06-10 Thread Daniel Vetter
On Thu, Jun 10, 2021 at 6:24 PM Jason Ekstrand wrote: > > On Thu, Jun 10, 2021 at 10:13 AM Daniel Vetter wrote: > > > > On Thu, Jun 10, 2021 at 3:59 PM Jason Ekstrand wrote: > > > > > > On Thu, Jun 10, 2021 at 1:51 AM Christian König > > > wrote:

Re: [Intel-gfx] [PATCH 16/31] drm/i915/gem: Add an intermediate proto_context struct (v4)

2021-06-10 Thread Daniel Vetter
On Wed, Jun 09, 2021 at 11:00:26AM -0500, Jason Ekstrand wrote: > On Wed, Jun 9, 2021 at 6:28 AM Daniel Vetter wrote: > > > > On Tue, Jun 08, 2021 at 11:35:58PM -0500, Jason Ekstrand wrote: > > > The current context uAPI allows for two methods of setting

  1   2   3   4   5   6   7   8   9   10   >