Re: Reserving memory

From: Austin Kim
Date: Wed Jun 09 2021 - 19:52:51 EST


Hello,

2021년 6월 9일 (수) 오후 5:33, Sean Quinn <spq@xxxxxxxxxx>님이 작성:
>
> Hi,
>
> Kernel newb here, sorry if this is could be sent to a more suitable list.
>
> I have an embedded project using a Zynq based SoM (Enclustra
> MA-ZX2-10-2I-D9 SOM). We have a device using a DMA that writes data
> into system SDRAM shared by the processing system/OS.
>
> [..]
> 8<--- cut here ---
> Unable to handle kernel paging request at virtual address deafe000

It seems that void *fdt contains deafe000, which is not handled by mmu.

https://elixir.bootlin.com/linux/v5.4.124/source/scripts/dtc/libfdt/fdt.c
int fdt_check_header(const void *fdt)
{
size_t hdrsize;

if (fdt_magic(fdt) != FDT_MAGIC) //<<-- exception point
return -FDT_ERR_BADMAGIC;