[Intel-gfx] [PATCH 0/3] drm/i915/hdcp: HDCP2.2 MST dock fixes

2021-08-10 Thread Juston Li
other time as invalid when the READY bit isn't set possibly because it could be stale. The HDCP spec also states the READY bit is cleared after RxInfo is read. These fixes address this behavior by only reading RxInfo once during the AKE flow and reusing that data. Juston Li (3): drm/i915

[Intel-gfx] [PATCH 1/3] drm/i915/hdcp: update cp_irq_count_cached in intel_dp_hdcp2_read_msg()

2021-08-10 Thread Juston Li
e we received a CP_IRQ for reading AKE_Send_H_Prime but no write occurred between that and reading AKE_Send_Pairing_Info so cp_irq_count_cached is stale causing the wait to return right away rather than waiting for a new CP_IRQ. Signed-off-by: Juston Li Acked-by: Anshuman Gupta --- drivers/gpu/d

[Intel-gfx] [PATCH 2/3] drm/i915/hdcp: read RxInfo once when reading RepeaterAuth_Send_ReceiverID_List

2021-08-10 Thread Juston Li
seq_num_V. Changes in v4: - rebase and edit commit message Changes in v3: - remove comment Changes in v2: - remove unnecessary moving of drm_i915_private from patch 1 Signed-off-by: Juston Li Acked-by: Anshuman Gupta --- drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 30

[Intel-gfx] [PATCH 2/3] drm/i915/hdcp: read RxInfo once when reading RepeaterAuth_Send_ReceiverID_List

2021-08-10 Thread Juston Li
From: Juston Li Date: Mon, 9 Aug 2021 12:55:06 -0700 Subject: [Intel-gfx] [PATCH 3/3] drm/i915/hdcp: reuse rx_info for mst stream type1 capability check On some MST docking stations, rx_info can only be read after RepeaterAuth_Send_ReceiverID_List and the RxStatus READY bit is set otherwise the

[Intel-gfx] [PATCH v2 0/3] drm/i915/hdcp: HDCP2.2 MST dock fixes

2021-08-10 Thread Juston Li
bject line for 3/3 Juston Li (3): drm/i915/hdcp: update cp_irq_count_cached in intel_dp_hdcp2_read_msg() drm/i915/hdcp: read RxInfo once when reading RepeaterAuth_Send_ReceiverID_List drm/i915/hdcp: reuse rx_info for mst stream type1 capability check .../drm/i915/di

[Intel-gfx] [PATCH v2 1/3] drm/i915/hdcp: update cp_irq_count_cached in intel_dp_hdcp2_read_msg()

2021-08-10 Thread Juston Li
e we received a CP_IRQ for reading AKE_Send_H_Prime but no write occurred between that and reading AKE_Send_Pairing_Info so cp_irq_count_cached is stale causing the wait to return right away rather than waiting for a new CP_IRQ. Signed-off-by: Juston Li Acked-by: Anshuman Gupta --- drivers/gpu/d

[Intel-gfx] [PATCH v2 2/3] drm/i915/hdcp: read RxInfo once when reading RepeaterAuth_Send_ReceiverID_List

2021-08-10 Thread Juston Li
seq_num_V. Changes in v4: - rebase and edit commit message Changes in v3: - remove comment Changes in v2: - remove unnecessary moving of drm_i915_private from patch 1 Signed-off-by: Juston Li Acked-by: Anshuman Gupta --- drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 30

[Intel-gfx] [PATCH v2 3/3] drm/i915/hdcp: reuse rx_info for mst stream type1 capability check

2021-08-10 Thread Juston Li
() when we get rx_info but this occurs before we do hdcp2_propagate_stream_management_info. Also, legacy HDCP 2.0/2.1 are not type 1 capable either so check for that as well. Signed-off-by: Juston Li --- .../drm/i915/display/intel_display_types.h| 2 + drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH v3 0/3] drm/i915/hdcp: HDCP2.2 MST dock fixes

