Git Product home page Git Product logo

linux's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linux's Issues

5.13.0-rc1 observations: insecure W+X mapping and framebuffer memory

I'm not saying these are connected, just first-boot observations with the latest kernel version. Notes:

  • this is 5.13 geertu branch plus a few commits from the def_config branch, plus one build fix (modpost missing license error on framebuffer module)
  • modified starlight_defconfig to enable some modules (framebuffer, drm stuff)
  • wifi is all built into the kernel (including the firmware/device files from the fedora image)
  • bluetooth currently disabled, still missing crypto device patch
  • config/patches here: https://github.com/sarnold/riscv64-multiplatform

The framebuffer logs more info as a module, whereas before all I saw was the probe error. So far wifi seems stable, whereas in 5.12 I had it built as a module (and it randomly caused kernel oops on boot).

May 11 20:33:07 beaglev kernel: mmcblk0: mmc0:aaaa SS16G 14.8 GiB 
May 11 20:33:07 beaglev kernel: mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
May 11 20:33:07 beaglev last message buffered 1 times
May 11 20:33:07 beaglev kernel: random: fast init done
May 11 20:33:07 beaglev kernel: mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
May 11 20:33:07 beaglev kernel: mmc1: queuing unknown CIS tuple 0x81 (9 bytes)
May 11 20:33:07 beaglev kernel:  mmcblk0: p1 p2 p3
May 11 20:33:07 beaglev kernel: EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled.
May 11 20:33:07 beaglev kernel: VFS: Mounted root (ext4 filesystem) on device 179:3.
May 11 20:33:07 beaglev kernel: mmc_host mmc1: Bus speed (slot 0) = 100000000Hz (slot req 10000000Hz, actual 10000000HZ div = 5)
May 11 20:33:07 beaglev kernel: mmc1: new high speed SDIO card at address 0001
May 11 20:33:07 beaglev kernel: devtmpfs: mounted
May 11 20:33:07 beaglev kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
May 11 20:33:07 beaglev kernel: Freeing unused kernel memory: 3592K
May 11 20:33:07 beaglev kernel: ------------[ cut here ]------------
May 11 20:33:07 beaglev kernel: riscv/mm: Found insecure W+X mapping at address (____ptrval____)/0xffffffff81200000
May 11 20:33:07 beaglev kernel: WARNING: CPU: 0 PID: 1 at arch/riscv/mm/ptdump.c:258 note_page+0x244/0x24a
May 11 20:33:07 beaglev kernel: Modules linked in:
May 11 20:33:07 beaglev kernel: CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.13.0-rc1-riscv64-r0.1 #1
May 11 20:33:07 beaglev kernel: Hardware name: BeagleV Starlight Beta (DT)
May 11 20:33:07 beaglev kernel: epc : note_page+0x244/0x24a
May 11 20:33:07 beaglev kernel: dw_mmc 10010000.mmc: Unexpected interrupt latency
May 11 20:33:07 beaglev kernel:  ra : note_page+0x244/0x24a
May 11 20:33:07 beaglev kernel: epc : ffffffff80008e9e ra : ffffffff80008e9e sp : ffffffe07fedbc20
May 11 20:33:07 beaglev kernel:  gp : ffffffff812c4908 tp : ffffffe07fed0000 t0 : ffffffe07fe38000
May 11 20:33:07 beaglev kernel:  t1 : ffffffe07fe380a0 t2 : 0000000000000000 s0 : ffffffe07fedbc70
May 11 20:33:07 beaglev kernel:  s1 : ffffffe07fedbde8 a0 : 0000000000000053 a1 : ffffffff81282698
May 11 20:33:07 beaglev kernel:  a2 : 0000000000000010 a3 : 0000000000000000 a4 : 966c08d368911f00
May 11 20:33:07 beaglev kernel:  a5 : 966c08d368911f00 a6 : 0000000000000003 a7 : ffffffff803a6a8a
May 11 20:33:07 beaglev kernel:  s2 : ffffffff81400000 s3 : fffffffffffffffe s4 : 0000000000000000
May 11 20:33:07 beaglev kernel:  s5 : 0000000000000000 s6 : 0000000000000003 s7 : ffffffff81400000
May 11 20:33:07 beaglev kernel:  s8 : ffffffe08111aff8 s9 : ffffffffc0000000 s10: ffffffe07fedbd48
May 11 20:33:07 beaglev kernel:  s11: ffffffff81600000 t3 : 0000000007200720 t4 : 0000000000000001
May 11 20:33:07 beaglev kernel:  t5 : 0000000000000002 t6 : ffffffe07fedb968
May 11 20:33:07 beaglev kernel: status: 0000000200000120 badaddr: ffffffe07fedbbc0 cause: 0000000000000003
May 11 20:33:07 beaglev kernel: Call Trace:
May 11 20:33:07 beaglev kernel: [<ffffffff80008e9e>] note_page+0x244/0x24a
May 11 20:33:07 beaglev kernel: [<ffffffff8012b3d0>] ptdump_hole+0x14/0x1e
May 11 20:33:07 beaglev kernel: [<ffffffff80103190>] __walk_page_range+0x394/0x498
May 11 20:33:07 beaglev kernel: [<ffffffff801033c2>] walk_page_range_novma+0x4e/0x6e
May 11 20:33:07 beaglev kernel: [<ffffffff8012b422>] ptdump_walk_pgd+0x48/0x78
May 11 20:33:08 beaglev kernel: [<ffffffff80008f7e>] ptdump_check_wx+0xb4/0xfa
May 11 20:33:08 beaglev kernel: [<ffffffff80007970>] mark_rodata_ro+0x26/0x32
May 11 20:33:08 beaglev kernel: [<ffffffff80643984>] kernel_init+0x3c/0x100
May 11 20:33:08 beaglev kernel: [<ffffffff80003326>] ret_from_exception+0x0/0xc
May 11 20:33:08 beaglev kernel: ---[ end trace 3b2ae616584c2ca1 ]---
May 11 20:33:08 beaglev kernel: Checked W+X mappings: failed, 512 W+X pages found
May 11 20:33:08 beaglev kernel: rodata_test: all tests were successful
May 11 20:33:08 beaglev kernel: Run /sbin/init as init process
May 11 20:33:08 beaglev kernel:   with arguments:
May 11 20:33:08 beaglev kernel:     /sbin/init
May 11 20:33:08 beaglev kernel:     earlyprintk
May 11 20:33:08 beaglev kernel:   with environment:
May 11 20:33:08 beaglev kernel:     HOME=/
May 11 20:33:08 beaglev kernel:     TERM=linux
May 11 20:33:08 beaglev kernel:     stmmaceth=chain_mode:1
May 11 20:33:08 beaglev kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
May 11 20:33:08 beaglev kernel: brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Feb 16 2020 22:39:24 version 7.45.98.97 (r724416 CY) FWID 01-bf41ed64
May 11 20:33:19 beaglev kernel: random: udevd: uninitialized urandom read (16 bytes read)
May 11 20:33:19 beaglev last message buffered 2 times
May 11 20:33:22 beaglev kernel: tda998x 0-0070: found TDA19988
beaglev ~ # lsmod 
Module                  Size  Used by
nfsv3                  49152  1
nfs                   253952  2 nfsv3
lockd                 118784  2 nfsv3,nfs
grace                  16384  1 lockd
sunrpc                348160  16 lockd,nfsv3,nfs
zstd                   16384  6
zram                   32768  4
zsmalloc               36864  1 zram
tda9950                16384  0
binfmt_misc            20480  1
tda998x                32768  0
drm_kms_helper        278528  1 tda998x
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
drm                   557056  2 tda998x,drm_kms_helper
drm_panel_orientation_quirks    16384  1 drm
cec                    61440  2 tda9950,tda998x
cfbfillrect            16384  1 drm_kms_helper
cfbimgblt              16384  1 drm_kms_helper
fb                    139264  1 drm_kms_helper
cfbcopyarea            16384  1 drm_kms_helper
backlight              20480  1 drm
beaglev ~ # find /lib/modules/5.13.0-rc1-riscv64-r0.1/kernel/ -name \*five\*.ko
/lib/modules/5.13.0-rc1-riscv64-r0.1/kernel/drivers/video/fbdev/starfive/starfive_display_dev.ko
/lib/modules/5.13.0-rc1-riscv64-r0.1/kernel/drivers/video/fbdev/starfive/starfive_displayer.ko
/lib/modules/5.13.0-rc1-riscv64-r0.1/kernel/drivers/video/fbdev/starfive/starfive_mipi_tx.ko
/lib/modules/5.13.0-rc1-riscv64-r0.1/kernel/drivers/video/fbdev/starfive/starfive_fb.ko
/lib/modules/5.13.0-rc1-riscv64-r0.1/kernel/drivers/video/fbdev/starfive/starfive_lcdc.ko
/lib/modules/5.13.0-rc1-riscv64-r0.1/kernel/drivers/video/fbdev/starfive/starfive_vpp.ko
beaglev ~ # modprobe starfive_fb
beaglev ~ # lsmod 
Module                  Size  Used by
starfive_fb            24576  0
starfive_mipi_tx       24576  1 starfive_fb
starfive_display_dev    16384  1 starfive_fb
starfive_lcdc          16384  1 starfive_fb
starfive_vpp           28672  2 starfive_fb,starfive_lcdc
nfsv3                  49152  1
nfs                   253952  2 nfsv3
lockd                 118784  2 nfsv3,nfs
grace                  16384  1 lockd
sunrpc                348160  16 lockd,nfsv3,nfs
zstd                   16384  6
zram                   32768  4
zsmalloc               36864  1 zram
tda9950                16384  0
binfmt_misc            20480  1
tda998x                32768  0
drm_kms_helper        278528  1 tda998x
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
drm                   557056  2 tda998x,drm_kms_helper
drm_panel_orientation_quirks    16384  1 drm
cec                    61440  2 tda9950,tda998x
cfbfillrect            16384  2 drm_kms_helper,starfive_fb
cfbimgblt              16384  2 drm_kms_helper,starfive_fb
fb                    139264  2 drm_kms_helper,starfive_fb
cfbcopyarea            16384  2 drm_kms_helper,starfive_fb
backlight              20480  1 drm
beaglev ~ # dmesg | tail
[   36.258157] stmmaceth 10020000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   36.258236] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   43.185380] dw-apb-uart 12440000.serial: forbid DMA for kernel console
[ 1561.327183] starfive,vpp-lcdc 12000000.sfivefb: starfive_fb_probe
[ 1561.328175] starfive,vpp-lcdc 12000000.sfivefb: default get first displayer(\x10)! 
[ 1561.328244] starfive,vpp-lcdc 12000000.sfivefb: can't request region for resource [mem 0xfb000000-0xfcffffff]
[ 1561.328268] starfive,vpp-lcdc 12000000.sfivefb: Fail to allocate video RAM
[ 1561.328277] starfive,vpp-lcdc 12000000.sfivefb: starfive fb init fail
[ 1561.328285] starfive,vpp-lcdc 12000000.sfivefb: fb info init FAIL
[ 1561.333317] starfive,vpp-lcdc: probe of 12000000.sfivefb failed with error -16
beaglev ~ # dmesg | grep cma
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Memory: 6747092K/8386560K available (6434K kernel code, 3337K rwdata, 4096K rodata, 3593K init, 694K bss, 984108K reserved, 655360K cma-reserved)
beaglev ~ # free
               total        used        free      shared  buff/cache   available
Mem:         7406044       86236     7274248        1736       45560     7244340
Swap:         524284           0      524284
beaglev ~ # ls /dev/
autofs         loop-control  nbd9       tty18  tty38  tty58    vcs12   vcsu
block          loop0         net        tty19  tty39  tty59    vcs2    vcsu1
btrfs-control  mmcblk0       null       tty2   tty4   tty6     vcs3    vcsu10
bus            mmcblk0p1     ptmx       tty20  tty40  tty60    vcs4    vcsu11
char           mmcblk0p2     pts        tty21  tty41  tty61    vcs5    vcsu12
console        mmcblk0p3     random     tty22  tty42  tty62    vcs6    vcsu2
core           mqueue        shm        tty23  tty43  tty63    vcs7    vcsu3
cuse           nbd0          spidev1.0  tty24  tty44  tty7     vcs8    vcsu4
disk           nbd1          stderr     tty25  tty45  tty8     vcs9    vcsu5
dma_heap       nbd10         stdin      tty26  tty46  tty9     vcsa    vcsu6
dwaxidma       nbd11         stdout     tty27  tty47  ttyS0    vcsa1   vcsu7
fd             nbd12         tty        tty28  tty48  ttyS1    vcsa10  vcsu8
full           nbd13         tty0       tty29  tty49  ttyS2    vcsa11  vcsu9
fuse           nbd14         tty1       tty3   tty5   ttyS3    vcsa12  zero
gpiochip0      nbd15         tty10      tty30  tty50  urandom  vcsa2   zram0
gpiochip1      nbd2          tty11      tty31  tty51  usbmon0  vcsa3   zram1
hwrng          nbd3          tty12      tty32  tty52  usbmon1  vcsa4   zram2
i2c-0          nbd4          tty13      tty33  tty53  usbmon2  vcsa5
i2c-1          nbd5          tty14      tty34  tty54  vcs      vcsa6
i2c-2          nbd6          tty15      tty35  tty55  vcs1     vcsa7
kmsg           nbd7          tty16      tty36  tty56  vcs10    vcsa8
log            nbd8          tty17      tty37  tty57  vcs11    vcsa9
beaglev ~ # ls /proc/
1     1909  2147  2428  43  674          devices      kmsg          softirqs
10    1939  2148  2431  44  68           diskstats    kpagecount    stat
11    1940  2149  2432  45  69           driver       kpageflags    swaps
12    1941  2150  2443  46  8            execdomains  loadavg       sys
14    1975  22    2444  47  9            fb           locks         sysvipc
1415  2     2212  25    48  90           filesystems  meminfo       thread-self
1428  20    2282  26    5   buddyinfo    fs           misc          timer_list
15    2007  2290  2602  51  bus          interrupts   modules       tty
1527  2041  2293  2665  52  cgroups      iomem        mounts        uptime
1555  2077  23    2674  53  cmdline      ioports      mtd           version
16    21    24    27    54  config.gz    irq          net           vic_gpio
17    2108  2423  2731  56  consoles     kallsyms     pagetypeinfo  vmallocinfo
1817  2144  2425  3     64  cpuinfo      kcore        partitions    vmstat
1851  2145  2426  4     65  crypto       key-users    pressure      zoneinfo
1879  2146  2427  41    66  device-tree  keys         self
beaglev ~ # /etc/init.d/net.wlan0 start
 * Bringing up interface wlan0
 *   Caching network module dependencies
 *   Starting wpa_supplicant on wlan0 ...                                 [ ok ]
 *   Starting wpa_cli on wlan0 ...                                        [ ok ]
 *   Backgrounding ... ...
 * WARNING: net.wlan0 has started, but is inactive
beaglev ~ # tail -f /var/log/kern.log 
May 11 20:33:42 beaglev kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
May 11 20:33:49 beaglev kernel: dw-apb-uart 12440000.serial: forbid DMA for kernel console
May 11 20:59:07 beaglev kernel: starfive,vpp-lcdc 12000000.sfivefb: starfive_fb_probe
May 11 20:59:07 beaglev kernel: starfive,vpp-lcdc 12000000.sfivefb: default get first displayer()! 
May 11 20:59:07 beaglev kernel: starfive,vpp-lcdc 12000000.sfivefb: can't request region for resource [mem 0xfb000000-0xfcffffff]
May 11 20:59:07 beaglev kernel: starfive,vpp-lcdc 12000000.sfivefb: Fail to allocate video RAM
May 11 20:59:07 beaglev kernel: starfive,vpp-lcdc 12000000.sfivefb: starfive fb init fail
May 11 20:59:07 beaglev kernel: starfive,vpp-lcdc 12000000.sfivefb: fb info init FAIL
May 11 20:59:07 beaglev kernel: starfive,vpp-lcdc: probe of 12000000.sfivefb failed with error -16
May 11 22:21:38 beaglev kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
^C
beaglev ~ # route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.0.254   0.0.0.0         UG    2      0        0 eth0
default         192.168.1.1     0.0.0.0         UG    2003   0        0 wlan0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
beaglev ~ # /etc/init.d/net.wlan0 stop 
 * Bringing down interface wlan0
 *   Stopping dhclient on wlan0 ...                                       [ ok ]
 *   Stopping wpa_cli on wlan0 ...                                        [ ok ]
 *   Stopping wpa_supplicant on wlan0 ...                                 [ ok ]
beaglev ~ # uname -a
Linux beaglev 5.13.0-rc1-riscv64-r0.1 #1 SMP Wed May 12 17:29:42 PDT 2021 riscv64 GNU/Linux

Obtain patches to apply to the mainline kernel

Hi, I'm trying to add armbian support for the StarFive boards using this patched kernel. Their system uses a set of patches, not a whole git repository with patches pre-applied as it's been done here. I'd therefore like to extract patches from the point this repo diverges from the mainline kernel.

  • Where is the mainline kernel located in terms of branch?
  • What branches should I diff?

My compiled kernel only recognizes 4G ram on a 8G ram VisionFive 2 board

Hi,

I have a VisionFive 2 board, and tried to compile kernel by myself using JH7110_VisionFive2_devel branch. After doing some config by make menuconfig, I successfully built the kernel and booted it. However, I soon found from htop and free that there was only 4G ram. Even if I changed back to the starfive_visionfive2_defconfig default config and rebuilt it, still 4G ram.

If I booted to the default debian-69 kernel back, then full 8G ram appeared.

typo

