forked from luck/tmp_suning_uos_patched
drm: sti: don't pass GFP_DMA32 to dma_alloc_wc
The DMA API does its own zone decisions based on the coherent_dma_mask. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20181013151707.32210-7-hch@lst.de
This commit is contained in:
parent
885054f991
commit
4035cc5738
|
@ -517,7 +517,7 @@ static void sti_gdp_init(struct sti_gdp *gdp)
|
|||
/* Allocate all the nodes within a single memory page */
|
||||
size = sizeof(struct sti_gdp_node) *
|
||||
GDP_NODE_PER_FIELD * GDP_NODE_NB_BANK;
|
||||
base = dma_alloc_wc(gdp->dev, size, &dma_addr, GFP_KERNEL | GFP_DMA);
|
||||
base = dma_alloc_wc(gdp->dev, size, &dma_addr, GFP_KERNEL);
|
||||
|
||||
if (!base) {
|
||||
DRM_ERROR("Failed to allocate memory for GDP node\n");
|
||||
|
|
Loading…
Reference in New Issue
Block a user