Re: [Intel-gfx] [PATCH 4/4] drm/i915/gen12: Invalidate aux table entries forcibly

2020-05-07 Thread Rafael Antognolli
On Wed, May 06, 2020 at 04:32:02PM +0100, Chris Wilson wrote: > Quoting Mika Kuoppala (2020-05-06 16:20:22) > > Chris Wilson writes: > > > > > Quoting Mika Kuoppala (2020-05-06 15:47:34) > > >> Aux table invalidation can fail on update. So > > >> next access may cause memory access to be into sta

Re: [Intel-gfx] [PATCH] drm/i915/tgl: Make Wa_14010229206 permanent

2020-03-27 Thread Rafael Antognolli
2890 FYI, this patch fixes some corruption I was seeing. Tested-by: Rafael Antognolli > Signed-off-by: Swathi Dhanavanthri > --- > drivers/gpu/drm/i915/gt/intel_workarounds.c | 11 +-- > 1 file changed, 5 insertions(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm

Re: [Intel-gfx] [PATCH] drm/i915/tgl: WaDisableGPGPUMidThreadPreemption

2020-03-04 Thread Rafael Antognolli
On Wed, Mar 04, 2020 at 04:24:13PM +, Tvrtko Ursulin wrote: > > On 04/03/2020 16:02, Rafael Antognolli wrote: > > On Wed, Mar 04, 2020 at 03:31:44PM +, Tvrtko Ursulin wrote: > > > From: Tvrtko Ursulin > > > > > > Enable FtrPerCtxtPreemptionG

Re: [Intel-gfx] [PATCH] drm/i915/tgl: WaDisableGPGPUMidThreadPreemption

2020-03-04 Thread Rafael Antognolli
gned-off-by: Tvrtko Ursulin > Cc: Michał Winiarski > Cc: Joonas Lahtinen > Cc: piotr.zdunow...@intel.com > Cc: michal.mro...@intel.com > Cc: Tony Ye > Cc: Rafael Antognolli Thanks for CC'ing me. I also saw a reply from Jason yesterday, but I don't see it in the list n

Re: [Intel-gfx] [PATCH v3 11/11] drm/i915/tgl: Implement Wa_1407901919

2020-03-02 Thread Rafael Antognolli
On Fri, Feb 28, 2020 at 02:10:50PM -0800, Souza, Jose wrote: > Can you guys help in this one? Check Matt comment bellow. > > On Fri, 2020-02-28 at 14:07 -0800, Matt Roper wrote: > > On Thu, Feb 27, 2020 at 02:01:01PM -0800, José Roberto de Souza > > wrote: > > > This will fix a memory coherence is

Re: [Intel-gfx] [PATCH] drm/i915/gt/tgl: implement Wa_1409085225

2020-02-18 Thread Rafael Antognolli
On Tue, Feb 18, 2020 at 03:44:49PM -0800, Rafael Antognolli wrote: > On Tue, Feb 18, 2020 at 02:47:10PM -0500, Matt Atwood wrote: > > Disable Push Constant buffer addition for A0, which can cause FIFO > > underruns. > > > > Fix a minor white space issue while we

Re: [Intel-gfx] [PATCH] drm/i915/gt/tgl: implement Wa_1409085225

2020-02-18 Thread Rafael Antognolli
On Tue, Feb 18, 2020 at 02:47:10PM -0500, Matt Atwood wrote: > Disable Push Constant buffer addition for A0, which can cause FIFO > underruns. > > Fix a minor white space issue while we're here. > > Bspec: 52890 > Cc: Rafael Antognolli > Signed-off-by: Matt Atwood

Re: [Intel-gfx] [PATCH] drm/i915/tgl: Add Wa_1808121037 to tgl.

2020-02-14 Thread Rafael Antognolli
On Fri, Feb 14, 2020 at 09:10:38AM -0800, Matt Roper wrote: > On Wed, Feb 12, 2020 at 11:17:28AM -0800, Rafael Antognolli wrote: > > It's not clear whether this workaround is final yet, but the BSpec > > indicates that userspace needs to set bit 9 of this register on demand: &

[Intel-gfx] [PATCH] drm/i915/tgl: Add Wa_1808121037 to tgl.

2020-02-12 Thread Rafael Antognolli
ot; BugLink: https://gitlab.freedesktop.org/mesa/mesa/issues/2501 Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/i915/gt/intel_workarounds.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/i915/gt/intel_workarounds.c b/drivers/gpu/drm/i915/gt/intel_workarounds.c

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

2019-03-05 Thread Rafael Antognolli
t just yet but would be good to easily enable it in the future. Acked-by: Rafael Antognolli > Signed-off-by: Michał Winiarski > Cc: Anuj Phogat > Cc: Joonas Lahtinen > Cc: Matt Roper > Cc: Rafael Antognolli > Cc: Chris Wilson > --- > drivers/gpu/drm/i915/intel_work

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

2019-03-05 Thread Rafael Antognolli
ularity to be no higher than thread group level. Acked-by: Rafael Antognolli > Signed-off-by: Michał Winiarski > Cc: Anuj Phogat > Cc: Joonas Lahtinen > Cc: Matt Roper > Cc: Rafael Antognolli > Tested-by: Anuj Phogat > Reviewed-by: Rodrigo Vivi > --- > drivers

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

2019-01-15 Thread Rafael Antognolli
On Tue, Jan 08, 2019 at 12:32:05PM -0800, Kenneth Graunke wrote: > On Tuesday, January 8, 2019 7:53:05 AM PST Joonas Lahtinen wrote: > > + Ken/Jason for Mesa > > Quoting Matt Roper (2019-01-07 21:19:31) > > > On Mon, Jan 07, 2019 at 01:23:50PM +0100, Michał Winiarski wrote: > > > > On Mon, Jan 07,

Re: [Intel-gfx] [PATCH] drm/i915/cnl: Add Wa_2201832410

2018-03-07 Thread Rafael Antognolli
Matches bspec. Reviewed-by: Rafael Antognolli On Wed, Mar 07, 2018 at 02:09:12PM -0800, Rodrigo Vivi wrote: > "Clock gating bug in GWL may not clear barrier state when an EOT > is received, causing a hang the next time that barrier is used." > > HSDES: 2201832410 >

Re: [Intel-gfx] [PATCH] drm/i915/cnl: document WaVFUnitClockGatingDisable

2018-03-05 Thread Rafael Antognolli
On Mon, Mar 05, 2018 at 05:20:00PM -0800, Rodrigo Vivi wrote: > No functional change. WA is already properly applied. > but in different databases it has different names. > Let's document all of them to avoid future confusion. Works for me. Reviewed-by: Rafael Antognolli

[Intel-gfx] [PATCH v3] drm/i915/cnl: WaPipeControlBefore3DStateSamplePattern

2018-02-05 Thread Rafael Antognolli
ore descriptive changelog and comments. v3: Explain that PIPE_CONTROL is actually 6 dwords, and that we advance 10 more dwords because of that. Signed-off-by: Rafael Antognolli Cc: Chris Wilson Acked-by: Chris Wilson --- drivers/gpu/drm/i915/intel_lrc.c | 38 +++

Re: [Intel-gfx] [PATCH v2] drm/i915/cnl: WaPipeControlBefore3DStateSamplePattern

2018-01-26 Thread Rafael Antognolli
On Fri, Jan 26, 2018 at 11:17:01PM +, Chris Wilson wrote: > Quoting Rafael Antognolli (2018-01-26 23:05:24) > > This workaround should prevent a bug that can be hit on a context > > restore. To avoid the issue, we must emit a PIPE_CONTROL with CS stall > > (0x7a04

[Intel-gfx] [PATCH v2] drm/i915/cnl: WaPipeControlBefore3DStateSamplePattern

2018-01-26 Thread Rafael Antognolli
or to programming 3DSTATE_SAMPLE_PATTERN. References: HSD#1939868 v2: - More descriptive changelog and comments. - Fix math when counting dwords. Signed-off-by: Rafael Antognolli Cc: Chris Wilson --- drivers/gpu/drm/i915/intel_lrc.c | 34 +- 1 file change

Re: [Intel-gfx] [PATCH] drm/i915/cnl: WaPipeControlBefore3DStateSamplePattern

2018-01-26 Thread Rafael Antognolli
On Fri, Jan 26, 2018 at 09:55:58AM -0800, Rafael Antognolli wrote: > On Fri, Jan 26, 2018 at 08:23:13AM +, Chris Wilson wrote: > > Quoting Rafael Antognolli (2018-01-26 01:26:34) > > > Write a PIPE_CONTROL with CS stall followed by 14 dwords of 0 in the > >

Re: [Intel-gfx] [PATCH] drm/i915/cnl: WaPipeControlBefore3DStateSamplePattern

2018-01-26 Thread Rafael Antognolli
On Fri, Jan 26, 2018 at 08:23:13AM +, Chris Wilson wrote: > Quoting Rafael Antognolli (2018-01-26 01:26:34) > > Write a PIPE_CONTROL with CS stall followed by 14 dwords of 0 in the > > indirect context wa bb. > > 14 MI_NOOPS following? That isn't what you wrote in

[Intel-gfx] [PATCH] drm/i915/cnl: WaPipeControlBefore3DStateSamplePattern

2018-01-25 Thread Rafael Antognolli
Write a PIPE_CONTROL with CS stall followed by 14 dwords of 0 in the indirect context wa bb. References: HSD#1939868 Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/i915/intel_lrc.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH 1/2] drm/i915: Implement WaDisableVFclkgate.

2017-12-15 Thread Rafael Antognolli
This workaround supposedly fixes some hangs in the VF unit. Signed-off-by: Rafael Antognolli Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/i915_reg.h | 3 +++ drivers/gpu/drm/i915/intel_pm.c | 5 + 2 files changed, 8 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_reg.h b

[Intel-gfx] [PATCH 2/2] drm/i915: Implement WaDisableEarlyEOT.

2017-12-15 Thread Rafael Antognolli
There seems to be another clock gating issue which the workaround is described as: "WA: Set 0xE4F0[1] = 1 to disable Early EOT of thread." Signed-off-by: Rafael Antognolli Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/i915_reg.h| 1 + drivers/gpu/drm/i915/intel_e

[Intel-gfx] [PATCH 2/2] drm/i915: Implement WaDisableEarlyEOT.

2017-12-01 Thread Rafael Antognolli
There seems to be another clock gating issue which the workaround is described as: "WA: Set 0xE4F0[1] = 1 to disable Early EOT of thread." Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/i915/i915_reg.h| 1 + drivers/gpu/drm/i915/intel_engine_cs.c | 3 +++ 2 files

[Intel-gfx] [PATCH 1/2] drm/i915: Implement WaDisableVFclkgate.

2017-12-01 Thread Rafael Antognolli
This workaround supposedly fixes some hangs in the VF unit. Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/i915/i915_reg.h | 3 +++ drivers/gpu/drm/i915/intel_pm.c | 5 + 2 files changed, 8 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h

Re: [Intel-gfx] [PATCH] drm/i915: Unify SLICE_UNIT_LEVEL_CLKGATE w/a for cnl

2017-11-13 Thread Rafael Antognolli
ports the value is lost entirely is more worrying though -- but it > clearly suggests that it is not a masked register in the context image, > so unify both w/a to use the original rmw. Thanks for fixing this. Reviewed-by: Rafael Antognolli > Fixes: 0a60797a0efb ("drm/i915: Implement R

Re: [Intel-gfx] [PATCH v2] drm/i915: Implement ReadHitWriteOnlyDisable.

2017-11-10 Thread Rafael Antognolli
On Fri, Nov 10, 2017 at 09:21:51PM +, Chris Wilson wrote: > Quoting Rafael Antognolli (2017-11-03 18:30:27) > > The workaround for this is described as: > > > > "if RenderSurfaceState.Num_Multisamples > 1, disable RCC clock gating if > > RenderSurfaceState.N

Re: [Intel-gfx] [PATCH v2 6/9] drm/i915: expose command stream timestamp frequency to userspace

2017-11-06 Thread Rafael Antognolli
This patch, along with the respective ones for Mesa, does fix the gl timestamp query piglit failures on CNL. So it is Tested-by: Rafael Antognolli On Thu, Nov 02, 2017 at 04:29:46PM +, Lionel Landwerlin wrote: > We use to have this fixed per generation, but starting with CNL usersp

[Intel-gfx] [PATCH v2] drm/i915: Implement ReadHitWriteOnlyDisable.

2017-11-03 Thread Rafael Antognolli
disable RCC clock gating. Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/i915/i915_reg.h| 1 + drivers/gpu/drm/i915/intel_engine_cs.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 8c775e96b4e4..bd36ec9

Re: [Intel-gfx] [PATCH] drm/i915: Implement ReadHitWriteOnlyDisable.

2017-11-01 Thread Rafael Antognolli
On Wed, Nov 01, 2017 at 02:11:05PM -0700, Rodrigo Vivi wrote: > On Wed, Nov 01, 2017 at 04:32:35PM +0000, Rafael Antognolli wrote: > > The workaround for this is described as: > > > > "if RenderSurfaceState.Num_Multisamples > 1, disable RCC clock gating if > >

[Intel-gfx] [PATCH] drm/i915: Implement ReadHitWriteOnlyDisable.

2017-11-01 Thread Rafael Antognolli
specially the GEN10_READ_HIT_WRITEONLY_DISABLE bit) improves CNL stability by avoiding some of the hangs seen in the platform. Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/i915/i915_reg.h| 2 ++ drivers/gpu/drm/i915/intel_engine_cs.c | 5 + 2 files changed, 7 insertions(+) diff --git a/drivers

Re: [Intel-gfx] [PATCH] drm/i915/cnl: WaSendPushConstantsFromMMIO / WaDisableGatherAtSetShaderCommonSlice

2017-10-05 Thread Rafael Antognolli
I can confirm this fixes my CNL issues, and it's what we could understand from the sparse documentation. Tested-by: Rafael Antognolli On Thu, Oct 05, 2017 at 03:26:40PM -0700, Rodrigo Vivi wrote: > WaSendPushConstantsFromMMIO: "If not using RS, we must send two > MMIO regi

Re: [Intel-gfx] [PATCH] aubdump: Don't bail if a GEM handle of 0 is passed into execbuf

2017-04-14 Thread Rafael Antognolli
Patch is Reviewed-by: Rafael Antognolli On Fri, Mar 24, 2017 at 04:45:01PM -0700, Jason Ekstrand wrote: > A gem handle of 0 can be used to check for whether or not 48-bit > addressing is available. This keeps aubdump from failing on you if > you try to do the check. > --- > tool

Re: [Intel-gfx] DP Aux interfaces inquiry

2017-01-25 Thread Rafael Antognolli
Hi Mario, please see below... On Wed, Jan 25, 2017 at 04:43:58PM +, mario.limoncie...@dell.com wrote: > Thanks for your comments. Some nested below. > > > -Original Message- > > From: Ville Syrjälä [mailto:ville.syrj...@linux.intel.com] > > Sent: Wednesday, January 25, 2017 9:57 AM >

Re: [Intel-gfx] [PATCH v3 14/14] drm/i915: Support explicit fencing for execbuf

2016-11-14 Thread Rafael Antognolli
ux/commits/wip-fence So in case it helps, you can add a Tested-by: Rafael Antognolli PS: I can test it with this last series and everything more up to date, if it will help to get this patch landed sooner. Cheers, Rafael On Mon, Nov 14, 2016 at 08:57:03AM +, Chris Wilson wrote: > Now that

Re: [Intel-gfx] [PATCH libdrm 15/15] intel: Support passing of explicit fencing from execbuf

2016-09-30 Thread Rafael Antognolli
Hi Chris, On Thu, Aug 25, 2016 at 10:08:33AM +0100, Chris Wilson wrote: > Allow the caller to pass in an fd to an array of fences to control > serialisation of the execbuf in the kernel and on the GPU, and in return > allow creation of a fence fd for signaling the completion (and flushing) > of th

[Intel-gfx] [PATCH i-g-t] tests/sw_sync: Add subtest test_sync_expired_merge

2016-09-13 Thread Rafael Antognolli
kernel panick will follow. Signed-off-by: Rafael Antognolli --- tests/sw_sync.c | 28 1 file changed, 28 insertions(+) diff --git a/tests/sw_sync.c b/tests/sw_sync.c index 4336659..31cde50 100644 --- a/tests/sw_sync.c +++ b/tests/sw_sync.c @@ -582,6 +582,31 @@ static void

[Intel-gfx] [PATCH] dma-buf/sync_file: Always increment refcount when merging fences.

2016-09-13 Thread Rafael Antognolli
ut it. This patch fixes a kernel panic that can be triggered by creating a fence that is expired (or increasing the timeline until it expires), then creating a merged fence out of it, and deleting the merged fence. This will make the original expired fence's refcount go to zero. Signed-off-

[Intel-gfx] [PATCH i-g-t v2] tests: Adding kms_dp_aux_dev test.

2016-03-01 Thread Rafael Antognolli
rate and max lane count - check seek position after reading - merge all subtests into a single one. Signed-off-by: Rafael Antognolli --- tests/Makefile.sources | 1 + tests/kms_dp_aux_dev.c | 190 + 2 files changed, 191 insertions(+) create

[Intel-gfx] [PATCH i-g-t] tests: Adding kms_dp_aux_dev test.

2016-02-19 Thread Rafael Antognolli
, to confirm 0 is returned - seek one more byte and confirm that EINVAL is returned - try to read 64 bytes when at 8 bytes from the end of the address space - try to read 64 bytes at the address 0. So far, no write checks are done. Signed-off-by: Rafael Antognolli

Re: [Intel-gfx] ✗ Fi.CI.BAT: warning for Add drm_dp_aux chardev support. (rev5)

2016-02-12 Thread Rafael Antognolli
On Fri, Feb 12, 2016 at 02:01:11PM +0200, Ville Syrjälä wrote: > On Fri, Jan 22, 2016 at 09:15:31AM -, Patchwork wrote: > > == Summary == > > > > Built on 8fe9e785ae04fa7c37f7935cff12d62e38054b60 drm-intel-nightly: > > 2016y-01m-21d-11h-02m-42s UTC integration manifest > > > > Test kms_flip:

Re: [Intel-gfx] [PATCH v9 3/3] drm/dp: Set aux.dev to the drm_connector device, instead of drm_device.

2016-01-21 Thread Rafael Antognolli
On Thu, Dec 03, 2015 at 02:54:02PM -0800, Rafael Antognolli wrote: > > So far, the i915 driver and some other drivers set it to the drm_device, > > which doesn't allow one to know which DP a given aux channel is related > > to. Changing this to be the drm_connector provides prop

[Intel-gfx] [PATCH v10 2/4] drm/dp: Add a drm_aux-dev module for reading/writing dpcd registers.

2016-01-21 Thread Rafael Antognolli
unregister - other minor suggestions from Ville v7: - style fixes - error handling fixes v8: - more error handling fixes v9: - remove module_init and module_exit, and add drm_dp_aux_dev_init/exit to drm_kms_helper_init/exit. Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/Kconfig

[Intel-gfx] [PATCH v10 3/4] drm/i915: Set aux.dev to the drm_connector device, instead of drm_device.

2016-01-21 Thread Rafael Antognolli
f the drm_connector device now. Calling drm_dp_aux_unregister() before prevents them from being destroyed twice. v10: - move aux_fini() to connector_unregister(), instead of moving drm_dp_aux_unregister() outside of connector_register(). Signed-off-by: Rafael Antognolli --- drivers/gpu/drm

[Intel-gfx] [PATCH v10 0/4] Add drm_dp_aux chardev support.

2016-01-21 Thread Rafael Antognolli
This series implement support to a drm_dp_aux chardev that allows reading and writing an arbitrary amount of bytes to arbitrary dpcd register addresses using regular read, write and lseek operations. Lukas Wunner (1): drm/radeon: Fix WARN_ON if DRM_DP_AUX_CHARDEV is enabled Rafael Antognolli

[Intel-gfx] [PATCH v10 4/4] drm/radeon: Fix WARN_ON if DRM_DP_AUX_CHARDEV is enabled

2016-01-21 Thread Rafael Antognolli
_unregister() before drm_connector_unregister().) Cc: Rafael Antognolli Cc: Ville Syrjälä Cc: Alex Deucher Signed-off-by: Lukas Wunner --- drivers/gpu/drm/radeon/radeon_display.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/

[Intel-gfx] [PATCH v10 1/4] drm/kms_helper: Add a common place to call init and exit functions.

2016-01-21 Thread Rafael Antognolli
The module_init and module_exit functions will start here, and call the subsequent init's and exit's. v10: - Keep __init on drm_fb_helper init function. - Move MODULE_* macros to the common file. Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/Makefile| 4 ++

[Intel-gfx] [PATCH v9 0/3] Add drm_dp_aux chardev support.

2015-12-03 Thread Rafael Antognolli
This series implement support to a drm_dp_aux chardev that allows reading and writing an arbitrary amount of bytes to arbitrary dpcd register addresses using regular read, write and lseek operations. Rafael Antognolli (3): drm/kms_helper: Add a common place to call init and exit functions

[Intel-gfx] [PATCH v9 2/3] drm/dp: Add a drm_aux-dev module for reading/writing dpcd registers.

2015-12-03 Thread Rafael Antognolli
unregister - other minor suggestions from Ville v7: - style fixes - error handling fixes v8: - more error handling fixes v9: - remove module_init and module_exit, and add drm_dp_aux_dev_init/exit to drm_kms_helper_init/exit. Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/Kconfig

[Intel-gfx] [PATCH v9 3/3] drm/dp: Set aux.dev to the drm_connector device, instead of drm_device.

2015-12-03 Thread Rafael Antognolli
f the drm_connector device now. Calling drm_dp_aux_unregister() before prevents them from being destroyed twice. Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/i915/intel_dp.c | 22 -- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH v9 1/3] drm/kms_helper: Add a common place to call init and exit functions.