Hi, I'm just follow beaglev linux kernel code for fun.
I hope I can find some place to contribute. (I'm not sure is there any mailing list? or github PR acceptable?)

I found typo

nbdla: nvdla@11940000 {

nbdla -> nvdla

JH7110_VisionFive2_devel does not compile

Revision: 59cf9af (JH7110_VisionFive2_devel branch at 2023-02-16)

I've had to apply some patches to make it build. See the files in https://github.com/roberth/visionfive-nix/tree/f85cae4a4814b90ece85bbb7fdb48ffbc5d559af/visionfive2/kernel/package

  • visionfive-2-duplicate-init-module.patch
  • visionfive-2-gpu.patch
  • visionfive-2-pl330-name-collision.patch

They're of dubious quality, but got the job done for me. Feel free to incorporate the patches if they're not too terrible, or use them as a guide for where to look for a mistake.

My .config (retrieved with nix build .#nixosConfigurations.visionfive2-cross.config.boot.kernelPackages.kernel.configfile)

GCC version: 11.3.0

Kernel panic when use USB wireless netcard zd1211rw 1-1.1:1.0: phy1

When I plugin SAGEM USB wireless netcard and boot the board, it will get Kernel panic.

The following info copy from serial port:

[ 23.485555] usb 1-1.4: reset high-speed USB device number 4 using xhci-hcd
[ 23.659675] zd1211rw 1-1.4:1.0: phy1
[ 23.668942] usbcore: registered new interface driver zd1211rw

Debian GNU/Linux bookworm/sid Debian-StarFive ttyS0

Debian-StarFive login: [ 23.746895] zd1211rw 1-1.4:1.0 wlx0060b3e722e9: renamed from wlan1
[ 23.897606] zd1211rw 1-1.4:1.0: firmware version 4605
[ 23.911613] zd1211rw 1-1.4:1.0: zd1211 chip 079b:004a v4330 high 00-60-b3 AL2230_RF pa0 g----
[ 24.161500] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 24.385505] Oops - load access fault [#1]
[ 24.389542] Modules linked in: zd1211rw mac80211 libarc4 joydev snd_soc_starfive_pwmdac snd_soc_spdif_tx brcmfmac snd_soc_spdif_rx so
[ 24.424995] dw_mmc 10000000.mmc: Unexpected interrupt latency
[ 24.433832] CPU: 0 PID: 389 Comm: NetworkManager Not tainted 5.18.0-starfive-5.18 #1
[ 24.447259] Hardware name: StarFive VisionFive V1 (DT)
[ 24.452376] epc : zd_mac_rx+0xfc/0x398 [zd1211rw]
[ 24.457264] ra : zd_mac_rx+0xc0/0x398 [zd1211rw]
[ 24.462013] epc : ffffffff0202f94a ra : ffffffff0202f90e sp : ffffffc8044f2b90
[ 24.469205] gp : ffffffff81a4eda8 tp : ffffffd8841ad340 t0 : 000000000000000d
[ 24.476397] t1 : 2603654800000000 t2 : 00000000000012c0 s0 : ffffffc8044f2c50
[ 24.483590] s1 : 000000000000007f a0 : 0000000000000000 a1 : ffffffc80459607a
[ 24.490782] a2 : 000000000000007f a3 : 000000000000001c a4 : ffffffd881ed4e4e
[ 24.497974] a5 : 000000000000000c a6 : 0000000000000000 a7 : 000000000000000c
[ 24.505165] s2 : ffffffd881ed07c0 s3 : 0000000000000075 s4 : 0000000000000075
[ 24.512358] s5 : ffffffc804596005 s6 : ffffffc804596000 s7 : 0000000200000122
[ 24.519551] s8 : ffffffd8846061ac s9 : ffffffffffffffff s10: ffffffd881ed1fc0
[ 24.526742] s11: 0000000000000000 t3 : 0000000038e46e74 t4 : 0000000000000031
[ 24.533934] t5 : ffffffc80431f050 t6 : 0000000000001241
[ 24.539223] status: 0000000200000120 badaddr: ffffffc804596005 cause: 0000000000000005
[ 24.547113] [] handle_rx_packet+0x5e/0x104 [zd1211rw]
[ 24.553766] [] rx_urb_complete+0x124/0x178 [zd1211rw]
[ 24.560413] [] __usb_hcd_giveback_urb+0x78/0x11c
[ 24.566591] [] usb_giveback_urb_bh+0xd8/0x150
[ 24.572492] [] tasklet_action_common.isra.25+0xac/0xe2
[ 24.579173] [] tasklet_action+0x40/0x48
[ 24.584552] [] __do_softirq+0x140/0x310
[ 24.589939] [] irq_exit+0x134/0x16e
[ 24.594973] [] generic_handle_arch_irq+0x66/0x76
[ 24.601140] [] ret_from_exception+0x0/0xc
[ 24.606813] ---[ end trace 0000000000000000 ]---
[ 24.611421] Kernel panic - not syncing: Fatal exception in interrupt
[ 24.617751] SMP: stopping secondary CPUs
[ 24.621679] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---

Build custom kernel

Hello together,

i use the branch JH7110_VisionFive2_devel to build a custom kernel with starfive_visionfive2_defconfig.

Without add or delete any config option i see a kernel crash

[ 135.491224] vdec 130a0000.vpu_dec: device init.
[ 135.495776] SUCCESS alloc_chrdev_region
[ 135.499935] Unable to handle kernel access to user memory without uaccess routines at virtual address 00000001000000cf
[ 135.510696] Oops [#1]
[ 135.512973] Modules linked in: vdec(O+) jpu(O)
[ 135.517428] CPU: 3 PID: 605 Comm: insmod Tainted: G O 5.15.0-starfive #2
[ 135.525432] Hardware name: StarFive VisionFive V2 (DT)
[ 135.530570] epc : really_probe.part.0+0x1ac/0x234
[ 135.535281] ra : really_probe.part.0+0x1a6/0x234
[ 135.539986] epc : ffffffff80506ffc ra : ffffffff80506ff6 sp : ffffffd007383a50
[ 135.547212] gp : ffffffff81504148 tp : ffffffe0c0193200 t0 : ffffffe0c7977900
[ 135.554440] t1 : 0000000000000400 t2 : ffffffff814d6990 s0 : ffffffd007383a80
[ 135.561667] s1 : ffffffe0bfef4010 a0 : 0000000000000000 a1 : 0000000000000000
[ 135.568893] a2 : 0000000000000010 a3 : 0000000000000001 a4 : 0000000000082001
[ 135.576119] a5 : 00000000ffffffff a6 : 00000000000001c0 a7 : 0000000000000038
[ 135.583345] s2 : 0000000000000000 s3 : ffffffff015741f8 s4 : 0000000000000029
[ 135.590571] s5 : 0000000000000002 s6 : ffffffff015742c0 s7 : 0000000000000021
[ 135.597797] s8 : 0000000000000cc0 s9 : 000000000000fff1 s10: 0000000000000100
[ 135.605024] s11: 0000000000000013 t3 : ffffffffffffffff t4 : 0000000000000000
[ 135.612251] t5 : ffffffff8148adb8 t6 : ffffffe0c79778cd
[ 135.617562] status: 0000000200000120 badaddr: 00000001000000cf cause: 000000000000000d
[ 135.625484] [] really_probe.part.0+0x1ac/0x234
[ 135.631491] [] __driver_probe_device+0x70/0xde
[ 135.637495] [] driver_probe_device+0x2c/0xb0
[ 135.643330] [] __driver_attach+0x60/0x102
[ 135.648904] [] bus_for_each_dev+0x5a/0x98
[ 135.654477] [] driver_attach+0x1a/0x22
[ 135.659786] [] bus_add_driver+0xe6/0x198
[ 135.665273] [] driver_register+0x50/0xe4
[ 135.670759] [] __platform_driver_register+0x1c/0x24
[ 135.677191] [] vpu_init+0x9c/0x1000 [vdec]
[ 135.682866] [] do_one_initcall+0x3e/0x168
[ 135.688440] [] do_init_module+0x46/0x1a4
[ 135.693929] [] load_module+0x196e/0x1ed6
[ 135.699416] [] __do_sys_finit_module+0x8a/0xb6
[ 135.705421] [] sys_finit_module+0x10/0x18
[ 135.710995] [] ret_from_syscall+0x0/0x2
[ 135.716426] ---[ end trace ff142be4e461309e ]---

Any idea to this ?

best regards
Damian

Trouble cross-compiling JH7110_VisionFive2_devel head

Checked out latest head (f0fce00) of specified branch and having serious problems building it:

Starfive Sound SOC driver fails:

  CC [M]  sound/soc/starfive/starfive_pwmdac.o
  CC [M]  sound/soc/starfive/starfive_pwmdac_pcm.o
sound/soc/starfive/starfive_pwmdac_pcm.c:122:6: error: redefinition of 'sf_pwmdac_pcm_push_tx'
  122 | void sf_pwmdac_pcm_push_tx(struct sf_pwmdac_dev *dev)
      |      ^~~~~~~~~~~~~~~~~~~~~
In file included from sound/soc/starfive/starfive_pwmdac_pcm.c:25:
sound/soc/starfive/pwmdac.h:156:6: note: previous definition of 'sf_pwmdac_pcm_push_tx' with type 'void(struct sf_pwmdac_dev *)'
  156 | void sf_pwmdac_pcm_push_tx(struct sf_pwmdac_dev *dev) { }
      |      ^~~~~~~~~~~~~~~~~~~~~
sound/soc/starfive/starfive_pwmdac_pcm.c: In function 'sf_pcm_hw_params':
sound/soc/starfive/starfive_pwmdac_pcm.c:156:13: warning: unused variable 'ret' [-Wunused-variable]
  156 |         int ret;
      |             ^~~
sound/soc/starfive/starfive_pwmdac_pcm.c: At top level:
sound/soc/starfive/starfive_pwmdac_pcm.c:247:5: error: redefinition of 'sf_pwmdac_pcm_register'
  247 | int sf_pwmdac_pcm_register(struct platform_device *pdev)
      |     ^~~~~~~~~~~~~~~~~~~~~~
In file included from sound/soc/starfive/starfive_pwmdac_pcm.c:25:
sound/soc/starfive/pwmdac.h:158:5: note: previous definition of 'sf_pwmdac_pcm_register' with type 'int(struct platform_device *)'
  158 | int sf_pwmdac_pcm_register(struct platform_device *pdev)

Verisilicon graphics driver with Starfive extensions fails:

  SYNC    include/config/auto.conf.cmd
  CALL    scripts/atomic/check-atomics.sh
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  UPD     kernel/config_data
  GZIP    kernel/config_data.gz
  CC      kernel/configs.o
  AR      kernel/built-in.a
  CC [M]  drivers/gpu/drm/verisilicon/vs_dc_hw.o
  CC [M]  drivers/gpu/drm/verisilicon/vs_dc.o
  CC [M]  drivers/gpu/drm/verisilicon/vs_crtc.o
  CC [M]  drivers/gpu/drm/verisilicon/vs_drv.o
  CC [M]  drivers/gpu/drm/verisilicon/vs_fb.o
drivers/gpu/drm/verisilicon/vs_drv.c: In function 'vs_drm_bind':
drivers/gpu/drm/verisilicon/vs_drv.c:246:16: error: 'struct drm_device' has no member named 'irq_enabled'
  246 |         drm_dev->irq_enabled = true;
      |                ^~
make[4]: *** [scripts/Makefile.build:277: drivers/gpu/drm/verisilicon/vs_drv.o] Error 1

Imagination GPU driver with DRM kills compiler (probably not related, idk if that driver belongs for VF2):

  SYNC    include/config/auto.conf.cmd
  CALL    scripts/atomic/check-atomics.sh
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  UPD     kernel/config_data
  GZIP    kernel/config_data.gz
  CC      kernel/configs.o
  AR      kernel/built-in.a
  CC      drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.o
  CC      drivers/gpu/drm/img/riscv_vmap.o
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1846:9: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
 1846 |         &PMRLockSysPhysAddressesLocalMem,
      |         ^
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1846:9: note: (near initialization for '_sPMRLMAFuncTab')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1846:9: error: invalid initializer
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1846:9: note: (near initialization for '_sPMRLMAFuncTab.<anonymous>')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1848:9: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
 1848 |         &PMRUnlockSysPhysAddressesLocalMem,
      |         ^
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1848:9: note: (near initialization for '_sPMRLMAFuncTab')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1848:9: error: initialization of 'PVRSRV_ERROR (*)(void *, const PMR *, IMG_UINT64,  IMG_UINT32,  IMG_UINT32 *, IMG_UINT32,  IMG_UINT32 *)' {aka 'enum PVRSRV_ERROR_TAG (*)(void *, const struct _PMR_ *, long long unsigned int,  unsigned int,  unsigned int *, unsigned int,  unsigned int *)'} from incompatible pointer type 'PVRSRV_ERROR (*)(void *)' {aka 'enum PVRSRV_ERROR_TAG (*)(void *)'} [-Werror=incompatible-pointer-types]
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1848:9: note: (near initialization for '_sPMRLMAFuncTab.pfnChangeSparseMemCPUMap')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1850:9: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
 1850 |         &PMRSysPhysAddrLocalMem,
      |         ^
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1850:9: note: (near initialization for '_sPMRLMAFuncTab')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1850:9: error: initialization of 'PVRSRV_ERROR (*)(void *)' {aka 'enum PVRSRV_ERROR_TAG (*)(void *)'} from incompatible pointer type 'PVRSRV_ERROR (*)(void *, IMG_UINT32,  IMG_UINT32,  IMG_DEVMEM_OFFSET_T *, IMG_BOOL *, IMG_DEV_PHYADDR *)' {aka 'enum PVRSRV_ERROR_TAG (*)(void *, unsigned int,  unsigned int,  long long unsigned int *, enum tag_img_bool *, IMG_DEV_PHYADDR *)'} [-Werror=incompatible-pointer-types]
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1850:9: note: (near initialization for '_sPMRLMAFuncTab.pfnUnpinMem')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1852:9: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
 1852 |         &PMRAcquireKernelMappingDataLocalMem,
      |         ^
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1852:9: note: (near initialization for '_sPMRLMAFuncTab')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1852:9: error: initialization of 'PVRSRV_ERROR (*)(void *)' {aka 'enum PVRSRV_ERROR_TAG (*)(void *)'} from incompatible pointer type 'PVRSRV_ERROR (*)(void *, size_t,  size_t,  void **, void **, PMR_FLAGS_T)' {aka 'enum PVRSRV_ERROR_TAG (*)(void *, long unsigned int,  long unsigned int,  void **, void **, long long unsigned int)'} [-Werror=incompatible-pointer-types]
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1852:9: note: (near initialization for '_sPMRLMAFuncTab.pfnFinalize')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1854:9: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
 1854 |         &PMRReleaseKernelMappingDataLocalMem,
      |         ^
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1854:9: note: (near initialization for '_sPMRLMAFuncTab')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1854:9: error: initialization of 'PVRSRV_ERROR (*)(void *)' {aka 'enum PVRSRV_ERROR_TAG (*)(void *)'} from incompatible pointer type 'void (*)(void *, void *)' [-Werror=incompatible-pointer-types]
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1854:9: note: (near initialization for '_sPMRLMAFuncTab.pfnLockPhysAddresses')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1856:9: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
 1856 |         &PMRReadBytesLocalMem,
      |         ^
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1856:9: note: (near initialization for '_sPMRLMAFuncTab')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1856:9: error: initialization of 'PVRSRV_ERROR (*)(void *, size_t,  size_t,  void **, void **, PMR_FLAGS_T)' {aka 'enum PVRSRV_ERROR_TAG (*)(void *, long unsigned int,  long unsigned int,  void **, void **, long long unsigned int)'} from incompatible pointer type 'PVRSRV_ERROR (*)(void *, IMG_DEVMEM_OFFSET_T,  IMG_UINT8 *, size_t,  size_t *)' {aka 'enum PVRSRV_ERROR_TAG (*)(void *, long long unsigned int,  unsigned char *, long unsigned int,  long unsigned int *)'} [-Werror=incompatible-pointer-types]
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1856:9: note: (near initialization for '_sPMRLMAFuncTab.pfnAcquireKernelMappingData')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1858:9: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
 1858 |         &PMRWriteBytesLocalMem,
      |         ^
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1858:9: note: (near initialization for '_sPMRLMAFuncTab')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1858:9: error: initialization of 'PVRSRV_ERROR (*)(void *, const PMR *, IMG_UINT32,  IMG_UINT32 *, IMG_UINT32,  IMG_UINT32 *, IMG_UINT32)' {aka 'enum PVRSRV_ERROR_TAG (*)(void *, const struct _PMR_ *, unsigned int,  unsigned int *, unsigned int,  unsigned int *, unsigned int)'} from incompatible pointer type 'PVRSRV_ERROR (*)(void *, IMG_DEVMEM_OFFSET_T,  IMG_UINT8 *, size_t,  size_t *)' {aka 'enum PVRSRV_ERROR_TAG (*)(void *, long long unsigned int,  unsigned char *, long unsigned int,  long unsigned int *)'} [-Werror=incompatible-pointer-types]
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1858:9: note: (near initialization for '_sPMRLMAFuncTab.pfnChangeSparseMem')
In file included from ./include/uapi/linux/posix_types.h:5,
                 from ./include/uapi/linux/types.h:14,
                 from ./include/linux/types.h:6,
                 from /tmp/l/JH7110_linux/drivers/gpu/drm/img/img-rogue/include/img_types.h:69,
                 from drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:45:
./include/linux/stddef.h:8:14: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
    8 | #define NULL ((void *)0)
      |              ^
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1860:9: note: in expansion of macro 'NULL'
 1860 |         NULL,
      |         ^~~~
./include/linux/stddef.h:8:14: note: (near initialization for '_sPMRLMAFuncTab')
    8 | #define NULL ((void *)0)
      |              ^
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1860:9: note: in expansion of macro 'NULL'
 1860 |         NULL,
      |         ^~~~
./include/linux/stddef.h:8:14: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
    8 | #define NULL ((void *)0)
      |              ^
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1862:9: note: in expansion of macro 'NULL'
 1862 |         NULL,
      |         ^~~~
./include/linux/stddef.h:8:14: note: (near initialization for '_sPMRLMAFuncTab')
    8 | #define NULL ((void *)0)
      |              ^
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1862:9: note: in expansion of macro 'NULL'
 1862 |         NULL,
      |         ^~~~
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1864:9: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
 1864 |         &PMRChangeSparseMemLocalMem,
      |         ^
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1864:9: note: (near initialization for '_sPMRLMAFuncTab')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1864:9: error: initialization of 'void (*)(void)' from incompatible pointer type 'PVRSRV_ERROR (*)(void *, const PMR *, IMG_UINT32,  IMG_UINT32 *, IMG_UINT32,  IMG_UINT32 *, IMG_UINT32)' {aka 'enum PVRSRV_ERROR_TAG (*)(void *, const struct _PMR_ *, unsigned int,  unsigned int *, unsigned int,  unsigned int *, unsigned int)'} [-Werror=incompatible-pointer-types]
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1864:9: note: (near initialization for '_sPMRLMAFuncTab.pfnReleasePMRFactoryLock')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1866:9: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
 1866 |         &PMRChangeSparseMemCPUMapLocalMem,
      |         ^
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1866:9: note: (near initialization for '_sPMRLMAFuncTab')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1866:9: error: initialization of 'PVRSRV_ERROR (*)(void *, IMG_UINT32,  IMG_UINT32,  IMG_DEVMEM_OFFSET_T *, IMG_BOOL *, IMG_DEV_PHYADDR *)' {aka 'enum PVRSRV_ERROR_TAG (*)(void *, unsigned int,  unsigned int,  long long unsigned int *, enum tag_img_bool *, IMG_DEV_PHYADDR *)'} from incompatible pointer type 'PVRSRV_ERROR (*)(void *, const PMR *, IMG_UINT64,  IMG_UINT32,  IMG_UINT32 *, IMG_UINT32,  IMG_UINT32 *)' {aka 'enum PVRSRV_ERROR_TAG (*)(void *, const struct _PMR_ *, long long unsigned int,  unsigned int,  unsigned int *, unsigned int,  unsigned int *)'} [-Werror=incompatible-pointer-types]
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1866:9: note: (near initialization for '_sPMRLMAFuncTab.pfnDevPhysAddr')
In file included from ./include/uapi/linux/posix_types.h:5,
                 from ./include/uapi/linux/types.h:14,
                 from ./include/linux/types.h:6,
                 from /tmp/l/JH7110_linux/drivers/gpu/drm/img/img-rogue/include/img_types.h:69,
                 from drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:45:
./include/linux/stddef.h:8:14: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
    8 | #define NULL ((void *)0)
      |              ^
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1868:9: note: in expansion of macro 'NULL'
 1868 |         NULL,
      |         ^~~~
./include/linux/stddef.h:8:14: note: (near initialization for '_sPMRLMAFuncTab')
    8 | #define NULL ((void *)0)
      |              ^
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1868:9: note: in expansion of macro 'NULL'
 1868 |         NULL,
      |         ^~~~
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1870:9: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
 1870 |         &PMRFinalizeLocalMem
      |         ^
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.c:1870:9: note: (near initialization for '_sPMRLMAFuncTab')
'PVRSRV_ERROR (*)(void *, PMR_MAPPING_TABLE *)
Internal compiler error: Error reporting routines re-entered.
  CC      drivers/gpu/drm/img/img-rogue/services/server/common/physmem_hostmem.o
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_hostmem.c:69:9: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
   69 |         HostMemCpuPAddrToDevPAddr,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_hostmem.c:69:9: note: (near initialization for 'gsHostMemDevPhysHeapFuncs')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_hostmem.c:69:9: error: invalid initializer
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_hostmem.c:69:9: note: (near initialization for 'gsHostMemDevPhysHeapFuncs.<anonymous>')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_hostmem.c:71:9: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
   71 |         HostMemDevPAddrToCpuPAddr,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_hostmem.c:71:9: note: (near initialization for 'gsHostMemDevPhysHeapFuncs')
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_hostmem.c:71:9: error: initialization of 'void (*)(void *, IMG_UINT32,  IMG_DEV_PHYADDR *, IMG_CPU_PHYADDR *)' {aka 'void (*)(void *, unsigned int,  IMG_DEV_PHYADDR *, IMG_CPU_PHYADDR *)'} from incompatible pointer type 'void (*)(void *, IMG_UINT32,  IMG_CPU_PHYADDR *, IMG_DEV_PHYADDR *)' {aka 'void (*)(void *, unsigned int,  IMG_CPU_PHYADDR *, IMG_DEV_PHYADDR *)'} [-Werror=incompatible-pointer-types]
drivers/gpu/drm/img/img-rogue/services/server/common/physmem_hostmem.c:71:9: note: (near initialization for 'gsHostMemDevPhysHeapFuncs.pfnCpuPAddrToDevPAddr')
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:277: drivers/gpu/drm/img/img-rogue/services/server/common/physmem_hostmem.o] Error 1
make[5]: *** Waiting for unfinished jobs....
0x5d9546 build_type_attribute_qual_variant(tree_node*, tree_node*, int)
	../.././riscv-gcc/gcc/attribs.c:1149
0x6155c0 get_aka_type
	../.././riscv-gcc/gcc/c/c-objc-common.c:111
0x615674 get_aka_type
	../.././riscv-gcc/gcc/c/c-objc-common.c:158
0x6155c0 get_aka_type
	../.././riscv-gcc/gcc/c/c-objc-common.c:111
0x615a1a print_type
	../.././riscv-gcc/gcc/c/c-objc-common.c:204
0x615d6f c_tree_printer
	../.././riscv-gcc/gcc/c/c-objc-common.c:310
0x615d6f c_tree_printer
	../.././riscv-gcc/gcc/c/c-objc-common.c:254
0x1205b94 pp_format(pretty_printer*, text_info*)
	../.././riscv-gcc/gcc/pretty-print.c:1475
0x11fa18b diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
	../.././riscv-gcc/gcc/diagnostic.c:1244
0x11fa78f diagnostic_impl
	../.././riscv-gcc/gcc/diagnostic.c:1406
0x11fa9f0 emit_diagnostic_valist(diagnostic_t, unsigned int, int, char const*, __va_list_tag (*) [1])
	../.././riscv-gcc/gcc/diagnostic.c:1473
0x5f5d36 pedwarn_init
	../.././riscv-gcc/gcc/c/c-typeck.c:6559
0x5ff61c convert_for_assignment
	../.././riscv-gcc/gcc/c/c-typeck.c:7503
0x60936f digest_init
	../.././riscv-gcc/gcc/c/c-typeck.c:8181
0x60b000 output_init_element
	../.././riscv-gcc/gcc/c/c-typeck.c:9755
0x60c262 process_init_element(unsigned int, c_expr, bool, obstack*)
	../.././riscv-gcc/gcc/c/c-typeck.c:10327
0x629690 c_parser_initval
	../.././riscv-gcc/gcc/c/c-parser.c:5513
0x629950 c_parser_initelt
	../.././riscv-gcc/gcc/c/c-parser.c:5485
0x629950 c_parser_braced_init
	../.././riscv-gcc/gcc/c/c-parser.c:5253
0x62ad64 c_parser_initializer
	../.././riscv-gcc/gcc/c/c-parser.c:5201
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
make[5]: *** [scripts/Makefile.build:277: drivers/gpu/drm/img/img-rogue/services/server/common/physmem_lma.o] Error 1

SPI with Starfive extensions fails:

  SYNC    include/config/auto.conf.cmd
  CALL    scripts/atomic/check-atomics.sh
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  UPD     kernel/config_data
  GZIP    kernel/config_data.gz
  CC      kernel/configs.o
  AR      kernel/built-in.a
  CC [M]  drivers/spi/spi-pl022-starfive.o
In file included from drivers/spi/spi-pl022-starfive.c:17:
./include/linux/module.h:131:49: error: redefinition of '__inittest'
  131 |         static inline initcall_t __maybe_unused __inittest(void)                \
      |                                                 ^~~~~~~~~~
./include/linux/device/driver.h:263:1: note: in expansion of macro 'module_init'
  263 | module_init(__driver##_init); \
      | ^~~~~~~~~~~
./include/linux/platform_device.h:252:9: note: in expansion of macro 'module_driver'
  252 |         module_driver(__platform_driver, platform_driver_register, \
      |         ^~~~~~~~~~~~~
drivers/spi/spi-pl022-starfive.c:2738:1: note: in expansion of macro 'module_platform_driver'
 2738 | module_platform_driver(starfive_of_pl022_driver);
      | ^~~~~~~~~~~~~~~~~~~~~~
./include/linux/module.h:131:49: note: previous definition of '__inittest' with type 'int (*(void))(void)'
  131 |         static inline initcall_t __maybe_unused __inittest(void)                \
      |                                                 ^~~~~~~~~~
./include/linux/module.h:117:41: note: in expansion of macro 'module_init'
  117 | #define subsys_initcall(fn)             module_init(fn)
      |                                         ^~~~~~~~~~~
drivers/spi/spi-pl022-starfive.c:2649:1: note: in expansion of macro 'subsys_initcall'
 2649 | subsys_initcall(pl022_init);
      | ^~~~~~~~~~~~~~~
./include/linux/module.h:133:13: error: redefinition of 'init_module'
  133 |         int init_module(void) __copy(initfn)                    \
      |             ^~~~~~~~~~~
./include/linux/device/driver.h:263:1: note: in expansion of macro 'module_init'
  263 | module_init(__driver##_init); \
      | ^~~~~~~~~~~
./include/linux/platform_device.h:252:9: note: in expansion of macro 'module_driver'
  252 |         module_driver(__platform_driver, platform_driver_register, \
      |         ^~~~~~~~~~~~~
drivers/spi/spi-pl022-starfive.c:2738:1: note: in expansion of macro 'module_platform_driver'
 2738 | module_platform_driver(starfive_of_pl022_driver);
      | ^~~~~~~~~~~~~~~~~~~~~~
./include/linux/module.h:133:13: note: previous definition of 'init_module' with type 'int(void)'
  133 |         int init_module(void) __copy(initfn)                    \
      |             ^~~~~~~~~~~
./include/linux/module.h:117:41: note: in expansion of macro 'module_init'
  117 | #define subsys_initcall(fn)             module_init(fn)
      |                                         ^~~~~~~~~~~
drivers/spi/spi-pl022-starfive.c:2649:1: note: in expansion of macro 'subsys_initcall'
 2649 | subsys_initcall(pl022_init);
      | ^~~~~~~~~~~~~~~
./include/linux/module.h:139:49: error: redefinition of '__exittest'
  139 |         static inline exitcall_t __maybe_unused __exittest(void)                \
      |                                                 ^~~~~~~~~~
./include/linux/device/driver.h:268:1: note: in expansion of macro 'module_exit'
  268 | module_exit(__driver##_exit);
      | ^~~~~~~~~~~
./include/linux/platform_device.h:252:9: note: in expansion of macro 'module_driver'
  252 |         module_driver(__platform_driver, platform_driver_register, \
      |         ^~~~~~~~~~~~~
drivers/spi/spi-pl022-starfive.c:2738:1: note: in expansion of macro 'module_platform_driver'
 2738 | module_platform_driver(starfive_of_pl022_driver);
      | ^~~~~~~~~~~~~~~~~~~~~~
./include/linux/module.h:139:49: note: previous definition of '__exittest' with type 'void (*(void))(void)'
  139 |         static inline exitcall_t __maybe_unused __exittest(void)                \
      |                                                 ^~~~~~~~~~
drivers/spi/spi-pl022-starfive.c:2655:1: note: in expansion of macro 'module_exit'
 2655 | module_exit(pl022_exit);
      | ^~~~~~~~~~~
./include/linux/module.h:141:14: error: redefinition of 'cleanup_module'
  141 |         void cleanup_module(void) __copy(exitfn)                \
      |              ^~~~~~~~~~~~~~
./include/linux/device/driver.h:268:1: note: in expansion of macro 'module_exit'
  268 | module_exit(__driver##_exit);
      | ^~~~~~~~~~~
./include/linux/platform_device.h:252:9: note: in expansion of macro 'module_driver'
  252 |         module_driver(__platform_driver, platform_driver_register, \
      |         ^~~~~~~~~~~~~
drivers/spi/spi-pl022-starfive.c:2738:1: note: in expansion of macro 'module_platform_driver'
 2738 | module_platform_driver(starfive_of_pl022_driver);
      | ^~~~~~~~~~~~~~~~~~~~~~
./include/linux/module.h:141:14: note: previous definition of 'cleanup_module' with type 'void(void)'
  141 |         void cleanup_module(void) __copy(exitfn)                \
      |              ^~~~~~~~~~~~~~
drivers/spi/spi-pl022-starfive.c:2655:1: note: in expansion of macro 'module_exit'
 2655 | module_exit(pl022_exit);
      | ^~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:277: drivers/spi/spi-pl022-starfive.o] Error 1

As far as I remember, Debian Image-69 has 5.15.0 kernel built from current head. Am I missing something? What's current state of Linux for VF2?

On the other hand, JH7110_VisionFive2_upstream builds just fine but resulting kernel does not see hardware at all, and no drivers are loaded.

My gcc is:

Using built-in specs.
COLLECT_GCC=riscv64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/u/rys/sft/riscv64gclp64d/libexec/gcc/riscv64-unknown-linux-gnu/11.1.0/lto-wrapper
Target: riscv64-unknown-linux-gnu
Configured with: /u/rys/src/riscv-gnu-toolchain/riscv-gcc/configure --target=riscv64-unknown-linux-gnu --prefix=/u/rys/sft/riscv64gclp64d --with-sysroot=/u/rys/sft/riscv64gclp64d/sysroot --with-pkgversion=g --with-system-zlib --enable-shared --enable-tls --enable-languages=c,c++,fortran --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libsanitizer --disable-nls --disable-bootstrap --src=.././riscv-gcc --disable-multilib --with-abi=lp64d --with-arch=rv64gc --with-tune=rocket --with-isa-spec=2.2 'CFLAGS_FOR_TARGET=-O2   -mcmodel=medlow' 'CXXFLAGS_FOR_TARGET=-O2   -mcmodel=medlow'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.1.0 (g)

Building with make ARCH=riscv CROSS_COMPILE=riscv64-unknown-linux-gnu- -j4 after menuconfig.

VF1 5.18.0 kernels were built just fine from head, without any troubles, both cross compilation and native building with any compiler used (crossgcc, gcc, clang).

Thank you.

usb_storage: Unknown symbol __stack_chk_guard (err -2)

[Wed Jan 26 22:22:11 2022] usb 1-1.2: new high-speed USB device number 4 using xhci-hcd
[Wed Jan 26 22:22:11 2022] usb 1-1.2: New USB device found, idVendor=14cd, idProduct=1212, bcdDevice= 1.00
[Wed Jan 26 22:22:11 2022] usb 1-1.2: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[Wed Jan 26 22:22:11 2022] usb 1-1.2: Product: Mass Storage Device
[Wed Jan 26 22:22:11 2022] usb 1-1.2: Manufacturer: Generic
[Wed Jan 26 22:22:11 2022] usb 1-1.2: SerialNumber: 121220160204
[Wed Jan 26 22:22:12 2022] usb_storage: Unknown symbol __stack_chk_guard (err -2)
[Wed Jan 26 22:22:12 2022] usb_storage: Unknown symbol __stack_chk_guard (err -2)
[Wed Jan 26 22:26:33 2022] usb 1-1.2: USB disconnect, device number 4
[Wed Jan 26 22:37:46 2022] usb 1-1.2: new high-speed USB device number 5 using xhci-hcd
[Wed Jan 26 22:37:46 2022] usb 1-1.2: New USB device found, idVendor=048d, idProduct=1234, bcdDevice= 2.00
[Wed Jan 26 22:37:46 2022] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[Wed Jan 26 22:37:46 2022] usb 1-1.2: Product: USB 3.0
[Wed Jan 26 22:37:46 2022] usb 1-1.2: Manufacturer: USB 3.0
[Wed Jan 26 22:37:46 2022] usb 1-1.2: SerialNumber: 5410151061879589815
[Wed Jan 26 22:37:46 2022] usb_storage: Unknown symbol __stack_chk_guard (err -2)
[Wed Jan 26 22:37:46 2022] usb_storage: Unknown symbol __stack_chk_guard (err -2)
[Wed Jan 26 22:44:04 2022] usb 1-1.2: USB disconnect, device number 5
[Wed Jan 26 22:44:37 2022] usb 2-1.2: new SuperSpeed USB device number 3 using xhci-hcd
[Wed Jan 26 22:44:37 2022] usb 2-1.2: New USB device found, idVendor=0951, idProduct=1666, bcdDevice= 1.10
[Wed Jan 26 22:44:37 2022] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[Wed Jan 26 22:44:37 2022] usb 2-1.2: Product: DataTraveler 3.0
[Wed Jan 26 22:44:37 2022] usb 2-1.2: Manufacturer: Kingston
[Wed Jan 26 22:44:37 2022] usb 2-1.2: SerialNumber: E0D55EA5232CE561482809CA
[Wed Jan 26 22:44:37 2022] usb_storage: Unknown symbol __stack_chk_guard (err -2)
[Wed Jan 26 22:44:37 2022] usb_storage: Unknown symbol __stack_chk_guard (err -2)

workqueue lockup in rcu_sched

Using linux-5.12 on the 7100, after a couple hours or days of running, I get messages like the following on the serial console:

[271072.624733] BUG: workqueue lockup - pool cpus=0-1 flags=0x4 nice=0 stuck for 2530s!
[271072.632592] Showing busy workqueues and worker pools:
[271072.637810] workqueue events_unbound: flags=0x2
[271072.642464]   pwq 4: cpus=0-1 flags=0x4 nice=0 active=3/512 refcnt=5
[271072.648930]     pending: flush_to_ldisc, flush_to_ldisc, flush_to_ldisc
[271072.655750] workqueue ext4-rsv-conversion: flags=0x2000a
[271072.661169]   pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/1 refcnt=3
[271072.667470]     pending: ext4_end_io_rsv_work
[271072.671983] pool 1: cpus=0 node=0 flags=0x1 nice=-20 hung=31s workers=2 manager: 816094 idle: 823322
[271081.464351] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[271081.470431]         (detected by 0, t=254302 jiffies, g=8370033, q=8218)
[271081.476627] rcu: All QSes seen, last rcu_sched kthread activity 254300 (4322046580-4321792280), jiffies_till_next_fqs=1, root ->qsmask 0x0
[271081.489167] rcu: rcu_sched kthread timer wakeup didn't happen for 254299 jiffies! g8370033 f0x2 RCU_GP_WAIT_FQS(5) ->state=0x200
[271081.500810] rcu:    Possible timer handling issue on cpu=1 timer-softirq=2492648
[271081.508132] rcu: rcu_sched kthread starved for 254300 jiffies! g8370033 f0x2 RCU_GP_WAIT_FQS(5) ->state=0x200 ->cpu=1
[271081.518846] rcu:    Unless rcu_sched kthread gets sufficient CPU time, OOM is now expected behavior.
[271081.527904] rcu: RCU grace-period kthread stack dump:
[271081.533050] task:rcu_sched       state:R stack:    0 pid:   11 ppid:     2 flags:0x00000000
[271081.541522] Call Trace:
[271081.544064] [<ffffffe000616bdc>] __schedule+0x1be/0x4a6
[271081.549410] [<ffffffe000616f1a>] schedule+0x56/0xca
[271081.554390] [<ffffffe000619b2a>] schedule_timeout+0x68/0xca
[271081.560071] [<ffffffe00005cddc>] rcu_gp_kthread+0x510/0x93e
[271081.565756] [<ffffffe000023bfa>] kthread+0xfe/0x10c
[271081.570739] [<ffffffe0000032b6>] ret_from_exception+0x0/0xc
[271081.576414] rcu: Stack dump where RCU GP kthread last ran:
[271081.581990] Task dump for CPU 1:
[271081.585308] task:sh              state:R  running task     stack:    0 pid:823462 ppid:822764 flags:0x00000000
[271081.595429] Call Trace:
[271081.597967] [<ffffffe000616bdc>] __schedule+0x1be/0x4a6

This repeats ad nauseum, while everything else seems to be locked up. The serial console is otherwise unresponsive and network access through ping and ssh simply times out.

brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50

root@Starfive-RISCV:~# dmesg -T | grep brcmfmac
[Wed Jan 26 18:40:14 2022] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[Wed Jan 26 18:40:14 2022] brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.starfive,visionfive-v1.bin failed with error -2
[Wed Jan 26 18:40:14 2022] brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.bin failed with error -2
[Wed Jan 26 18:40:14 2022] usbcore: registered new interface driver brcmfmac
[Wed Jan 26 18:40:15 2022] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50

can't build spi-pl022-starfive driver using custom config

./include/linux/module.h:131:49: error: redefinition of ‘__inittest’
131 | static inline initcall_t __maybe_unused __inittest(void)
| ^~~~~~~~~~
./include/linux/device/driver.h:263:1: note: in expansion of macro ‘module_init’
263 | module_init(__driver##_init);
| ^~~~~~~~~~~
./include/linux/platform_device.h:252:9: note: in expansion of macro ‘module_driver’
252 | module_driver(__platform_driver, platform_driver_register,
| ^~~~~~~~~~~~~
drivers/spi/spi-pl022-starfive.c:2738:1: note: in expansion of macro ‘module_platform_driver’
2738 | module_platform_driver(starfive_of_pl022_driver);
| ^~~~~~~~~~~~~~~~~~~~~~
./include/linux/module.h:131:49: note: previous definition of ‘__inittest’ with type ‘int ((void))(void)’
131 | static inline initcall_t __maybe_unused __inittest(void)
| ^~~~~~~~~~
./include/linux/module.h:117:41: note: in expansion of macro ‘module_init’
117 | #define subsys_initcall(fn) module_init(fn)
| ^~~~~~~~~~~
drivers/spi/spi-pl022-starfive.c:2649:1: note: in expansion of macro ‘subsys_initcall’
2649 | subsys_initcall(pl022_init);
| ^~~~~~~~~~~~~~~
./include/linux/module.h:133:13: error: redefinition of ‘init_module’
133 | int init_module(void) __copy(initfn)
| ^~~~~~~~~~~
./include/linux/device/driver.h:263:1: note: in expansion of macro ‘module_init’
263 | module_init(__driver##_init);
| ^~~~~~~~~~~
./include/linux/platform_device.h:252:9: note: in expansion of macro ‘module_driver’
252 | module_driver(__platform_driver, platform_driver_register,
| ^~~~~~~~~~~~~
drivers/spi/spi-pl022-starfive.c:2738:1: note: in expansion of macro ‘module_platform_driver’
2738 | module_platform_driver(starfive_of_pl022_driver);
| ^~~~~~~~~~~~~~~~~~~~~~
./include/linux/module.h:133:13: note: previous definition of ‘init_module’ with type ‘int(void)’
133 | int init_module(void) __copy(initfn)
| ^~~~~~~~~~~
./include/linux/module.h:117:41: note: in expansion of macro ‘module_init’
117 | #define subsys_initcall(fn) module_init(fn)
| ^~~~~~~~~~~
drivers/spi/spi-pl022-starfive.c:2649:1: note: in expansion of macro ‘subsys_initcall’
2649 | subsys_initcall(pl022_init);
| ^~~~~~~~~~~~~~~
./include/linux/module.h:139:49: error: redefinition of ‘__exittest’
139 | static inline exitcall_t __maybe_unused __exittest(void)
| ^~~~~~~~~~
./include/linux/device/driver.h:268:1: note: in expansion of macro ‘module_exit’
268 | module_exit(__driver##_exit);
| ^~~~~~~~~~~
./include/linux/platform_device.h:252:9: note: in expansion of macro ‘module_driver’
252 | module_driver(__platform_driver, platform_driver_register,
| ^~~~~~~~~~~~~
drivers/spi/spi-pl022-starfive.c:2738:1: note: in expansion of macro ‘module_platform_driver’
2738 | module_platform_driver(starfive_of_pl022_driver);
| ^~~~~~~~~~~~~~~~~~~~~~
./include/linux/module.h:139:49: note: previous definition of ‘__exittest’ with type ‘void (
(void))(void)’
139 | static inline exitcall_t __maybe_unused __exittest(void)
| ^~~~~~~~~~
drivers/spi/spi-pl022-starfive.c:2655:1: note: in expansion of macro ‘module_exit’
2655 | module_exit(pl022_exit);
| ^~~~~~~~~~~
./include/linux/module.h:141:14: error: redefinition of ‘cleanup_module’
141 | void cleanup_module(void) __copy(exitfn)
| ^~~~~~~~~~~~~~
./include/linux/device/driver.h:268:1: note: in expansion of macro ‘module_exit’
268 | module_exit(__driver##_exit);
| ^~~~~~~~~~~
./include/linux/platform_device.h:252:9: note: in expansion of macro ‘module_driver’
252 | module_driver(__platform_driver, platform_driver_register,
| ^~~~~~~~~~~~~
drivers/spi/spi-pl022-starfive.c:2738:1: note: in expansion of macro ‘module_platform_driver’
2738 | module_platform_driver(starfive_of_pl022_driver);
| ^~~~~~~~~~~~~~~~~~~~~~
./include/linux/module.h:141:14: note: previous definition of ‘cleanup_module’ with type ‘void(void)’
141 | void cleanup_module(void) __copy(exitfn)
| ^~~~~~~~~~~~~~
drivers/spi/spi-pl022-starfive.c:2655:1: note: in expansion of macro ‘module_exit’
2655 | module_exit(pl022_exit);
| ^~~~~~~~~~~

Crash involving `starfivecamss`

When I re-add starfivecamss to my config, my 1.3B board crashes on boot.

Kernel revision: 59cf9af (JH7110_VisionFive2_devel branch at 2023-02-16)

I've had to apply three patches to make it build

Disabled in my config: https://github.com/roberth/visionfive-nix/blob/1a9dee930fb6aae6639b9dd333f0a6b60bd355bf/visionfive2/kernel/nixos-module.nix#L29

You can find more of my configuration by browsing the files in https://github.com/roberth/visionfive-nix/tree/1a9dee930fb6aae6639b9dd333f0a6b60bd355bf/visionfive2

How to get brcm/brcmfmac43430-sdio.starfive,visionfive-v1.bin?

5.18.0-starfive-5.18

dmesg -l warn

[ 18.486401] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.starfive,visionfive-v1.bin failed with error -2
[ 18.559676] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.starfive,visionfive-v1.txt failed with error -2
[ 18.580190] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.txt failed with error -2

How to get these firmware?

I can't use wireless card and bluetooth now.

request: feature track for hdmi input

As I understand it, the VisionFive board supports HDMI input.

I'm not sure if there's userspace support required for it as well, but can you add a spot on the README to track whether your kernel supports it? (Or is that covered under the DSP?)

Thanks!

Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: devres_release_all+0xc6/0xc6

[ 28.165210][ T463] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: devres_release_all+0xc6/0xc6
[ 28.176325][ T463] CPU: 0 PID: 463 Comm: systemd-udevd Tainted: G W 5.18.0-rc1-5-default #1 openSUSE Tumbleweed (unreleased) 288b2dfe62bdc7b36eea20c3349ac93726963c75
[ 28.192433][ T463] Hardware name: StarFive VisionFive V1 (DT)
[ 28.198245][ T463] Call Trace:
[ 28.201377][ T463] [] dump_backtrace+0x1c/0x24
[ 28.207465][ T463] [] show_stack+0x2c/0x38
[ 28.213207][ T463] [] dump_stack_lvl+0x40/0x58
[ 28.219286][ T463] [] dump_stack+0x14/0x1c
[ 28.225012][ T463] [] panic+0xfc/0x2ca
[ 28.230397][ T463] [] generic_handle_arch_irq+0x0/0x74
[ 28.237186][ T463] [] attribute_container_classdev_to_container+0x0/0x10
[ 28.237207][ T463] [] device_unbind_cleanup+0x10/0x4a
[ 28.237226][ T463] [] really_probe+0xd6/0x300
[ 28.237237][ T463] [] __driver_probe_device+0xda/0x116
[ 28.237246][ T463] [] driver_probe_device+0x2c/0xb0
[ 28.237255][ T463] [] __driver_attach+0x9a/0x178
[ 28.237266][ T463] [] bus_for_each_dev+0x4a/0x84
[ 28.237276][ T463] [] driver_attach+0x1a/0x22
[ 28.237284][ T463] [] bus_add_driver+0xfe/0x1a0
[ 28.237294][ T463] [] driver_register+0x48/0xd8
[ 28.237304][ T463] [] __platform_driver_register+0x1c/0x24
[ 28.237318][ T463] [] dw_i2s_driver_init+0x20/0x1000 [snd_soc_starfive_i2svad]
[ 28.238002][ T463] [] do_one_initcall+0x38/0x174
[ 28.238012][ T463] [] do_init_module+0x3a/0x1fa
[ 28.238033][ T463] [] load_module+0x1e02/0x218e
[ 28.238042][ T463] [] __do_sys_init_module+0x144/0x15a
[ 28.238052][ T463] [] sys_init_module+0xc/0x14
[ 28.238062][ T463] [] ret_from_syscall+0x0/0x2

Need Help: VisionFive not boot up with this kernel

I have issue where the visionfive v1 not booting up after installing this kernel. On this kernel i have patch preempt_rt patch to enable the RT on make menuconfig. i really need Preempt_rt enabled for my project on this board. Before it stuck there is some sort of error on Teraterm output. I'm a newbie on this kernel installing. need help ASAP

TeraTerm:

[ 4.089037] i2c_designware 118b0000.i2c: controller timed out
[ 4.089057] tps65086 0-005e: Failed to read revision register
[ 4.089239] tps65086: probe of 0-005e failed with error -110
[ 4.089528] i2c 0-0070: Fixing up cyclic dependency with soc:display-encoder
[ 5.129054] i2c_designware 118b0000.i2c: controller timed out
[ 5.129067] tda998x 0-0070: Error -110 writing to cec:0xff
[ 6.169034] i2c_designware 118b0000.i2c: controller timed out
[ 6.169047] tda998x 0-0070: set_page 000a err -110
[ 7.289033] i2c_designware 118b0000.i2c: controller timed out
[ 7.289045] tda998x 0-0070: set_page 000a err -110
[ 8.409050] i2c_designware 118b0000.i2c: controller timed out
[ 8.409063] tda998x 0-0070: set_page 0001 err -110
[ 9.449027] i2c_designware 118b0000.i2c: controller timed out
[ 9.449040] tda998x 0-0070: set_page 0001 err -110
[ 10.489056] i2c_designware 118b0000.i2c: controller timed out
[ 10.489068] tda998x 0-0070: set_page 0200 err -110
[ 11.529055] i2c_designware 118b0000.i2c: controller timed out
[ 11.529067] tda998x 0-0070: set_page 0201 err -110
[ 12.569055] i2c_designware 118b0000.i2c: controller timed out
[ 12.569067] tda998x 0-0070: set_page 0202 err -110
[ 13.609054] i2c_designware 118b0000.i2c: controller timed out
[ 13.609067] tda998x 0-0070: set_page 0203 err -110
[ 14.649056] i2c_designware 118b0000.i2c: controller timed out
[ 14.649067] tda998x 0-0070: set_page 0204 err -110
[ 15.689055] i2c_designware 118b0000.i2c: controller timed out
[ 15.689067] tda998x 0-0070: set_page 0205 err -110
[ 16.729055] i2c_designware 118b0000.i2c: controller timed out
[ 16.729067] tda998x 0-0070: set_page 020e err -110
[ 17.769055] i2c_designware 118b0000.i2c: controller timed out
[ 17.769067] tda998x 0-0070: set_page 0211 err -110
[ 18.809054] i2c_designware 118b0000.i2c: controller timed out
[ 18.809067] tda998x 0-0070: set_page 0207 err -110
[ 19.849055] i2c_designware 118b0000.i2c: controller timed out
[ 19.849066] tda998x 0-0070: set_page 0208 err -110
[ 20.889056] i2c_designware 118b0000.i2c: controller timed out
[ 20.889068] tda998x 0-0070: set_page 0209 err -110
[ 21.929055] i2c_designware 118b0000.i2c: controller timed out
[ 21.929067] tda998x 0-0070: set_page 020a err -110
[ 22.969055] i2c_designware 118b0000.i2c: controller timed out
[ 22.969067] tda998x 0-0070: set_page 0206 err -110
[ 24.009054] i2c_designware 118b0000.i2c: controller timed out
[ 24.009066] tda998x 0-0070: set_page 0027 err -110
[ 25.049055] i2c_designware 118b0000.i2c: controller timed out
[ 25.049067] tda998x 0-0070: set_page 0000 err -110
[ 25.049076] tda998x 0-0070: failed to read version: -110
[ 25.049088] tda998x: probe of 0-0070 failed with error -110
[ 25.049467] i2c_designware 118c0000.i2c: coherent device 0 dev->dma_coherent 0
[ 25.050524] i2c_designware 12450000.i2c: coherent device 0 dev->dma_coherent 0
[ 25.051519] display-encoder soc:display-encoder: coherent device 0 dev->dma_c oherent 0
[ 25.052771] starfive-drm soc:display-subsystem: bound 12000000.crtc (ops star five_crtc_component_ops)
[ 25.052848] display-encoder soc:display-encoder: endpoint returns -517
[ 25.052865] starfive-drm soc:display-subsystem: failed to bind soc:display-en coder (ops starfive_encoder_component_ops): -22
[ 25.053066] Oops - Oops - store (or AMO) address misaligned [#1]
[ 25.129561] Modules linked in:
[ 25.132614] CPU: 1 PID: 115 Comm: kworker/u4:3 Not tainted 5.15.0-rc3-rt6 #1
[ 25.139711] Hardware name: BeagleV Starlight Beta A1 (DT)
[ 25.145093] Workqueue: events_unbound deferred_probe_work_func
[ 25.150952] epc : reset_control_bulk_put+0x76/0xf4
[ 25.155733] ra : reset_control_bulk_put+0x3e/0xf4
[ 25.160524] epc : ffffffff805cc838 ra : ffffffff805cc800 sp : ffffffd00495b9d 0
[ 25.167717] gp : ffffffff81e53b38 tp : ffffffe080738000 t0 : 000000000000004 0
[ 25.174923] t1 : 000000ff00000000 t2 : ffffffff810bf6f0 s0 : ffffffd00495ba3 0
[ 25.182128] s1 : ffffffff8067049a a0 : ffffffff806704b6 a1 : ffffffd00495ba2 0
[ 25.189360] a2 : ffffffff8132c038 a3 : ffffffff81f0b0f8 a4 : 000000000000000 0
[ 25.196553] a5 : ffffffd00495ba30 a6 : 000000000000ff00 a7 : 000000000000000 0
[ 25.203761] s2 : 0000000000000001 s3 : ffffffffffffffff s4 : ffffffd00495ba2 0
[ 25.210968] s5 : ffffffffffffffff s6 : fffffffffffff000 s7 : 000000000000000 1
[ 25.218160] s8 : 0000000000000122 s9 : 0000000000000100 s10: ffffffff81da57b 0
[ 25.225388] s11: ffffffe08079b440 t3 : 0000000000000174 t4 : 00000000000003f f
[ 25.232596] t5 : 000000000000004f t6 : ffffffff81c29db8
[ 25.237886] status: 0000000200000120 badaddr: ffffffff806704b6 cause: 0000000 000000006
[ 25.245850] [] reset_control_bulk_put+0x76/0xf4
[ 25.246253] printk: console [ttyS0]: printing thread stopped
[ 25.251968] [] devm_reset_control_bulk_release+0x26/0x2e
[ 25.264414] [] devres_release_group+0xbc/0x106
[ 25.270424] [] component_unbind+0x40/0x4e
[ 25.275979] [] component_bind_all+0x14c/0x20a
[ 25.281892] [] starfive_drm_bind+0xc0/0x160
[ 25.287627] [] try_to_bring_up_master+0x184/0x23a
[ 25.293884] [] __component_add+0xba/0x17a
[ 25.299451] [] component_add+0x22/0x2a
[ 25.304745] [] starfive_encoder_probe+0x2a/0x32
[ 25.310859] [] platform_probe+0x52/0x82
[ 25.316241] [] really_probe+0xa0/0x38c
[ 25.321550] [] __driver_probe_device+0xc2/0x110
[ 25.327622] [] driver_probe_device+0x40/0xcc
[ 25.333447] [] __device_attach_driver+0x86/0xea
[ 25.339531] [] bus_for_each_drv+0x5a/0x8c
[ 25.345093] [] __device_attach+0xbc/0x120
[ 25.350657] [] device_initial_probe+0x22/0x2a
[ 25.356555] [] bus_probe_device+0x90/0x96
[ 25.362123] [] deferred_probe_work_func+0xca/0x11c
[ 25.368453] [] process_one_work+0x188/0x362
[ 25.374233] [] worker_thread+0x1ba/0x36e
[ 25.379720] [] kthread+0x154/0x182
[ 25.384677] [] ret_from_exception+0x0/0xc
[ 25.390272] ---[ end trace 0000000000000002 ]---
[ 26.790993] printk: enabled sync mode

System freeze after running disk heavy compile operations with 5.13-rc1

I am seeing that system is freezing when doing some heavy compile operations especially with clang

dw_mmc 10000000.mmc: Unexpected interrupt latency
rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
rcu:    0-...0: (5 ticks this GP) idle=be2/1/0x4000000000000002 softirq=308714/308716 fqs=7498
        (detected by 1, t=15002 jiffies, g=481085, q=854)
Task dump for CPU 0:
task:clang-12        state:R  running task     stack:    0 pid: 9931 ppid:  9924 flags:0x00000008
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464
INFO: task jbd2/mmcblk0p2-:71 blocked for more than 120 seconds.
      Tainted: G        W         5.13.0-rc1-starlight #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:jbd2/mmcblk0p2- state:D stack:    0 pid:   71 ppid:     2 flags:0x00000000
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464
[<ffffffff8063e392>] schedule+0x38/0xa2
[<ffffffff804cff7a>] mmc_blk_rw_wait+0x128/0x13a
[<ffffffff804d0624>] mmc_blk_mq_issue_rq+0x236/0x60c
[<ffffffff804d0d34>] mmc_mq_queue_rq+0x138/0x2ae
[<ffffffff802f8ed6>] __blk_mq_try_issue_directly+0xde/0x15c
[<ffffffff802fa606>] blk_mq_try_issue_list_directly+0x7c/0x230
[<ffffffff802fe7e8>] blk_mq_sched_insert_requests+0xd6/0x10a
[<ffffffff802fa4ec>] blk_mq_flush_plug_list+0xa8/0xe4
[<ffffffff802f0d38>] blk_flush_plug_list+0x98/0xac
[<ffffffff802f0d64>] blk_finish_plug+0x18/0x24
[<ffffffff801d365e>] jbd2_journal_commit_transaction+0xbe0/0x1556
[<ffffffff801d6b22>] kjournald2+0xa2/0x1ac
[<ffffffff800236d2>] kthread+0xda/0xe8
[<ffffffff800031de>] ret_from_exception+0x0/0xc
INFO: task clang-12:9962 blocked for more than 120 seconds.
      Tainted: G        W         5.13.0-rc1-starlight #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:clang-12        state:D stack:    0 pid: 9962 ppid:  9961 flags:0x00000000
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464
[<ffffffff8063e392>] schedule+0x38/0xa2
[<ffffffff8063e44e>] io_schedule+0x32/0x4c
[<ffffffff8063eaec>] bit_wait_io+0x10/0x4c
[<ffffffff8063e7b2>] __wait_on_bit+0x5c/0xb8
[<ffffffff8063e876>] out_of_line_wait_on_bit+0x68/0x70
[<ffffffff801d13cc>] do_get_write_access+0x25c/0x45a
[<ffffffff801d1620>] jbd2_journal_get_write_access+0x56/0x80
[<ffffffff8018fc6e>] __ext4_journal_get_write_access+0x5a/0x10a
[<ffffffff8019cf56>] __ext4_new_inode+0x698/0x1040
[<ffffffff801bb92a>] ext4_create+0x70/0x116
[<ffffffff80120f2a>] path_openat+0x380/0xa68
[<ffffffff8012244e>] do_filp_open+0x56/0xba
[<ffffffff801126ae>] do_sys_openat2+0x66/0xea
[<ffffffff801129ae>] sys_openat+0x30/0x5c
[<ffffffff800031d0>] ret_from_syscall+0x0/0x2
INFO: task rm:9972 blocked for more than 121 seconds.
      Tainted: G        W         5.13.0-rc1-starlight #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:rm              state:D stack:    0 pid: 9972 ppid:  9144 flags:0x00000000
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464
[<ffffffff8063e392>] schedule+0x38/0xa2
[<ffffffff8063e44e>] io_schedule+0x32/0x4c
[<ffffffff8063eaec>] bit_wait_io+0x10/0x4c
[<ffffffff8063e7b2>] __wait_on_bit+0x5c/0xb8
[<ffffffff8063e876>] out_of_line_wait_on_bit+0x68/0x70
[<ffffffff801d13cc>] do_get_write_access+0x25c/0x45a
[<ffffffff801d1620>] jbd2_journal_get_write_access+0x56/0x80
[<ffffffff8018fc6e>] __ext4_journal_get_write_access+0x5a/0x10a
[<ffffffff801ba646>] ext4_delete_entry+0x74/0xdc
[<ffffffff801bc3fc>] __ext4_unlink+0x128/0x1aa
[<ffffffff801bc4d6>] ext4_unlink+0x58/0xaa
[<ffffffff8011f52a>] vfs_unlink+0xc0/0x192
[<ffffffff8012292e>] do_unlinkat+0x12e/0x1fa
[<ffffffff80122a28>] sys_unlinkat+0x2e/0x56
[<ffffffff800031d0>] ret_from_syscall+0x0/0x2
rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
rcu:    0-...0: (5 ticks this GP) idle=be2/1/0x4000000000000002 softirq=308714/308716 fqs=29963
        (detected by 1, t=60007 jiffies, g=481085, q=854)
Task dump for CPU 0:
task:clang-12        state:R  running task     stack:    0 pid: 9931 ppid:  9924 flags:0x00000008
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464
INFO: task jbd2/mmcblk0p2-:71 blocked for more than 241 seconds.
      Tainted: G        W         5.13.0-rc1-starlight #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:jbd2/mmcblk0p2- state:D stack:    0 pid:   71 ppid:     2 flags:0x00000000
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464                                                                                                                                                            [123/519]
[<ffffffff8063e392>] schedule+0x38/0xa2
[<ffffffff804cff7a>] mmc_blk_rw_wait+0x128/0x13a
[<ffffffff804d0624>] mmc_blk_mq_issue_rq+0x236/0x60c
[<ffffffff804d0d34>] mmc_mq_queue_rq+0x138/0x2ae
[<ffffffff802f8ed6>] __blk_mq_try_issue_directly+0xde/0x15c
[<ffffffff802fa606>] blk_mq_try_issue_list_directly+0x7c/0x230
[<ffffffff802fe7e8>] blk_mq_sched_insert_requests+0xd6/0x10a
[<ffffffff802fa4ec>] blk_mq_flush_plug_list+0xa8/0xe4
[<ffffffff802f0d38>] blk_flush_plug_list+0x98/0xac
[<ffffffff802f0d64>] blk_finish_plug+0x18/0x24
[<ffffffff801d365e>] jbd2_journal_commit_transaction+0xbe0/0x1556
[<ffffffff801d6b22>] kjournald2+0xa2/0x1ac
[<ffffffff800236d2>] kthread+0xda/0xe8
[<ffffffff800031de>] ret_from_exception+0x0/0xc
INFO: task clang-12:9962 blocked for more than 241 seconds.
      Tainted: G        W         5.13.0-rc1-starlight #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:clang-12        state:D stack:    0 pid: 9962 ppid:  9961 flags:0x00000000
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464
[<ffffffff8063e392>] schedule+0x38/0xa2
[<ffffffff8063e44e>] io_schedule+0x32/0x4c
[<ffffffff8063eaec>] bit_wait_io+0x10/0x4c
[<ffffffff8063e7b2>] __wait_on_bit+0x5c/0xb8
[<ffffffff8063e876>] out_of_line_wait_on_bit+0x68/0x70
[<ffffffff801d13cc>] do_get_write_access+0x25c/0x45a
[<ffffffff801d1620>] jbd2_journal_get_write_access+0x56/0x80
[<ffffffff8018fc6e>] __ext4_journal_get_write_access+0x5a/0x10a
[<ffffffff8019cf56>] __ext4_new_inode+0x698/0x1040
[<ffffffff801bb92a>] ext4_create+0x70/0x116
[<ffffffff80120f2a>] path_openat+0x380/0xa68
[<ffffffff8012244e>] do_filp_open+0x56/0xba
[<ffffffff801126ae>] do_sys_openat2+0x66/0xea
[<ffffffff801129ae>] sys_openat+0x30/0x5c
[<ffffffff800031d0>] ret_from_syscall+0x0/0x2
INFO: task rm:9972 blocked for more than 241 seconds.
      Tainted: G        W         5.13.0-rc1-starlight #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:rm              state:D stack:    0 pid: 9972 ppid:  9144 flags:0x00000000
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464
[<ffffffff8063e392>] schedule+0x38/0xa2
[<ffffffff8063e44e>] io_schedule+0x32/0x4c
[<ffffffff8063eaec>] bit_wait_io+0x10/0x4c
[<ffffffff8063e7b2>] __wait_on_bit+0x5c/0xb8
[<ffffffff8063e876>] out_of_line_wait_on_bit+0x68/0x70
[<ffffffff801d13cc>] do_get_write_access+0x25c/0x45a
[<ffffffff801d1620>] jbd2_journal_get_write_access+0x56/0x80
[<ffffffff8018fc6e>] __ext4_journal_get_write_access+0x5a/0x10a
[<ffffffff801ba646>] ext4_delete_entry+0x74/0xdc
[<ffffffff801bc3fc>] __ext4_unlink+0x128/0x1aa
[<ffffffff801bc4d6>] ext4_unlink+0x58/0xaa
[<ffffffff8011f52a>] vfs_unlink+0xc0/0x192
[<ffffffff8012292e>] do_unlinkat+0x12e/0x1fa
[<ffffffff80122a28>] sys_unlinkat+0x2e/0x56
[<ffffffff800031d0>] ret_from_syscall+0x0/0x2
INFO: task jbd2/mmcblk0p2-:71 blocked for more than 362 seconds.
      Tainted: G        W         5.13.0-rc1-starlight #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:jbd2/mmcblk0p2- state:D stack:    0 pid:   71 ppid:     2 flags:0x00000000
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464
[<ffffffff8063e392>] schedule+0x38/0xa2
[<ffffffff804cff7a>] mmc_blk_rw_wait+0x128/0x13a
[<ffffffff804d0624>] mmc_blk_mq_issue_rq+0x236/0x60c
[<ffffffff804d0d34>] mmc_mq_queue_rq+0x138/0x2ae
[<ffffffff802f8ed6>] __blk_mq_try_issue_directly+0xde/0x15c
[<ffffffff802fa606>] blk_mq_try_issue_list_directly+0x7c/0x230
[<ffffffff802fe7e8>] blk_mq_sched_insert_requests+0xd6/0x10a
[<ffffffff802fa4ec>] blk_mq_flush_plug_list+0xa8/0xe4
[<ffffffff802f0d38>] blk_flush_plug_list+0x98/0xac
[<ffffffff802f0d64>] blk_finish_plug+0x18/0x24
[<ffffffff801d365e>] jbd2_journal_commit_transaction+0xbe0/0x1556
[<ffffffff801d6b22>] kjournald2+0xa2/0x1ac
[<ffffffff800236d2>] kthread+0xda/0xe8
[<ffffffff800031de>] ret_from_exception+0x0/0xc
INFO: task clang-12:9962 blocked for more than 362 seconds.
      Tainted: G        W         5.13.0-rc1-starlight #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:clang-12        state:D stack:    0 pid: 9962 ppid:  9961 flags:0x00000000
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464
[<ffffffff8063e392>] schedule+0x38/0xa2
[<ffffffff8063e44e>] io_schedule+0x32/0x4c
[<ffffffff8063eaec>] bit_wait_io+0x10/0x4c
[<ffffffff8063e7b2>] __wait_on_bit+0x5c/0xb8
[<ffffffff8063e876>] out_of_line_wait_on_bit+0x68/0x70
[<ffffffff801d13cc>] do_get_write_access+0x25c/0x45a
[<ffffffff801d1620>] jbd2_journal_get_write_access+0x56/0x80
[<ffffffff8018fc6e>] __ext4_journal_get_write_access+0x5a/0x10a
[<ffffffff8019cf56>] __ext4_new_inode+0x698/0x1040
[<ffffffff801bb92a>] ext4_create+0x70/0x116
[<ffffffff80120f2a>] path_openat+0x380/0xa68
[<ffffffff8012244e>] do_filp_open+0x56/0xba
[<ffffffff801126ae>] do_sys_openat2+0x66/0xea
[<ffffffff801129ae>] sys_openat+0x30/0x5c
[<ffffffff800031d0>] ret_from_syscall+0x0/0x2
INFO: task rm:9972 blocked for more than 362 seconds.
      Tainted: G        W         5.13.0-rc1-starlight #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:rm              state:D stack:    0 pid: 9972 ppid:  9144 flags:0x00000000
Call Trace:                                                                                                                                                                                             [21/519]
[<ffffffff8063e056>] __schedule+0x160/0x464
[<ffffffff8063e392>] schedule+0x38/0xa2
[<ffffffff8063e44e>] io_schedule+0x32/0x4c
[<ffffffff8063eaec>] bit_wait_io+0x10/0x4c
[<ffffffff8063e7b2>] __wait_on_bit+0x5c/0xb8
[<ffffffff8063e876>] out_of_line_wait_on_bit+0x68/0x70
[<ffffffff801d13cc>] do_get_write_access+0x25c/0x45a
[<ffffffff801d1620>] jbd2_journal_get_write_access+0x56/0x80
[<ffffffff8018fc6e>] __ext4_journal_get_write_access+0x5a/0x10a
[<ffffffff801ba646>] ext4_delete_entry+0x74/0xdc
[<ffffffff801bc3fc>] __ext4_unlink+0x128/0x1aa
[<ffffffff801bc4d6>] ext4_unlink+0x58/0xaa
[<ffffffff8011f52a>] vfs_unlink+0xc0/0x192
[<ffffffff8012292e>] do_unlinkat+0x12e/0x1fa
[<ffffffff80122a28>] sys_unlinkat+0x2e/0x56
[<ffffffff800031d0>] ret_from_syscall+0x0/0x2
rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
rcu:    0-...0: (5 ticks this GP) idle=be2/1/0x4000000000000002 softirq=308714/308716 fqs=52394
        (detected by 1, t=105012 jiffies, g=481085, q=854)
Task dump for CPU 0:
task:clang-12        state:R  running task     stack:    0 pid: 9931 ppid:  9924 flags:0x00000008
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464
INFO: task jbd2/mmcblk0p2-:71 blocked for more than 483 seconds.
      Tainted: G        W         5.13.0-rc1-starlight #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:jbd2/mmcblk0p2- state:D stack:    0 pid:   71 ppid:     2 flags:0x00000000
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464
[<ffffffff8063e392>] schedule+0x38/0xa2
[<ffffffff804cff7a>] mmc_blk_rw_wait+0x128/0x13a
[<ffffffff804d0624>] mmc_blk_mq_issue_rq+0x236/0x60c
[<ffffffff804d0d34>] mmc_mq_queue_rq+0x138/0x2ae
[<ffffffff802f8ed6>] __blk_mq_try_issue_directly+0xde/0x15c
[<ffffffff802fa606>] blk_mq_try_issue_list_directly+0x7c/0x230
[<ffffffff802fe7e8>] blk_mq_sched_insert_requests+0xd6/0x10a
[<ffffffff802fa4ec>] blk_mq_flush_plug_list+0xa8/0xe4
[<ffffffff802f0d38>] blk_flush_plug_list+0x98/0xac
[<ffffffff802f0d64>] blk_finish_plug+0x18/0x24
[<ffffffff801d365e>] jbd2_journal_commit_transaction+0xbe0/0x1556
[<ffffffff801d6b22>] kjournald2+0xa2/0x1ac
[<ffffffff800236d2>] kthread+0xda/0xe8
[<ffffffff800031de>] ret_from_exception+0x0/0xc
rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
rcu:    0-...0: (5 ticks this GP) idle=be2/1/0x4000000000000002 softirq=308714/308716 fqs=74881
        (detected by 1, t=150017 jiffies, g=481085, q=854)
Task dump for CPU 0:
task:clang-12        state:R  running task     stack:    0 pid: 9931 ppid:  9924 flags:0x00000008
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464
rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
rcu:    0-...0: (5 ticks this GP) idle=be2/1/0x4000000000000002 softirq=308714/308716 fqs=97380
        (detected by 1, t=195022 jiffies, g=481085, q=854)
Task dump for CPU 0:
task:clang-12        state:R  running task     stack:    0 pid: 9931 ppid:  9924 flags:0x00000008
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464
rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
rcu:    0-...0: (5 ticks this GP) idle=be2/1/0x4000000000000002 softirq=308714/308716 fqs=97380
        (detected by 1, t=195022 jiffies, g=481085, q=854)
Task dump for CPU 0:
task:clang-12        state:R  running task     stack:    0 pid: 9931 ppid:  9924 flags:0x00000008
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464
rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
rcu:    0-...0: (5 ticks this GP) idle=be2/1/0x4000000000000002 softirq=308714/308716 fqs=119879
        (detected by 1, t=240027 jiffies, g=481085, q=854)
Task dump for CPU 0:
task:clang-12        state:R  running task     stack:    0 pid: 9931 ppid:  9924 flags:0x00000008
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464
rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
rcu:    0-...0: (5 ticks this GP) idle=be2/1/0x4000000000000002 softirq=308714/308716 fqs=142378
        (detected by 1, t=285032 jiffies, g=481085, q=854)
Task dump for CPU 0:
task:clang-12        state:R  running task     stack:    0 pid: 9931 ppid:  9924 flags:0x00000008
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464
rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
rcu:    0-...0: (5 ticks this GP) idle=be2/1/0x4000000000000002 softirq=308714/308716 fqs=164877
        (detected by 1, t=330037 jiffies, g=481085, q=854)
Task dump for CPU 0:
task:clang-12        state:R  running task     stack:    0 pid: 9931 ppid:  9924 flags:0x00000008
Call Trace:
[<ffffffff8063e056>] __schedule+0x160/0x464

Install custom kernel - isnt possible

Hello together,

the debian image for visionfive2 was delivered with a vfat partion as boot partition. A custom kernel install isnt possible because of:
dpkg: error processing archive /home/damian/data/starfive/new/linux-image-5.15.0-starfive_5.15.0-starfive-8_riscv64.deb (--unpack):
unable to make backup link of './boot/config-5.15.0-starfive' before installing new version: Operation not permitted
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

On a vfat partition isnt possible to do symlinks.

Is it a way how i can install an custom kernel ?

Best regards
Damian

corrupt I/O with USB disk

Originally reported by @rvs in a separate Fedora issue: starfive-tech/Fedora_on_StarFive#27 (comment)

And if anyone is curious -- it indeed appears that reading from USB on my board with a stock Fedora kernel produces random results:

[root@fedora-starfive ~]# mount /dev/sda2 /mnt
[root@fedora-starfive ~]# md5sum /mnt/kernel-5.12.0+-1.riscv64.rpm
fdfdba4264bf7a0343b355cf51559b9f  /mnt/kernel-5.12.0+-1.riscv64.rpm

AND if I plug it into a different USB socket:

[root@fedora-starfive ~]# mount /dev/sda2 /mnt
[root@fedora-starfive ~]# md5sum /mnt/kernel-5.12.0+-1.riscv64.rpm
cfa4ea2687344fbb2516637490fbb74b  /mnt/kernel-5.12.0+-1.riscv64.rpm

And here's some more fun with this:

[root@fedora-starfive ~]# cd /root
[root@fedora-starfive ~]# cp /mnt/kernel-5.12.0+-1.riscv64.rpm 1
[root@fedora-starfive ~]# cp /mnt/kernel-5.12.0+-1.riscv64.rpm 2
[root@fedora-starfive ~]# cmp 1 2
1 2 differ: byte 442264320, line 1690479

Welp, at least it copied quite a bit of bytes before garbage kicked in

bql?

What ethernet chip are y'all using? Does it have bql support?

Known issue: L2 cache flushing due to StarFive 7100 architecture

NOTE: I am reposting my forum post here for greater visibility.

The BeagleV beta boards have the StarFive 7100 SoC which was from a limited multi-project wafer run. We only have enough chips to produce 300 BeagleV beta boards. StarFive should be releasing a public datasheet next week for the 7100. The 7100 has 2x StarFive U74 cores.

StarFive will be putting in a full production order an updated design called the 7110. This will have 4x SiFive U74 cores as well as Imagination GPU and PCIe controller.

This brings me to design issues in the 7100:

  • L2 cache controller has a bug where it incorrectly raises the L2 DirFail interrupt. The only work around for this is to mask the L2 cache interrupt on the PLIC.
  • All the peripherals in the 7100 are on a non-coherent bus. StarFive refers to this as the sysbus port. This requires the drivers to flush L2 cache in many instances where it is not necessary on other SoC’s. This design choice reduces the performance of the 7100.

StarFive tells me that they have resolved the L2 cache controller DirFail interrupt bug in the 7110. And more importantly they have improved the SoC architecture. High performance peripherals like the Gigabit Ethernet and USB3 controller will be connected to a cache-coherent bus (StarFive refers to it as the front port).

My understanding so far is that it may be difficult to upstream the 7100 support given that the peripherals are not coherent. I would very much like to get input from you and others in the beta as to what the correct way to implement the drivers might be.

I also need to work with StarFive to create some diagrams of the SoC architecture that shows exactly how the different IP blocks are interconnected and whether or not those connections are coherent.

Thank you,
Drew Fustini
BeagleBoard.org Foundation

[cannot boot] kernel keeps outputing L2CACHE: DataError @ 0x00000004.820A2060

Device: VisionFive

Firmware: Latest

Version: d02aa65

Config: Default visionfive_defconfig

Grub options:

menuentry 'Test Kernel' {
    linux /Image-test earlycon console=tty0 console=ttyS0,115200n8 root=/dev/mmcblk0p4 rootwait
    devicetree /jh7100-starfive-visionfive-v1.dtb
}

Output:

U-Boot 2022.04-rc2-VisionFive (Mar 07 2022 - 21:12:22 +0800)StarFive

CPU:   rv64imafdc
Model: StarFive VisionFive V1
DRAM:  8 GiB
Core:  13 devices, 9 uclasses, devicetree: separate

loader/efi/linux.c:75: UEFI stub kernel: [ Image-test  18.82MiB  100%  3.76MiB/s ]
loader/efi/linux.c:76: PE/COFF header @ 00000040
loader/efi/linux.c:90: LoadFile2 initrd loading enabled
loader/efi/linux.c:439: kernel file size: 19729408
loader/efi/linux.c:441: kernel numpages: 4817
loader/efi/linux.c:458: kernel @ 0xced2f000
loader/efi/fdt.c:63: allocating 22748 bytes for fdt [ jh7100-starfive-visi  21.21KiB  100%  526.97B/s ]
loader/efi/linux.c:177: linux command line: 'BOOT_IMAGE=/Image-test earlycon console=tty0 console=ttyS0,115200n8 root=/dev/mmcblk0p4 rootwait'
loader/efi/linux.c:192: starting image 0xff7089b0
EFI stub: Booting Linux Kernel...
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services...
Linux version 5.19.0-rc8-visionfive (estela@huawei) (riscv64-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Sun Jul 31 15:14:22 HKT 2022
OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
Machine model: StarFive VisionFive V1
earlycon: uart0 at MMIO32 0x0000000012440000 (options '115200n8')
printk: bootconsole [uart0] enabled
efi: EFI v2.90 by Das U-Boot
efi: RTPROP=0xfe6d4040 MEMRESERVE=0xfe246040 
OF: fdt: Ignoring memory block 0x80000000 - 0x80080000
OF: fdt: Ignoring memory range 0x80080000 - 0x80200000
Reserved memory: created CMA memory pool at 0x00000000a0000000, size 640 MiB
OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
Reserved memory: created DMA memory pool at 0x00000000f9000000, size 16 MiB
OF: reserved mem: initialized node framebuffer@f9000000, compatible id shared-dma-pool
Reserved memory: created DMA memory pool at 0x00000000fb000000, size 32 MiB
OF: reserved mem: initialized node framebuffer@fb000000, compatible id shared-dma-pool
Zone ranges:
  DMA32    [mem 0x0000000080200000-0x00000000ffffffff]
  Normal   [mem 0x0000000100000000-0x000000027fffffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x0000000080200000-0x00000000cfffffff]
  node   0: [mem 0x00000000d0000000-0x00000000f7ffffff]
  node   0: [mem 0x00000000f8000000-0x00000000f8ffffff]
  node   0: [mem 0x00000000f9000000-0x00000000f9ffffff]
  node   0: [mem 0x00000000fa000000-0x00000000faffffff]
  node   0: [mem 0x00000000fb000000-0x00000000fcffffff]
  node   0: [mem 0x00000000fd000000-0x00000000fe6d3fff]
  node   0: [mem 0x00000000fe6d4000-0x00000000fe6d6fff]
  node   0: [mem 0x00000000fe6d7000-0x00000000fe6d7fff]
  node   0: [mem 0x00000000fe6d8000-0x00000000fe6dbfff]
  node   0: [mem 0x00000000fe6dc000-0x00000000fff13fff]
  node   0: [mem 0x00000000fff14000-0x00000000fff14fff]
  node   0: [mem 0x00000000fff15000-0x000000027fffffff]
Initmem setup node 0 [mem 0x0000000080200000-0x000000027fffffff]
SBI specification v0.3 detected
SBI implementation ID=0x1 Version=0x10000
SBI TIME extension detected
SBI IPI extension detected
SBI RFENCE extension detected
SBI HSM extension detected
riscv: base ISA extensions acdfim
riscv: ELF capabilities acdfim
percpu: Embedded 17 pages/cpu s31656 r8192 d29784 u69632
Built 1 zonelists, mobility grouping on.  Total pages: 2067975
Kernel command line: BOOT_IMAGE=/Image-test earlycon console=tty0 console=ttyS0,115200n8 root=/dev/mmcblk0p4 rootwait
Unknown kernel command line parameters "BOOT_IMAGE=/Image-test", will be passed to user space.
Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
mem auto-init: stack:off, heap alloc:off, heap free:off
software IO TLB: mapped [mem 0x000000009c000000-0x00000000a0000000] (64MB)
Memory: 6734564K/8386560K available (7855K kernel code, 4824K rwdata, 4096K rodata, 2154K init, 353K bss, 996636K reserved, 655360K cma-reserved)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
rcu: Hierarchical RCU implementation.
rcu:    RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
        Tracing variant of Tasks RCU enabled.
rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
riscv-intc: 64 local interrupts mapped
plic: interrupt-controller@c000000: mapped 127 interrupts with 2 handlers for 4 contexts.
rcu: srcu_init: Setting srcu_struct sizes based on contention.
riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x171024e6b, max_idle_ns: 440795202301 ns
sched_clock: 64 bits at 6MHz, resolution 160ns, wraps every 4398046511040ns
Console: colour dummy device 80x25
printk: console [tty0] enabled
Calibrating delay loop (skipped), value calculated using timer frequency.. 12.50 BogoMIPS (lpj=25000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
cblist_init_generic: Setting adjustable number of callback queues.
cblist_init_generic: Setting shift to 1 and lim to 1.
ASID allocator disabled (0 bits)
rcu: Hierarchical SRCU implementation.
rcu:    Max phase no-delay instances is 1000.
Remapping and enabling EFI services.
smp: Bringing up secondary CPUs ...
smp: Brought up 1 node, 2 CPUs
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
futex hash table entries: 512 (order: 3, 32768 bytes, linear)
pinctrl core: initialized pinctrl subsystem
NET: Registered PF_NETLINK/PF_ROUTE protocol family
thermal_sys: Registered thermal governor 'step_wise'
platform 12000000.crtc: Fixing up cyclic dependency with soc:display-encoder
raid6: skipped pq benchmark and selected int64x8
raid6: using intx1 recovery algorithm
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Registered efivars operations
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.22
NET: Registered PF_BLUETOOTH protocol family
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
clocksource: Switched to clocksource riscv_clocksource
NET: Registered PF_INET protocol family
IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
TCP: Hash tables configured (established 65536 bind 65536)
UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
NET: Registered PF_UNIX/PF_LOCAL protocol family
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Initialise system trusted keyrings
workingset: timestamp_bits=62 max_order=21 bucket_order=0
xor: measuring software checksum speed
   8regs           :  2345 MB/sec
   8regs_prefetch  :  2338 MB/sec
   32regs          :  2345 MB/sec
   32regs_prefetch :  2338 MB/sec
xor: using function: 32regs (2345 MB/sec)
Key type asymmetric registered
Asymmetric key parser 'x509' registered
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
io scheduler bfq registered
dw_axi_dmac_platform 100b0000.dma-controller: DesignWare AXI DMA Controller, 4 channels
dw_axi_dmac_platform 10500000.dma-controller: DesignWare AXI DMA Controller, 16 channels
L2CACHE: DataError @ 0x00000004.82482060
L2CACHE: DataError @ 0x00000004.82482060
L2CACHE: DataError @ 0x00000004.82482060
L2CACHE: DataError @ 0x00000004.82482060
L2CACHE: DataError @ 0x00000004.82482060
L2CACHE: DataError @ 0x00000004.82482060
L2CACHE: DataError @ 0x00000004.82482060
L2CACHE: DataError @ 0x00000004.82482060
...

Unable to handle kernel access to user memory without uaccess routines

This happens with the kernel from https://build.opensuse.org/package/binaries/home:Andreas_Schwab:riscv:beaglev/kernel-default/standard.

[ 10.870759][ T279] display-encoder soc:display-encoder: endpoint returns -517
[ 10.879438][ T279] starfive-drm soc:display-subsystem: failed to bind soc:display-encoder (ops starfive_encoder_component_ops [starfive_drm]): -22
[ 10.897231][ T279] Unable to handle kernel access to user memory without uaccess routines at virtual address 0000000100000084
[ 10.908652][ T279] Oops [#1]
[ 10.911617][ T279] Modules linked in: starfive_drm(+) drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec rc_core drm mmc_block dw_mmc_pltfm dw_mmc pwrseq_simple mmc_core gpio_tps65086 tps65086_regulator spi_dw_mmio spi_dw dw_axi_dmac_platform tps65086 mfd_core sfctemp pwm_sifive_ptc regmap_i2c virt_dma sg dm_multipath dm_mod scsi_dh_rdac scsi_dh_emc scsi_dh_alua efivarfs
[ 10.945722][ T279] CPU: 0 PID: 279 Comm: systemd-udevd Tainted: G W 5.15.0-rc6-60-default #1 openSUSE Tumbleweed (unreleased) 0b45b92284739068e477784f36b7482c41a501c2
[ 10.961913][ T279] Hardware name: BeagleV Starlight Beta (DT)
[ 10.967723][ T279] epc : __clk_put+0xd6/0xf0
[ 10.972085][ T279] ra : __clk_put+0x1c/0xf0
[ 10.976429][ T279] epc : ffffffff80409898 ra : ffffffff804097de sp : ffffffd00428b7c0
[ 10.984313][ T279] gp : ffffffff8176fbf0 tp : ffffffe08076b700 t0 : 0000000000000040
[ 10.992199][ T279] t1 : 0000000000000917 t2 : ffffffff80c0866c s0 : ffffffd00428b7f0
[ 11.000087][ T279] s1 : ffffffe082d0e800 a0 : 0000000000000001 a1 : 0000000000000000
[ 11.007972][ T279] a2 : 0000000000000000 a3 : 0000000100000000 a4 : 0000000000000001
[ 11.015854][ T279] a5 : 0000000001ebb000 a6 : 0000ff0000000000 a7 : 00ff000000000000
[ 11.023737][ T279] s2 : ffffffd00428b810 s3 : ffffffe08009e010 s4 : ffffffd00428b838
[ 11.031620][ T279] s5 : 000000000000001b s6 : ffffffe08009e27c s7 : ffffffff80f049b8
[ 11.039503][ T279] s8 : ffffffff80f049d0 s9 : 0000000000000001 s10: ffffffe0800368c0
[ 11.047384][ T279] s11: ffffffffffffffea t3 : ffffffe086d75300 t4 : 0000000000000002
[ 11.055267][ T279] t5 : ffffffe1fe160a08 t6 : ffffffe086d75300
[ 11.061248][ T279] status: 0000000200000120 badaddr: 0000000100000084 cause: 000000000000000d
[ 11.069824][ T279] [] __clk_put+0xd6/0xf0
[ 11.075476][ T279] [] clk_put+0xc/0x14
[ 11.080855][ T279] [] clk_bulk_put+0x3a/0x50
[ 11.086752][ T279] [] devm_clk_bulk_release+0x12/0x1a
[ 11.093428][ T279] [] devres_release_group+0xa2/0x104
[ 11.100108][ T279] [] component_unbind+0x2c/0x3a
[ 11.106473][ T279] ---[ end trace f8e23806ffa576ba ]---

Move Kernel Module to ubuntu image

Hello together,

i build a kernel module for wifi support with the SDK for visionFive2. And now i copied the firmware and the ko file to the starfive debian image. Now when i try insmod r8188eu.ko or modprobe r8188eu i get the following error:
[15399.605144] r8188eu: Unknown symbol iwe_stream_add_event (err -2)
[15399.611659] r8188eu: Unknown symbol wireless_send_event (err -2)
[15399.617915] r8188eu: Unknown symbol iwe_stream_add_point (err -2)

What i have todo ?

Best regards
Damian

make 5.13 kernel the default branch

@tekkamanninja There is not much value directing people to the 5.10 branch as the default ( https://github.com/starfive-tech/linux/tree/fedora-vic-7100_5.10.6). I believe the only reason you are still using 5.10 is because Fedora 33 was 5.10? Akira (@mcd500) has been repackaging the Fedora image to have the 5.13 kernel branch from @esmil and that is working well.

Now that @esmil can push directly to starfive-tech/linux/esmil_starlight and it stays in sync with esmil/linux/starlight I think it would make sense to make the default branch https://github.com/starfive-tech/linux/tree/esmil_starlight

Alternatively, a new branch such as jh7100-5.13 could be created from esmil_starlight and could be made default jh7100-5.13

ethernet does not work as it keeps flipping

I am using meta-riscv/yocto to build a core-image-base where I also ensuring that we set CONFIG_MICREL_PHY=y but this also does not help in bringing up address on the phy, I can see the interface
but it never gets IP, udhcpc keeps trying. I also disabled udhcpc running on boot to avoid any races. And launch it manually after logging in. But it results in same results

root@beaglev-starlight-jh7100:/sbin# ifup eth0
[   55.568281] stmmaceth 10020000.gmac eth0: PHY [stmmac-0:07] driver [Micrel KSZ9031 Gigabit PHY] (irq=POLL)
[   55.580754] dwmac1000: Master AXI performs fixed burst length
[   55.586626] stmmaceth 10020000.gmac eth0: No Safety Features support found
[   55.593572] stmmaceth 10020000.gmac eth0: No MAC Management Counters available
[   55.600790] stmmaceth 10020000.gmac eth0: IEEE 1588-2008 Advanced Timestamp supported
[   55.609898] stmmaceth 10020000.gmac eth0: configuring for phy/rgmii-txid link mode
udhcpc: started, v1.33.1
udhcpc: sending discover
udhcpc: sending discover
[   59.752954] stmmaceth 10020000.gmac eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   59.760900] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
udhcpc: sending discover
udhcpc: no lease, forking to background
root@beaglev-starlight-jh7100:/sbin# [   70.071047] ------------[ cut here ]------------
[   70.075716] NETDEV WATCHDOG: eth0 (stmmaceth): transmit queue 0 timed out
[   70.082809] WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:442 dev_watchdog+0x226/0x22a
[   70.091075] Modules linked in:
[   70.094163] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.10.6-yocto-standard-starfive #1
[   70.102167] epc: ffffffe0006535c4 ra : ffffffe0006535c4 sp : ffffffe07ff0fc20
[   70.109300]  gp : ffffffe000ccab78 tp : ffffffe07fecf500 t0 : ffffffe000c19508
[   70.116518]  t1 : ffffffffffffffff t2 : 0000000000000000 s0 : ffffffe07ff0fc70
[   70.123735]  s1 : 0000000000000000 a0 : 000000000000003d a1 : 0000000000000000
[   70.130952]  a2 : 0000000000000000 a3 : 0000000000000000 a4 : 0000000000000000
[   70.138172]  a5 : 0000000000000000 a6 : 0000000000000000 a7 : 0000000000735049
[   70.145390]  s2 : ffffffe080cd83d0 s3 : ffffffe080cd83a0 s4 : ffffffe000c08a40
[   70.152611]  s5 : ffffffe080cd8000 s6 : ffffffffffffffff s7 : 0000000000000004
[   70.159830]  s8 : ffffffe08016a940 s9 : ffffffe00065339e s10: ffffffe07ff0fca0
[   70.167048]  s11: ffffffe1f8d72600 t3 : 0000000000000002 t4 : 0000000000000402
[   70.174267]  t5 : ffffffe000c84770 t6 : ffffffe07ff0f958
[   70.179585] status: 0000000200000120 badaddr: ffffffe07fecf508 cause: 0000000000000003
[   70.187495] ---[ end trace 1526d54b5fd7b7e7 ]---
[   70.192267] stmmaceth 10020000.gmac eth0: Reset adapter.
[   70.338374] stmmaceth 10020000.gmac eth0: PHY [stmmac-0:07] driver [Micrel KSZ9031 Gigabit PHY] (irq=POLL)
[   70.350892] dwmac1000: Master AXI performs fixed burst length
[   70.356745] stmmaceth 10020000.gmac eth0: No Safety Features support found
[   70.363677] stmmaceth 10020000.gmac eth0: No MAC Management Counters available
[   70.370883] stmmaceth 10020000.gmac eth0: IEEE 1588-2008 Advanced Timestamp supported
[   70.378751] stmmaceth 10020000.gmac eth0: configuring for phy/rgmii-txid link mode
[   78.712955] stmmaceth 10020000.gmac eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   78.720898] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

I am using starfive_vic7100_evb_sd_net_defconfig but same is seen with fedora defconfig as well and also with https://github.com/starfive-tech/freelight-u-sdk/blob/starfive/conf/sdk_210209_defconfig

JH7110_VisionFive2_devel: vulnerable to CVE-2022-0847 aka DirtyPipe exploit

Hi,
A serious flaw still exists and can affect thousands of VF2's deployed so far.
Dirtypipe is easily exploitable, allows to overwrite any file in filesystem not normally writable (permissions check bypass, immutable flag bypass), without touching it's ctime field (change goes completely unnoticed if not audited offline on another trustworthy system) most likely privileges can be raised to root by a wild available exploit.
I tested last HEAD from JH7110_VisionFive2_devel on a real VF2 and it works - I can overwrite instructions in /bin/ls for example at my will.
Please see https://dirtypipe.cm4all.com/ for further details.
Patch closing this "backdoor": https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=9d2231c5d74e13b2a0546fee6737ee4446017903
I've sent PR #92
Thanks.

scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory

Hi, I follow the step of seed official tutorial.
When I trying to compile the kernel, there is some error message shows up.
After typing make CROSS_COMPILE=riscv64-linux-gnu- ARCH=riscv -j8
there are some error:

scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory
21 | #include <openssl/bio.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.host:95: scripts/extract-cert] Error 1
make[1]: *** Waiting for unfinished jobs....
HDRINST usr/include/linux/synclink.h
HDRINST usr/include/linux/btrfs_tree.h
scripts/sign-file.c:25:10: fatal error: openssl/opensslv.h: No such file or directory
25 | #include <openssl/opensslv.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.host:95: scripts/sign-file] Error 1

Seems like I missed some files so the make process is terminated.
Is there anything I missed?
OS: (by uname -a)
Linux debian 5.10.0-6-amd64 #1 SMP Debian 5.10.28-1 (2021-04-09) x86_64 GNU/Linux

RAM access is slow

I found access to memory pretty slow in the BeagleV. I can't go past 280 mbytes (which means 36 M reads per second):

# unalign_check -r1
size:           100 Mb
read size:      8 bit
unalignment:    0 byte
elapsed time:   0.64 sec
throughput:     155.19 Mb/s
# unalign_check -r8
size:           100 Mb
read size:      64 bit
unalignment:    0 byte
elapsed time:   0.36 sec
throughput:     276.69 Mb/s
# unalign_check -w1
size:           100 Mb
write size:     8 bit
unalignment:    0 byte
elapsed time:   0.72 sec
throughput:     138.50 Mb/s
# unalign_check -w8
size:           100 Mb
write size:     64 bit
unalignment:    0 byte
elapsed time:   0.42 sec
throughput:     239.11 Mb/s
#

As comparison, this is the same test on a different system with a 2 GHz CPU and 2400MHz DDR4 memory:

# unalign_check -r1
size:           100 Mb
read size:      8 bit
unalignment:    0 byte
elapsed time:   0.10 sec
throughput:     952.71 Mb/s
# unalign_check -r8
size:           100 Mb
read size:      64 bit
unalignment:    0 byte
elapsed time:   0.01 sec
throughput:     7240.48 Mb/s
# unalign_check -w1
size:           100 Mb
write size:     8 bit
unalignment:    0 byte
elapsed time:   0.10 sec
throughput:     953.16 Mb/s
# unalign_check -w8
size:           100 Mb
write size:     64 bit
unalignment:    0 byte
elapsed time:   0.01 sec
throughput:     7625.81 Mb/s
#

The tool I'm using is at:
https://gist.github.com/teknoraver/36f471ef97d4c6a6cb11148e72f9e975

../include/linux/fortify-string.h:358:63: error: expected identifier or '(' before '{' token

current visionfive branch doesn't compile:

CC arch/riscv/lib/string.o
In file included from ../include/linux/string.h:253,
from ../include/linux/bitmap.h:11,
from ../include/linux/cpumask.h:12,
from ../include/linux/mm_types_task.h:14,
from ../include/linux/mm_types.h:5,
from ../include/linux/buildid.h:5,
from ../include/linux/module.h:14,
from ../arch/riscv/lib/string.c:10:
../include/linux/fortify-string.h:358:63: error: expected identifier or '(' before '{' token
358 | p_size_field, q_size_field, op) ({
| ^
../include/linux/fortify-string.h:369:26: note: in expansion of macro '__fortify_memcpy_chk'
369 | #define memcpy(p, q, s) __fortify_memcpy_chk(p, q, s,
| ^~~~~~~~~~~~~~~~~~~~
../arch/riscv/lib/string.c:89:7: note: in expansion of macro 'memcpy'
89 | void *memcpy(void *dest, const void *src, size_t count) __weak __alias(__memcpy);
| ^~~~~~
../include/linux/fortify-string.h:358:63: error: expected identifier or '(' before '{' token
358 | p_size_field, q_size_field, op) ({
| ^
../include/linux/fortify-string.h:373:27: note: in expansion of macro '__fortify_memcpy_chk'
373 | #define memmove(p, q, s) __fortify_memcpy_chk(p, q, s,
| ^~~~~~~~~~~~~~~~~~~~
../arch/riscv/lib/string.c:112:7: note: in expansion of macro 'memmove'
112 | void *memmove(void *dest, const void *src, size_t count) __weak __alias(__memmove);
| ^~~~~~~
../include/linux/fortify-string.h:262:65: error: expected identifier or '(' before '{' token
262 | #define __fortify_memset_chk(p, c, size, p_size, p_size_field) ({
| ^
../include/linux/fortify-string.h:272:25: note: in expansion of macro '__fortify_memset_chk'
272 | #define memset(p, c, s) __fortify_memset_chk(p, c, s,
| ^~~~~~~~~~~~~~~~~~~~
../arch/riscv/lib/string.c:153:7: note: in expansion of macro 'memset'
153 | void *memset(void *s, int c, size_t count) __weak __alias(__memset);
| ^~~~~~
make[1]: *** [../scripts/Makefile.build:289: arch/riscv/lib/string.o] Error 1

SD card boot gets stuck often resulting in board not booting.

I am using starfive_vic7100_evb_sd_net_defconfig for kernel and it results in kernel hangs during boot at times, almost everytime the system is rebooted. Following message is seen when the kernel gets stuck

[    2.216987] sdhci: Secure Digital Host Controller Interface driver
[    2.223206] sdhci: Copyright(c) Pierre Ossman
[    2.227616] Synopsys Designware Multimedia Card Interface Driver
[    2.233929] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.240680] dw_mmc 10000000.sdio0: IDMAC supports 32-bit address mode.
[    2.241157] NET: Registered protocol family 10
[    2.247368] dw_mmc 10000000.sdio0: Using internal DMA controller.
[    2.257870] dw_mmc 10000000.sdio0: Version ID is 290a
[    2.263093] dw_mmc 10000000.sdio0: DW MMC controller at irq 32,32 bit host data width,32 deep fifo
[    2.272303] Segment Routing with IPv6
[    2.272351] mmc_host mmc0: card is polling.
[    2.276110] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.280826] dw_mmc 10010000.sdio1: IDMAC supports 32-bit address mode.
[    2.287217] NET: Registered protocol family 17
[    2.292709] dw_mmc 10010000.sdio1: Using internal DMA controller.
[    2.297470] 9pnet: Installing 9P2000 support
[    2.303231] dw_mmc 10010000.sdio1: Version ID is 290a
[    2.307588] Key type dns_resolver registered
[    2.312602] dw_mmc 10010000.sdio1: DW MMC controller at irq 33,32 bit host data width,32 deep fifo
[    2.316984] debug_vm_pgtable: [debug_vm_pgtable         ]: Validating architecture page table helpers
[    2.326026] mmc_host mmc1: card is non-removable.
[    2.340468] dw-apb-uart 12440000.serial: forbid DMA for kernel console
[    2.491434] mmc_host mmc0: Bus speed (slot 0) = 100000000Hz (slot req 400000Hz, actual 400000HZ div = 125)
[    2.551443] mmc_host mmc1: Bus speed (slot 0) = 100000000Hz (slot req 400000Hz, actual 400000HZ div = 125)
[    2.771949] Waiting for root device /dev/mmcblk0p2...
[    2.811404] dw_mmc 10010000.sdio1: Unexpected interrupt latency

I am now building with https://github.com/starfive-tech/freelight-u-sdk/blob/starfive/conf/sdk_210209_defconfig and that seems to result in better behavior where it does not get stuck in SD card issues as much.

but I do see another issue

[ 1059.839470] Showing busy workqueues and worker pools:
[ 1059.844509] workqueue events: flags=0x0
[ 1059.848329]   pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=5/256 refcnt=6
[ 1059.855104]     in-flight: 50:request_firmware_work_func
[ 1059.860413]     pending: delayed_fput, do_free_init, deferred_probe_work_func, rht_deferred_worker
[ 1059.869397] workqueue events_unbound: flags=0x2
[ 1059.873912]   pwq 4: cpus=0-1 flags=0x4 nice=0 active=2/512 refcnt=5
[ 1059.880250]     in-flight: 43:fsnotify_mark_destroy_workfn BAR(107), 7:fsnotify_connector_destroy_workfn
[ 1059.889726] workqueue events_freezable: flags=0x4
[ 1059.894409]   pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
[ 1059.901184]     pending: mmc_rescan
[ 1059.904685] workqueue events_power_efficient: flags=0x80
[ 1059.909976]   pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=2/256 refcnt=3
[ 1059.916748]     pending: gc_worker, reg_check_chans_work [cfg80211]
[ 1059.923849] workqueue rcu_gp: flags=0x8
[ 1059.927671]   pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
[ 1059.934449]     pending: process_srcu
[ 1059.938121] workqueue mm_percpu_wq: flags=0x8
[ 1059.942462]   pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
[ 1059.949235]     pending: vmstat_update
[ 1059.953005] pool 2: cpus=1 node=0 flags=0x0 nice=0 hung=1054s workers=3 idle: 35 17
[ 1059.960659] pool 4: cpus=0-1 flags=0x4 nice=0 hung=20s workers=4 idle: 119 49
[ 1028.471352] BUG: workqueue lockup - pool cpus=1 node=0 flags=0x0 nice=0 stuck for 1023s!

nvme QID timeouts on upstream branch

I've been testing the 6.3rc based upstream branch on a VisionFive2 (1.2a), with root on NVME.
Disk access regularly stalls for a bit, then I see messages like this one:
[ 101.417700] nvme nvme0: I/O 897 QID 2 timeout, completion polled
then things continue normally for a while.
Same with different nvmes (tried an Intel Optane, and a WD RED).
This does not happen with the 5.15 kernel included in the debian sdcard image.

JH7110_VisionFive2_devel: jh7110.dtsi has wrong U-Boot fwenv data pointer

At https://doc-en.rvspace.org/VisionFive2/Boot_UG/JH7110_SDK/boot_address_allocation.html
I find that in 16M QSPI, I can reach U-Boot fw env block by reading from

0xF0000	0x10000	U-Boot environment variables

Now,

shows that offset is invalid - it was mistyped and contains extra 0. It shall be defined as:

	data@f0000 {
		reg = <0xf0000 0x10000>;
	};

With this, fw_printenv from Linux succeeds, I can see/edit U-Boot config.

My proposal would also be to define whole QSPI flash:

    partitions {
            compatible = "fixed-partitions";
            #address-cells = <0x01>;    
            #size-cells = <0x01>;       

            spl@0 {
                    reg = <0x00 0x20000>;       
            };

            env@f0000 {
                    reg = <0xf0000 0x10000>;    
            };

            uboot@100000 {
                    reg = <0x100000 0x400000>;  
            };

            bootdata@500000 {           
                    reg = <0x500000 0xb00000>;  
            };

            flashall@0 {
                    reg = <0x00 0x1000000>;     
            };
    };

Especially with flashall, I can read/write whole QSPI if desired.

Please review this. Thank you.

Missing Ethernet hardware timestamps on JH7100

I have recently set up a Precision Time Protocol master server on my BeagleV Starlight. According to both kernel logs and ethtool, the NIC available on this board supports hardware timestamping for both RX and TX - but when I try to run ptp4l on it it immediately starts reporting "missing timestamp on transmitted sync" and declares itself as faulty. Is this a bug, or does this NIC not really support this feature?

Hardware: BeagleV Starlight beta board
Kernel: head of the branch visionfive-5.15.y from this repository rebased against vanilla kernel version 5.15.66
Miscellaneous: kernel booted with the option stmmac.chain_mode=1

modpost errors

ERROR: modpost: missing MODULE_LICENSE() in drivers/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.o
ERROR: modpost: "arch_setup_dma_ops" [drivers/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.ko] undefined!

Cross-compile in Debian sid with Error: unrecognized opcode `csrr a5,0xc01'

root@debian:~/riscv# cp arch/riscv/configs/starfive_jh7100_fedora_defconfig .config
root@debian:~/riscv# make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- menuconfig
  HOSTCC  scripts/basic/fixdep
  UPD     scripts/kconfig/mconf-cfg
  HOSTCC  scripts/kconfig/mconf.o
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
  HOSTCC  scripts/kconfig/lxdialog/inputbox.o
  HOSTCC  scripts/kconfig/lxdialog/menubox.o
  HOSTCC  scripts/kconfig/lxdialog/textbox.o
  HOSTCC  scripts/kconfig/lxdialog/util.o
  HOSTCC  scripts/kconfig/lxdialog/yesno.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/menu.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/mconf


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

root@debian:~/riscv# make -j40 ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- bindeb-pkg LOCALVERSION=-starfive
  SYNC    include/config/auto.conf.cmd
  HOSTCC  scripts/kconfig/conf.o
  HOSTLD  scripts/kconfig/conf
  UPD     include/config/kernel.release
sh ./scripts/package/mkdebian
dpkg-buildpackage -r"fakeroot -u" -a$(cat debian/arch)  -b -nc -uc
dpkg-buildpackage: info: source package linux-upstream
dpkg-buildpackage: info: source version 5.17.0-rc1-starfive-1
dpkg-buildpackage: info: source distribution sid
dpkg-buildpackage: info: source changed by root <root@debian>
dpkg-buildpackage: info: host architecture riscv64
 dpkg-source --before-build .
 debian/rules binary
make KERNELRELEASE=5.17.0-rc1-starfive ARCH=riscv 	KBUILD_BUILD_VERSION=1 -f ./Makefile
  WRAP    arch/riscv/include/generated/uapi/asm/errno.h
  WRAP    arch/riscv/include/generated/uapi/asm/fcntl.h
  WRAP    arch/riscv/include/generated/uapi/asm/ioctl.h
  WRAP    arch/riscv/include/generated/uapi/asm/ioctls.h
  WRAP    arch/riscv/include/generated/uapi/asm/ipcbuf.h
  WRAP    arch/riscv/include/generated/uapi/asm/mman.h
  WRAP    arch/riscv/include/generated/uapi/asm/msgbuf.h
  WRAP    arch/riscv/include/generated/uapi/asm/param.h
  WRAP    arch/riscv/include/generated/uapi/asm/poll.h
  WRAP    arch/riscv/include/generated/uapi/asm/posix_types.h
  WRAP    arch/riscv/include/generated/uapi/asm/resource.h
  WRAP    arch/riscv/include/generated/uapi/asm/sembuf.h
  WRAP    arch/riscv/include/generated/uapi/asm/setup.h
  WRAP    arch/riscv/include/generated/uapi/asm/shmbuf.h
  WRAP    arch/riscv/include/generated/uapi/asm/siginfo.h
  WRAP    arch/riscv/include/generated/uapi/asm/signal.h
  WRAP    arch/riscv/include/generated/uapi/asm/socket.h
  WRAP    arch/riscv/include/generated/uapi/asm/sockios.h
  WRAP    arch/riscv/include/generated/uapi/asm/stat.h
  WRAP    arch/riscv/include/generated/uapi/asm/statfs.h
  WRAP    arch/riscv/include/generated/uapi/asm/swab.h
  WRAP    arch/riscv/include/generated/uapi/asm/termbits.h
  WRAP    arch/riscv/include/generated/uapi/asm/termios.h
  WRAP    arch/riscv/include/generated/uapi/asm/types.h
  UPD     include/generated/uapi/linux/version.h
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/srcpos.o
  UPD     include/generated/utsrelease.h
  LEX     scripts/dtc/dtc-lexer.lex.c
  YACC    scripts/dtc/dtc-parser.tab.[ch]
  HOSTCC  scripts/dtc/util.o
  HOSTCC  scripts/dtc/libfdt/fdt.o
  HOSTCC  scripts/dtc/libfdt/fdt_ro.o
  HOSTCC  scripts/dtc/libfdt/fdt_wip.o
  HOSTCC  scripts/dtc/libfdt/fdt_sw.o
  HOSTCC  scripts/dtc/libfdt/fdt_rw.o
  HOSTCC  scripts/dtc/libfdt/fdt_empty_tree.o
  HOSTCC  scripts/dtc/libfdt/fdt_strerror.o
  HOSTCC  scripts/dtc/libfdt/fdt_overlay.o
  HOSTCC  scripts/dtc/libfdt/fdt_addresses.o
  WRAP    arch/riscv/include/generated/asm/early_ioremap.h
  WRAP    arch/riscv/include/generated/asm/flat.h
  HOSTCC  scripts/dtc/fdtoverlay.o
  WRAP    arch/riscv/include/generated/asm/user.h
  WRAP    arch/riscv/include/generated/asm/vmlinux.lds.h
  WRAP    arch/riscv/include/generated/asm/kvm_para.h
  WRAP    arch/riscv/include/generated/asm/checksum.h
  WRAP    arch/riscv/include/generated/asm/compat.h
  WRAP    arch/riscv/include/generated/asm/bugs.h
  WRAP    arch/riscv/include/generated/asm/device.h
  WRAP    arch/riscv/include/generated/asm/div64.h
  WRAP    arch/riscv/include/generated/asm/dma-mapping.h
  WRAP    arch/riscv/include/generated/asm/dma.h
  WRAP    arch/riscv/include/generated/asm/emergency-restart.h
  WRAP    arch/riscv/include/generated/asm/exec.h
  WRAP    arch/riscv/include/generated/asm/fb.h
  WRAP    arch/riscv/include/generated/asm/hardirq.h
  WRAP    arch/riscv/include/generated/asm/hw_irq.h
  WRAP    arch/riscv/include/generated/asm/irq_regs.h
  WRAP    arch/riscv/include/generated/asm/kmap_size.h
  WRAP    arch/riscv/include/generated/asm/local.h
  WRAP    arch/riscv/include/generated/asm/local64.h
  WRAP    arch/riscv/include/generated/asm/msi.h
  WRAP    arch/riscv/include/generated/asm/percpu.h
  WRAP    arch/riscv/include/generated/asm/preempt.h
  WRAP    arch/riscv/include/generated/asm/rwonce.h
  WRAP    arch/riscv/include/generated/asm/serial.h
  WRAP    arch/riscv/include/generated/asm/shmparam.h
  WRAP    arch/riscv/include/generated/asm/simd.h
  WRAP    arch/riscv/include/generated/asm/softirq_stack.h
  WRAP    arch/riscv/include/generated/asm/topology.h
  WRAP    arch/riscv/include/generated/asm/trace_clock.h
  WRAP    arch/riscv/include/generated/asm/unaligned.h
  WRAP    arch/riscv/include/generated/asm/vga.h
  WRAP    arch/riscv/include/generated/asm/xor.h
  HOSTCC  scripts/unifdef
  DESCEND bpf/resolve_btfids
  MKDIR     /root/riscv/tools/bpf/resolve_btfids/libbpf/
  MKDIR     /root/riscv/tools/bpf/resolve_btfids//libsubcmd
  HOSTCC  /root/riscv/tools/bpf/resolve_btfids/fixdep.o
  GEN     /root/riscv/tools/bpf/resolve_btfids/libbpf/bpf_helper_defs.h
  INSTALL /root/riscv/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf.h
  INSTALL /root/riscv/tools/bpf/resolve_btfids/libbpf//include/bpf/libbpf.h
  INSTALL /root/riscv/tools/bpf/resolve_btfids/libbpf//include/bpf/btf.h
  INSTALL /root/riscv/tools/bpf/resolve_btfids/libbpf//include/bpf/libbpf_common.h
  INSTALL /root/riscv/tools/bpf/resolve_btfids/libbpf//include/bpf/libbpf_legacy.h
  INSTALL /root/riscv/tools/bpf/resolve_btfids/libbpf//include/bpf/xsk.h
  INSTALL /root/riscv/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf_helpers.h
  INSTALL /root/riscv/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf_tracing.h
  INSTALL /root/riscv/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf_endian.h
  INSTALL /root/riscv/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf_core_read.h
  INSTALL /root/riscv/tools/bpf/resolve_btfids/libbpf//include/bpf/skel_internal.h
  INSTALL /root/riscv/tools/bpf/resolve_btfids/libbpf//include/bpf/libbpf_version.h
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  /root/riscv/tools/bpf/resolve_btfids/fixdep-in.o
  LINK    /root/riscv/tools/bpf/resolve_btfids/fixdep
  CC      /root/riscv/tools/bpf/resolve_btfids/libsubcmd/exec-cmd.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libsubcmd/help.o
  INSTALL /root/riscv/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf_helper_defs.h
  CC      /root/riscv/tools/bpf/resolve_btfids/libsubcmd/pager.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libsubcmd/parse-options.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libsubcmd/run-command.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libsubcmd/sigchain.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libsubcmd/subcmd-config.o
  MKDIR   /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/
  MKDIR   /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/
  MKDIR   /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/
  MKDIR   /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/
  CC      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/bpf.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/nlattr.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf_errno.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/btf.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/str_error.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/netlink.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/bpf_prog_linfo.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf_probes.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/xsk.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/hashmap.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/btf_dump.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/ringbuf.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/strset.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/linker.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/gen_loader.o
  CC      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/relo_core.o
  HOSTLD  scripts/dtc/fdtoverlay
  HDRINST usr/include/asm-generic/errno-base.h
  HDRINST usr/include/asm-generic/statfs.h
  HDRINST usr/include/asm-generic/signal.h
  HDRINST usr/include/asm-generic/auxvec.h
  HDRINST usr/include/asm-generic/stat.h
  HDRINST usr/include/asm-generic/int-ll64.h
  HDRINST usr/include/asm-generic/posix_types.h
  HDRINST usr/include/asm-generic/fcntl.h
  HDRINST usr/include/asm-generic/termbits.h
  HDRINST usr/include/asm-generic/mman-common.h
  HDRINST usr/include/asm-generic/hugetlb_encode.h
  HDRINST usr/include/asm-generic/socket.h
  HDRINST usr/include/asm-generic/poll.h
  HDRINST usr/include/asm-generic/ioctls.h
  HDRINST usr/include/asm-generic/setup.h
  HDRINST usr/include/asm-generic/siginfo.h
  HDRINST usr/include/asm-generic/termios.h
  HDRINST usr/include/asm-generic/ipcbuf.h
  HDRINST usr/include/asm-generic/msgbuf.h
  HDRINST usr/include/asm-generic/ucontext.h
  HDRINST usr/include/asm-generic/ioctl.h
  HDRINST usr/include/asm-generic/signal-defs.h
  HDRINST usr/include/asm-generic/resource.h
  HDRINST usr/include/asm-generic/bitsperlong.h
  HDRINST usr/include/asm-generic/errno.h
  HDRINST usr/include/asm-generic/types.h
  HDRINST usr/include/asm-generic/unistd.h
  HDRINST usr/include/asm-generic/sockios.h
  HDRINST usr/include/asm-generic/param.h
  HDRINST usr/include/asm-generic/kvm_para.h
  HDRINST usr/include/asm-generic/mman.h
  HDRINST usr/include/asm-generic/swab.h
  HDRINST usr/include/asm-generic/int-l64.h
  HDRINST usr/include/asm-generic/bpf_perf_event.h
  HDRINST usr/include/asm-generic/sembuf.h
  HDRINST usr/include/asm-generic/shmbuf.h
  HDRINST usr/include/drm/panfrost_drm.h
  HDRINST usr/include/drm/msm_drm.h
  HDRINST usr/include/drm/vgem_drm.h
  HDRINST usr/include/drm/drm_sarea.h
  HDRINST usr/include/drm/amdgpu_drm.h
  HDRINST usr/include/drm/v3d_drm.h
  HDRINST usr/include/drm/etnaviv_drm.h
  HDRINST usr/include/drm/drm.h
  HDRINST usr/include/drm/savage_drm.h
  HDRINST usr/include/drm/drm_fourcc.h
  HDRINST usr/include/drm/qxl_drm.h
  HDRINST usr/include/drm/armada_drm.h
  HDRINST usr/include/drm/virtgpu_drm.h
  HDRINST usr/include/drm/sis_drm.h
  HDRINST usr/include/drm/vmwgfx_drm.h
  HDRINST usr/include/drm/i915_drm.h
  HDRINST usr/include/drm/vc4_drm.h
  HDRINST usr/include/drm/tegra_drm.h
  HDRINST usr/include/drm/radeon_drm.h
  HDRINST usr/include/drm/drm_mode.h
  HDRINST usr/include/drm/via_drm.h
  HDRINST usr/include/drm/r128_drm.h
  HDRINST usr/include/drm/nouveau_drm.h
  HDRINST usr/include/drm/exynos_drm.h
  HDRINST usr/include/drm/lima_drm.h
  HDRINST usr/include/drm/mga_drm.h
  HDRINST usr/include/drm/i810_drm.h
  HDRINST usr/include/drm/omap_drm.h
  HDRINST usr/include/linux/vm_sockets.h
  HDRINST usr/include/linux/hpet.h
  HDRINST usr/include/linux/netfilter_decnet.h
  HDRINST usr/include/linux/parport.h
  HDRINST usr/include/linux/rose.h
  HDRINST usr/include/linux/atmdev.h
  HDRINST usr/include/linux/if_bridge.h
  HDRINST usr/include/linux/virtio_pci.h
  HDRINST usr/include/linux/in.h
  HDRINST usr/include/linux/mount.h
  HDRINST usr/include/linux/virtio_scmi.h
  HDRINST usr/include/linux/virtio_balloon.h
  HDRINST usr/include/linux/aspeed-lpc-ctrl.h
  HDRINST usr/include/linux/uhid.h
  HDRINST usr/include/linux/atm.h
  HDRINST usr/include/linux/tipc_config.h
  HDRINST usr/include/linux/if_x25.h
  HDRINST usr/include/linux/virtio_types.h
  HDRINST usr/include/linux/usbip.h
  HDRINST usr/include/linux/if_tunnel.h
  HDRINST usr/include/linux/utime.h
  HDRINST usr/include/linux/ipv6.h
  HDRINST usr/include/linux/openvswitch.h
  HDRINST usr/include/linux/tee.h
  HDRINST usr/include/linux/acct.h
  HDRINST usr/include/linux/virtio_net.h
  HDRINST usr/include/linux/sync_file.h
  HDRINST usr/include/linux/atm_tcp.h
  HDRINST usr/include/linux/nubus.h
  HDRINST usr/include/linux/binfmts.h
  HDRINST usr/include/linux/uinput.h
  HDRINST usr/include/linux/affs_hardblocks.h
  HDRINST usr/include/linux/if_arcnet.h
  HDRINST usr/include/linux/qrtr.h
  HDRINST usr/include/linux/lwtunnel.h
  HDRINST usr/include/linux/signal.h
  HDRINST usr/include/linux/smc.h
  HDRINST usr/include/linux/map_to_7segment.h
  HDRINST usr/include/linux/dlm_plock.h
  HDRINST usr/include/linux/time.h
  HDRINST usr/include/linux/nitro_enclaves.h
  HDRINST usr/include/linux/efs_fs_sb.h
  HDRINST usr/include/linux/kcov.h
  HDRINST usr/include/linux/xilinx-v4l2-controls.h
  HDRINST usr/include/linux/rtnetlink.h
  HDRINST usr/include/linux/fs.h
  HDRINST usr/include/linux/zorro_ids.h
  HDRINST usr/include/linux/oom.h
  HDRINST usr/include/linux/tcp_metrics.h
  HDRINST usr/include/linux/firewire-cdev.h
  HDRINST usr/include/linux/atmmpc.h
  HDRINST usr/include/linux/virtio_i2c.h
  HDRINST usr/include/linux/ipmi_bmc.h
  HDRINST usr/include/linux/fsmap.h
  HDRINST usr/include/linux/if_fc.h
  HDRINST usr/include/linux/v4l2-mediabus.h
  HDRINST usr/include/linux/netfilter_ipv6/ip6t_LOG.h
  HDRINST usr/include/linux/netfilter_ipv6/ip6t_REJECT.h
  HDRINST usr/include/linux/netfilter_ipv6/ip6t_frag.h
  HDRINST usr/include/linux/netfilter_ipv6/ip6t_HL.h
  HDRINST usr/include/linux/netfilter_ipv6/ip6t_NPT.h
  HDRINST usr/include/linux/netfilter_ipv6/ip6_tables.h
  HDRINST usr/include/linux/netfilter_ipv6/ip6t_rt.h
  HDRINST usr/include/linux/netfilter_ipv6/ip6t_opts.h
  HDRINST usr/include/linux/netfilter_ipv6/ip6t_hl.h
  HDRINST usr/include/linux/netfilter_ipv6/ip6t_mh.h
  HDRINST usr/include/linux/netfilter_ipv6/ip6t_ipv6header.h
  HDRINST usr/include/linux/netfilter_ipv6/ip6t_srh.h
  HDRINST usr/include/linux/netfilter_ipv6/ip6t_ah.h
  HDRINST usr/include/linux/kcmp.h
  HDRINST usr/include/linux/auxvec.h
  HDRINST usr/include/linux/cdrom.h
  HDRINST usr/include/linux/nfs_fs.h
  HDRINST usr/include/linux/personality.h
  HDRINST usr/include/linux/fsl_mc.h
  HDRINST usr/include/linux/fsi.h
  HDRINST usr/include/linux/rpmsg.h
  HDRINST usr/include/linux/tipc.h
  HDRINST usr/include/linux/mii.h
  HDRINST usr/include/linux/stat.h
  HDRINST usr/include/linux/if_phonet.h
  HDRINST usr/include/linux/membarrier.h
  HDRINST usr/include/linux/v4l2-common.h
  HDRINST usr/include/linux/bsg.h
  HDRINST usr/include/linux/watchdog.h
  HDRINST usr/include/linux/target_core_user.h
  HDRINST usr/include/linux/xattr.h
  HDRINST usr/include/linux/fuse.h
  HDRINST usr/include/linux/batman_adv.h
  HDRINST usr/include/linux/netdevice.h
  HDRINST usr/include/linux/net_dropmon.h
  HDRINST usr/include/linux/devlink.h
  HDRINST usr/include/linux/capability.h
  HDRINST usr/include/linux/virtio_config.h
  HDRINST usr/include/linux/seg6.h
  HDRINST usr/include/linux/ip_vs.h
  HDRINST usr/include/linux/fanotify.h
  HDRINST usr/include/linux/tipc_netlink.h
  HDRINST usr/include/linux/userfaultfd.h
  HDRINST usr/include/linux/if_ether.h
  HDRINST usr/include/linux/suspend_ioctls.h
  HDRINST usr/include/linux/unix_diag.h
  HDRINST usr/include/linux/ife.h
  HDRINST usr/include/linux/utsname.h
  HDRINST usr/include/linux/android/binder.h
  HDRINST usr/include/linux/ioprio.h
  HDRINST usr/include/linux/dm-log-userspace.h
  HDRINST usr/include/linux/android/binderfs.h
  HDRINST usr/include/linux/nl80211-vnd-intel.h
  HDRINST usr/include/linux/bpqether.h
  HDRINST usr/include/linux/aio_abi.h
  HDRINST usr/include/linux/kexec.h
  HDRINST usr/include/linux/gpio.h
  HDRINST usr/include/linux/scif_ioctl.h
  HDRINST usr/include/linux/dlmconstants.h
  HDRINST usr/include/linux/llc.h
  HDRINST usr/include/linux/fscrypt.h
  HDRINST usr/include/linux/fou.h
  HDRINST usr/include/linux/virtio_pmem.h
  HDRINST usr/include/linux/netfilter/nfnetlink.h
  HDRINST usr/include/linux/netfilter/xt_IDLETIMER.h
  HDRINST usr/include/linux/netfilter/xt_mark.h
  HDRINST usr/include/linux/netfilter/xt_LOG.h
  HDRINST usr/include/linux/netfilter/ipset/ip_set.h
  HDRINST usr/include/linux/netfilter/ipset/ip_set_hash.h
  HDRINST usr/include/linux/netfilter/ipset/ip_set_bitmap.h
  HDRINST usr/include/linux/netfilter/ipset/ip_set_list.h
  HDRINST usr/include/linux/netfilter/xt_AUDIT.h
  HDRINST usr/include/linux/netfilter/xt_string.h
  HDRINST usr/include/linux/netfilter/xt_RATEEST.h
  HDRINST usr/include/linux/netfilter/xt_connlabel.h
  HDRINST usr/include/linux/netfilter/xt_sctp.h
  HDRINST usr/include/linux/netfilter/xt_CT.h
  HDRINST usr/include/linux/netfilter/xt_tcpudp.h
  HDRINST usr/include/linux/netfilter/xt_CLASSIFY.h
  HDRINST usr/include/linux/netfilter/xt_state.h
  HDRINST usr/include/linux/netfilter/xt_owner.h
  HDRINST usr/include/linux/netfilter/xt_dscp.h
  HDRINST usr/include/linux/netfilter/xt_TCPOPTSTRIP.h
  HDRINST usr/include/linux/netfilter/xt_statistic.h
  HDRINST usr/include/linux/netfilter/nf_conntrack_common.h
  HDRINST usr/include/linux/netfilter/xt_ecn.h
  HDRINST usr/include/linux/netfilter/xt_esp.h
  HDRINST usr/include/linux/netfilter/xt_nfacct.h
  HDRINST usr/include/linux/netfilter/xt_DSCP.h
  HDRINST usr/include/linux/netfilter/nf_synproxy.h
  HDRINST usr/include/linux/netfilter/xt_socket.h
  HDRINST usr/include/linux/netfilter/xt_addrtype.h
  HDRINST usr/include/linux/netfilter/xt_MARK.h
  HDRINST usr/include/linux/netfilter/xt_mac.h
  HDRINST usr/include/linux/netfilter/xt_TPROXY.h
  HDRINST usr/include/linux/netfilter/xt_TCPMSS.h
  HDRINST usr/include/linux/netfilter/xt_ipcomp.h
  HDRINST usr/include/linux/netfilter/nf_conntrack_sctp.h
  HDRINST usr/include/linux/netfilter/xt_policy.h
  HDRINST usr/include/linux/netfilter/nfnetlink_cthelper.h
  HDRINST usr/include/linux/netfilter/xt_iprange.h
  HDRINST usr/include/linux/netfilter/xt_ipvs.h
  HDRINST usr/include/linux/netfilter/nf_log.h
  HDRINST usr/include/linux/netfilter/xt_SECMARK.h
  HDRINST usr/include/linux/netfilter/xt_CONNMARK.h
  HDRINST usr/include/linux/netfilter/nf_nat.h
  HDRINST usr/include/linux/netfilter/xt_rateest.h
  HDRINST usr/include/linux/netfilter/nfnetlink_log.h
  HDRINST usr/include/linux/netfilter/xt_CHECKSUM.h
  HDRINST usr/include/linux/netfilter/nfnetlink_conntrack.h
  HDRINST usr/include/linux/netfilter/xt_multiport.h
  HDRINST usr/include/linux/netfilter/xt_limit.h
  HDRINST usr/include/linux/netfilter/xt_LED.h
  HDRINST usr/include/linux/netfilter/xt_cgroup.h
  HDRINST usr/include/linux/netfilter/xt_comment.h
  HDRINST usr/include/linux/netfilter/nf_tables_compat.h
  HDRINST usr/include/linux/netfilter/xt_tcpmss.h
  HDRINST usr/include/linux/netfilter/xt_time.h
  HDRINST usr/include/linux/netfilter/xt_realm.h
  HDRINST usr/include/linux/netfilter/xt_set.h
  HDRINST usr/include/linux/netfilter/xt_l2tp.h
  HDRINST usr/include/linux/netfilter/nf_conntrack_tcp.h
  HDRINST usr/include/linux/netfilter/nfnetlink_cttimeout.h
  HDRINST usr/include/linux/netfilter/xt_cpu.h
  HDRINST usr/include/linux/netfilter/xt_helper.h
  HDRINST usr/include/linux/netfilter/xt_SYNPROXY.h
  HDRINST usr/include/linux/netfilter/nfnetlink_hook.h
  HDRINST usr/include/linux/netfilter/xt_connbytes.h
  HDRINST usr/include/linux/netfilter/xt_NFLOG.h
  HDRINST usr/include/linux/netfilter/xt_cluster.h
  HDRINST usr/include/linux/netfilter/xt_conntrack.h
  HDRINST usr/include/linux/netfilter/xt_osf.h
  HDRINST usr/include/linux/netfilter/nfnetlink_osf.h
  HDRINST usr/include/linux/netfilter/xt_length.h
  HDRINST usr/include/linux/netfilter/xt_pkttype.h
  HDRINST usr/include/linux/netfilter/nfnetlink_acct.h
  HDRINST usr/include/linux/netfilter/xt_HMARK.h
  HDRINST usr/include/linux/netfilter/nf_conntrack_tuple_common.h
  HDRINST usr/include/linux/netfilter/nfnetlink_compat.h
  HDRINST usr/include/linux/netfilter/xt_CONNSECMARK.h
  HDRINST usr/include/linux/netfilter/nfnetlink_queue.h
  HDRINST usr/include/linux/netfilter/x_tables.h
  HDRINST usr/include/linux/netfilter/xt_hashlimit.h
  HDRINST usr/include/linux/netfilter/xt_bpf.h
  HDRINST usr/include/linux/netfilter/nf_conntrack_ftp.h
  HDRINST usr/include/linux/netfilter/xt_NFQUEUE.h
  HDRINST usr/include/linux/netfilter/nf_tables.h
  HDRINST usr/include/linux/netfilter/xt_dccp.h
  HDRINST usr/include/linux/netfilter/xt_connlimit.h
  HDRINST usr/include/linux/netfilter/xt_connmark.h
  HDRINST usr/include/linux/netfilter/xt_u32.h
  HDRINST usr/include/linux/netfilter/xt_quota.h
  HDRINST usr/include/linux/netfilter/xt_TEE.h
  HDRINST usr/include/linux/netfilter/xt_recent.h
  HDRINST usr/include/linux/netfilter/xt_devgroup.h
  HDRINST usr/include/linux/netfilter/xt_physdev.h
  HDRINST usr/include/linux/atm_he.h
  HDRINST usr/include/linux/netfilter/xt_rpfilter.h
  HDRINST usr/include/linux/if_vlan.h
  HDRINST usr/include/linux/reiserfs_fs.h
  HDRINST usr/include/linux/map_to_14segment.h
  HDRINST usr/include/linux/am437x-vpfe.h
  HDRINST usr/include/linux/nfs4.h
  HDRINST usr/include/linux/mei.h
  HDRINST usr/include/linux/seg6_hmac.h
  HDRINST usr/include/linux/virtio_ring.h
  HDRINST usr/include/linux/iio/buffer.h
  HDRINST usr/include/linux/nexthop.h
  HDRINST usr/include/linux/iio/events.h
  HDRINST usr/include/linux/iio/types.h
  HDRINST usr/include/linux/rio_cm_cdev.h
  HDRINST usr/include/linux/elf-fdpic.h
  HDRINST usr/include/linux/posix_types.h
  HDRINST usr/include/linux/ipc.h
  HDRINST usr/include/linux/fcntl.h
  HDRINST usr/include/linux/virtio_mmio.h
  HDRINST usr/include/linux/virtio_9p.h
  HDRINST usr/include/linux/atmbr2684.h
  HDRINST usr/include/linux/netfilter_bridge/ebt_vlan.h
  HDRINST usr/include/linux/netfilter_bridge/ebt_mark_t.h
  HDRINST usr/include/linux/netfilter_bridge/ebt_arpreply.h
  HDRINST usr/include/linux/netfilter_bridge/ebt_redirect.h
  HDRINST usr/include/linux/netfilter_bridge/ebt_nflog.h
  HDRINST usr/include/linux/netfilter_bridge/ebt_nat.h
  HDRINST usr/include/linux/netfilter_bridge/ebt_stp.h
  HDRINST usr/include/linux/netfilter_bridge/ebt_mark_m.h
  HDRINST usr/include/linux/netfilter_bridge/ebtables.h
  HDRINST usr/include/linux/netfilter_bridge/ebt_ip.h
  HDRINST usr/include/linux/netfilter_bridge/ebt_limit.h
  HDRINST usr/include/linux/netfilter_bridge/ebt_arp.h
  HDRINST usr/include/linux/netfilter_bridge/ebt_among.h
  HDRINST usr/include/linux/netfilter_bridge/ebt_802_3.h
  HDRINST usr/include/linux/netfilter_bridge/ebt_pkttype.h
  HDRINST usr/include/linux/netfilter_bridge/ebt_ip6.h
  HDRINST usr/include/linux/netfilter_bridge/ebt_log.h
  HDRINST usr/include/linux/rio_mport_cdev.h
  HDRINST usr/include/linux/vhost.h
  HDRINST usr/include/linux/rxrpc.h
  HDRINST usr/include/linux/raid/md_u.h
  HDRINST usr/include/linux/raid/md_p.h
  HDRINST usr/include/linux/hyperv.h
  HDRINST usr/include/linux/tc_ematch/tc_em_cmp.h
  HDRINST usr/include/linux/tc_ematch/tc_em_nbyte.h
  HDRINST usr/include/linux/tc_ematch/tc_em_text.h
  HDRINST usr/include/linux/tc_ematch/tc_em_meta.h
  HDRINST usr/include/linux/tc_ematch/tc_em_ipt.h
  HDRINST usr/include/linux/atmppp.h
  HDRINST usr/include/linux/route.h
  HOSTLD  scripts/dtc/dtc
  HDRINST usr/include/linux/atmarp.h
  HDRINST usr/include/linux/vfio.h
  HDRINST usr/include/linux/udf_fs_i.h
  HDRINST usr/include/linux/if_cablemodem.h
  HDRINST usr/include/linux/bpfilter.h
  HDRINST usr/include/linux/nbd-netlink.h
  HDRINST usr/include/linux/eventpoll.h
  HDRINST usr/include/linux/ipsec.h
  HDRINST usr/include/linux/apm_bios.h
  HDRINST usr/include/linux/memfd.h
  HDRINST usr/include/linux/ppp-ioctl.h
  HDRINST usr/include/linux/nfs_idmap.h
  HDRINST usr/include/linux/um_timetravel.h
  HDRINST usr/include/linux/synclink.h
  HDRINST usr/include/linux/virtio_rng.h
  HDRINST usr/include/linux/scc.h
  HDRINST usr/include/linux/sed-opal.h
  HDRINST usr/include/linux/netconf.h
  HDRINST usr/include/linux/seccomp.h
  HDRINST usr/include/linux/phantom.h
  HDRINST usr/include/linux/ila.h
  HDRINST usr/include/linux/dma-heap.h
  HDRINST usr/include/linux/cm4000_cs.h
  HDRINST usr/include/linux/tcp.h
  HDRINST usr/include/linux/smiapp.h
  HDRINST usr/include/linux/can/gw.h
  HDRINST usr/include/linux/can/raw.h
  LD      /root/riscv/tools/bpf/resolve_btfids/libsubcmd/libsubcmd-in.o
  HDRINST usr/include/linux/can/netlink.h
  HDRINST usr/include/linux/can/isotp.h
  HDRINST usr/include/linux/can/error.h
  HDRINST usr/include/linux/can/vxcan.h
  HDRINST usr/include/linux/can/bcm.h
  HDRINST usr/include/linux/can/j1939.h
  HDRINST usr/include/linux/vdpa.h
  HDRINST usr/include/linux/pfrut.h
  HDRINST usr/include/linux/toshiba.h
  HDRINST usr/include/linux/x25.h
  HDRINST usr/include/linux/matroxfb.h
  HDRINST usr/include/linux/sctp.h
  HDRINST usr/include/linux/kernel-page-flags.h
  HDRINST usr/include/linux/atm_zatm.h
  HDRINST usr/include/linux/ioam6_iptunnel.h
  HDRINST usr/include/linux/net.h
  HDRINST usr/include/linux/posix_acl_xattr.h
  HDRINST usr/include/linux/netlink.h
  HDRINST usr/include/linux/rfkill.h
  HDRINST usr/include/linux/io_uring.h
  HDRINST usr/include/linux/ptp_clock.h
  HDRINST usr/include/linux/igmp.h
  HDRINST usr/include/linux/misc/bcm_vk.h
  HDRINST usr/include/linux/if_packet.h
  HDRINST usr/include/linux/netrom.h
  HDRINST usr/include/linux/nfsd/stats.h
  HDRINST usr/include/linux/nfsd/cld.h
  HDRINST usr/include/linux/nfsd/debug.h
  HDRINST usr/include/linux/nfsd/export.h
  HDRINST usr/include/linux/udp.h
  HDRINST usr/include/linux/mrp_bridge.h
  HDRINST usr/include/linux/counter.h
  HDRINST usr/include/linux/neighbour.h
  HDRINST usr/include/linux/virtio_iommu.h
  HDRINST usr/include/linux/wireless.h
  AR      /root/riscv/tools/bpf/resolve_btfids/libsubcmd/libsubcmd.a
  HDRINST usr/include/linux/wireguard.h
  HDRINST usr/include/linux/timex.h
  HDRINST usr/include/linux/socket.h
  HDRINST usr/include/linux/rkisp1-config.h
  HDRINST usr/include/linux/smc_diag.h
  HDRINST usr/include/linux/sched/types.h
  HDRINST usr/include/linux/if.h
  HDRINST usr/include/linux/ivtvfb.h
  HDRINST usr/include/linux/gen_stats.h
  HDRINST usr/include/linux/rseq.h
  HDRINST usr/include/linux/mptcp.h
  HDRINST usr/include/linux/switchtec_ioctl.h
  HDRINST usr/include/linux/vtpm_proxy.h
  HDRINST usr/include/linux/meye.h
  HDRINST usr/include/linux/cfm_bridge.h
  HDRINST usr/include/linux/poll.h
  HDRINST usr/include/linux/firewire-constants.h
  HDRINST usr/include/linux/netfilter_arp.h
  HDRINST usr/include/linux/dlm.h
  HDRINST usr/include/linux/atmsvc.h
  HDRINST usr/include/linux/fdreg.h
  HDRINST usr/include/linux/isst_if.h
  HDRINST usr/include/linux/ndctl.h
  HDRINST usr/include/linux/nvram.h
  HDRINST usr/include/linux/ip6_tunnel.h
  HDRINST usr/include/linux/atmapi.h
  HDRINST usr/include/linux/edd.h
  HDRINST usr/include/linux/virtio_input.h
  HDRINST usr/include/linux/const.h
  HDRINST usr/include/linux/ncsi.h
  HDRINST usr/include/linux/pps.h
  HDRINST usr/include/linux/cec-funcs.h
  HDRINST usr/include/linux/ipmi.h
  HDRINST usr/include/linux/mpls.h
  HOSTCC  scripts/kallsyms
  HDRINST usr/include/linux/mroute6.h
  HDRINST usr/include/linux/rpmsg_types.h
  HOSTCC  scripts/sorttable
  HDRINST usr/include/linux/pktcdvd.h
  HDRINST usr/include/linux/kfd_ioctl.h
  HOSTCC  scripts/asn1_compiler
  HDRINST usr/include/linux/virtio_pcidev.h
  HDRINST usr/include/linux/icmpv6.h
  HDRINST usr/include/linux/nsfs.h
  HDRINST usr/include/linux/cycx_cfm.h
  HDRINST usr/include/linux/time_types.h
  HDRINST usr/include/linux/kernelcapi.h
  HDRINST usr/include/linux/pg.h
  HDRINST usr/include/linux/radeonfb.h
  HDRINST usr/include/linux/hdlc.h
  HDRINST usr/include/linux/fsverity.h
  HDRINST usr/include/linux/mctp.h
  HDRINST usr/include/linux/cec.h
  HDRINST usr/include/linux/tc_act/tc_gate.h
  HDRINST usr/include/linux/tc_act/tc_ct.h
  HDRINST usr/include/linux/tc_act/tc_sample.h
  HDRINST usr/include/linux/tc_act/tc_nat.h
  HDRINST usr/include/linux/tc_act/tc_defact.h
  HDRINST usr/include/linux/tc_act/tc_vlan.h
  HDRINST usr/include/linux/tc_act/tc_mirred.h
  HOSTCC  scripts/sign-file
  HOSTCC  scripts/insert-sys-cert
  HDRINST usr/include/linux/tc_act/tc_ipt.h
  HDRINST usr/include/linux/tc_act/tc_bpf.h
  HDRINST usr/include/linux/tc_act/tc_skbmod.h
  HDRINST usr/include/linux/tc_act/tc_connmark.h
  DTC     arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dtb
  HDRINST usr/include/linux/tc_act/tc_skbedit.h
  HDRINST usr/include/linux/tc_act/tc_pedit.h
  DTC     arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dtb
  HDRINST usr/include/linux/tc_act/tc_ctinfo.h
  DTC     arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight-a1.dtb
  HDRINST usr/include/linux/tc_act/tc_csum.h
  HDRINST usr/include/linux/tc_act/tc_gact.h
  DTC     arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dtb
  HDRINST usr/include/linux/tc_act/tc_ife.h
  DTC     arch/riscv/boot/dts/starfive/jh7100-starfive-visionfive-v1.dtb
  HDRINST usr/include/linux/tc_act/tc_mpls.h
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/selinux/mdp/mdp
  HDRINST usr/include/linux/tc_act/tc_tunnel_key.h
  HDRINST usr/include/linux/atmlec.h
  HDRINST usr/include/linux/thermal.h
  HDRINST usr/include/linux/dcbnl.h
  HDRINST usr/include/linux/v4l2-controls.h
  HDRINST usr/include/linux/userio.h
  HDRINST usr/include/linux/timerfd.h
  HDRINST usr/include/linux/nilfs2_api.h
  HDRINST usr/include/linux/hsi/hsi_char.h
  HDRINST usr/include/linux/hsi/cs-protocol.h
  HDRINST usr/include/linux/atmsap.h
  HDRINST usr/include/linux/termios.h
  HDRINST usr/include/linux/if_alg.h
  HDRINST usr/include/linux/futex.h
  HDRINST usr/include/linux/selinux_netlink.h
  HDRINST usr/include/linux/hw_breakpoint.h
  HDRINST usr/include/linux/acrn.h
  HDRINST usr/include/linux/arcfb.h
  HDRINST usr/include/linux/seg6_local.h
  HDRINST usr/include/linux/netlink_diag.h
  HDRINST usr/include/linux/vfio_ccw.h
  HDRINST usr/include/linux/nfs_mount.h
  HDRINST usr/include/linux/gfs2_ondisk.h
  HDRINST usr/include/linux/seg6_iptunnel.h
  HDRINST usr/include/linux/nvme_ioctl.h
  HDRINST usr/include/linux/screen_info.h
  HDRINST usr/include/linux/lirc.h
  HDRINST usr/include/linux/psp-sev.h
  HDRINST usr/include/linux/perf_event.h
  HDRINST usr/include/linux/bt-bmc.h
  HDRINST usr/include/linux/rpl.h
  HDRINST usr/include/linux/v4l2-subdev.h
  HDRINST usr/include/linux/quota.h
  HDRINST usr/include/linux/uio.h
  HDRINST usr/include/linux/byteorder/big_endian.h
  HDRINST usr/include/linux/byteorder/little_endian.h
  HDRINST usr/include/linux/ioam6_genl.h
  HDRINST usr/include/linux/jffs2.h
  HDRINST usr/include/linux/kdev_t.h
  HDRINST usr/include/linux/chio.h
  HDRINST usr/include/linux/patchkey.h
  HDRINST usr/include/linux/rtc.h
  HDRINST usr/include/linux/kcm.h
  HDRINST usr/include/linux/errqueue.h
  HDRINST usr/include/linux/wmi.h
  HDRINST usr/include/linux/cxl_mem.h
  HDRINST usr/include/linux/cifs/cifs_netlink.h
  HDRINST usr/include/linux/cifs/cifs_mount.h
  HDRINST usr/include/linux/dlm_netlink.h
  HDRINST usr/include/linux/virtio_blk.h
  HDRINST usr/include/linux/mroute.h
  HDRINST usr/include/linux/netfilter_ipv4/ipt_ttl.h
  HDRINST usr/include/linux/netfilter_ipv4/ipt_ecn.h
  HDRINST usr/include/linux/netfilter_ipv4/ipt_TTL.h
  HDRINST usr/include/linux/netfilter_ipv4/ipt_LOG.h
  HDRINST usr/include/linux/netfilter_ipv4/ipt_ah.h
  HDRINST usr/include/linux/netfilter_ipv4/ip_tables.h
  HDRINST usr/include/linux/netfilter_ipv4/ipt_CLUSTERIP.h
  HDRINST usr/include/linux/netfilter_ipv4/ipt_REJECT.h
  HDRINST usr/include/linux/reboot.h
  HDRINST usr/include/linux/netfilter_ipv4/ipt_ECN.h
  HDRINST usr/include/linux/pfkeyv2.h
  HDRINST usr/include/linux/nfsacl.h
  HDRINST usr/include/linux/xdp_diag.h
  HDRINST usr/include/linux/reiserfs_xattr.h
  HDRINST usr/include/linux/serio.h
  HDRINST usr/include/linux/dlm_device.h
  HDRINST usr/include/linux/random.h
  HDRINST usr/include/linux/psample.h
  HDRINST usr/include/linux/surface_aggregator/cdev.h
  HDRINST usr/include/linux/net_tstamp.h
  HDRINST usr/include/linux/surface_aggregator/dtx.h
  HDRINST usr/include/linux/ppp-comp.h
  HDRINST usr/include/linux/gsmmux.h
  HDRINST usr/include/linux/if_tun.h
  HDRINST usr/include/linux/sonet.h
  HDRINST usr/include/linux/sound.h
  HDRINST usr/include/linux/pkt_cls.h
  HDRINST usr/include/linux/netfilter_arp/arp_tables.h
  HDRINST usr/include/linux/netfilter_arp/arpt_mangle.h
  HDRINST usr/include/linux/if_pppol2tp.h
  HDRINST usr/include/linux/qemu_fw_cfg.h
  HDRINST usr/include/linux/in_route.h
  HDRINST usr/include/linux/net_namespace.h
  HDRINST usr/include/linux/cciss_ioctl.h
  HDRINST usr/include/linux/baycom.h
  HDRINST usr/include/linux/inet_diag.h
  HDRINST usr/include/linux/ppdev.h
  HDRINST usr/include/linux/ioctl.h
  HDRINST usr/include/linux/rds.h
  HDRINST usr/include/linux/if_ppp.h
  HDRINST usr/include/linux/coresight-stm.h
  HDRINST usr/include/linux/hash_info.h
  HDRINST usr/include/linux/soundcard.h
  HDRINST usr/include/linux/virtio_gpio.h
  HDRINST usr/include/linux/netfilter.h
  HDRINST usr/include/linux/zorro.h
  HDRINST usr/include/linux/if_addr.h
  HDRINST usr/include/linux/nfs3.h
  HDRINST usr/include/linux/omap3isp.h
  HDRINST usr/include/linux/uleds.h
  HDRINST usr/include/linux/landlock.h
  HDRINST usr/include/linux/elf.h
  HDRINST usr/include/linux/if_slip.h
  HDRINST usr/include/linux/dns_resolver.h
  HDRINST usr/include/linux/un.h
  HDRINST usr/include/linux/if_pppox.h
  HDRINST usr/include/linux/connector.h
  HDRINST usr/include/linux/nfs2.h
  HDRINST usr/include/linux/minix_fs.h
  HDRINST usr/include/linux/tipc_sockets_diag.h
  HDRINST usr/include/linux/kd.h
  HDRINST usr/include/linux/wait.h
  HDRINST usr/include/linux/vsockmon.h
  HDRINST usr/include/linux/ip.h
  HDRINST usr/include/linux/tls.h
  HDRINST usr/include/linux/omapfb.h
  HDRINST usr/include/linux/usbdevice_fs.h
  HDRINST usr/include/linux/serial_core.h
  HDRINST usr/include/linux/virtio_mem.h
  HDRINST usr/include/linux/audit.h
  HDRINST usr/include/linux/vduse.h
  HDRINST usr/include/linux/isdn/capicmd.h
  HDRINST usr/include/linux/fd.h
  HDRINST usr/include/linux/resource.h
  HDRINST usr/include/linux/sock_diag.h
  HDRINST usr/include/linux/if_bonding.h
  HDRINST usr/include/linux/genwqe/genwqe_card.h
  HDRINST usr/include/linux/virtio_bt.h
  HDRINST usr/include/linux/i2c-dev.h
  HDRINST usr/include/linux/netfilter_ipv6.h
  HDRINST usr/include/linux/virtio_console.h
  HDRINST usr/include/linux/dn.h
  HDRINST usr/include/linux/libc-compat.h
  HDRINST usr/include/linux/atmioc.h
  HDRINST usr/include/linux/pkt_sched.h
  HDRINST usr/include/linux/cn_proc.h
  HDRINST usr/include/linux/pci.h
  HDRINST usr/include/linux/if_arp.h
  HDRINST usr/include/linux/qnxtypes.h
  HDRINST usr/include/linux/vm_sockets_diag.h
  HDRINST usr/include/linux/joystick.h
  HDRINST usr/include/linux/auto_dev-ioctl.h
  HDRINST usr/include/linux/udmabuf.h
  HDRINST usr/include/linux/virtio_snd.h
  HDRINST usr/include/linux/nfc.h
  HDRINST usr/include/linux/i8k.h
  HDRINST usr/include/linux/sonypi.h
  HDRINST usr/include/linux/hidraw.h
  HDRINST usr/include/linux/romfs_fs.h
  HDRINST usr/include/linux/ptrace.h
  HDRINST usr/include/linux/pidfd.h
  HDRINST usr/include/linux/loop.h
  HDRINST usr/include/linux/can.h
  HDRINST usr/include/linux/kvm.h
  HDRINST usr/include/linux/if_team.h
  HDRINST usr/include/linux/if_ltalk.h
  HDRINST usr/include/linux/openat2.h
  HDRINST usr/include/linux/errno.h
  HDRINST usr/include/linux/fpga-dfl.h
  HDRINST usr/include/linux/vhost_types.h
  HDRINST usr/include/linux/serial.h
  HDRINST usr/include/linux/hsr_netlink.h
  HDRINST usr/include/linux/tty_flags.h
  HDRINST usr/include/linux/types.h
  HDRINST usr/include/linux/nl80211.h
  HDRINST usr/include/linux/input.h
  HDRINST usr/include/linux/i2c.h
  HDRINST usr/include/linux/gameport.h
  HDRINST usr/include/linux/dvb/audio.h
  HDRINST usr/include/linux/dvb/ca.h
  HDRINST usr/include/linux/dvb/net.h
  HDRINST usr/include/linux/dvb/frontend.h
  HDRINST usr/include/linux/dvb/osd.h
  HDRINST usr/include/linux/dvb/video.h
  HDRINST usr/include/linux/dvb/dmx.h
  HDRINST usr/include/linux/dvb/version.h
  HDRINST usr/include/linux/nbd.h
  HDRINST usr/include/linux/packet_diag.h
  HDRINST usr/include/linux/media-bus-format.h
  HDRINST usr/include/linux/nilfs2_ondisk.h
  HDRINST usr/include/linux/elf-em.h
  HDRINST usr/include/linux/unistd.h
  HDRINST usr/include/linux/vbox_err.h
  HDRINST usr/include/linux/dccp.h
  HDRINST usr/include/linux/blktrace_api.h
  HDRINST usr/include/linux/psci.h
  HDRINST usr/include/linux/ethtool_netlink.h
  HDRINST usr/include/linux/mdio.h
  HDRINST usr/include/linux/prctl.h
  HDRINST usr/include/linux/hdlcdrv.h
  HDRINST usr/include/linux/posix_acl.h
  HDRINST usr/include/linux/coda.h
  HDRINST usr/include/linux/fsl_hypervisor.h
  HDRINST usr/include/linux/ipmi_msgdefs.h
  HDRINST usr/include/linux/cgroupstats.h
  HDRINST usr/include/linux/msdos_fs.h
  HDRINST usr/include/linux/adfs_fs.h
  HDRINST usr/include/linux/blkzoned.h
  HDRINST usr/include/linux/mpls_iptunnel.h
  HDRINST usr/include/linux/dma-buf.h
  HDRINST usr/include/linux/if_addrlabel.h
  HDRINST usr/include/linux/in6.h
  HDRINST usr/include/linux/nfs4_mount.h
  HDRINST usr/include/linux/kernel.h
  HDRINST usr/include/linux/batadv_packet.h
  HDRINST usr/include/linux/iommu.h
  HDRINST usr/include/linux/keyboard.h
  HDRINST usr/include/linux/sched.h
  HDRINST usr/include/linux/falloc.h
  HDRINST usr/include/linux/pmu.h
  HDRINST usr/include/linux/aspeed-p2a-ctrl.h
  HDRINST usr/include/linux/pr.h
  HDRINST usr/include/linux/coff.h
  HDRINST usr/include/linux/atalk.h
  HDRINST usr/include/linux/gtp.h
  HDRINST usr/include/linux/snmp.h
  HDRINST usr/include/linux/videodev2.h
  HDRINST usr/include/linux/ppp_defs.h
  HDRINST usr/include/linux/cramfs_fs.h
  HDRINST usr/include/linux/sockios.h
  HDRINST usr/include/linux/f2fs.h
  HDRINST usr/include/linux/virtio_vsock.h
  HDRINST usr/include/linux/xfrm.h
  HDRINST usr/include/linux/close_range.h
  HDRINST usr/include/linux/v4l2-dv-timings.h
  HDRINST usr/include/linux/limits.h
  HDRINST usr/include/linux/nfs.h
  HDRINST usr/include/linux/bcm933xx_hcs.h
  HDRINST usr/include/linux/serial_reg.h
  HDRINST usr/include/linux/vmcore.h
  HDRINST usr/include/linux/caif/if_caif.h
  HDRINST usr/include/linux/caif/caif_socket.h
  HDRINST usr/include/linux/pci_regs.h
  HDRINST usr/include/linux/dqblk_xfs.h
  HDRINST usr/include/linux/fb.h
  HDRINST usr/include/linux/param.h
  HDRINST usr/include/linux/phonet.h
  HDRINST usr/include/linux/netfilter_ipv4.h
  HDRINST usr/include/linux/qnx4_fs.h
  HDRINST usr/include/linux/if_fddi.h
  HDRINST usr/include/linux/icmp.h
  HDRINST usr/include/linux/atm_idt77105.h
  HDRINST usr/include/linux/idxd.h
  HDRINST usr/include/linux/ccs.h
  HDRINST usr/include/linux/i2o-dev.h
  HDRINST usr/include/linux/pcitest.h
  HDRINST usr/include/linux/genetlink.h
  HDRINST usr/include/linux/kfd_sysfs.h
  HDRINST usr/include/linux/ioam6.h
  HDRINST usr/include/linux/spi/spi.h
  HDRINST usr/include/linux/spi/spidev.h
  HDRINST usr/include/linux/virtio_ids.h
  HDRINST usr/include/linux/iso_fs.h
  HDRINST usr/include/linux/fadvise.h
  HDRINST usr/include/linux/vfio_zdev.h
  HDRINST usr/include/linux/hiddev.h
  HDRINST usr/include/linux/bpf.h
  HDRINST usr/include/linux/capi.h
  HDRINST usr/include/linux/bpf_common.h
  HDRINST usr/include/linux/btrfs_tree.h
  HDRINST usr/include/linux/btf.h
  HDRINST usr/include/linux/tty.h
  HDRINST usr/include/linux/magic.h
  HDRINST usr/include/linux/msg.h
  HDRINST usr/include/linux/remoteproc_cdev.h
  HDRINST usr/include/linux/mempolicy.h
  HDRINST usr/include/linux/fiemap.h
  HDRINST usr/include/linux/cryptouser.h
  HDRINST usr/include/linux/l2tp.h
  HDRINST usr/include/linux/atm_nicstar.h
  HDRINST usr/include/linux/filter.h
  HDRINST usr/include/linux/if_hippi.h
  HDRINST usr/include/linux/major.h
  HDRINST usr/include/linux/times.h
  HDRINST usr/include/linux/mman.h
  HDRINST usr/include/linux/arm_sdei.h
  HDRINST usr/include/linux/sem.h
  HDRINST usr/include/linux/vbox_vmmdev_types.h
  HDRINST usr/include/linux/if_infiniband.h
  HDRINST usr/include/linux/hdlc/ioctl.h
  HDRINST usr/include/linux/adb.h
  HDRINST usr/include/linux/fib_rules.h
  HDRINST usr/include/linux/keyctl.h
  HDRINST usr/include/linux/media.h
  HDRINST usr/include/linux/max2175.h
  HDRINST usr/include/linux/wwan.h
  HDRINST usr/include/linux/sunrpc/debug.h
  HDRINST usr/include/linux/stm.h
  HDRINST usr/include/linux/if_eql.h
  HDRINST usr/include/linux/netfilter_bridge.h
  HDRINST usr/include/linux/tiocl.h
  HDRINST usr/include/linux/vboxguest.h
  HDRINST usr/include/linux/irqnr.h
  HDRINST usr/include/linux/input-event-codes.h
  HDRINST usr/include/linux/comedi.h
  HDRINST usr/include/linux/mmc/ioctl.h
  HDRINST usr/include/linux/vt.h
  HDRINST usr/include/linux/bfs_fs.h
  HDRINST usr/include/linux/hdreg.h
  HDRINST usr/include/linux/stddef.h
  HDRINST usr/include/linux/rpl_iptunnel.h
  HDRINST usr/include/linux/hid.h
  HDRINST usr/include/linux/erspan.h
  HDRINST usr/include/linux/ivtv.h
  HDRINST usr/include/linux/dm-ioctl.h
  HDRINST usr/include/linux/virtio_gpu.h
  HDRINST usr/include/linux/if_link.h
  HDRINST usr/include/linux/virtio_fs.h
  HDRINST usr/include/linux/atmclip.h
  HDRINST usr/include/linux/lp.h
  HDRINST usr/include/linux/virtio_scsi.h
  HDRINST usr/include/linux/usb/g_uvc.h
  HDRINST usr/include/linux/usb/cdc-wdm.h
  HDRINST usr/include/linux/usb/midi.h
  HDRINST usr/include/linux/usb/audio.h
  HDRINST usr/include/linux/usb/ch9.h
  HDRINST usr/include/linux/usb/raw_gadget.h
  HDRINST usr/include/linux/usb/gadgetfs.h
  HDRINST usr/include/linux/usb/functionfs.h
  HDRINST usr/include/linux/usb/cdc.h
  HDRINST usr/include/linux/usb/charger.h
  HDRINST usr/include/linux/usb/g_printer.h
  HDRINST usr/include/linux/usb/ch11.h
  HDRINST usr/include/linux/usb/tmc.h
  HDRINST usr/include/linux/usb/video.h
  HDRINST usr/include/linux/sysctl.h
  HDRINST usr/include/linux/cciss_defs.h
  HDRINST usr/include/linux/if_macsec.h
  HDRINST usr/include/linux/mtio.h
  HDRINST usr/include/linux/virtio_crypto.h
  HDRINST usr/include/linux/signalfd.h
  HDRINST usr/include/linux/ax25.h
  HDRINST usr/include/linux/swab.h
  HDRINST usr/include/linux/if_xdp.h
  HDRINST usr/include/linux/taskstats.h
  HDRINST usr/include/linux/seg6_genl.h
  HDRINST usr/include/linux/mqueue.h
  HDRINST usr/include/linux/string.h
  HDRINST usr/include/linux/uvcvideo.h
  HDRINST usr/include/linux/securebits.h
  HDRINST usr/include/linux/shm.h
  HDRINST usr/include/linux/cuda.h
  HDRINST usr/include/linux/if_plip.h
  HDRINST usr/include/linux/ethtool.h
  HDRINST usr/include/linux/auto_fs.h
  HDRINST usr/include/linux/bpf_perf_event.h
  HDRINST usr/include/linux/blkpg.h
  HDRINST usr/include/linux/atm_eni.h
  HDRINST usr/include/linux/auto_fs4.h
  HDRINST usr/include/linux/watch_queue.h
  HDRINST usr/include/linux/ultrasound.h
  HDRINST usr/include/linux/sysinfo.h
  HDRINST usr/include/linux/uuid.h
  HDRINST usr/include/linux/inotify.h
  HDRINST usr/include/linux/amt.h
  HDRINST usr/include/linux/btrfs.h
  HDRINST usr/include/linux/agpgart.h
  HDRINST usr/include/linux/veth.h
  HDRINST usr/include/linux/mmtimer.h
  HDRINST usr/include/linux/ipv6_route.h
  HDRINST usr/include/linux/module.h
  HDRINST usr/include/misc/fastrpc.h
  HDRINST usr/include/misc/pvpanic.h
  HDRINST usr/include/misc/habanalabs.h
  HDRINST usr/include/misc/xilinx_sdfec.h
  HDRINST usr/include/misc/cxl.h
  HDRINST usr/include/misc/ocxl.h
  HDRINST usr/include/misc/uacce/hisi_qm.h
  HDRINST usr/include/misc/uacce/uacce.h
  HDRINST usr/include/mtd/ubi-user.h
  HDRINST usr/include/mtd/mtd-user.h
  HDRINST usr/include/mtd/nftl-user.h
  HDRINST usr/include/mtd/inftl-user.h
  HDRINST usr/include/mtd/mtd-abi.h
  HDRINST usr/include/rdma/irdma-abi.h
  HDRINST usr/include/rdma/mlx5_user_ioctl_verbs.h
  HDRINST usr/include/rdma/mlx5_user_ioctl_cmds.h
  HDRINST usr/include/rdma/rdma_user_ioctl.h
  HDRINST usr/include/rdma/hfi/hfi1_user.h
  HDRINST usr/include/rdma/hfi/hfi1_ioctl.h
  HDRINST usr/include/rdma/ib_user_ioctl_cmds.h
  HDRINST usr/include/rdma/rvt-abi.h
  HDRINST usr/include/rdma/rdma_user_ioctl_cmds.h
  HDRINST usr/include/rdma/vmw_pvrdma-abi.h
  HDRINST usr/include/rdma/rdma_user_rxe.h
  HDRINST usr/include/rdma/ib_user_mad.h
  HDRINST usr/include/rdma/ib_user_sa.h
  HDRINST usr/include/rdma/siw-abi.h
  HDRINST usr/include/rdma/ib_user_ioctl_verbs.h
  HDRINST usr/include/rdma/rdma_user_cm.h
  HDRINST usr/include/rdma/hns-abi.h
  HDRINST usr/include/rdma/bnxt_re-abi.h
  HDRINST usr/include/rdma/cxgb4-abi.h
  HDRINST usr/include/rdma/rdma_netlink.h
  HDRINST usr/include/rdma/ib_user_verbs.h
  HDRINST usr/include/rdma/efa-abi.h
  HDRINST usr/include/rdma/mthca-abi.h
  HDRINST usr/include/rdma/qedr-abi.h
  HDRINST usr/include/rdma/mlx4-abi.h
  HDRINST usr/include/rdma/mlx5-abi.h
  HDRINST usr/include/rdma/ocrdma-abi.h
  HDRINST usr/include/scsi/scsi_bsg_ufs.h
  HDRINST usr/include/scsi/cxlflash_ioctl.h
  HDRINST usr/include/scsi/scsi_netlink.h
  HDRINST usr/include/scsi/scsi_netlink_fc.h
  HDRINST usr/include/scsi/fc/fc_els.h
  HDRINST usr/include/scsi/fc/fc_ns.h
  HDRINST usr/include/scsi/fc/fc_fs.h
  HDRINST usr/include/scsi/fc/fc_gs.h
  HDRINST usr/include/scsi/scsi_bsg_fc.h
  HDRINST usr/include/sound/asoc.h
  HDRINST usr/include/sound/hdsp.h
  HDRINST usr/include/sound/sof/tokens.h
  HDRINST usr/include/sound/sof/abi.h
  HDRINST usr/include/sound/compress_params.h
  HDRINST usr/include/sound/sof/header.h
  HDRINST usr/include/sound/sof/fw.h
  HDRINST usr/include/sound/asequencer.h
  HDRINST usr/include/sound/emu10k1.h
  HDRINST usr/include/sound/sb16_csp.h
  HDRINST usr/include/sound/firewire.h
  HDRINST usr/include/sound/hdspm.h
  HDRINST usr/include/sound/tlv.h
  HDRINST usr/include/sound/snd_sst_tokens.h
  HDRINST usr/include/sound/asound.h
  HDRINST usr/include/sound/sfnt_info.h
  HDRINST usr/include/sound/compress_offload.h
  HDRINST usr/include/sound/usb_stream.h
  HDRINST usr/include/sound/skl-tplg-interface.h
  HDRINST usr/include/sound/snd_ar_tokens.h
  HDRINST usr/include/sound/asound_fm.h
  HDRINST usr/include/video/edid.h
  HDRINST usr/include/video/sisfb.h
  HDRINST usr/include/video/uvesafb.h
  HDRINST usr/include/xen/privcmd.h
  HDRINST usr/include/xen/gntalloc.h
  HDRINST usr/include/xen/gntdev.h
  HDRINST usr/include/xen/evtchn.h
  HDRINST usr/include/linux/version.h
  HDRINST usr/include/asm/sigcontext.h
  HDRINST usr/include/asm/auxvec.h
  HDRINST usr/include/asm/perf_regs.h
  HDRINST usr/include/asm/ucontext.h
  HDRINST usr/include/asm/byteorder.h
  HDRINST usr/include/asm/elf.h
  HDRINST usr/include/asm/bitsperlong.h
  HDRINST usr/include/asm/ptrace.h
  HDRINST usr/include/asm/kvm.h
  HDRINST usr/include/asm/hwcap.h
  HDRINST usr/include/asm/unistd.h
  HDRINST usr/include/asm/statfs.h
  HDRINST usr/include/asm/bpf_perf_event.h
  HDRINST usr/include/asm/signal.h
  HDRINST usr/include/asm/stat.h
  HDRINST usr/include/asm/posix_types.h
  HDRINST usr/include/asm/fcntl.h
  HDRINST usr/include/asm/socket.h
  HDRINST usr/include/asm/termbits.h
  HDRINST usr/include/asm/poll.h
  HDRINST usr/include/asm/ioctls.h
  HDRINST usr/include/asm/setup.h
  HDRINST usr/include/asm/siginfo.h
  HDRINST usr/include/asm/termios.h
  HDRINST usr/include/asm/ipcbuf.h
  HDRINST usr/include/asm/msgbuf.h
  HDRINST usr/include/asm/ioctl.h
  HDRINST usr/include/asm/resource.h
  HDRINST usr/include/asm/errno.h
  HDRINST usr/include/asm/types.h
  HDRINST usr/include/asm/sockios.h
  HDRINST usr/include/asm/param.h
  HDRINST usr/include/asm/mman.h
  HDRINST usr/include/asm/swab.h
  HDRINST usr/include/asm/sembuf.h
  HDRINST usr/include/asm/shmbuf.h
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  CC      scripts/mod/devicetable-offsets.s
  UPD     scripts/mod/devicetable-offsets.h
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  CC      kernel/bounds.s
  CALL    scripts/atomic/check-atomics.sh
  UPD     include/generated/timeconst.h
  UPD     include/generated/bounds.h
  CC      arch/riscv/kernel/asm-offsets.s
  UPD     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  LDS     arch/riscv/kernel/vdso/vdso.lds
  AS      arch/riscv/kernel/vdso/rt_sigreturn.o
  CC      arch/riscv/kernel/vdso/vgettimeofday.o
  AS      arch/riscv/kernel/vdso/getcpu.o
  AS      arch/riscv/kernel/vdso/flush_icache.o
  AS      arch/riscv/kernel/vdso/note.o
./arch/riscv/include/asm/vdso/gettimeofday.h: Assembler messages:
./arch/riscv/include/asm/vdso/gettimeofday.h:71: 错误:unrecognized opcode `csrr a5,0xc01'
./arch/riscv/include/asm/vdso/gettimeofday.h:71: 错误:unrecognized opcode `csrr a5,0xc01'
./arch/riscv/include/asm/vdso/gettimeofday.h:71: 错误:unrecognized opcode `csrr a5,0xc01'
./arch/riscv/include/asm/vdso/gettimeofday.h:71: 错误:unrecognized opcode `csrr a5,0xc01'
make[4]: *** [scripts/Makefile.build:288:arch/riscv/kernel/vdso/vgettimeofday.o] 错误 1
make[3]: *** [arch/riscv/Makefile:114:vdso_prepare] 错误 2
make[3]: *** 正在等待未完成的任务....
  LD      /root/riscv/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o
  LINK    /root/riscv/tools/bpf/resolve_btfids/libbpf/libbpf.a
  CC      /root/riscv/tools/bpf/resolve_btfids/main.o
  CC      /root/riscv/tools/bpf/resolve_btfids/rbtree.o
  CC      /root/riscv/tools/bpf/resolve_btfids/zalloc.o
  CC      /root/riscv/tools/bpf/resolve_btfids/string.o
  CC      /root/riscv/tools/bpf/resolve_btfids/ctype.o
  CC      /root/riscv/tools/bpf/resolve_btfids/str_error_r.o
  LD      /root/riscv/tools/bpf/resolve_btfids/resolve_btfids-in.o
  LINK     resolve_btfids
make[2]: *** [debian/rules:7:build-arch] 错误 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make[1]: *** [scripts/Makefile.package:83:bindeb-pkg] 错误 2
make: *** [Makefile:1539:bindeb-pkg] 错误 2
root@debian:~/riscv# apt search gcc-riscv64-linux-gnu
正在排序... 完成
全文搜索... 完

error: implicit declaration of function 'sifive_l2_flush64_range'

CC drivers/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.o
../drivers/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.c: In function 'dw_dma_async_do_memcpy':
../drivers/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.c:179:9: error: implicit declaration of function 'sifive_l2_flush64_range'; did you mean 'sifive_l2_flush_range'? [-Werror=implicit-function-declaration]
179 | sifive_l2_flush64_range(src_dma, size);
| ^~~~~~~~~~~~~~~~~~~~~~~
| sifive_l2_flush_range
cc1: some warnings being treated as errors
make[3]: *** [../scripts/Makefile.build:250: drivers/dma/dw-axi-dmac-starfive/starfive_dmaengine_memcpy.o] Error 1
make[2]: *** [../scripts/Makefile.build:467: drivers/dma/dw-axi-dmac-starfive] Error 2
make[1]: *** [../scripts/Makefile.build:467: drivers/dma] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.