Re: [Intel-gfx] [PATCH] drm/i915: Check for nomodeset in i915_init() first

2021-07-19 Thread Tvrtko Ursulin
On 19/07/2021 10:09, Tvrtko Ursulin wrote: On 19/07/2021 09:35, Daniel Vetter wrote: Jason is trying to sort out the unwinding in i915_init and i915_exit, while reviewing those patches I noticed that we also have the nomodeset handling now in the middle of things. Pull that out for

Re: [Intel-gfx] [PATCH 3/6] drm/i915: Always call i915_globals_exit() from i915_exit()

2021-07-20 Thread Tvrtko Ursulin
On 19/07/2021 19:30, Jason Ekstrand wrote: If the driver was not fully loaded, we may still have globals lying around. If we don't tear those down in i915_exit(), we'll leak a bunch of memory slabs. This can happen two ways: use_kms = false and if we've run mock selftests. In either case, we

Re: [Intel-gfx] [PATCH v2] drm/i915: Add missing docbook chapters for i915 uapi.

2021-07-20 Thread Tvrtko Ursulin
On 20/07/2021 10:06, Maarten Lankhorst wrote: Op 16-07-2021 om 15:07 schreef Tvrtko Ursulin: On 15/07/2021 13:08, Maarten Lankhorst wrote: I noticed when grepping for DOC: that those were defined in the header, but not actually used. Fix it by removing all chapters and the internal

Re: [Intel-gfx] [PATCH 3/4] drm/i915: Drop the CONTEXT_CLONE API

2021-03-23 Thread Tvrtko Ursulin
On 23/03/2021 13:23, Daniel Vetter wrote: On Tue, Mar 23, 2021 at 09:14:36AM +, Tvrtko Ursulin wrote: On 22/03/2021 16:43, Daniel Vetter wrote: On Mon, Mar 22, 2021 at 4:31 PM Tvrtko Ursulin wrote: On 22/03/2021 14:57, Daniel Vetter wrote: On Mon, Mar 22, 2021 at 3:33 PM Tvrtko

Re: [Intel-gfx] [PATCH] drm/i915: Implement SINGLE_TIMELINE with a syncobj (v2)

2021-03-24 Thread Tvrtko Ursulin
On 23/03/2021 17:51, Jason Ekstrand wrote: This API is entirely unnecessary and I'd love to get rid of it. If userspace wants a single timeline across multiple contexts, they can either use implicit synchronization or a syncobj, both of which existed at the time this feature landed. The justi

Re: [Intel-gfx] [PATCH] drm/i915: Implement SINGLE_TIMELINE with a syncobj (v2)

2021-03-24 Thread Tvrtko Ursulin
On 24/03/2021 09:52, Daniel Vetter wrote: On Wed, Mar 24, 2021 at 09:28:58AM +, Tvrtko Ursulin wrote: On 23/03/2021 17:51, Jason Ekstrand wrote: This API is entirely unnecessary and I'd love to get rid of it. If userspace wants a single timeline across multiple contexts, the

[Intel-gfx] [PATCH v4 0/7] Default request/fence expiry + watchdog

2021-03-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin "Watchdog" aka "restoring hangcheck" aka default request/fence expiry - second post of a somewhat controversial feature, now upgraded to patch status. I quote the "watchdog" becuase in classical sense watchdog would allow userspace to ping it

[Intel-gfx] [PATCH 1/7] drm/i915: Extract active lookup engine to a helper

2021-03-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Move active engine lookup to exported i915_request_active_engine. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/gem/i915_gem_context.c | 34 +--- drivers/gpu/drm/i915/i915_request.c | 44 + drivers/gpu/drm/i915

[Intel-gfx] [PATCH 2/7] drm/i915: Individual request cancellation

2021-03-24 Thread Tvrtko Ursulin
selftests. v3 (Tvrtko): * Remove error propagation to waiters for now. v4 (Tvrtko): * Rebase for extracted i915_request_active_engine. (Matt) Signed-off-by: Chris Wilson Signed-off-by: Tvrtko Ursulin Reviewed-by: Matthew Auld # v3 --- .../gpu/drm/i915/gt/intel_engine_heartbeat.c | 1 + .../drm

[Intel-gfx] [PATCH 3/7] drm/i915: Restrict sentinel requests further

2021-03-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Disallow sentinel requests follow previous sentinels to make request cancellation work better when faced with a chain of requests which have all been marked as in error. Because in cases where we end up with a stream of cancelled requests we want to turn of request

[Intel-gfx] [PATCH 4/7] drm/i915: Handle async cancellation in sentinel assert

2021-03-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin With the watchdog cancelling requests asynchronously to preempt-to-busy we need to relax one assert making it apply only to requests not in error. v2: * Check against the correct request! v3: * Simplify the check to avoid the question of when to sample the fence error

[Intel-gfx] [PATCH 5/7] drm/i915: Request watchdog infrastructure

2021-03-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Prepares the plumbing for setting request/fence expiration time. All code is put in place but is never activated due yet missing ability to actually configure the timer. Outline of the basic operation: A timer is started when request is ready for execution. If the request