2015-12-03 Thread Rafael Antognolli
The module_init and module_exit functions will start here, and call the subsequent init's and exit's. Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/Makefile| 4 ++- drivers/gpu/drm/drm_fb_helper.c | 9 +++ drivers/gpu/drm/drm_kms_helper_com

Re: [Intel-gfx] [PATCH v8 2/2] drm/dp: Set aux.dev to the drm_connector device, instead of drm_device.

2015-12-01 Thread Rafael Antognolli
On Tue, Nov 24, 2015 at 10:31:41PM +0200, Ville Syrjälä wrote: > On Mon, Nov 02, 2015 at 12:33:48PM -0800, Rafael Antognolli wrote: > > So far, the i915 driver and some other drivers set it to the drm_device, > > which doesn't allow one to know which DP a given aux chann

[Intel-gfx] [PATCH v8 2/2] drm/dp: Set aux.dev to the drm_connector device, instead of drm_device.

2015-11-02 Thread Rafael Antognolli
o the drm_connector. This also removes the need to add a sysfs link for the i2c device under the connector, as it will already be there. Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/i915/intel_dp.c | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/dr

[Intel-gfx] [PATCH v8 1/2] drm/dp: Add a drm_aux-dev module for reading/writing dpcd registers.

2015-11-02 Thread Rafael Antognolli
unregister - other minor suggestions from Ville v7: - style fixes - error handling fixes v8: - more error handling fixes Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/Kconfig | 8 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/d