2021-08-10 Thread Juston Li
ve no longer used variables in _intel_hdcp2_enable() Changes since v1: - Fix subject line for 3/3 Juston Li (3): drm/i915/hdcp: update cp_irq_count_cached in intel_dp_hdcp2_read_msg() drm/i915/hdcp: read RxInfo once when reading RepeaterAuth_Send_ReceiverID_List drm/i915/hdcp: reuse rx

[Intel-gfx] [PATCH v3 1/3] drm/i915/hdcp: update cp_irq_count_cached in intel_dp_hdcp2_read_msg()

2021-08-10 Thread Juston Li
e we received a CP_IRQ for reading AKE_Send_H_Prime but no write occurred between that and reading AKE_Send_Pairing_Info so cp_irq_count_cached is stale causing the wait to return right away rather than waiting for a new CP_IRQ. Signed-off-by: Juston Li Acked-by: Anshuman Gupta --- drivers/gpu/d

[Intel-gfx] [PATCH v3 2/3] drm/i915/hdcp: read RxInfo once when reading RepeaterAuth_Send_ReceiverID_List

2021-08-10 Thread Juston Li
seq_num_V. Changes in v4: - rebase and edit commit message Changes in v3: - remove comment Changes in v2: - remove unnecessary moving of drm_i915_private from patch 1 Signed-off-by: Juston Li Acked-by: Anshuman Gupta --- drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 30

[Intel-gfx] [PATCH v3 3/3] drm/i915/hdcp: reuse rx_info for mst stream type1 capability check

2021-08-10 Thread Juston Li
() when we get rx_info but this occurs before we do hdcp2_propagate_stream_management_info. Also, legacy HDCP 2.0/2.1 are not type 1 capable either so check for that as well. Changes since v2: - Remove no longer used variables in _intel_hdcp2_enable() Signed-off-by: Juston Li --- .../drm/i915

[Intel-gfx] [PATCH v3 1/2] drm/i915/hdcp: update cp_irq_count_cached in intel_dp_hdcp2_read_msg()

2021-01-28 Thread Juston Li
ot;timeout" because we received a CP_IRQ for reading AKE_Send_H_Prime but no write occurred between that and reading AKE_Send_Pairing_Info so cp_irq_count_cached is stale causing the wait to return right away rather than waiting for a new CP_IRQ. Signed-off-by: Juston Li Acked-by: Anshuman Gupta -

[Intel-gfx] [PATCH v3 2/2] drm/i915/hdcp: read RxInfo once when reading Send_Pairing_Info

2021-01-28 Thread Juston Li
COUNT so we know the size of RepeaterAuth_Send_ReceiverID_List. Afterwards, retrieve the rest of the message at the offset for seq_num_V. Changes in v3: - remove comment Changes in v2: - remove unnecessary moving of drm_i915_private from patch 1 Signed-off-by: Juston Li Acked-by: Anshuman

[PATCH v3] drm: Add getfb2 ioctl

2019-12-16 Thread Juston Li
- update ioctl number Signed-off-by: Daniel Stone Signed-off-by: Juston Li Acked-by: Daniel Vetter --- drivers/gpu/drm/drm_crtc_internal.h | 2 + drivers/gpu/drm/drm_framebuffer.c | 122 drivers/gpu/drm/drm_ioctl.c | 1 + include/uapi/drm/drm.h

[PATCH i-g-t 1/2 v3] NOMERGE: Import drm.h up to 54ecb8f7028c

2019-10-15 Thread Juston Li
Depends on ummerged kernel code for getfb2 Rest of drm.h taken from: commit 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c Author: Linus Torvalds Date: Mon Sep 30 10:35:40 2019 -0700 Linux 5.4-rc1 Signed-off-by: Juston Li --- include/drm-uapi/drm.h | 39