[Intel-gfx] [PATCH 6/7] drm/i915: Fail too long user submissions by default

2021-03-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin A new Kconfig option CONFIG_DRM_I915_REQUEST_TIMEOUT is added, defaulting to 20s, and this timeout is applied to all users contexts using the previously added watchdog facility. Result of this is that any user submission will simply fail after this timeout, either causing a

[Intel-gfx] [PATCH 7/7] drm/i915: Allow configuring default request expiry via modparam

2021-03-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Module parameter is added (request_timeout_ms) to allow configuring the default request/fence expiry. Default value is inherited from CONFIG_DRM_I915_REQUEST_TIMEOUT. Signed-off-by: Tvrtko Ursulin Cc: Daniel Vetter Acked-by: Daniel Vetter --- drivers/gpu/drm/i915/gem

Re: [Intel-gfx] [PATCH] drm/i915: Implement SINGLE_TIMELINE with a syncobj (v2)

2021-03-25 Thread Tvrtko Ursulin
On 24/03/2021 17:18, Jason Ekstrand wrote: On Wed, Mar 24, 2021 at 6:36 AM Tvrtko Ursulin wrote: On 24/03/2021 09:52, Daniel Vetter wrote: On Wed, Mar 24, 2021 at 09:28:58AM +, Tvrtko Ursulin wrote: On 23/03/2021 17:51, Jason Ekstrand wrote: This API is entirely unnecessary and I&#

Re: [Intel-gfx] [PATCH v4 0/7] Default request/fence expiry + watchdog

2021-03-26 Thread Tvrtko Ursulin
On 26/03/2021 09:10, Daniel Vetter wrote: On Wed, Mar 24, 2021 at 12:13:28PM +, Tvrtko Ursulin wrote: From: Tvrtko Ursulin "Watchdog" aka "restoring hangcheck" aka default request/fence expiry - second post of a somewhat controversial feature, now upgraded to patch

Re: [Intel-gfx] [PATCH 5/7] drm/i915: Request watchdog infrastructure

2021-03-26 Thread Tvrtko Ursulin
On 26/03/2021 00:00, Daniel Vetter wrote: On Wed, Mar 24, 2021 at 12:13:33PM +, Tvrtko Ursulin wrote: [snip] +static enum hrtimer_restart __rq_watchdog_expired(struct hrtimer *hrtimer) +{ + struct i915_request *rq = + container_of(hrtimer, struct i915_request

[Intel-gfx] [PATCH] drm/i915: Take request reference before arming the watchdog timer

2021-03-26 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Reference needs to be taken before arming the timer. Luckily, given the default timer period of 20s, the potential to hit the race is extremely unlikely. Signed-off-by: Tvrtko Ursulin Fixes: 9b4d0598ee94 ("drm/i915: Request watchdog infrastructure") Cc: Dan

[Intel-gfx] [PATCH] drm/i915/pmu: Do not report 100% RC6 if not supported

2021-03-30 Thread Tvrtko Ursulin
From: Tvrtko Ursulin We use GT parked status to estimate RC6 while not in use, however if RC6 is not supported to start with that does not work very well and produces a false 100% RC6 readout. Fix by not advancing the estimated RC6 counter when feature is not supported. Signed-off-by: Tvrtko

[Intel-gfx] [PATCH i-g-t] intel_gpu_top: Do not print client header if no client stats

2021-03-31 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Add a check if client stats are present to init_clients() so that the returned clients data can be null from the start. This prevents the client stats header to be printed on old kernels. Signed-off-by: Tvrtko Ursulin --- tools/intel_gpu_top.c | 21

[Intel-gfx] [PATCH i-g-t] intel_gpu_top: Document how to use JSON output

2021-03-31 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Put a note on how to use JSON output into the man page. Signed-off-by: Tvrtko Ursulin References: https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/100 --- man/intel_gpu_top.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/man/intel_gpu_top.rst b/man

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] intel_gpu_top: Document how to use JSON output

2021-03-31 Thread Tvrtko Ursulin
On 31/03/2021 10:12, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Put a note on how to use JSON output into the man page. Signed-off-by: Tvrtko Ursulin References: https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/100 --- man/intel_gpu_top.rst | 5 + 1 file changed, 5

[Intel-gfx] [PATCH] drm/i915/pmu: Check actual RC6 status

2021-03-31 Thread Tvrtko Ursulin
From: Tvrtko Ursulin RC6 support cannot be simply established by looking at the static device HAS_RC6() flag. There are cases which disable RC6 at driver load time so use the status of those check when deciding whether to enumerate the rc6 counter. Signed-off-by: Tvrtko Ursulin Reported-by

[Intel-gfx] [PATCH i-g-t 3/3] tests/i915/gem_watchdog: Exercise long rendering chains

2021-03-31 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Test to demonstrate a problem with the proposed default fence expiry semantics where long rendering chain get silently broken. If we had fence error propagation (no clear agreement whether to do it or not) maybe userspace would see if, assuming fence status is looked at

[Intel-gfx] [PATCH i-g-t 1/3] lib: Add helper for reading modparam values

2021-03-31 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Add __igt_params_get for simple reading of modparams. v2: * Fix kerneldoc. (Matt) Signed-off-by: Tvrtko Ursulin Reviewed-by: Matthew Auld --- lib/igt_params.c | 26 ++ lib/igt_params.h | 2 ++ 2 files changed, 28 insertions(+) diff --git a/lib

[Intel-gfx] [PATCH i-g-t 2/3] tests/i915: Default fence expiry test

2021-03-31 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Basic test to check that default fence expiry works as expected. Relies on the modparam to run quicker. Signed-off-by: Tvrtko Ursulin Reviewed-by: Matthew Auld --- tests/Makefile.sources| 3 + tests/i915/gem_watchdog.c | 376

Re: [Intel-gfx] [PATCH] drm/i915/pmu: Check actual RC6 status

2021-04-01 Thread Tvrtko Ursulin
On 01/04/2021 10:19, Rodrigo Vivi wrote: On Wed, Mar 31, 2021 at 11:18:50AM +0100, Tvrtko Ursulin wrote: From: Tvrtko Ursulin RC6 support cannot be simply established by looking at the static device HAS_RC6() flag. There are cases which disable RC6 at driver load time so use the status of

Re: [Intel-gfx] [PATCH] drm/i915/pmu: Check actual RC6 status

2021-04-01 Thread Tvrtko Ursulin
On 01/04/2021 11:24, Tamminen, Eero T wrote: Hi, On Thu, 2021-04-01 at 05:54 -0400, Rodrigo Vivi wrote: On Thu, Apr 01, 2021 at 10:38:11AM +0100, Tvrtko Ursulin wrote: ... I think it is possible to argue both ways. 1) HAS_RC6 means hardware has RC6 so if we view PMU as very low level we

