aboutsummaryrefslogtreecommitdiff
path: root/drivers/most
diff options
context:
space:
mode:
authorGravatar Jeffrey Hugo <quic_jhugo@quicinc.com> 2024-03-22 11:57:28 -0600
committerGravatar Jeffrey Hugo <quic_jhugo@quicinc.com> 2024-04-05 09:41:50 -0600
commit5f8df5c6def641c164ed1b673d47a41fdd0013f8 (patch)
treecec2f484ca61fbb478e0b0d7fec722f56ec8b923 /drivers/most
parentdrm/bridge: dw-hdmi: Make DRM_DW_HDMI selectable (diff)
downloadlinux-5f8df5c6def641c164ed1b673d47a41fdd0013f8.tar.gz
linux-5f8df5c6def641c164ed1b673d47a41fdd0013f8.tar.bz2
linux-5f8df5c6def641c164ed1b673d47a41fdd0013f8.zip
accel/qaic: Add bootlog debugfs
During the boot process of AIC100, the bootloaders (PBL and SBL) log messages to device RAM. During SBL, if the host opens the QAIC_LOGGING channel, SBL will offload the contents of the log buffer to the host, and stream any new messages that SBL logs. This log of the boot process can be very useful for an initial triage of any boot related issues. For example, if SBL rejects one of the runtime firmware images for a validation failure, SBL will log a reason why. Add the ability of the driver to open the logging channel, receive the messages, and store them. Also define a debugfs entry called "bootlog" by hooking into the DRM debugfs framework. When the bootlog debugfs entry is read, the current contents of the log that the host is caching is displayed to the user. The driver will retain the cache until it detects that the device has rebooted. At that point, the cache will be freed, and the driver will wait for a new log. With this scheme, the driver will only have a cache of the log from the current device boot. Note that if the driver initializes a device and it is already in the runtime state (QSM), no bootlog will be available through this mechanism because the driver and SBL have not communicated. Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com> Reviewed-by: Carl Vanderlip <quic_carlv@quicinc.com> Reviewed-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com> Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240322175730.3855440-2-quic_jhugo@quicinc.com
Diffstat (limited to 'drivers/most')
0 files changed, 0 insertions, 0 deletions