[Intel-gfx] [PATCH v8 0/2] Add drm_dp_aux chardev support.

2015-11-02 Thread Rafael Antognolli
This series implement support to a drm_dp_aux chardev that allows reading and writing an arbitrary amount of bytes to arbitrary dpcd register addresses using regular read, write and lseek operations. Rafael Antognolli (2): drm/dp: Add a drm_aux-dev module for reading/writing dpcd registers

[Intel-gfx] [PATCH v7 0/2] Add drm_dp_aux chardev support.

2015-10-30 Thread Rafael Antognolli
This series implement support to a drm_dp_aux chardev that allows reading and writing an arbitrary amount of bytes to arbitrary dpcd register addresses using regular read, write and lseek operations. Rafael Antognolli (2): drm/dp: Add a drm_aux-dev module for reading/writing dpcd registers

[Intel-gfx] [PATCH v7 2/2] drm/dp: Set aux.dev to the drm_connector device, instead of drm_device.

2015-10-30 Thread Rafael Antognolli
o the drm_connector. This also removes the need to add a sysfs link for the i2c device under the connector, as it will already be there. Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/i915/intel_dp.c | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/dr

[Intel-gfx] [PATCH v7 1/2] drm/dp: Add a drm_aux-dev module for reading/writing dpcd registers.

