From: Zack McKevitt Date: Tue, 23 Dec 2025 17:05:11 +0000 (+0100) Subject: accel/qaic: Retain bootlogs that overflow X-Git-Tag: v7.2-rc1~141^2~26^2~188 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=dac97a6bd6c4a24e60a147cb2cf750eddb7594a8;p=thirdparty%2Fkernel%2Flinux.git accel/qaic: Retain bootlogs that overflow When a bootlog requires multiple MHI messages to transfer fully, the messages prior to the final message may have MHI overflow status set. Preserve these log messages in the accumulating bootlog. Do not treat overflow as an error. Signed-off-by: Zack McKevitt Signed-off-by: Troy Hanson Signed-off-by: Youssef Samir Reviewed-by: Jeff Hugo Signed-off-by: Jeff Hugo Link: https://patch.msgid.link/20251223170511.2277302-1-youssef.abdulrahman@oss.qualcomm.com --- diff --git a/drivers/accel/qaic/qaic_debugfs.c b/drivers/accel/qaic/qaic_debugfs.c index eca0b1fa1c14c..95c78e12dd61b 100644 --- a/drivers/accel/qaic/qaic_debugfs.c +++ b/drivers/accel/qaic/qaic_debugfs.c @@ -263,8 +263,9 @@ static void qaic_bootlog_mhi_dl_xfer_cb(struct mhi_device *mhi_dev, struct mhi_r { struct qaic_device *qdev = dev_get_drvdata(&mhi_dev->dev); struct bootlog_msg *msg = mhi_result->buf_addr; + int status = mhi_result->transaction_status; - if (mhi_result->transaction_status) { + if (status && status != -EOVERFLOW) { devm_kfree(&qdev->pdev->dev, msg); return; }