[Intel-gfx] [PATCH i-g-t] gem_watchdog: Fix autotools build

2021-04-01 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Correcting a brain malfunction while typing in Makefile.sources. Signed-off-by: Tvrtko Ursulin --- tests/Makefile.sources | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Makefile.sources b/tests/Makefile.sources index e992285fedc5..194df8e27dd0

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] intel_gpu_top: Document how to use JSON output

2021-04-01 Thread Tvrtko Ursulin
On 01/04/2021 15:49, Matthew Auld wrote: On Wed, 31 Mar 2021 at 10:12, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Put a note on how to use JSON output into the man page. Signed-off-by: Tvrtko Ursulin References: https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/100 --- man

Re: [Intel-gfx] [PATCH] drm/i915/pmu: Do not report 100% RC6 if not supported

2021-04-09 Thread Tvrtko Ursulin
supported. Signed-off-by: Tvrtko Ursulin Fixes: 1fe699e30113 ("drm/i915/pmu: Fix sleep under atomic in RC6 readout") Reported-by: Eero T Tamminen --- drivers/gpu/drm/i915/i915_pmu.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_pmu.c

Re: [Intel-gfx] [PATCH v2 08/12] drm/i915: finish removal of gen_mask

2021-04-14 Thread Tvrtko Ursulin
On 13/04/2021 06:09, Lucas De Marchi wrote: Now that it's not used anywhere, remove it from struct intel_device_info. To allow a period in which code will be converted to the new macro, keep IS_GEN_RANGE() around, just redefining it to use the new fields. The size advantage from IS_GEN_RANGE()

[Intel-gfx] [RFC 00/28] Old platform/gen kconfig options series

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Triggered by the recent work around INTEL_GEN etc and probably just for historical reference since I can't remember if I ever sent it out. So sending now but unrebased. This series from early 2018 is the reason why I was converting to mask based check everywhere. Ther

[Intel-gfx] [RFC 02/28] drm/i915: Make I845G platform support optional

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Kconfig.platforms | 7 +++ drivers/gpu/drm/i915/i915_drv.h| 2 +- drivers/gpu/drm/i915/i915_pci.c| 4 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [RFC 01/28] drm/i915: Make I830 platform support optional

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Kconfig | 5 + drivers/gpu/drm/i915/Kconfig.platforms | 6 ++ drivers/gpu/drm/i915/i915_drv.h| 5 - drivers/gpu/drm/i915/i915_pci.c| 4 4 files changed, 19 insertions(+), 1

[Intel-gfx] [RFC 03/28] drm/i915: Make I85X platform support optional

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Kconfig.platforms | 7 +++ drivers/gpu/drm/i915/i915_drv.h| 2 +- drivers/gpu/drm/i915/i915_pci.c| 4 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [RFC 04/28] drm/i915: Make I865G platform support optional

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Kconfig.platforms | 7 +++ drivers/gpu/drm/i915/i915_drv.h| 2 +- drivers/gpu/drm/i915/i915_pci.c| 4 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [RFC 07/28] drm/i915: Make Gen4 platforms support optional

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Kconfig.platforms | 35 ++ drivers/gpu/drm/i915/i915_drv.h| 12 + drivers/gpu/drm/i915/i915_pci.c| 16 3 files changed, 58 insertions(+), 5 deletions

[Intel-gfx] [RFC 05/28] drm/i915: Make GEN2 support optional

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin By adding a hidden Kconfig option selected by all Gen2 platforms, we can eliminate more code when none of those is selected. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Kconfig.platforms | 7 +++ drivers/gpu/drm/i915/i915_drv.h| 4 +++- 2 files

[Intel-gfx] [RFC 08/28] drm/i915: Make Ironlake/Gen5 platforms support optional

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Kconfig.platforms | 11 +++ drivers/gpu/drm/i915/i915_drv.h| 7 +-- drivers/gpu/drm/i915/i915_pci.c| 4 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [RFC 09/28] drm/i915: Make Sandybridge/Gen6 platforms support optional

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Kconfig.platforms | 12 drivers/gpu/drm/i915/i915_drv.h| 4 +++- drivers/gpu/drm/i915/i915_pci.c| 6 ++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [RFC 06/28] drm/i915: Make Gen3 platforms support optional

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Kconfig.platforms | 51 ++ drivers/gpu/drm/i915/i915_drv.h| 22 ++- drivers/gpu/drm/i915/i915_pci.c| 28 +- 3 files changed, 90 insertions(+), 11 deletions

[Intel-gfx] [RFC 10/28] drm/i915: Make Gen7/7.5 platform support optional

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Kconfig.platforms | 26 ++ drivers/gpu/drm/i915/i915_drv.h| 15 +-- drivers/gpu/drm/i915/i915_pci.c| 14 ++ 3 files changed, 49 insertions(+), 6 deletions

[Intel-gfx] [RFC 12/28] drm/i915: Make Gen9 platform support optional

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Kconfig.platforms | 44 + drivers/gpu/drm/i915/i915_drv.h| 53 +++--- drivers/gpu/drm/i915/i915_pci.c| 22 +++ 3 files changed, 96 insertions(+), 23

[Intel-gfx] [RFC 14/28] drm/i915: Make Gen11 platform support optional

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Kconfig.platforms | 11 +++ drivers/gpu/drm/i915/i915_drv.h| 6 -- drivers/gpu/drm/i915/i915_pci.c| 2 ++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [RFC 11/28] drm/i915: Make Gen8 platform support optional

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Kconfig.platforms | 19 +++ drivers/gpu/drm/i915/i915_drv.h| 8 +--- drivers/gpu/drm/i915/i915_pci.c| 8 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a

[Intel-gfx] [RFC 15/28] drm/i915: Simplify IS_GEN macros

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_drv.h | 44 +++-- 1 file changed, 14 insertions(+), 30 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index fa5aa0e3a776..4f140e95207e

[Intel-gfx] [RFC 16/28] drm/i915: Use INTEL_GEN everywhere

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Coccinelle patch: @@ identifier p; @@ -INTEL_INFO(p)->gen +INTEL_GEN(p) Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_gem.c | 4 ++-- drivers/gpu/drm/i915/i915_gem_gtt.c | 2 +- drivers/gpu/drm/i915/i915_gem_stolen.c | 2 +- drivers/

[Intel-gfx] [RFC 17/28] drm/i915: Favour IS_GENx

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Replace INTEL_GEN (not-)equals with IS_GENx for more optimisation opportunities. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_device_info.c | 4 ++-- drivers/gpu/drm/i915/intel_fbc.c | 2 +- drivers/gpu/drm/i915/intel_pm.c | 6

[Intel-gfx] [RFC 13/28] drm/i915: Make Gen10 platform support optional

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Kconfig.platforms | 11 +++ drivers/gpu/drm/i915/i915_drv.h| 6 -- drivers/gpu/drm/i915/i915_pci.c| 4 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [RFC 18/28] drm/i915: Use Gen Kconfig items in IS_GEN macro

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_drv.h | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 4f140e95207e..0e65e0bc3d09 100644

[Intel-gfx] [RFC 20/28] drm/i915: Use IS_GEN in execbuffer

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Stop caching the gen and use the macros to enable compile time optimisation. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [RFC 23/28] drm/i915: Use IS_GEN in intel_bios.c

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_bios.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c index aa4df6548771..15c18d24e4e9 100644 --- a/drivers/gpu

[Intel-gfx] [RFC 21/28] drm/i915: Allow render state to be compiled out

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Makefile| 8 drivers/gpu/drm/i915/i915_gem_render_state.c | 10 -- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/i915/Makefile b/drivers/gpu/drm/i915

[Intel-gfx] [RFC 24/28] drm/i915: Use IS_GEN in intel_fb_pitch_limit

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_display.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index f7a3cefaaaed..5d1d67a7c368 100644 --- a

[Intel-gfx] [RFC 22/28] drm/i915: Use IS_GEN in stolen

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_gem_stolen.c | 36 ++ 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_stolen.c b/drivers/gpu/drm/i915/i915_gem_stolen.c index 0afd50cf71de

[Intel-gfx] [RFC 25/28] drm/i915: Use IS_GEN in intel_engine_cs.c

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_engine_cs.c | 92 +++--- 1 file changed, 38 insertions(+), 54 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_engine_cs.c b/drivers/gpu/drm/i915/intel_engine_cs.c index 32a1fee719a0

