Commit 82e59cbe authored by Tomas Winkler's avatar Tomas Winkler Committed by Greg Kroah-Hartman

mei: dma: silent the reject message

Not all FW versions support DMA on their first release,
hence it is normal behavior to receive a reject response
upon DMA setup request.
In order to prevent confusion, the DMA setup reject message
is printed only in debug level.

Cc: <stable@vger.kernel.org> #v5.0+
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7fefaadd
...@@ -1187,9 +1187,15 @@ int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr) ...@@ -1187,9 +1187,15 @@ int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr)
dma_setup_res = (struct hbm_dma_setup_response *)mei_msg; dma_setup_res = (struct hbm_dma_setup_response *)mei_msg;
if (dma_setup_res->status) { if (dma_setup_res->status) {
u8 status = dma_setup_res->status;
if (status == MEI_HBMS_NOT_ALLOWED) {
dev_dbg(dev->dev, "hbm: dma setup not allowed\n");
} else {
dev_info(dev->dev, "hbm: dma setup response: failure = %d %s\n", dev_info(dev->dev, "hbm: dma setup response: failure = %d %s\n",
dma_setup_res->status, status,
mei_hbm_status_str(dma_setup_res->status)); mei_hbm_status_str(status));
}
dev->hbm_f_dr_supported = 0; dev->hbm_f_dr_supported = 0;
mei_dmam_ring_free(dev); mei_dmam_ring_free(dev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment