Unable to handle kernel paging request at virtual address ffff00001a9cd000 in i.mx8mm evk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to handle kernel paging request at virtual address ffff00001a9cd000 in i.mx8mm evk

Jump to solution
25,406 Views
sreedhar_appala
Contributor IV

Hi,

I am working with i.mx8mm evk and one dsp is interfaced to it. Yocto distribution 4.19.35 imx-warrior.

SAI1 interface connected to serial port of DSP for I2S playback and

SAI5 interface connected to another serial port of DSP for I2S capture.

when i tried to do pass-through test (aplay, followed by arecord alsa utils)

hw_params for playback and capture: channels : 8, format : S32_LE and sampling rate : 48000

The capture starts and i get the paging request error, please find the log below:

root@imx8mmevk:~# ./play32.sh
root@imx8mmevk:~# Playing WAVE 'ref8_32bit.wav' : Signed 32 bit Little Endian, Rate 48000 Hz, Channels 8

root@imx8mmevk:~# ./cap.sh
[ 26.962635] MIC BE: adsp_pcm_be_startup [be_mic_rec]
[ 26.977791] MIC_FE: adsp_pcm_fe_startup [fe_mic_rec]
Recording WAVE 'mic.wav' : [ 26.995513] MIC BE: adsp_pcm_be_hw_params [be_mic_rec] rate 48000 ch 8 bits 32 period 160-4
Signed 32 bit Little Endian, Rate[ 27.007136] MIC BE: adsp_pcm_be_hw_params [be_mic_rec] mclk 24576000 lrck_width 32
48000 Hz, Channels 8
[ 27.020052] MIC BE: adsp_pcm_be_hw_params [be_mic_rec] lrck_inv 0 bck_inv 0
[ 27.038681] MIC_FE: adsp_pcm_fe_hw_params [fe_mic_rec] rate 48000 ch 8 bits 32 period 160-4
[ 27.154868] MIC_FE: buf : 0xf3b7cf0 , hwbuf : 0x1a9c5000 , copy_bytes : 163840
[ 27.169518] Unable to handle kernel paging request at virtual address ffff00001a9cd000
[ 27.177450] Mem abort info:
[ 27.180242] ESR = 0x96000007
[ 27.183318] Exception class = DABT (current EL), IL = 32 bits
[ 27.189254] SET = 0, FnV = 0
[ 27.192307] EA = 0, S1PTW = 0
[ 27.195466] Data abort info:
[ 27.198362] ISV = 0, ISS = 0x00000007
[ 27.202215] CM = 0, WnR = 0
[ 27.205201] swapper pgtable: 4k pages, 48-bit VAs, pgdp = 00000000a64ad819
[ 27.212099] [ffff00001a9cd000] pgd=00000000bdffe803, pud=00000000bdffd803, pmd=00000000b02e7003, pte=0000000000000000
[ 27.222739] Internal error: Oops: 96000007 [#1] PREEMPT SMP
[ 27.228311] Modules linked in: 8021q garp stp mrp qca9377(O) crc32_ce crct10dif_ce galcore(O)
[ 27.236847] Process arecord (pid: 4276, stack limit = 0x00000000444534a6)
[ 27.243635] CPU: 2 PID: 4276 Comm: arecord Tainted: G O 4.19.35-1.1.0+g0f9917c #1
[ 27.252416] Hardware name: FSL i.MX8MM EVK board (DT)
[ 27.257465] pstate: 20000005 (nzCv daif -PAN -UAO)
[ 27.262260] pc : __memcpy_fromio+0x48/0x88
[ 27.266357] lr : copy_to_user_fromio+0xf4/0x108
[ 27.270884] sp : ffff00001a98ba80
[ 27.274196] x29: ffff00001a98ba80 x28: 0000000000000000
[ 27.279507] x27: 0000000000000000 x26: ffff8000752c8880
[ 27.284817] x25: 0000000000000000 x24: ffff80007542d000
[ 27.290128] x23: ffff0000096086c8 x22: ffff00001a9cd000
[ 27.295439] x21: 000000000f3bfcf0 x20: 0000000000000010
[ 27.300749] x19: 0000000000000010 x18: 0000000000000010
[ 27.306059] x17: 0000000000000000 x16: 0000000000000000
[ 27.311370] x15: ffffffffffffffff x14: ffff0000096086c8
[ 27.316680] x13: ffff0000897d0437 x12: ffff0000097d043f
[ 27.316684] x11: ffff000009620000 x10: ffff00001a98b7f0
[ 27.316688] x9 : 00000000ffffffd0 x8 : ffff000008663c28
[ 27.316692] x7 : 5f707364615f3037 x6 : 0000000000000010
[ 27.316696] x5 : 000000000f3bfcf0 x4 : ffff00001a9cd000
[ 27.316700] x3 : ffff00001a98bad8 x2 : 0000000000000010
[ 27.357669] x1 : ffff00001a9cd000 x0 : ffff00001a98bac8
[ 27.362981] Call trace:
[ 27.365428] __memcpy_fromio+0x48/0x88

imx8mmevk kernel: [ 27.222739] Internal error: Oops: 96000007 [#1] PREEMPT SMP

Message from syslogd@imx8mmevk at Tue May 18 07:40:03 2021 ...
imx8mmevk kernel: [ 27.236847] Process arecord (pid: 4276, stack limit = 0x00000000444534a6)
[ 27.369178] adsp_pcm_pcm_copy+0x104/0x200
[ 27.369183] soc_rtdcom_copy_user+0x3c/0x60
[ 27.369189] interleaved_copy+0x54/0x60
[ 27.369197] __snd_pcm_lib_xfer+0x414/0x6c8
[ 27.422797] snd_pcm_common_ioctl+0x570/0xec8
[ 27.427152] snd_pcm_ioctl+0x28/0x40
[ 27.430726] do_vfs_ioctl+0xb8/0x890
[ 27.434299] ksys_ioctl+0x78/0xa8
[ 27.437612] __arm64_sys_ioctl+0x1c/0x28
[ 27.441535] el0_svc_common+0x84/0xf0
[ 27.445195] el0_svc_handler+0x2c/0x80
[ 27.448942] el0_svc+0x8/0xc
[ 27.451823] Code: 927df0c6 910020c6 8b060003 d503201f (f9400085)
[ 27.457916] ---[ end trace 843b67e7e18b29be ]---

Message from syslogd@imx8mmevk at Tue May 18 07:40:03 2021 ...
imx8mmevk kernel: [ 27.451823] Code: 927df0c6 910020c6 8b060003 d503201f (f9400085)
./cap.sh: line 1: 4276 Segmentation fault arecord -D hw:3,0 -f S32_LE -c 8 -r 48000 mic.wav
root@imx8mmevk:~#

 

The page request is failing exactly after 32768 (0x8000) bytes copy. The hwbuf base addr : 0x1a9c5000

paging request failure at ffff00001a9cd000, 0x1a9cd000 - 0x1a9c5000 = 0x8000.

Since the HW is EVK, I am ruling out the DDR issue.

Could you please tell me where i could look at hwbuf allocation for the programmed hardware parameters.

Any pointers and suggestions will definitely help in me in resolving this issue.

Thank you, Sreedhar

0 Kudos
Reply
1 Solution
25,366 Views
sreedhar_appala
Contributor IV

Hi Zhiming Liu,

The number of bytes to copy/read is more than the dma buffer (hwbuff) size.

So I am facing the above issue. Now I have controlled the number of bytes to read based on the allocated hwbuf size, and the above issue is resolved.

Thank you, Sreedhar

View solution in original post

0 Kudos
Reply
4 Replies
2,062 Views
NXP_USER_05
Contributor I

Hi @sreedhar_appala 

We are working with a custom i.MX8M Plus DDR4 board that includes 32 MB QSPI NOR flash.
Our objective is to boot U-Boot, Linux kernel, device tree, and initramfs (rootfs.img) entirely from QSPI flash, without using SD/eMMC.

We are able to successfully boot up to U-Boot (flash.bin) from QSPI flash.


-----Flash Layout and Image Sizes----------------

QSPI flash size: 32 MB

flash.bin (U-Boot + SPL) ~2.4 MB
Image.gz (Kernel) ~15 MB
imx8mp-evk.dtb ~85 KB
rootfs.img ~12.6 MB

----QSPI Offset Layout----------
flash.bin @ 0x00000000
Image.gz @ 0x0024D000
imx8mp-evk.dtb @ 0x010A6B00
rootfs.img @ 0x010BB800

U-Boot Environment Setup

After booting into U-Boot from QSPI, we configure the following environment variables to load the kernel, device tree, and initramfs from flash:


sf probe 0
setenv loadaddr 0x40480000 // kernel
setenv fdt_addr 0x43000000 //dtb
setenv initrd_addr 0x43800000 //rootfs (minimal initramfs)
setenv kernel_comp_addr_r 0x50000000
setenv kernel_comp_size 0x04000000

Reading Images from QSPI Flash

sf read ${loadaddr} 0x0024D000 0x00E59A6F
sf read ${fdt_addr} 0x010A6B00 0x00014BBA
sf read ${initrd_addr} 0x010BB800 0x00C04DB0

Boot Command

setenv bootargs console=${console},${baudrate} earlycon=${earlycon},${baudrate} rdinit=/dev

booti ${loadaddr} ${initrd_addr} ${fdt_addr}

Issue Observed

  • The kernel starts executing but hangs at “Starting kernel …”.

  • Please refer to the attached kernel boot log (kernel_bootlog1).

When using the following boot arguments:

setenv bootargs setenv bootargs "console=ttymxc1,115200 earlycon root=/dev/ram0 rw rdinit=/sbin/init loglevel=8"

 

  • The kernel progresses further but hangs midway during boot.

  • Please refer to the attached kernel boot log (kernel_bootlog2).

Attached the kernel DTS and kernel defconfig for reference.
Kindly let us know if any modifications are required.

Also getting same error like you Unable to handle kernel paging request at virtual address. can you please give any suggistions to resolve it and successful kernel boot. 

Questions:

1. Are there any recommended changes required in the kernel DTS for booting initramfs entirely from QSPI on a custom i.MX8M Plus DDR4 board?

2. Are there any additional boot arguments recommended by NXP for initramfs-based boot on i.MX8MP from QSPI flash?

3. What could be the possible reason for the kernel not booting correctly?
We followed the same procedure that works successfully on the i.MX8MP LPDDR4  EVK, where the kernel and root filesystem boot properly from QSPI flash.
The only differences in our setup are the flash.bin and device tree, which were modified according to the DDR configuration of our custom board.

 

thank you.

 

0 Kudos
Reply
25,396 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

It seem when you use that capture command ,the pointer is beyond the max hardware address. can you attach your test command?

0 Kudos
Reply
25,390 Views
sreedhar_appala
Contributor IV

Hi Zhiming Liu,

Please find the test cmd:

play32.sh : aplay -D hw:2,0 ref8_32bit.wav

cap.sh : arecord -D hw:3,0 -f S32_LE -c 8 -r 48000 mic.wav

Thank you, Sreedhar

0 Kudos
Reply
25,367 Views
sreedhar_appala
Contributor IV

Hi Zhiming Liu,

The number of bytes to copy/read is more than the dma buffer (hwbuff) size.

So I am facing the above issue. Now I have controlled the number of bytes to read based on the allocated hwbuf size, and the above issue is resolved.

Thank you, Sreedhar

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1280757%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUnable%20to%20handle%20kernel%20paging%20request%20at%20virtual%20address%20ffff00001a9cd000%20in%20i.mx8mm%20evk%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1280757%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20am%20working%20with%20i.mx8mm%20evk%20and%20one%20dsp%20is%20interfaced%20to%20it.%26nbsp%3BYocto%20distribution%204.19.35%20imx-warrior.%3C%2FP%3E%3CP%3ESAI1%20interface%20connected%20to%20serial%20port%20of%20DSP%20for%20I2S%20playback%20and%3C%2FP%3E%3CP%3ESAI5%20interface%20connected%20to%20another%20serial%20port%20of%20DSP%20for%20I2S%20capture.%3C%2FP%3E%3CP%3Ewhen%20i%20tried%20to%20do%20pass-through%20test%20(aplay%2C%20followed%20by%20arecord%20alsa%20utils)%3C%2FP%3E%3CP%3Ehw_params%20for%20playback%20and%20capture%3A%20channels%20%3A%208%2C%20format%20%3A%20S32_LE%20and%20sampling%20rate%20%3A%2048000%3C%2FP%3E%3CP%3EThe%20capture%20starts%20and%20i%20get%20the%20paging%20request%20error%2C%20please%20find%20the%20log%20below%3A%3C%2FP%3E%3CP%3Eroot%40imx8mmevk%3A~%23%20.%2Fplay32.sh%3CBR%20%2F%3Eroot%40imx8mmevk%3A~%23%20Playing%20WAVE%20'ref8_32bit.wav'%20%3A%20Signed%2032%20bit%20Little%20Endian%2C%20Rate%2048000%20Hz%2C%20Channels%208%3C%2FP%3E%3CP%3Eroot%40imx8mmevk%3A~%23%20.%2Fcap.sh%3CBR%20%2F%3E%5B%2026.962635%5D%20MIC%20BE%3A%20adsp_pcm_be_startup%20%5Bbe_mic_rec%5D%3CBR%20%2F%3E%5B%2026.977791%5D%20MIC_FE%3A%20adsp_pcm_fe_startup%20%5Bfe_mic_rec%5D%3CBR%20%2F%3ERecording%20WAVE%20'mic.wav'%20%3A%20%5B%2026.995513%5D%20MIC%20BE%3A%20adsp_pcm_be_hw_params%20%5Bbe_mic_rec%5D%20rate%2048000%20ch%208%20bits%2032%20period%20160-4%3CBR%20%2F%3ESigned%2032%20bit%20Little%20Endian%2C%20Rate%5B%2027.007136%5D%20MIC%20BE%3A%20adsp_pcm_be_hw_params%20%5Bbe_mic_rec%5D%20mclk%2024576000%20lrck_width%2032%3CBR%20%2F%3E48000%20Hz%2C%20Channels%208%3CBR%20%2F%3E%5B%2027.020052%5D%20MIC%20BE%3A%20adsp_pcm_be_hw_params%20%5Bbe_mic_rec%5D%20lrck_inv%200%20bck_inv%200%3CBR%20%2F%3E%5B%2027.038681%5D%20MIC_FE%3A%20adsp_pcm_fe_hw_params%20%5Bfe_mic_rec%5D%20rate%2048000%20ch%208%20bits%2032%20period%20160-4%3CBR%20%2F%3E%5B%2027.154868%5D%20MIC_FE%3A%20buf%20%3A%200xf3b7cf0%20%2C%20%3CFONT%20color%3D%22%23FF0000%22%3Ehwbuf%20%3A%200x1a9c5000%3C%2FFONT%3E%20%2C%20copy_bytes%20%3A%20163840%3CBR%20%2F%3E%3CFONT%20color%3D%22%23FF0000%22%3E%5B%2027.169518%5D%20Unable%20to%20handle%20kernel%20paging%20request%20at%20virtual%20address%20ffff00001a9cd000%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20color%3D%22%23FF0000%22%3E%5B%2027.177450%5D%20Mem%20abort%20info%3A%3C%2FFONT%3E%3CBR%20%2F%3E%5B%2027.180242%5D%20ESR%20%3D%200x96000007%3CBR%20%2F%3E%5B%2027.183318%5D%20%3CFONT%20color%3D%22%23FF0000%22%3EException%20class%20%3D%20DABT%3C%2FFONT%3E%20(current%20EL)%2C%20IL%20%3D%2032%20bits%3CBR%20%2F%3E%5B%2027.189254%5D%20SET%20%3D%200%2C%20FnV%20%3D%200%3CBR%20%2F%3E%5B%2027.192307%5D%20EA%20%3D%200%2C%20S1PTW%20%3D%200%3CBR%20%2F%3E%3CFONT%20color%3D%22%23FF0000%22%3E%5B%2027.195466%5D%20Data%20abort%20info%3A%3C%2FFONT%3E%3CBR%20%2F%3E%5B%2027.198362%5D%20ISV%20%3D%200%2C%20ISS%20%3D%200x00000007%3CBR%20%2F%3E%5B%2027.202215%5D%20CM%20%3D%200%2C%20WnR%20%3D%200%3CBR%20%2F%3E%5B%2027.205201%5D%20swapper%20pgtable%3A%204k%20pages%2C%2048-bit%20VAs%2C%20pgdp%20%3D%2000000000a64ad819%3CBR%20%2F%3E%5B%2027.212099%5D%20%5Bffff00001a9cd000%5D%20pgd%3D00000000bdffe803%2C%20pud%3D00000000bdffd803%2C%20pmd%3D00000000b02e7003%2C%20pte%3D0000000000000000%3CBR%20%2F%3E%3CFONT%20color%3D%22%23FF0000%22%3E%5B%2027.222739%5D%20Internal%20error%3A%20Oops%3A%2096000007%20%5B%231%5D%20PREEMPT%20SMP%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20color%3D%22%23FF0000%22%3E%5B%2027.228311%5D%20Modules%20linked%20in%3A%208021q%20garp%20stp%20mrp%20qca9377(O)%20crc32_ce%20crct10dif_ce%20galcore(O)%3C%2FFONT%3E%3CBR%20%2F%3E%5B%2027.236847%5D%20Process%20arecord%20(pid%3A%204276%2C%20stack%20limit%20%3D%200x00000000444534a6)%3CBR%20%2F%3E%5B%2027.243635%5D%20CPU%3A%202%20PID%3A%204276%20Comm%3A%20arecord%20Tainted%3A%20G%20O%204.19.35-1.1.0%2Bg0f9917c%20%231%3CBR%20%2F%3E%5B%2027.252416%5D%20Hardware%20name%3A%20FSL%20i.MX8MM%20EVK%20board%20(DT)%3CBR%20%2F%3E%5B%2027.257465%5D%20pstate%3A%2020000005%20(nzCv%20daif%20-PAN%20-UAO)%3CBR%20%2F%3E%5B%2027.262260%5D%20pc%20%3A%20__memcpy_fromio%2B0x48%2F0x88%3CBR%20%2F%3E%5B%2027.266357%5D%20lr%20%3A%20copy_to_user_fromio%2B0xf4%2F0x108%3CBR%20%2F%3E%5B%2027.270884%5D%20sp%20%3A%20ffff00001a98ba80%3CBR%20%2F%3E%5B%2027.274196%5D%20x29%3A%20ffff00001a98ba80%20x28%3A%200000000000000000%3CBR%20%2F%3E%5B%2027.279507%5D%20x27%3A%200000000000000000%20x26%3A%20ffff8000752c8880%3CBR%20%2F%3E%5B%2027.284817%5D%20x25%3A%200000000000000000%20x24%3A%20ffff80007542d000%3CBR%20%2F%3E%5B%2027.290128%5D%20x23%3A%20ffff0000096086c8%20x22%3A%20ffff00001a9cd000%3CBR%20%2F%3E%5B%2027.295439%5D%20x21%3A%20000000000f3bfcf0%20x20%3A%200000000000000010%3CBR%20%2F%3E%5B%2027.300749%5D%20x19%3A%200000000000000010%20x18%3A%200000000000000010%3CBR%20%2F%3E%5B%2027.306059%5D%20x17%3A%200000000000000000%20x16%3A%200000000000000000%3CBR%20%2F%3E%5B%2027.311370%5D%20x15%3A%20ffffffffffffffff%20x14%3A%20ffff0000096086c8%3CBR%20%2F%3E%5B%2027.316680%5D%20x13%3A%20ffff0000897d0437%20x12%3A%20ffff0000097d043f%3CBR%20%2F%3E%5B%2027.316684%5D%20x11%3A%20ffff000009620000%20x10%3A%20ffff00001a98b7f0%3CBR%20%2F%3E%5B%2027.316688%5D%20x9%20%3A%2000000000ffffffd0%20x8%20%3A%20ffff000008663c28%3CBR%20%2F%3E%5B%2027.316692%5D%20x7%20%3A%205f707364615f3037%20x6%20%3A%200000000000000010%3CBR%20%2F%3E%5B%2027.316696%5D%20x5%20%3A%20000000000f3bfcf0%20x4%20%3A%20ffff00001a9cd000%3CBR%20%2F%3E%5B%2027.316700%5D%20x3%20%3A%20ffff00001a98bad8%20x2%20%3A%200000000000000010%3CBR%20%2F%3E%5B%2027.357669%5D%20x1%20%3A%20ffff00001a9cd000%20x0%20%3A%20ffff00001a98bac8%3CBR%20%2F%3E%5B%2027.362981%5D%20Call%20trace%3A%3CBR%20%2F%3E%5B%2027.365428%5D%20__memcpy_fromio%2B0x48%2F0x88%3C%2FP%3E%3CP%3Eimx8mmevk%20kernel%3A%20%5B%2027.222739%5D%20Internal%20error%3A%20Oops%3A%2096000007%20%5B%231%5D%20PREEMPT%20SMP%3C%2FP%3E%3CP%3EMessage%20from%20syslogd%40imx8mmevk%20at%20Tue%20May%2018%2007%3A40%3A03%202021%20...%3CBR%20%2F%3Eimx8mmevk%20kernel%3A%20%5B%2027.236847%5D%20Process%20arecord%20(pid%3A%204276%2C%20stack%20limit%20%3D%200x00000000444534a6)%3CBR%20%2F%3E%5B%2027.369178%5D%20adsp_pcm_pcm_copy%2B0x104%2F0x200%3CBR%20%2F%3E%5B%2027.369183%5D%20soc_rtdcom_copy_user%2B0x3c%2F0x60%3CBR%20%2F%3E%5B%2027.369189%5D%20interleaved_copy%2B0x54%2F0x60%3CBR%20%2F%3E%5B%2027.369197%5D%20__snd_pcm_lib_xfer%2B0x414%2F0x6c8%3CBR%20%2F%3E%5B%2027.422797%5D%20snd_pcm_common_ioctl%2B0x570%2F0xec8%3CBR%20%2F%3E%5B%2027.427152%5D%20snd_pcm_ioctl%2B0x28%2F0x40%3CBR%20%2F%3E%5B%2027.430726%5D%20do_vfs_ioctl%2B0xb8%2F0x890%3CBR%20%2F%3E%5B%2027.434299%5D%20ksys_ioctl%2B0x78%2F0xa8%3CBR%20%2F%3E%5B%2027.437612%5D%20__arm64_sys_ioctl%2B0x1c%2F0x28%3CBR%20%2F%3E%5B%2027.441535%5D%20el0_svc_common%2B0x84%2F0xf0%3CBR%20%2F%3E%5B%2027.445195%5D%20el0_svc_handler%2B0x2c%2F0x80%3CBR%20%2F%3E%5B%2027.448942%5D%20el0_svc%2B0x8%2F0xc%3CBR%20%2F%3E%5B%2027.451823%5D%20Code%3A%20927df0c6%20910020c6%208b060003%20d503201f%20(f9400085)%3CBR%20%2F%3E%5B%2027.457916%5D%20---%5B%20end%20trace%20843b67e7e18b29be%20%5D---%3C%2FP%3E%3CP%3EMessage%20from%20syslogd%40imx8mmevk%20at%20Tue%20May%2018%2007%3A40%3A03%202021%20...%3CBR%20%2F%3Eimx8mmevk%20kernel%3A%20%5B%2027.451823%5D%20Code%3A%20927df0c6%20910020c6%208b060003%20d503201f%20(f9400085)%3CBR%20%2F%3E.%2Fcap.sh%3A%20line%201%3A%204276%20Segmentation%20fault%20arecord%20-D%20hw%3A3%2C0%20-f%20S32_LE%20-c%208%20-r%2048000%20mic.wav%3CBR%20%2F%3E%3CA%20href%3D%22mailto%3Aroot%40imx8mmevk%3A~%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Eroot%40imx8mmevk%3A~%23%3C%2FA%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThe%20page%20request%20is%20failing%20exactly%20after%2032768%20(0x8000)%20bytes%20copy.%20The%20hwbuf%20base%20addr%20%3A%26nbsp%3B0x1a9c5000%3C%2FP%3E%3CP%3Epaging%20request%20failure%20at%26nbsp%3Bffff00001a9cd000%2C%200x1a9cd000%20-%200x1a9c5000%20%3D%200x8000.%3C%2FP%3E%3CP%3ESince%20the%20HW%20is%20EVK%2C%20I%20am%20ruling%20out%20the%20DDR%20issue.%3C%2FP%3E%3CP%3ECould%20you%20please%20tell%20me%20where%20i%20could%20look%20at%20hwbuf%20allocation%20for%20the%20programmed%20hardware%20parameters.%3C%2FP%3E%3CP%3EAny%20pointers%20and%20suggestions%20will%20definitely%20help%20in%20me%20in%20resolving%20this%20issue.%3C%2FP%3E%3CP%3EThank%20you%2C%20Sreedhar%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1280757%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208M%20%7C%20i.MX%208M%20Mini%20%7C%20i.MX%208M%20Nano%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELinux%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMultimedia%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYocto%20Project%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2270496%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Unable%20to%20handle%20kernel%20paging%20request%20at%20virtual%20address%20ffff00001a9cd000%20in%20i.mx8mm%20evk%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2270496%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F77095%22%20target%3D%22_blank%22%3E%40sreedhar_appala%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20working%20with%20a%20%3CSTRONG%3Ecustom%20i.MX8M%20Plus%20DDR4%20board%3C%2FSTRONG%3E%20that%20includes%20%3CSTRONG%3E32%20MB%20QSPI%20NOR%20flash%3C%2FSTRONG%3E.%3CBR%20%2F%3EOur%20objective%20is%20to%20boot%20%3CSTRONG%3EU-Boot%2C%20Linux%20kernel%2C%20device%20tree%2C%20and%20initramfs%20(rootfs.img)%3C%2FSTRONG%3E%20entirely%20from%20%3CSTRONG%3EQSPI%20flash%3C%2FSTRONG%3E%2C%20without%20using%20SD%2FeMMC.%3C%2FP%3E%3CP%3EWe%20are%20able%20to%20%3CSTRONG%3Esuccessfully%20boot%20up%20to%20U-Boot%20(flash.bin)%3C%2FSTRONG%3E%20from%20QSPI%20flash.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E-----Flash%20Layout%20and%20Image%20Sizes----------------%3C%2FP%3E%3CP%3EQSPI%20flash%20size%3A%2032%20MB%3C%2FP%3E%3CP%3Eflash.bin%20(U-Boot%20%2B%20SPL)%20~2.4%20MB%3CBR%20%2F%3EImage.gz%20(Kernel)%20~15%20MB%3CBR%20%2F%3Eimx8mp-evk.dtb%20~85%20KB%3CBR%20%2F%3Erootfs.img%20~12.6%20MB%3C%2FP%3E%3CP%3E----QSPI%20Offset%20Layout----------%3CBR%20%2F%3Eflash.bin%20%40%200x00000000%3CBR%20%2F%3EImage.gz%20%40%200x0024D000%3CBR%20%2F%3Eimx8mp-evk.dtb%20%40%200x010A6B00%3CBR%20%2F%3Erootfs.img%20%40%200x010BB800%3C%2FP%3E%3CH3%20id%3D%22toc-hId-2004151161%22%20id%3D%22toc-hId-2004152118%22%3EU-Boot%20Environment%20Setup%3C%2FH3%3E%3CP%3EAfter%20booting%20into%20U-Boot%20from%20QSPI%2C%20we%20configure%20the%20following%20environment%20variables%20to%20load%20the%20kernel%2C%20device%20tree%2C%20and%20initramfs%20from%20flash%3A%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Esf%20probe%200%3CBR%20%2F%3Esetenv%20loadaddr%200x40480000%20%2F%2F%20kernel%3CBR%20%2F%3Esetenv%20fdt_addr%200x43000000%20%2F%2Fdtb%3CBR%20%2F%3Esetenv%20initrd_addr%200x43800000%20%2F%2Frootfs%20(minimal%20initramfs)%3CBR%20%2F%3Esetenv%20kernel_comp_addr_r%200x50000000%3CBR%20%2F%3Esetenv%20kernel_comp_size%200x04000000%3C%2FP%3E%3CP%3E%3CSTRONG%3EReading%20Images%20from%20QSPI%20Flash%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Esf%20read%20%24%7Bloadaddr%7D%200x0024D000%200x00E59A6F%3CBR%20%2F%3Esf%20read%20%24%7Bfdt_addr%7D%200x010A6B00%200x00014BBA%3CBR%20%2F%3Esf%20read%20%24%7Binitrd_addr%7D%200x010BB800%200x00C04DB0%3CSTRONG%3E%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EBoot%20Command%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Esetenv%20bootargs%20console%3D%24%7Bconsole%7D%2C%24%7Bbaudrate%7D%20earlycon%3D%24%7Bearlycon%7D%2C%24%7Bbaudrate%7D%20rdinit%3D%2Fdev%3C%2FP%3E%3CP%3Ebooti%20%24%7Bloadaddr%7D%20%24%7Binitrd_addr%7D%20%24%7Bfdt_addr%7D%3C%2FP%3E%3CH3%20id%3D%22toc-hId-196696698%22%20id%3D%22toc-hId-196697655%22%3EIssue%20Observed%3C%2FH3%3E%3CUL%3E%3CLI%3E%3CP%3EThe%20kernel%20%3CSTRONG%3Estarts%20executing%3C%2FSTRONG%3E%20but%20%3CSTRONG%3Ehangs%20at%20%E2%80%9CStarting%20kernel%20%E2%80%A6%E2%80%9D%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EPlease%20refer%20to%20the%20attached%20kernel%20boot%20log%3CSTRONG%3E%20(kernel_bootlog1)%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EWhen%20using%20the%20following%20boot%20arguments%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3Esetenv%20bootargs%20setenv%20bootargs%20%22console%3Dttymxc1%2C115200%20earlycon%20root%3D%2Fdev%2Fram0%20rw%20rdinit%3D%2Fsbin%2Finit%20loglevel%3D8%22%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CUL%3E%3CLI%3E%3CP%3EThe%20kernel%20progresses%20further%20but%20%3CSTRONG%3Ehangs%20midway%20during%20boot%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EPlease%20refer%20to%20the%20attached%20kernel%20boot%20log%3CSTRONG%3E%20(kernel_bootlog2)%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EAttached%20the%20%3CSTRONG%3Ekernel%20DTS%3C%2FSTRONG%3E%20and%20%3CSTRONG%3Ekernel%20defconfig%3C%2FSTRONG%3E%20for%20reference.%3CBR%20%2F%3EKindly%20let%20us%20know%20if%20any%20modifications%20are%20required.%3C%2FP%3E%3CP%3EAlso%20getting%20same%20error%20like%20you%26nbsp%3B%3CSTRONG%3EUnable%20to%20handle%20kernel%20paging%20request%20at%20virtual%20address.%26nbsp%3B%3C%2FSTRONG%3Ecan%20you%20please%20give%20any%20suggistions%20to%20resolve%20it%20and%20successful%20kernel%20boot.%26nbsp%3B%3C%2FP%3E%3CP%3EQuestions%3A%3C%2FP%3E%3CP%3E1.%26nbsp%3BAre%20there%20any%20%3CSTRONG%3Erecommended%20changes%20required%20in%20the%20kernel%20DTS%3C%2FSTRONG%3E%20for%20booting%20initramfs%20entirely%20from%20QSPI%20on%20a%20%3CSTRONG%3Ecustom%20i.MX8M%20Plus%20DDR4%20board%3C%2FSTRONG%3E%3F%3C%2FP%3E%3CP%3E2.%26nbsp%3BAre%20there%20any%20%3CSTRONG%3Eadditional%20boot%20arguments%3C%2FSTRONG%3E%20recommended%20by%20NXP%20for%20initramfs-based%20boot%20on%20i.MX8MP%20from%20QSPI%20flash%3F%3C%2FP%3E%3CP%3E3.%26nbsp%3BWhat%20could%20be%20the%20possible%20reason%20for%20the%20kernel%20not%20booting%20correctly%3F%3CBR%20%2F%3EWe%20followed%20the%20same%20procedure%20that%20works%20successfully%20on%20the%20i.MX8MP%20LPDDR4%26nbsp%3B%20EVK%2C%20where%20the%20kernel%20and%20root%20filesystem%20boot%20properly%20from%20QSPI%20flash.%3CBR%20%2F%3EThe%20only%20differences%20in%20our%20setup%20are%20the%20%3CSTRONG%3Eflash.bin%3C%2FSTRONG%3E%20and%20%3CSTRONG%3Edevice%20tree%3C%2FSTRONG%3E%2C%20which%20were%20modified%20according%20to%20the%20DDR%20configuration%20of%20our%20custom%20board.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ethank%20you.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1284746%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Unable%20to%20handle%20kernel%20paging%20request%20at%20virtual%20address%20ffff00001a9cd000%20in%20i.mx8mm%20evk%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1284746%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Zhiming%20Liu%2C%3C%2FP%3E%3CP%3EThe%20number%20of%20bytes%20to%20copy%2Fread%20is%20more%20than%20the%20dma%20buffer%20(hwbuff)%20size.%3C%2FP%3E%3CP%3ESo%20I%20am%20facing%20the%20above%20issue.%20Now%20I%20have%20controlled%20the%20number%20of%20bytes%20to%20read%20based%20on%20the%20allocated%20hwbuf%20size%2C%20and%20the%20above%20issue%20is%20resolved.%3C%2FP%3E%3CP%3EThank%20you%2C%20Sreedhar%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1282626%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Unable%20to%20handle%20kernel%20paging%20request%20at%20virtual%20address%20ffff00001a9cd000%20in%20i.mx8mm%20evk%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1282626%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Zhiming%20Liu%2C%3C%2FP%3E%3CP%3EPlease%20find%20the%20test%20cmd%3A%3C%2FP%3E%3CP%3Eplay32.sh%20%3A%20aplay%20-D%20hw%3A2%2C0%20ref8_32bit.wav%3C%2FP%3E%3CP%3Ecap.sh%20%3A%26nbsp%3Barecord%20-D%20hw%3A3%2C0%20-f%20S32_LE%20-c%208%20-r%2048000%20mic.wav%3C%2FP%3E%3CP%3EThank%20you%2C%20Sreedhar%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1282368%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Unable%20to%20handle%20kernel%20paging%20request%20at%20virtual%20address%20ffff00001a9cd000%20in%20i.mx8mm%20evk%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1282368%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIt%20seem%20when%20you%20use%20that%20capture%20command%20%2Cthe%20pointer%20is%20beyond%20the%20max%20hardware%20address.%20can%20you%20attach%20your%20test%20command%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E