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
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
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
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
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
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
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
() 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
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
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
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
() 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
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
-
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
- 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
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
-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
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
-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
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
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
:
- 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
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
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
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
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
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
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
-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
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
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
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
-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
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.
>
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.
>
&
+ * 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
> + */
> +
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
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
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
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
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
> > wrote:
> > > > > > >
> > > > > > > On 12/06/2025 06:40, Lucas De Marchi wrote:
> > > > > > > > On Wed, Jun 11, 2025 at 03:51:24PM -0700, Juston Li
> > > > > > > > wrote:
> > > > >
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
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
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 +
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
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 |
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 |
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
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
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
>
51 matches
Mail list logo