[Letux-kernel] letux-5.4 compile failure

Andreas Kemnade andreas at kemnade.info
Tue Nov 26 20:53:59 CET 2019


On Tue, 26 Nov 2019 20:33:38 +0100
"H. Nikolaus Schaller" <hns at goldelico.com> wrote:

> > Am 26.11.2019 um 20:27 schrieb Andreas Kemnade <andreas at kemnade.info>:
> > 
> > On Tue, 26 Nov 2019 20:18:28 +0100
> > "H. Nikolaus Schaller" <hns at goldelico.com> wrote:
> >   
> >>> Am 26.11.2019 um 18:51 schrieb Andreas Kemnade <andreas at kemnade.info>:
> >>> 
> >>> On Tue, 26 Nov 2019 18:02:52 +0100
> >>> "H. Nikolaus Schaller" <hns at goldelico.com> wrote:
> >>>   
> >>>> Hi,
> >>>>   
> >>>>> Am 26.11.2019 um 17:15 schrieb Andreas Kemnade <andreas at kemnade.info>:
> >>>>> 
> >>>>> Hi,
> >>>>> letux-5.4 fails to compile here:
> >>>>> 
> >>>>> CC [M]  drivers/gpu/drm/pvrsgx/1.14.3699939/eurasia_km/services4/system/omap/sysconfig.o
> >>>>> CC [M]  drivers/hwmon/iio_hwmon.o
> >>>>> /home/andi/gta04/gta04-kernel/drivers/gpu/drm/pvrsgx/1.14.3699939/eurasia_km/services4/system/omap/sysconfig.c:44:10: fatal error: services_headers.h: No such file or directory
> >>>>> #include "services_headers.h"      
> >>>> 
> >>>> I have done a clean build and it compiles. Can you please check if
> >>>> 
> >>>> 	drivers/gpu/drm/pvrsgx/1.14.3699939/eurasia_km/services4/srvkm/include/services_headers.h
> >>>> 
> >>>> exists?
> >>>>   
> >>> yes, it does.
> >>>   
> >>>> If yes, we may have a so far unknown problem with the -I$(src)/ paths in
> >>>> 
> >>>> 	drivers/gpu/drm/pvrsgx/1.14.3699939/eurasia_km/Makefile
> >>>> 
> >>>> They have the form
> >>>> 
> >>>> ccflags-y += \
> >>>>       -Iinclude \    
> >>> 
> >>> shouldn't that be already included?
> >>>   
> >>>>       -Iarch/arm/mach-omap2 \
> >>>>       -Idrivers/video/fbdev/omap2 \    
> >>> that looks dangerous I think these drivers are obsoleted. Do we really
> >>>   
> >>>>       -I$(src)/ \
> >>>>       -I$(src)/include4 \
> >>>>       -I$(src)/services4/include \
> >>>> ...
> >>>>       -I$(src)/services4/srvkm/include \
> >>>>       -I$(src)/services4/3rdparty/bufferclass_ti
> >>>>   
> >>> compile fix sent. GTA04A5 does not boot. No output on display nor usb.    
> >> 
> >> I get:
> >> 
> >> [    3.409851] omap2-onenand 4000000.onenand: timeout waiting for DMA
> >> [    3.417419] ------------[ cut here ]------------
> >> [    3.422332] WARNING: CPU: 0 PID: 1121 at drivers/mmc/core/core.c:888 mmc_put_card+0x58/0x60
> >> [    3.431182] Modules linked in:
> >> [    3.434387] CPU: 0 PID: 1121 Comm: kworker/0:1H Not tainted 5.4.0-letux+ #1474
> >> [    3.441894] Hardware name: Generic OMAP36xx (Flattened Device Tree)
> >> [    3.448425] Workqueue: mmc_complete mmc_blk_mq_complete_work
> >> [    3.454345] [<c0110028>] (unwind_backtrace) from [<c010b60c>] (show_stack+0x10/0x14)
> >> [    3.462432] [<c010b60c>] (show_stack) from [<c07e5c6c>] (dump_stack+0x88/0xa8)
> >> [    3.469970] [<c07e5c6c>] (dump_stack) from [<c0131d7c>] (__warn+0xc8/0xf4)
> >> [    3.477142] [<c0131d7c>] (__warn) from [<c0131e18>] (warn_slowpath_fmt+0x70/0x9c)
> >> [    3.484924] [<c0131e18>] (warn_slowpath_fmt) from [<c066c3c4>] (mmc_put_card+0x58/0x60)
> >> [    3.493255] [<c066c3c4>] (mmc_put_card) from [<c067c220>] (mmc_blk_mq_complete_prev_req+0x154/0x18c)
> >> [    3.502777] [<c067c220>] (mmc_blk_mq_complete_prev_req) from [<c014a73c>] (process_one_work+0x1e0/0x380)
> >> [    3.512664] [<c014a73c>] (process_one_work) from [<c014adc4>] (worker_thread+0x1e8/0x2d8)
> >> [    3.521179] [<c014adc4>] (worker_thread) from [<c014f4bc>] (kthread+0x108/0x118)
> >> [    3.528900] [<c014f4bc>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
> >> [    3.536407] Exception stack(0xeef61fb0 to 0xeef61ff8)
> >> [    3.541687] 1fa0:                                     00000000 00000000 00000000 00000000
> >> [    3.550201] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> >> [    3.558715] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
> >> [    3.565795] ---[ end trace ab4f0e19e9deaac9 ]---
> >> 
> >> or
> >> 
> >> [    3.399780] omap2-onenand 4000000.onenand: timeout waiting for DMA
> >> [    3.417419] 8<--- cut here ---
> >> [    3.420593] Unable to handle kernel NULL pointer dereference at virtual address 00000000
> >> [    3.429016] pgd = (ptrval)
> >> [    3.431854] [00000000] *pgd=00000000
> >> [    3.435577] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
> >> [    3.441101] Modules linked in:
> >> [    3.444274] CPU: 0 PID: 1121 Comm: kworker/0:1H Not tainted 5.4.0-letux+ #1474
> >> [    3.451812] Hardware name: Generic OMAP36xx (Flattened Device Tree)
> >> [    3.458343] Workqueue:  0x0 (kblockd)
> >> [    3.462158] PC is at radix_tree_delete_item+0x18/0xd8
> >> [    3.467437] LR is at generic_handle_irq+0x8/0x28
> >> [    3.472229] pc : [<c07ed94c>]    lr : [<c01786d0>]    psr: 60000193
> >> [    3.478759] sp : eef75f00  ip : 60000113  fp : 00000000
> >> [    3.484191] r10: ef5b7298  r9 : eef74000  r8 : c0c02d00
> >> [    3.489624] r7 : 00000000  r6 : c0c2c048  r5 : 00000000  r4 : 00000000
> >> [    3.496429] r3 : 00000000  r2 : eef75f04  r1 : 00000063  r0 : c0c2c048
> >> [    3.503204] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
> >> [    3.510742] Control: 10c5387d  Table: 80004019  DAC: 00000051
> >> [    3.516723] Process kworker/0:1H (pid: 1121, stack limit = 0x(ptrval))
> >> [    3.523498] Stack: (0xeef75f00 to 0xeef76000)
> >> [    3.528045] 5f00: eef75f18 c07ff234 60000113 ffffffff eef75f4c c0101a8c ef5b7280 00000008
> >> [    3.536560] 5f20: 00000402 eef75f68 eeec4a00 eeec4a14 ef5b7280 c0ca09b6 c0c02d00 c0c02d00
> >> [    3.545104] 5f40: ef5b7298 00000000 60000113 eef75f68 c07ff22c c07ff234 60000113 ffffffff
> >> [    3.553619] 5f60: 00000051 00000000 eeb7ecc0 c014ae38 eeeb24c0 eeec28c0 eeec4a00 c014abdc
> >> [    3.562133] 5f80: ee8e3ecc eeeb24dc 00000000 c014f4bc eef74000 eeec28c0 c014f3b4 00000000
> >> [    3.570648] 5fa0: 00000000 00000000 00000000 c01010e8 00000000 00000000 00000000 00000000
> >> [    3.579162] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> >> [    3.587677] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
> >> [    3.596191] [<c07ed94c>] (radix_tree_delete_item) from [<eef75f68>] (0xeef75f68)
> >> [    3.603912] Code: e59f50c4 e1a07002 e28d2004 e1a06000 (e5953000) 
> >> [    3.610260] ---[ end trace c66debe105317048 ]---
> >> [    3.615081] Kernel panic - not syncing: Fatal exception in interrupt
> >> [    3.621704] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---
> >> 
> >> 
> >> while the same µSD on GTA04A4 boots.
> >> 
> >> So it seems we have got an unnoticed regression from upstream (because I haven't tested the GTA04A5 board for a while).
> >>   
> > I had some timer-related oopses on letux 3704 (1Ghz) with hang
> > after it also but not reproducible.
> > GTA04A5 boots with older dt.
> > So I guess the problems are maybe 1Ghz-related.  
> 
> AFAIR, 1GHz is only enabled manually through turbo mode. Or have we enabled it permanently?
> What also could be is that some required CONFIG has been lost, e.g. for the ABB-LDO.
> 
On letux 3704:
root at letux:~# cpufreq-info 
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq at vger.kernel.org, please.
analyzing CPU 0:
  driver: cpufreq-dt
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 300 us.
  hardware limits: 300 MHz - 1000 MHz
  available frequency steps: 300 MHz, 600 MHz, 800 MHz, 1000 MHz
  available cpufreq governors: conservative, userspace, powersave, ondemand, performance
  current policy: frequency should be within 300 MHz and 1000 MHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 300 MHz (asserted by call to hardware).
  cpufreq stats: 300 MHz:50.57%, 600 MHz:8.21%, 800 MHz:3.07%, 1000 MHz:38.15%  (209)
root at letux:~# 

So it is enabled permanently.

Regards,
Andreas


More information about the Letux-kernel mailing list