Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1300544 > unrolled thread

Re: [PATCH] drm: arm-hdlcd: remove DMA_CMA select

Started byThierry Reding <thierry.reding@gmail.com>
First post2016-01-04 09:30 +0100
Last post2016-01-04 09:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] drm: arm-hdlcd: remove DMA_CMA select Thierry Reding <thierry.reding@gmail.com> - 2016-01-04 09:30 +0100

#1300544 — Re: [PATCH] drm: arm-hdlcd: remove DMA_CMA select

FromThierry Reding <thierry.reding@gmail.com>
Date2016-01-04 09:30 +0100
SubjectRe: [PATCH] drm: arm-hdlcd: remove DMA_CMA select
Message-ID<qN8GC-YX-3@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

On Fri, Jan 01, 2016 at 03:09:10PM +0100, Arnd Bergmann wrote:
> The newly added DRM_HDLCD driver tries to select DMA_CMA, but that is
> not necessarily possible, as not all configurations contain HAVE_DMA_CONTIGUOUS:
> 
> warning: (DRM_HDLCD) selects DMA_CMA which has unmet direct dependencies (HAVE_DMA_CONTIGUOUS && CMA)
> drivers/built-in.o: In function `dma_alloc_from_contiguous':
> :(.text+0x1dee00): undefined reference to `cma_alloc'
> drivers/built-in.o: In function `dma_release_from_contiguous':
> :(.text+0x1dee24): undefined reference to `cma_release'
> 
> This removes the 'select' statement. It is not needed because CMA is meant
> to transparently change the behavior of dma_alloc_coherent to make it succeed
> for larger allocations, but there is no actual build-time dependency, and
> the driver can still work without CMA in many cases.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: 1561e558334d ("drm: Add support for ARM's HDLCD controller.")
> ---
> Found on ARM randconfig builds with yesterday's linux-next

Reviewed-by: Thierry Reding <treding@nvidia.com>

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web