2015-10-30 Thread Rafael Antognolli
unregister - other minor suggestions from Ville v7: - style fixes - error handling fixes Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/Kconfig | 8 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/drm_dp_aux_dev.c | 374 +++ drivers/gpu/d

Re: [Intel-gfx] [PATCH v6 1/2] drm/dp: Add a drm_aux-dev module for reading/writing dpcd registers.

2015-10-30 Thread Rafael Antognolli
On Fri, Oct 30, 2015 at 12:04:17PM +0200, Ville Syrjälä wrote: > On Thu, Oct 29, 2015 at 04:23:45PM -0700, Rafael Antognolli wrote: > > This module is heavily based on i2c-dev. Once loaded, it provides one > > dev node per DP AUX channel, named drm_dp_auxN, where N is an integer

[Intel-gfx] [PATCH v6 0/2] Add drm_dp_aux chardev support.

2015-10-29 Thread Rafael Antognolli
- Remove "connector" attribute - set aux.dev to the connector drm_connector device, instead of drm_device v6: - Use atomic_t for usage count - Use a mutex instead of spinlock for idr lock - Destroy chardev immediately on unregister - other minor suggestions from Ville Rafael Anto

[Intel-gfx] [PATCH v6 1/2] drm/dp: Add a drm_aux-dev module for reading/writing dpcd registers.