[PATCH i-g-t 2/2 v3] tests/kms_getfb: Add getfb2 tests

2019-10-15 Thread Juston Li
-off-by: Juston Li --- tests/kms_getfb.c | 103 ++ 1 file changed, 103 insertions(+) diff --git a/tests/kms_getfb.c b/tests/kms_getfb.c index ca0b01c05e5c..848b896b7556 100644 --- a/tests/kms_getfb.c +++ b/tests/kms_getfb.c @@ -228,6 +228,106 @@ static

[PATCH v7 libdrm 1/2] include/drm: sync up drm.h

2020-02-11 Thread Juston Li
drm_dp_mst_topology_mgr_set_mst() Changes since v6: - clean up commit message per include/drm/README (Eric Engestrom) Signed-off-by: Juston Li Acked-by: Eric Engestrom --- include/drm/drm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm/drm.h b/include/drm/drm.h index ab9403397815

[PATCH v7 libdrm 2/2] Add drmModeGetFB2

2020-02-11 Thread Juston Li
-by: Juston Li Signed-off-by: Daniel Stone Reviewed-by: Eric Engestrom --- xf86drmMode.c | 35 +++ xf86drmMode.h | 15 +++ 2 files changed, 50 insertions(+) diff --git a/xf86drmMode.c b/xf86drmMode.c index 0cf7992c6e9a..2399e8ecea6f 100644 --- a

[PATCH v8 libdrm 1/2] include/drm: sync up drm.h

2020-02-11 Thread Juston Li
drm_dp_mst_topology_mgr_set_mst() Signed-off-by: Juston Li Acked-by: Eric Engestrom --- include/drm/drm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm/drm.h b/include/drm/drm.h index ab9403397815..c7fd2a35fd7b 100644 --- a/include/drm/drm.h +++ b/include/drm/drm.h @@ -942,6 +942,8 @@ extern

[PATCH v8 libdrm 2/2] Add drmModeGetFB2

2020-02-11 Thread Juston Li
drm_public - modifier should be 64 bits - update ioctl number Signed-off-by: Juston Li Signed-off-by: Daniel Stone Reviewed-by: Eric Engestrom --- core-symbols.txt | 2 ++ xf86drmMode.c| 35 +++ xf86drmMode.h| 15 +++ 3 files changed, 52

[PATCH v3 libdrm 2/2] Add drmModeGetFB2

2020-01-22 Thread Juston Li
: - functions should be drm_public - modifier should be 64 bits - update ioctl number Signed-off-by: Juston Li --- xf86drmMode.c | 40 xf86drmMode.h | 15 +++ 2 files changed, 55 insertions(+) diff --git a/xf86drmMode.c b/xf86drmMode.c index

[PATCH v3 libdrm 1/2] include/drm: sync up drm.h

2020-01-22 Thread Juston Li
Adds DRM_IOCTL_MODE_GETFB2 Taken from drm-next-misc: commit 3ff4c24bdb1f494c217c80348f9db4896043ed81 Author: Lyude Paul Date: Fri Jan 17 17:47:48 2020 -0500 drm/dp_mst: Fix indenting in drm_dp_mst_topology_mgr_set_mst() Signed-off-by: Juston Li --- include

[PATCH v4 libdrm 1/2] include/drm: sync up drm.h to 3ff4c24bdb1f

2020-01-31 Thread Juston Li
Adds DRM_IOCTL_MODE_GETFB2 Taken from drm-next-misc: commit 3ff4c24bdb1f494c217c80348f9db4896043ed81 Author: Lyude Paul Date: Fri Jan 17 17:47:48 2020 -0500 drm/dp_mst: Fix indenting in drm_dp_mst_topology_mgr_set_mst() Signed-off-by: Juston Li --- include

[PATCH v4 libdrm 2/2] Add drmModeGetFB2

