Issue: When playback HDMI audio in SDMA stress test, HDMI audio may stop
caused by SDMA channel's failing to work. While checking the SDMA register
and HDMI module stauts, we found that SDMA fall to an unknown error state.
The issue is detected both in RIGEL TO1.1 and ARIK TO1.2.
This patch introduces a workround for this issue: For the memory passed
to SDMA core, HDMI driver would allocate it with the attribute of C=0,
B=0 instead of C=0, B=1. This patch have be tested in RIGEL TO1.1 for
about 60 hours, no issue happens.
Signed-off-by: Chen Liangjun <b36089@freescale.com>
if (hdmi_SDMA_check()) {
/*To alloc a buffer non cacheable for hdmi script use*/
hdmi_dma_priv->hdmi_sdma_t =
- dma_alloc_coherent(NULL,
+ dma_alloc_noncacheable(NULL,
sizeof(struct hdmi_sdma_script_data),
&hdmi_dma_priv->phy_hdmi_sdma_t,
GFP_KERNEL);