2015-10-29 Thread Rafael Antognolli
f the connector device pointer was correctly set in the aux helper struct. Two main operations are provided on the registers read and write. The address of the register to be read or written is given using lseek. The seek position is updated upon read or write. Signed-off-by: Rafael Antognolli --- driver

[Intel-gfx] [PATCH v6 2/2] drm/dp: Set aux.dev to the drm_connector device, instead of drm_device.

2015-10-29 Thread Rafael Antognolli
o the drm_connector. This also removes the need to add a sysfs link for the i2c device under the connector, as it will already be there. Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/i915/intel_dp.c | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/dr

Re: [Intel-gfx] [PATCH v4 1/2] drm/dp: Store the drm_connector device pointer on the helper.

2015-10-09 Thread Rafael Antognolli
s Wunner wrote: > > > > On Mon, Sep 28, 2015 at 04:45:35PM -0700, Rafael Antognolli wrote: > > > > > This is useful to determine which connector owns this AUX channel. > > > > > > > > WTF? I posted a patch in August which does exactly that

[Intel-gfx] [PATCH v5 0/2] Add drm_dp_aux chardev support.

2015-10-09 Thread Rafael Antognolli
- Remove "connector" attribute - set aux.dev to the connector drm_connector device, instead of drm_device Rafael Antognolli (2): drm/dp: Add a drm_aux-dev module for reading/writing dpcd registers. drm/dp: Set aux.dev to the drm_connector device, instead of drm_device. dri