[Intel-gfx] [RFC 27/28] drm/i915: Use IS_GEN in intel_lrc.c

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_lrc.c | 29 +++-- 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c index 55df19ec879e..63872514213c

[Intel-gfx] [RFC 26/28] drm/i915: Use IS_GEN in intel_guc.c

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_guc.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_guc.c b/drivers/gpu/drm/i915/intel_guc.c index 21140ccd7a97..e67283947624 100644 --- a/drivers/gpu

[Intel-gfx] [RFC 28/28] drm/i915: Enable dropping small cores when not enabled

2021-04-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Kconfig.platforms | 7 +++ drivers/gpu/drm/i915/i915_drv.h| 8 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/Kconfig.platforms b/drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH v2 08/12] drm/i915: finish removal of gen_mask

2021-04-14 Thread Tvrtko Ursulin
On 14/04/2021 14:13, Jani Nikula wrote: On Wed, 14 Apr 2021, Tvrtko Ursulin wrote: On 13/04/2021 06:09, Lucas De Marchi wrote: Now that it's not used anywhere, remove it from struct intel_device_info. To allow a period in which code will be converted to the new macro, keep IS_GEN_

Re: [Intel-gfx] [PATCH 03/19] drm/i915: Create stolen memory region from local memory

2021-04-14 Thread Tvrtko Ursulin
On 12/04/2021 10:05, Matthew Auld wrote: From: CQ Tang Add "REGION_STOLEN" device info to dg1, create stolen memory region from upper portion of local device memory, starting from DSMBASE. v2: - s/drm_info/drm_dbg; userspace likely doesn't care about stolen. - mem->type is only set

Re: [Intel-gfx] [PATCH 04/19] drm/i915/stolen: treat stolen local as normal local memory

2021-04-14 Thread Tvrtko Ursulin
ion types, or flags of some sort, but I haven't looked at the callers to have a good idea what would work best. Reviewed-by: Tvrtko Ursulin Regards, Tvrtko ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 05/19] drm/i915/stolen: enforce the min_page_size contract

2021-04-14 Thread Tvrtko Ursulin
return ERR_PTR(-EINVAL); stolen = kzalloc(sizeof(*stolen), GFP_KERNEL); Reviewed-by: Tvrtko Ursulin Regards, Tvrtko ___ 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/stolen: pass the allocation flags

2021-04-14 Thread Tvrtko Ursulin
On 12/04/2021 10:05, Matthew Auld wrote: From: CQ Tang Stolen memory is always allocated as physically contiguous pages, mark the object flags as such. Signed-off-by: CQ Tang Signed-off-by: Matthew Auld --- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 10 ++ 1 file changed, 6 in

Re: [Intel-gfx] [PATCH 08/19] drm/i915: Return error value when bo not in LMEM for discrete

2021-04-14 Thread Tvrtko Ursulin
ory */ + i915_gem_object_put(obj); + return ERR_PTR(-EREMOTE); I am a fan of rich errnos and this one feels appropriately descriptive, but please get an ack from Daniel or so. Reviewed-by: Tvrtko Ursulin Regards, Tvrtko + } + fb = in

Re: [Intel-gfx] [PATCH 11/19] drm/i915: Update the helper to set correct mapping

2021-04-14 Thread Tvrtko Ursulin
On 12/04/2021 10:05, Matthew Auld wrote: From: Venkata Sandeep Dhanalakota Determine the possible coherent map type based on object location, and if target has llc or if user requires an always coherent mapping. Cc: Matthew Auld Cc: CQ Tang Suggested-by: Michal Wajdeczko Signed-off-by: Ve

Re: [Intel-gfx] [PATCH 12/19] drm/i915/lmem: Bypass aperture when lmem is available

2021-04-14 Thread Tvrtko Ursulin
On 12/04/2021 10:05, Matthew Auld wrote: From: Anusha Srivatsa In the scenario where local memory is available, we have rely on CPU access via lmem directly instead of aperture. v2: gmch is only relevant for much older hw, therefore we can drop the has_aperture check since it should always be

Re: [Intel-gfx] [PATCH 19/19] drm/i915/gtt/dgfx: place the PD in LMEM

2021-04-14 Thread Tvrtko Ursulin
On 12/04/2021 10:05, Matthew Auld wrote: It's a requirement that for dgfx we place all the paging structures in device local-memory. Signed-off-by: Matthew Auld --- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 5 - drivers/gpu/drm/i915/gt/intel_gtt.c | 27 +-- driv

Re: [Intel-gfx] [PATCH 11/19] drm/i915: Update the helper to set correct mapping

2021-04-15 Thread Tvrtko Ursulin
On 14/04/2021 17:20, Matthew Auld wrote: On Wed, 14 Apr 2021 at 16:22, Tvrtko Ursulin wrote: On 12/04/2021 10:05, Matthew Auld wrote: From: Venkata Sandeep Dhanalakota Determine the possible coherent map type based on object location, and if target has llc or if user requires an always

Re: [Intel-gfx] [PATCH 11/19] drm/i915: Update the helper to set correct mapping

2021-04-15 Thread Tvrtko Ursulin
On 15/04/2021 10:23, Matthew Auld wrote: On Thu, 15 Apr 2021 at 09:21, Tvrtko Ursulin wrote: On 14/04/2021 17:20, Matthew Auld wrote: On Wed, 14 Apr 2021 at 16:22, Tvrtko Ursulin wrote: On 12/04/2021 10:05, Matthew Auld wrote: From: Venkata Sandeep Dhanalakota Determine the

Re: [Intel-gfx] [PATCH][V2] drm/i915/gt: Fix a lockdep warning on RT kernel

2021-04-15 Thread Tvrtko Ursulin
Hi, On 14/04/2021 15:48, Jun Miao wrote: Don`t simple disable all the HD-irq, should race the region in the intel_breadcrumbs_disarm_irq() only. What is HD-irq, I am, not familiar with that term? BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:969 #0: ff

Re: [Intel-gfx] [PATCH v3 3/4] drm/i915/uapi: convert i915_query and friend to kernel doc

2021-04-16 Thread Tvrtko Ursulin
On 15/04/2021 16:59, Matthew Auld wrote: Add a note about the two-step process. Suggested-by: Daniel Vetter Signed-off-by: Matthew Auld Cc: Joonas Lahtinen Cc: Jordan Justen Cc: Daniel Vetter Cc: Kenneth Graunke Cc: Jason Ekstrand Cc: Dave Airlie Cc: dri-de...@lists.freedesktop.org Cc:

Re: [Intel-gfx] [PATCH][V2] drm/i915/gt: Fix a lockdep warning on RT kernel

2021-04-19 Thread Tvrtko Ursulin
On 15/04/2021 13:41, jun.miao wrote: On 4/15/21 7:12 PM, Tvrtko Ursulin wrote: [Please note: This e-mail is from an EXTERNAL e-mail address] Hi, On 14/04/2021 15:48, Jun Miao wrote: Don`t simple disable all the HD-irq, should race the region in the intel_breadcrumbs_disarm_irq() only

Re: [Intel-gfx] [PATCH 11/19] drm/i915: Update the helper to set correct mapping

2021-04-19 Thread Tvrtko Ursulin
On 19/04/2021 12:30, Matthew Auld wrote: On 15/04/2021 12:05, Tvrtko Ursulin wrote: On 15/04/2021 10:23, Matthew Auld wrote: On Thu, 15 Apr 2021 at 09:21, Tvrtko Ursulin wrote: On 14/04/2021 17:20, Matthew Auld wrote: On Wed, 14 Apr 2021 at 16:22, Tvrtko Ursulin wrote: On 12/04/2021

Re: [Intel-gfx] [PATCH 03/19] drm/i915: Create stolen memory region from local memory

2021-04-19 Thread Tvrtko Ursulin
On 16/04/2021 16:04, Matthew Auld wrote: On 14/04/2021 16:01, Tvrtko Ursulin wrote: On 12/04/2021 10:05, Matthew Auld wrote: From: CQ Tang Add "REGION_STOLEN" device info to dg1, create stolen memory region from upper portion of local device memory, starting from DSMBASE. v2

Re: [Intel-gfx] [PATCH 12/19] drm/i915/lmem: Bypass aperture when lmem is available

2021-04-19 Thread Tvrtko Ursulin
On 16/04/2021 15:25, Matthew Auld wrote: On 14/04/2021 16:33, Tvrtko Ursulin wrote: On 12/04/2021 10:05, Matthew Auld wrote: From: Anusha Srivatsa In the scenario where local memory is available, we have rely on CPU access via lmem directly instead of aperture. v2: gmch is only relevant

Re: [Intel-gfx] [PATCH 11/19] drm/i915: Update the helper to set correct mapping

2021-04-19 Thread Tvrtko Ursulin
On 19/04/2021 15:37, Matthew Auld wrote: On 19/04/2021 15:07, Tvrtko Ursulin wrote: On 19/04/2021 12:30, Matthew Auld wrote: On 15/04/2021 12:05, Tvrtko Ursulin wrote: On 15/04/2021 10:23, Matthew Auld wrote: On Thu, 15 Apr 2021 at 09:21, Tvrtko Ursulin wrote: On 14/04/2021 17:20

Re: [Intel-gfx] [PATCH 1/5] drm/i915: Create stolen memory region from local memory

2021-04-20 Thread Tvrtko Ursulin
nt types of stolen so such things shouldn't be needed anymore. v3: - split stolen lmem vs smem ops(Tvrtko) - add shortcut for stolen region in i915(Tvrtko) - sanity check dsm base vs bar size(Xinyun) Signed-off-by: CQ Tang Signed-off-by: Matthew Auld Cc: Tvrtko Ursulin Cc

Re: [Intel-gfx] [PATCH 4/5] drm/i915/stolen: pass the allocation flags

2021-04-20 Thread Tvrtko Ursulin
On 20/04/2021 14:18, Matthew Auld wrote: From: CQ Tang Stolen memory is always allocated as physically contiguous pages, mark the object flags as such. v2: move setting I915_BO_ALLOC_CONTIGUOUS into create_stolen Signed-off-by: CQ Tang Signed-off-by: Matthew Auld Cc: Tvrtko Ursulin

