From fdda1956f84381b76b75c879d4761889a5b77f55 Mon Sep 17 00:00:00 2001 From: Chen Liangjun Date: Sat, 11 Aug 2012 15:36:20 +0800 Subject: [PATCH] ENGR00220181-2 HDMI SDMA: workround for HDMI SDMA audio no sound issue 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 --- sound/soc/imx/imx-hdmi-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/imx/imx-hdmi-dma.c b/sound/soc/imx/imx-hdmi-dma.c index 18e3a016cca8..f0afcf1ac52b 100644 --- a/sound/soc/imx/imx-hdmi-dma.c +++ b/sound/soc/imx/imx-hdmi-dma.c @@ -1337,7 +1337,7 @@ static int __devinit imx_soc_platform_probe(struct platform_device *pdev) 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); -- 2.39.5