2020-01-31 Thread Juston Li
merged upstream - sync include/drm/drm.h in a seperate patch Changes since v1: - functions should be drm_public - modifier should be 64 bits - update ioctl number Signed-off-by: Juston Li Signed-off-by: Daniel Stone --- xf86drmMode.c | 36 xf86drmMode.h

[PATCH v5 libdrm 1/2] include/drm: sync up drm.h

2020-02-05 Thread Juston Li
Adds DRM_IOCTL_MODE_GETFB2 Taken from drm-next-misc: commit 3ff4c24bdb1f494c217c80348f9db4896043ed81 Author: Lyude Paul Date: Fri Jan 17 17:47:48 2020 -0500 drm/dp_mst: Fix indenting in drm_dp_mst_topology_mgr_set_mst() Signed-off-by: Juston Li --- include

[PATCH v5 libdrm 2/2] Add drmModeGetFB2

2020-02-05 Thread Juston Li
check in drmModeFreeFB2 (Daniel Stone) Changes since v2: - getfb2 ioctl has been merged upstream - sync include/drm/drm.h in a seperate patch Changes since v1: - functions should be drm_public - modifier should be 64 bits - update ioctl number Signed-off-by: Juston Li Signed-off-by: Daniel

[PATCH v6 libdrm 1/2] include/drm: sync up drm.h

2020-02-05 Thread Juston Li
Adds DRM_IOCTL_MODE_GETFB2 Taken from drm-next-misc: commit 3ff4c24bdb1f494c217c80348f9db4896043ed81 Author: Lyude Paul Date: Fri Jan 17 17:47:48 2020 -0500 drm/dp_mst: Fix indenting in drm_dp_mst_topology_mgr_set_mst() Signed-off-by: Juston Li --- include

[PATCH v6 libdrm 2/2] Add drmModeGetFB2

2020-02-05 Thread Juston Li
-by: Juston Li Signed-off-by: Daniel Stone Reviewed-by: Eric Engestrom --- xf86drmMode.c | 35 +++ xf86drmMode.h | 15 +++ 2 files changed, 50 insertions(+) diff --git a/xf86drmMode.c b/xf86drmMode.c index 0cf7992c6e9a..2399e8ecea6f 100644 --- a

[RESEND PATCH v2] drm: Add getfb2 ioctl

2019-10-03 Thread Juston Li
From: Daniel Stone getfb2 allows us to pass multiple planes and modifiers, just like addfb2 over addfb. Changes since v1: - unused modifiers set to 0 instead of DRM_FORMAT_MOD_INVALID - update ioctl number Signed-off-by: Daniel Stone Signed-off-by: Juston Li --- drivers/gpu/drm

[RESEND PATCH libdrm v2] NOMERGE: Add drmModeGetFB2

2019-10-03 Thread Juston Li
should 64 bits - update ioctl number Signed-off-by: Juston Li --- include/drm/drm.h | 2 ++ xf86drmMode.c | 40 xf86drmMode.h | 15 +++ 3 files changed, 57 insertions(+) diff --git a/include/drm/drm.h b/include/drm/drm.h index

[PATCH i-g-t v2 2/2] NOMERGE: Import drm.h up to 54ecb8f7028c

2019-10-03 Thread Juston Li
Depends on ummerged kernel code for getfb2 Rest of drm.h taken from: commit 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c Author: Linus Torvalds Date: Mon Sep 30 10:35:40 2019 -0700 Linux 5.4-rc1 Signed-off-by: Juston Li --- include/drm-uapi/drm.h | 39

[PATCH i-g-t v2 1/2] tests/kms_getfb: Add getfb2 tests

2019-10-03 Thread Juston Li
-off-by: Juston Li --- tests/kms_getfb.c | 103 ++ 1 file changed, 103 insertions(+) diff --git a/tests/kms_getfb.c b/tests/kms_getfb.c index ca0b01c05e5c..848b896b7556 100644 --- a/tests/kms_getfb.c +++ b/tests/kms_getfb.c @@ -228,6 +228,106 @@ static