Re: [Intel-gfx] [PATCH v3 4/4] drm/doc/rfc: i915 DG1 uAPI

2021-04-20 Thread Tvrtko Ursulin
On 19/04/2021 16:19, Jason Ekstrand wrote: On Mon, Apr 19, 2021 at 7:02 AM Matthew Auld wrote: On 16/04/2021 17:38, Jason Ekstrand wrote: On Thu, Apr 15, 2021 at 11:04 AM Matthew Auld wrote: Add an entry for the new uAPI needed for DG1. v2(Daniel): - include the overall upstreaming

Re: [Intel-gfx] [PATCH v3 4/4] drm/doc/rfc: i915 DG1 uAPI

2021-04-21 Thread Tvrtko Ursulin
On 20/04/2021 18:00, Jason Ekstrand wrote: On Tue, Apr 20, 2021 at 11:34 AM Tvrtko Ursulin wrote: On 19/04/2021 16:19, Jason Ekstrand wrote: On Mon, Apr 19, 2021 at 7:02 AM Matthew Auld wrote: On 16/04/2021 17:38, Jason Ekstrand wrote: On Thu, Apr 15, 2021 at 11:04 AM Matthew Auld

Re: [Intel-gfx] [PATCH v3 4/4] drm/doc/rfc: i915 DG1 uAPI

2021-04-21 Thread Tvrtko Ursulin
On 21/04/2021 14:54, Jason Ekstrand wrote: On Wed, Apr 21, 2021 at 3:22 AM Tvrtko Ursulin wrote: On 20/04/2021 18:00, Jason Ekstrand wrote: On Tue, Apr 20, 2021 at 11:34 AM Tvrtko Ursulin wrote: On 19/04/2021 16:19, Jason Ekstrand wrote: On Mon, Apr 19, 2021 at 7:02 AM Matthew Auld

Re: [Intel-gfx] [PATCH v2 4/4] drm/i915/stolen: actually mark as contiguous

2021-04-21 Thread Tvrtko Ursulin
over the way down from the caller, but for now we don't have a use for that. Signed-off-by: Matthew Auld Cc: Tvrtko Ursulin --- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_sto

Re: [Intel-gfx] [PATCH v2 1/4] drm/i915: Create stolen memory region from local memory

2021-04-21 Thread Tvrtko Ursulin
ng Signed-off-by: Matthew Auld Cc: Tvrtko Ursulin Cc: Xinyun Liu --- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 132 ++--- drivers/gpu/drm/i915/gem/i915_gem_stolen.h | 3 +- drivers/gpu/drm/i915/i915_drv.h| 7 ++ drivers/gpu/drm/i915/i915_pci.c

Re: [Intel-gfx] [PATCH 11/19] drm/i915: Update the helper to set correct mapping

2021-04-21 Thread Tvrtko Ursulin
On 21/04/2021 12:42, Matthew Auld wrote: On 19/04/2021 16:01, Tvrtko Ursulin wrote: On 19/04/2021 15:37, Matthew Auld wrote: On 19/04/2021 15:07, Tvrtko Ursulin wrote: On 19/04/2021 12:30, Matthew Auld wrote: On 15/04/2021 12:05, Tvrtko Ursulin wrote: On 15/04/2021 10:23, Matthew Auld

Re: [Intel-gfx] [PATCH v3 4/4] drm/doc/rfc: i915 DG1 uAPI

2021-04-21 Thread Tvrtko Ursulin
On 21/04/2021 18:17, Jason Ekstrand wrote: On Wed, Apr 21, 2021 at 9:25 AM Tvrtko Ursulin wrote: On 21/04/2021 14:54, Jason Ekstrand wrote: On Wed, Apr 21, 2021 at 3:22 AM Tvrtko Ursulin wrote: On 20/04/2021 18:00, Jason Ekstrand wrote: On Tue, Apr 20, 2021 at 11:34 AM Tvrtko Ursulin

[Intel-gfx] [PATCH] drm/i915: Make preempt timeout for banned contexts configurable

2021-04-22 Thread Tvrtko Ursulin
From: Tvrtko Ursulin When we ban a context, for instance when userspace marked itself as non- persistent and has exited, we apply a 1ms grace period after which any belonging workload still on the GPU (did not preempt) will be forcibly terminated (using engine reset). For some workloads period

Re: [Intel-gfx] [PATCH 11/19] drm/i915: Update the helper to set correct mapping

2021-04-26 Thread Tvrtko Ursulin
On 26/04/2021 09:57, Matthew Auld wrote: On Wed, 21 Apr 2021 at 20:13, Matthew Auld wrote: On Wed, 21 Apr 2021 at 16:41, Tvrtko Ursulin wrote: On 21/04/2021 12:42, Matthew Auld wrote: On 19/04/2021 16:01, Tvrtko Ursulin wrote: On 19/04/2021 15:37, Matthew Auld wrote: On 19/04/2021

Re: [Intel-gfx] [PATCH 3/7] drm/i915/gtt: map the PD up front