[Intel-gfx] [PATCH v5 2/2] drm/dp: Set aux.dev to the drm_connector device, instead of drm_device.

2015-10-09 Thread Rafael Antognolli
o the drm_connector. This also removes the need to add a sysfs link for the i2c device under the connector, as it will already be there. Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/i915/intel_dp.c | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/dr

[Intel-gfx] [PATCH v5 1/2] drm/dp: Add a drm_aux-dev module for reading/writing dpcd registers.

2015-10-09 Thread Rafael Antognolli
f the connector device pointer was correctly set in the aux helper struct. Two main operations are provided on the registers read and write. The address of the register to be read or written is given using lseek. The seek position is updated upon read or write. Signed-off-by: Rafael Antognolli --- driver

Re: [Intel-gfx] [PATCH v4 2/2] drm/dp: Add a drm_aux-dev module for reading/writing dpcd registers.

2015-09-29 Thread Rafael Antognolli
Thanks Ville for the review, I'm addressing all the issues but have some questions on the ones mentioned below: On Tue, Sep 29, 2015 at 05:09:23PM +0300, Ville Syrjälä wrote: > On Mon, Sep 28, 2015 at 04:45:36PM -0700, Rafael Antognolli wrote: > > This module is heavily based on

Re: [Intel-gfx] [PATCH v4 1/2] drm/dp: Store the drm_connector device pointer on the helper.

