mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-29 05:01:41 +00:00
MESA driver is creating protected context on every driver handle
creation to query caps bits for app. So when running CI tests,
they are observing hundreds of drm_errors when enabling PXP
in .config but using SOC fusing or BIOS configuration that cannot
support PXP sessions.
The fixes tag referenced below was to resolve a related issue
where we wanted to silence error messages, but that case was due
to outdated IFWI (firmware) that definitely needed an upgrade and
was, at that point, considered a one-off case as opposed to today's
realization that default CI was enabling PXP in kernel config for
all testing.
So with this patch, let's strike a balance between issues that is
critical but are root-caused from HW/platform gaps (louder drm-warn
but just ONCE) vs other cases where it could also come from session
state machine (which cannot be a WARN_ONCE since it can be triggered
due to runtime operation events).
Let's use helpers for these so as more functions are added in future
features / HW (or as FW designers continue to bless upstreaming of
the error codes and meanings), we only need to update the helpers.
NOTE: Don't completely remove FW errors (via drm_debug) or else cusomer
apps that really needs to know that content protection failed won't
be aware of it.
v2: - Add fixes tag (Trvtko)
v3: - Break multi-line drm_dbg strings into separate drm_dbg (Daniele)
- Fix couple of typecasting nits (Daniele)
v4: - Unsuccessful PXP FW cmd due to platform configuration shouldn't
use drm_WARN_once (Tvrtko), Switched to use drm_info_once.
v5: - Added "reported-and-tested" by Eero.
Reported-and-tested-by: Eero Tamminen <eero.t.tamminen@intel.com>
Fixes:
|
||
|---|---|---|
| .. | ||
| intel_pxp_cmd_interface_42.h | ||
| intel_pxp_cmd_interface_43.h | ||
| intel_pxp_cmd_interface_cmn.h | ||
| intel_pxp_cmd.c | ||
| intel_pxp_cmd.h | ||
| intel_pxp_debugfs.c | ||
| intel_pxp_debugfs.h | ||
| intel_pxp_huc.c | ||
| intel_pxp_huc.h | ||
| intel_pxp_irq.c | ||
| intel_pxp_irq.h | ||
| intel_pxp_pm.c | ||
| intel_pxp_pm.h | ||
| intel_pxp_session.c | ||
| intel_pxp_session.h | ||
| intel_pxp_tee.c | ||
| intel_pxp_tee.h | ||
| intel_pxp_types.h | ||
| intel_pxp.c | ||
| intel_pxp.h | ||