2021-04-26 Thread Tvrtko Ursulin
there is address space pressure in there and is that a concern if we do not? Regards, Tvrtko v2: (Thomas) Rebase on dma_resv and obj->mm.lock removal. Signed-off-by: Matthew Auld Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin --- .../drm/i915/gem/selftests/i915_gem_context.c |

Re: [Intel-gfx] [PATCH 4/7] drm/i915/gtt/dgfx: place the PD in LMEM

2021-04-26 Thread Tvrtko Ursulin
On 26/04/2021 11:18, Matthew Auld wrote: It's a requirement that for dgfx we place all the paging structures in device local-memory. v2: use i915_coherent_map_type() Signed-off-by: Matthew Auld Cc: Tvrtko Ursulin --- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 5 - drivers/gpu/drm

Re: [Intel-gfx] [PATCH 3/7] drm/i915/gtt: map the PD up front

2021-04-27 Thread Tvrtko Ursulin
On 26/04/2021 17:18, Matthew Auld wrote: On 26/04/2021 16:20, Tvrtko Ursulin wrote: On 26/04/2021 11:18, Matthew Auld wrote: We need to general our accessor for the page directories and tables from Generalise? using the simple kmap_atomic to support local memory, and this setup must be

Re: [Intel-gfx] [PATCH v2 3/7] drm/i915/gtt: map the PD up front

2021-04-27 Thread Tvrtko Ursulin
shouldn't care too much about 32b. Reviewed-by: Tvrtko Ursulin Regards, Tvrtko Signed-off-by: Matthew Auld Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin --- .../drm/i915/gem/selftests/i915_gem_context.c | 11 + drivers/gpu/drm/i915/gt/gen6_ppgtt.c | 11 ++--- drivers/gp

Re: [Intel-gfx] [PATCH v2 4/7] drm/i915/gtt/dgfx: place the PD in LMEM

2021-04-27 Thread Tvrtko Ursulin
On 27/04/2021 09:54, Matthew Auld wrote: It's a requirement that for dgfx we place all the paging structures in device local-memory. v2: use i915_coherent_map_type() v3: improve the shared dma-resv object comment Signed-off-by: Matthew Auld Cc: Tvrtko Ursulin --- drivers/gpu/drm/i9

Re: [Intel-gfx] [PATCH 09/21] drm/i915/gem: Disallow creating contexts with too many engines

2021-04-28 Thread Tvrtko Ursulin
On 28/04/2021 11:16, Daniel Vetter wrote: On Fri, Apr 23, 2021 at 05:31:19PM -0500, Jason Ekstrand wrote: There's no sense in allowing userspace to create more engines than it can possibly access via execbuf. Signed-off-by: Jason Ekstrand --- drivers/gpu/drm/i915/gem/i915_gem_context.c | 7

Re: [Intel-gfx] [PATCH 09/21] drm/i915/gem: Disallow creating contexts with too many engines

2021-04-28 Thread Tvrtko Ursulin
On 28/04/2021 15:02, Daniel Vetter wrote: On Wed, Apr 28, 2021 at 11:42:31AM +0100, Tvrtko Ursulin wrote: On 28/04/2021 11:16, Daniel Vetter wrote: On Fri, Apr 23, 2021 at 05:31:19PM -0500, Jason Ekstrand wrote: There's no sense in allowing userspace to create more engines than i

Re: [Intel-gfx] [PATCH 06/21] drm/i915: Implement SINGLE_TIMELINE with a syncobj (v3)

2021-04-28 Thread Tvrtko Ursulin
On 23/04/2021 23:31, Jason Ekstrand wrote: This API is entirely unnecessary and I'd love to get rid of it. If userspace wants a single timeline across multiple contexts, they can either use implicit synchronization or a syncobj, both of which existed at the time this feature landed. The justi

Re: [Intel-gfx] [PATCH 08/21] drm/i915/gem: Disallow bonding of virtual engines

2021-04-28 Thread Tvrtko Ursulin
On 23/04/2021 23:31, Jason Ekstrand wrote: This adds a bunch of complexity which the media driver has never actually used. The media driver does technically bond a balanced engine to another engine but the balanced engine only has one engine in the sibling set. This doesn't actually result in

Re: [Intel-gfx] [PATCH 03/21] drm/i915/gem: Set the watchdog timeout directly in intel_context_set_gem

2021-04-28 Thread Tvrtko Ursulin
On 23/04/2021 23:31, Jason Ekstrand wrote: Instead of handling it like a context param, unconditionally set it when intel_contexts are created. This doesn't fix anything but does simplify the code a bit. Signed-off-by: Jason Ekstrand --- drivers/gpu/drm/i915/gem/i915_gem_context.c | 43 +

Re: [Intel-gfx] [PATCH 05/21] drm/i915: Drop the CONTEXT_CLONE API

2021-04-28 Thread Tvrtko Ursulin
her ways. If a client really wants a shared timeline, they can use a syncobj and set it as an in and out fence on every submit. Signed-off-by: Jason Ekstrand Cc: Tvrtko Ursulin As mentioned before I have no major problem with removing unused uapi apart from disagreeing on when to do it.

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