2015-09-29 Thread Rafael Antognolli
On Tue, Sep 29, 2015 at 02:49:20PM +0200, Lukas Wunner wrote: > Hi Rafael, > > On Mon, Sep 28, 2015 at 04:45:35PM -0700, Rafael Antognolli wrote: > > This is useful to determine which connector owns this AUX channel. > > WTF? I posted a patch in August which does

[Intel-gfx] [PATCH i-g-t] tests: Adding kms_dp_aux_dev test.

2015-09-28 Thread Rafael Antognolli
, to confirm 0 is returned - seek one more byte and confirm that EINVAL is returned - try to read 64 bytes when at 8 bytes from the end of the address space - try to read 64 bytes at the address 0. So far, no write checks are done. Signed-off-by: Rafael Antognolli

[Intel-gfx] [PATCH v4 0/2] Add drm_dp_aux chardev support.

2015-09-28 Thread Rafael Antognolli
onfig is now a boolean - add inline stub functions to avoid breakage when this option is disabled v4: - fix build system changes - actually disable this module when not selected. Rafael Antognolli (2): drm/dp: Store the drm_connector device pointer on the helper. drm/dp: Add a drm_aux-dev m

[Intel-gfx] [PATCH v4 2/2] drm/dp: Add a drm_aux-dev module for reading/writing dpcd registers.

