[Letux-kernel] LetuxOS: Kernel: m-latest 5.9-rc1 successful
Andreas Kemnade
andreas at kemnade.info
Tue Aug 18 23:21:37 CEST 2020
On Tue, 18 Aug 2020 18:53:38 +0100
David Shah <dave at ds0.me> wrote:
> Trying out an LPAE build myself to see how it runs on the Pyra, I get a
> failure in the mxc fbdev driver:
>
> drivers/video/fbdev/mxc/mxc_epdc_v2_fb.c: In function
> ‘mxc_epdc_fb_fw_handler’:
> drivers/video/fbdev/mxc/mxc_epdc_v2_fb.c:5853:7: error: passing
> argument 3 of ‘dma_alloc_coherent’ from incompatible pointer type [-
> Werror=incompatible-pointer-types]
> 5853 | &fb_data->waveform_buffer_phys,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> | |
> | u32 * {aka unsigned int *}
> In file included from drivers/video/fbdev/mxc/mxc_epdc_v2_fb.c:44:
> ./include/linux/dma-mapping.h:534:15: note: expected ‘dma_addr_t *’
> {aka ‘long long unsigned int *’} but argument is of type ‘u32 *’ {aka
> ‘unsigned int *’}
> 534 | dma_addr_t *dma_handle, gfp_t gfp)
>
> and several like this.
>
> It seems like it assumes that dma_addr_t === u32 which isn't true for
> LPAE.
>
well, most places are using dma_addr_t, but a few are using u32.
> As I don't care about i.MX I will just disable the driver in my
> .config, but I think this is worth looking into if i.MX+LPAE is a
> supported config in letux.
>
Well, at least it should be fixed if these things ever get upstreamed.
I have pushed fixes.
Regards,
Andreas
More information about the Letux-kernel
mailing list