Re: [PATCH v6 5/6] drm/i915/pxp: Trigger the global teardown for before suspending

2023-01-24 Thread Juston Li
d the driver to ensure > > that all active sessions be properly cleaned up in such cases where > > the system is suspended and the GuC potentially unable to respond. > > > > This patch adds the global teardown code in i915's suspend_prepare > > code path. >

Re: [PATCH v3 4/7] drm/i915/pxp: Invalidate all PXP fw sessions during teardown

2023-01-04 Thread Juston Li
pect all active sessions > and submit the invalidate-stream-key PXP command to the security > firmware for each of them. However, for the upstream i915 driver > we only support the arbitration session that can be created > so that will be the only session we will cleanup. > &

Re: [PATCH v3 5/7] drm/i915/pxp: Trigger the global teardown for before suspending

2023-01-04 Thread Juston Li
+    * To ensure synchronous and coherent session > teardown completion > +    * in response to suspend or shutdown triggers, don't > user a worker. nit: typo user -> use Reviewed-by: Juston Li > +    */ > +   

[RESEND PATCH v2 0/2] Check MST topology change on resume

2018-10-23 Thread Juston Li
et the MST connections if they did. This resolves issues with monitors not being detected when hotplugging them during suspend. Signed-off-by: Juston Li Changes since v1: - update functions that have been renamed since the original patch - add a null check for the cached EDID in case a new device

[RESEND PATCH v2 1/2] drm/dp/mst: Reprobe EDID for MST ports on resume

2018-10-23 Thread Juston Li
INVAL from drm_dp_mst_topology_mgr_resume to indicate to callers that they need to reset the MST connection, and that they can't rely on any other method of reprobing. Cc: sta...@vger.kernel.org Signed-off-by: Lyude Signed-off-by: Juston Li --- drivers/gpu/drm/drm_dp_mst_topology.c | 94

[RESEND PATCH v2 2/2] drm/i915/mst: Reset MST after resume when necessary

2018-10-23 Thread Juston Li
From: Lyude A follow-up to the previous commit, we skip checking the status of the MST device and completely reprobe it if drm_dp_mst_topology_mgr_resume() returns -EINVAL. Cc: sta...@vger.kernel.org Signed-off-by: Lyude Signed-off-by: Juston Li --- drivers/gpu/drm/i915/intel_dp.c | 7

Re: [PATCH v2] drm/xe/bo: add GPU memory trace points

2025-05-28 Thread Juston Li
On Thu, 2025-05-22 at 16:14 +0100, Tvrtko Ursulin wrote: > > On 22/05/2025 15:50, Lucas De Marchi wrote: > > + dri-devel > > > > On Wed, May 21, 2025 at 10:42:35PM +, Juston Li wrote: > > > Add tracepoints behind CONFIG_DRM_XE_GPU_MEM_TRACEPOINTS for &g

Re: [PATCH v2] drm/xe/bo: add GPU memory trace points

2025-05-28 Thread Juston Li
On Wed, 2025-05-28 at 18:34 +, Juston Li wrote: > On Thu, 2025-05-22 at 16:14 +0100, Tvrtko Ursulin wrote: > > > > On 22/05/2025 15:50, Lucas De Marchi wrote: > > > + dri-devel > > > > > > On Wed, May 21, 2025 at 10:42:35PM +, Justo

Re: [PATCH v4 2/2] drm/xe/bo: add GPU memory trace points

2025-06-13 Thread Juston Li
> > wrote: > > > > > > > > > > > > > > On 12/06/2025 06:40, Lucas De Marchi wrote: > > > > > > > > On Wed, Jun 11, 2025 at 03:51:24PM -0700, Juston Li > > > > > > > > wrote: > > > > >

[PATCH v3 2/2] drm/xe/bo: add GPU memory trace points