2015-09-28 Thread Rafael Antognolli
f the connector device pointer was correctly set in the aux helper struct. Two main operations are provided on the registers read and write. The address of the register to be read or written is given using lseek. The seek position is updated upon read or write. Signed-off-by: Rafael Antognolli --- driver

[Intel-gfx] [PATCH v4 1/2] drm/dp: Store the drm_connector device pointer on the helper.

2015-09-28 Thread Rafael Antognolli
This is useful to determine which connector owns this AUX channel. Signed-off-by: Rafael Antognolli --- drivers/gpu/drm/i915/intel_dp.c | 1 + include/drm/drm_dp_helper.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c

Re: [Intel-gfx] [PATCH 7/7] drm/i915: Dont -ETIMEDOUT on identical new and previous (count, crc).

2015-07-29 Thread Rafael Antognolli
On Wed, Jul 29, 2015 at 10:26:53AM +0200, Daniel Vetter wrote: > On Tue, Jul 28, 2015 at 10:05:21PM +, Vivi, Rodrigo wrote: > > On Tue, 2015-07-28 at 13:25 -0700, Rafael Antognolli wrote: > > > On Thu, Jul 23, 2015 at 04:35:50PM -0700, Rodrigo Vivi wrote: > >

Re: [Intel-gfx] [PATCH 7/7] drm/i915: Dont -ETIMEDOUT on identical new and previous (count, crc).

2015-07-28 Thread Rafael Antognolli
On Thu, Jul 23, 2015 at 04:35:50PM -0700, Rodrigo Vivi wrote: > By Vesa DP 1.2 spec TEST_CRC_COUNT is a "4 bit wrap counter which > increments each time the TEST_CRC_x_x are updated." > > However if we are trying to verify the screen hasn't changed we get > same (count, crc) pair twice. Without th

Re: [Intel-gfx] [PATCH 6/7] drm/i915: Save latest known sink CRC to compensate delayed counter reset.

2015-07-28 Thread Rafael Antognolli
i We discussed this before, unfortunately I don't see any other way to do this, since there is no way to know that the crc count really restarted, became 0 and then 1 again. So I think this workaround is needed. Reviewed-by: Rafael Antognolli > --- > drivers/gpu/drm/i915/intel_dp.c

Re: [Intel-gfx] [PATCH 5/7] drm/i915: Force sink crc stop before start.

2015-07-28 Thread Rafael Antognolli
; it hasn't been properly stoped. > > Signed-off-by: Rodrigo Vivi Reviewed-by: Rafael Antognolli > --- > drivers/gpu/drm/i915/intel_dp.c | 22 +++--- > drivers/gpu/drm/i915/intel_drv.h | 1 + > 2 files changed, 20 insertions(+), 3 deletions(-) >

Re: [Intel-gfx] [PATCH 4/7] drm/i915: Split sink_crc function in start, stop and read.

2015-07-28 Thread Rafael Antognolli
ier, this is required. Reviewed-by: Rafael Antognolli > --- > drivers/gpu/drm/i915/intel_dp.c | 89 > +++-- > 1 file changed, 50 insertions(+), 39 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c &

Re: [Intel-gfx] [PATCH 3/7] drm/i915: Don't return error on sink crc stop.

2015-07-24 Thread Rafael Antognolli
this one specifically has this problem. Not sure if this is a problem though, since the patches are submitted together. If not, then Reviewed-by: Rafael Antognolli > Signed-off-by: Rodrigo Vivi > --- > drivers/gpu/drm/i915/intel_dp.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 dele

Re: [Intel-gfx] [PATCH 2/7] drm/i915: Try to stop sink crc calculation on error.

2015-07-24 Thread Rafael Antognolli
goto stop; > } > > if (drm_dp_dpcd_read(&intel_dp->aux, DP_TEST_CRC_R_CR, crc, 6) < 0) { > ret = -EIO; > - goto out; > + goto stop; > } > > +stop: > if (drm_dp_dpcd_readb(&intel_dp->