2025-06-03 Thread Juston Li
preferred by checkpatch (Tvrtko) - Fix errors in comments/Kconfig description (Tvrtko) - drop redundant "CONFIG" in Kconfig Signed-off-by: Juston Li Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/xe/xe_bo.c | 47 drivers/gpu/drm/xe/xe_device_ty

[PATCH v3 1/2] gpu/trace: make TRACE_GPU_MEM configurable

2025-06-03 Thread Juston Li
v3: - Patch introduced to replace per-driver config (Lucas) Signed-off-by: Juston Li --- drivers/gpu/trace/Kconfig | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/trace/Kconfig b/drivers/gpu/trace/Kconfig index c24e9edd022e6..cd3d19c4a201c 100644

Re: [PATCH v3 1/2] gpu/trace: make TRACE_GPU_MEM configurable

2025-06-10 Thread Juston Li
On Mon, 2025-06-09 at 13:36 +0100, Tvrtko Ursulin wrote: > > On 03/06/2025 23:50, Juston Li wrote: > > v3: > >   - Patch introduced to replace per-driver config (Lucas) > > > > Signed-off-by: Juston Li > > --- > >   drivers/gpu/trace/Kconfig | 11 +

[PATCH v4 2/2] drm/xe/bo: add GPU memory trace points

2025-06-11 Thread Juston Li
preferred by checkpatch (Tvrtko) - Fix errors in comments/Kconfig description (Tvrtko) - drop redundant "CONFIG" in Kconfig Signed-off-by: Juston Li Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/xe/xe_bo.c | 47 drivers/gpu/drm/xe/xe_device_ty

[PATCH v4 1/2] gpu/trace: make TRACE_GPU_MEM configurable

2025-06-11 Thread Juston Li
Move the source to a better place in Device Drivers -> Graphics support now that its configurable. v4: - Move source location (Tvrtko) v3: - Patch introduced to replace per-driver config (Lucas) Signed-off-by: Juston Li --- drivers/Kconfig | 2 -- drivers/gpu/trace/Kconfig |

[PATCH v5 1/2] gpu/trace: make TRACE_GPU_MEM configurable

2025-07-07 Thread Juston Li
Move the source to a better place in Device Drivers -> Graphics support now that its configurable. v4: - Move source location (Tvrtko) v3: - Patch introduced to replace per-driver config (Lucas) Signed-off-by: Juston Li Reviewed-by: Lucas De Marchi --- drivers/Kconfig |

[PATCH v5 2/2] drm/xe/bo: add GPU memory trace points

2025-07-07 Thread Juston Li
ns v3: - Use now configurable CONFIG_TRACE_GPU_MEM instead of adding a per-driver Kconfig (Lucas) v2: - Use u64 as preferred by checkpatch (Tvrtko) - Fix errors in comments/Kconfig description (Tvrtko) - drop redundant "CONFIG" in Kconfig Signed-off-by: Juston Li Reviewed-by

Re: [PATCH v4 2/2] drm/xe/bo: add GPU memory trace points

2025-07-07 Thread Juston Li
On Thu, 2025-06-12 at 17:46 +0100, Tvrtko Ursulin wrote: > > On 12/06/2025 06:40, Lucas De Marchi wrote: > > On Wed, Jun 11, 2025 at 03:51:24PM -0700, Juston Li wrote: > > > Add TRACE_GPU_MEM tracepoints for tracking global and per-process > > > GPU > > &g

Re: [PATCH v5 2/2] drm/xe/bo: add GPU memory trace points

2025-07-09 Thread Juston Li
On Tue, 2025-07-08 at 15:29 -0500, Lucas De Marchi wrote: > On Mon, Jul 07, 2025 at 01:38:23PM -0700, Juston Li wrote: > > Add TRACE_GPU_MEM tracepoints for tracking global GPU memory usage. > > > > These are required by VSR on Android 12+ for reporting GPU driver >