Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meson-drm d0100000.vpu: [drm:drm_fbdev_client_hotplug] *ERROR* fbdev: Failed to setup generic emulation (ret=-22) #19

Closed
Hnmtc opened this issue Jul 13, 2019 · 10 comments

Comments

@Hnmtc
Copy link

Hnmtc commented Jul 13, 2019

1,Ask how to solve the above errors

2,HDMI has no output, is it related to this error?

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.2.0-aml-s9xxx (root@Hsy) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #1 SMP PREEMPT Sat Jul 13 11:38:07 CST 2019
[ 0.000000] Machine model: Phicomm N1
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x000000003b800000, size 896 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] On node 0 totalpages: 477952
[ 0.000000] DMA32 zone: 7616 pages used for memmap
[ 0.000000] DMA32 zone: 0 pages reserved
[ 0.000000] DMA32 zone: 477952 pages, LIFO batch:63
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv0.2 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] percpu: Embedded 23 pages/cpu s56088 r8192 d29928 u94208
[ 0.000000] pcpu-alloc: s56088 r8192 d29928 u94208 alloc=23*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 470336
[ 0.000000] Kernel command line: root=/dev/mmcblk1p2 rootflags=data=writeback rw console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Memory: 930108K/1911808K available (12476K kernel code, 1038K rwdata, 4256K rodata, 640K init, 519K bss, 64196K reserved, 917504K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] irq_meson_gpio: 110 to 8 gpio interrupt mux initialized
[ 0.000000] random: get_random_bytes called from start_kernel+0x2b4/0x45c with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000003] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000278] Console: colour dummy device 80x25
[ 0.000563] printk: console [tty0] enabled
[ 0.000598] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[ 0.000618] pid_max: default: 32768 minimum: 301
[ 0.000708] LSM: Security Framework initializing
[ 0.000764] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000785] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.024002] ASID allocator initialised with 32768 entries
[ 0.031985] rcu: Hierarchical SRCU implementation.
[ 0.041308] EFI services will not be available.
[ 0.048029] smp: Bringing up secondary CPUs ...
[ 0.080234] Detected VIPT I-cache on CPU1
[ 0.080279] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.112268] Detected VIPT I-cache on CPU2
[ 0.112303] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.144311] Detected VIPT I-cache on CPU3
[ 0.144344] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.144409] smp: Brought up 1 node, 4 CPUs
[ 0.144472] SMP: Total of 4 processors activated.
[ 0.144483] CPU features: detected: 32-bit EL0 Support
[ 0.144494] CPU features: detected: CRC32 instructions
[ 0.144831] CPU: All CPU(s) started at EL2
[ 0.144854] alternatives: patching kernel code
[ 0.145671] devtmpfs: initialized
[ 0.150010] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.150044] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.173120] xor: measuring software checksum speed
[ 0.212337] 8regs : 2303.000 MB/sec
[ 0.252363] 32regs : 2831.000 MB/sec
[ 0.292397] arm64_neon: 2461.000 MB/sec
[ 0.292408] xor: using function: 32regs (2831.000 MB/sec)
[ 0.292424] pinctrl core: initialized pinctrl subsystem
[ 0.293248] DMI not present or invalid.
[ 0.293561] NET: Registered protocol family 16
[ 0.293981] audit: initializing netlink subsys (disabled)
[ 0.294095] audit: type=2000 audit(0.292:1): state=initialized audit_enabled=0 res=1
[ 0.294780] cpuidle: using governor menu
[ 0.295063] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.297226] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.297352] Serial: AMBA PL011 UART driver
[ 0.313278] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.313302] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.313315] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.313328] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.314726] cryptd: max_cpu_qlen set to 1000
[ 0.384641] raid6: neonx8 gen() 1727 MB/s
[ 0.452681] raid6: neonx8 xor() 1572 MB/s
[ 0.520791] raid6: neonx4 gen() 1581 MB/s
[ 0.588842] raid6: neonx4 xor() 1482 MB/s
[ 0.656876] raid6: neonx2 gen() 1229 MB/s
[ 0.724935] raid6: neonx2 xor() 1238 MB/s
[ 0.793012] raid6: neonx1 gen() 765 MB/s
[ 0.861037] raid6: neonx1 xor() 874 MB/s
[ 0.929085] raid6: int64x8 gen() 1006 MB/s
[ 0.997132] raid6: int64x8 xor() 759 MB/s
[ 1.065197] raid6: int64x4 gen() 1092 MB/s
[ 1.133237] raid6: int64x4 xor() 777 MB/s
[ 1.201301] raid6: int64x2 gen() 728 MB/s
[ 1.269327] raid6: int64x2 xor() 615 MB/s
[ 1.337414] raid6: int64x1 gen() 486 MB/s
[ 1.405456] raid6: int64x1 xor() 451 MB/s
[ 1.405466] raid6: using algorithm neonx8 gen() 1727 MB/s
[ 1.405476] raid6: .... xor() 1572 MB/s, rmw enabled
[ 1.405486] raid6: using neon recovery algorithm
[ 1.407290] SCSI subsystem initialized
[ 1.407579] usbcore: registered new interface driver usbfs
[ 1.407646] usbcore: registered new interface driver hub
[ 1.407735] usbcore: registered new device driver usb
[ 1.408102] media: Linux media interface: v0.10
[ 1.408151] videodev: Linux video capture interface: v2.00
[ 1.408256] pps_core: LinuxPPS API ver. 1 registered
[ 1.408270] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 1.408313] PTP clock support registered
[ 1.408647] Advanced Linux Sound Architecture Driver Initialized.
[ 1.409381] clocksource: Switched to clocksource arch_sys_counter
[ 1.409589] VFS: Disk quotas dquot_6.6.0
[ 1.409651] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 1.415167] NET: Registered protocol family 2
[ 1.415587] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes)
[ 1.415631] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 1.415746] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[ 1.415950] TCP: Hash tables configured (established 16384 bind 16384)
[ 1.416065] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[ 1.416117] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[ 1.416264] NET: Registered protocol family 1
[ 1.416618] RPC: Registered named UNIX socket transport module.
[ 1.416635] RPC: Registered udp transport module.
[ 1.416645] RPC: Registered tcp transport module.
[ 1.416654] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.416802] Unpacking initramfs...
[ 1.548517] Freeing initrd memory: 3220K
[ 1.549207] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 1.549537] kvm [1]: IPA Size Limit: 40bits
[ 1.550038] kvm [1]: vgic interrupt IRQ1
[ 1.550141] kvm [1]: Hyp mode initialized successfully
[ 1.668846] Initialise system trusted keyrings
[ 1.668987] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[ 1.674875] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.675471] NFS: Registering the id_resolver key type
[ 1.675509] Key type id_resolver registered
[ 1.675519] Key type id_legacy registered
[ 1.675534] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.675567] ntfs: driver 2.1.32 [Flags: R/W].
[ 1.676071] JFS: nTxBlock = 8192, nTxLock = 65536
[ 1.679872] SGI XFS with security attributes, no debug enabled
[ 1.681025] 9p: Installing v9fs 9p2000 file system support
[ 1.681353] ocfs2: Registered cluster interface o2cb
[ 1.681588] OCFS2 User DLM kernel interface loaded
[ 1.683025] gfs2: GFS2 installed
[ 1.686763] Key type asymmetric registered
[ 1.686785] Asymmetric key parser 'x509' registered
[ 1.686853] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[ 1.702855] soc soc0: Amlogic Meson GXL (S905D) Revision 21:d (4:2) Detected
[ 1.706646] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.708487] c11084c0.serial: ttyAML6 at MMIO 0xc11084c0 (irq = 10, base_baud = 1500000) is a meson_uart
[ 1.708655] serial serial0: tty port ttyAML6 registered
[ 1.708909] c81004c0.serial: ttyAML0 at MMIO 0xc81004c0 (irq = 13, base_baud = 1500000) is a meson_uart
[ 2.540951] printk: console [ttyAML0] enabled
[ 2.550506] loop: module loaded
[ 2.551767] libphy: Fixed MDIO Bus: probed
[ 2.552937] tun: Universal TUN/TAP device driver, 1.6
[ 2.559222] meson8b-dwmac c9410000.ethernet: PTP uses main clock
[ 2.563384] meson8b-dwmac c9410000.ethernet: no reset control found
[ 2.570011] meson8b-dwmac c9410000.ethernet: User ID: 0x11, Synopsys ID: 0x37
[ 2.576654] meson8b-dwmac c9410000.ethernet: DWMAC1000
[ 2.581820] meson8b-dwmac c9410000.ethernet: DMA HW capability register supported
[ 2.589234] meson8b-dwmac c9410000.ethernet: RX Checksum Offload Engine supported
[ 2.596651] meson8b-dwmac c9410000.ethernet: COE Type 2
[ 2.601826] meson8b-dwmac c9410000.ethernet: TX Checksum insertion supported
[ 2.608811] meson8b-dwmac c9410000.ethernet: Wake-Up On Lan supported
[ 2.615231] meson8b-dwmac c9410000.ethernet: Normal descriptors
[ 2.621060] meson8b-dwmac c9410000.ethernet: Ring mode enabled
[ 2.626838] meson8b-dwmac c9410000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 3.685405] libphy: stmmac: probed
[ 3.687042] dwc3 c9000000.dwc3: Failed to get clk 'ref': -2
[ 3.690313] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.695244] ehci-platform: EHCI generic platform driver
[ 3.700572] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 3.706501] ohci-platform: OHCI generic platform driver
[ 3.712280] usbcore: registered new interface driver usb-storage
[ 3.719033] mousedev: PS/2 mouse device common for all mice
[ 3.723837] i2c /dev entries driver
[ 3.728201] sdhci: Secure Digital Host Controller Interface driver
[ 3.732712] sdhci: Copyright(c) Pierre Ossman
[ 3.737051] Synopsys Designware Multimedia Card Interface Driver
[ 3.744414] meson-gx-mmc d0072000.mmc: Got CD GPIO
[ 3.773969] meson-gx-mmc d0074000.mmc: allocated mmc-pwrseq
[ 3.800947] sdhci-pltfm: SDHCI platform and OF driver helper
[ 3.802068] ledtrig-cpu: registered to indicate activity on CPUs
[ 3.807474] meson-sm: secure-monitor enabled
[ 3.812155] usbcore: registered new interface driver usbhid
[ 3.816761] usbhid: USB HID core driver
[ 3.820843] platform-mhu c883c404.mailbox: Platform MHU Mailbox registered
[ 3.833223] NET: Registered protocol family 10
[ 3.834372] Segment Routing with IPv6
[ 3.837431] NET: Registered protocol family 17
[ 3.841689] 9pnet: Installing 9P2000 support
[ 3.845817] Key type dns_resolver registered
[ 3.850628] registered taskstats version 1
[ 3.854133] Loading compiled-in X.509 certificates
[ 3.859710] Btrfs loaded, crc32c=crc32c-generic
[ 3.873965] meson-drm d0100000.vpu: Queued 2 outputs on vpu
[ 3.874223] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 3.880484] [drm] No driver support for vblank timestamp query.
[ 3.886527] meson-drm d0100000.vpu: CVBS Output connector not available
[ 3.917433] meson-dw-hdmi c883a000.hdmi-tx: Detected HDMI TX controller v2.01a with HDCP (meson_dw_hdmi_phy)
[ 3.922039] meson-dw-hdmi c883a000.hdmi-tx: registered DesignWare HDMI I2C bus driver
[ 3.930362] meson-drm d0100000.vpu: bound c883a000.hdmi-tx (ops meson_dw_hdmi_ops)
[ 3.937541] [drm] Initialized meson 1.0.0 20161109 for d0100000.vpu on minor 0
[ 3.947458] mmc1: new HS200 MMC card at address 0001
[ 3.949559] mmcblk1: mmc1:0001 CJNB4R 58.2 GiB
[ 3.953716] mmcblk1boot0: mmc1:0001 CJNB4R partition 1 4.00 MiB
[ 3.959579] mmcblk1boot1: mmc1:0001 CJNB4R partition 2 4.00 MiB
[ 3.965347] mmcblk1rpmb: mmc1:0001 CJNB4R partition 3 4.00 MiB, chardev (243:0)
[ 3.977184] mmcblk1: p1 p2
[ 4.056204] random: fast init done
[ 4.079636] meson-drm d0100000.vpu: [drm:drm_fbdev_client_hotplug] ERROR fbdev: Failed to setup generic emulation (ret=-22)
[ 4.085727] libphy: mdio_mux: probed
[ 4.091469] libphy: mdio_mux: probed
[ 4.097288] phy phy-d0078080.phy.2: unsupported PHY mode 5
[ 4.099831] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 4.103243] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 4.111629] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f664 hci version 0x100 quirks 0x0000000002010010
[ 4.120196] xhci-hcd xhci-hcd.0.auto: irq 37, io mem 0xc9000000
[ 4.126667] hub 1-0:1.0: USB hub found
[ 4.129748] hub 1-0:1.0: 2 ports detected
[ 4.133999] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 4.139125] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 4.146708] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[ 4.153217] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 4.161674] hub 2-0:1.0: USB hub found
[ 4.164910] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
[ 4.173713] scpi_protocol scpi: SCP Protocol legacy pre-1.0 firmware
[ 4.191729] hctosys: unable to open rtc device (rtc0)
[ 4.192007] VDDAO_3V3: disabling
[ 4.194385] ALSA device list:
[ 4.197280] No soundcards found.
[ 4.200930] Freeing unused kernel memory: 640K
[ 4.225703] Run /init as init process
[ 4.283766] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[ 4.285728] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[ 4.288364] random: udevadm: uninitialized urandom read (16 bytes read)
[ 4.469433] usb 1-1: new low-speed USB device number 2 using xhci-hcd
[ 4.654975] input: SEM USB Keyboard as /devices/platform/soc/soc:usb@c9000000/c9000000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/0003:1A2C:2124.0001/input/input0
[ 4.722936] hid-generic 0003:1A2C:2124.0001: input: USB HID v1.10 Keyboard [SEM USB Keyboard] on usb-xhci-hcd.0.auto-1/input0
[ 4.747838] input: SEM USB Keyboard Consumer Control as /devices/platform/soc/soc:usb@c9000000/c9000000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.1/0003:1A2C:2124.0002/input/input1
[ 4.818751] input: SEM USB Keyboard System Control as /devices/platform/soc/soc:usb@c9000000/c9000000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.1/0003:1A2C:2124.0002/input/input2
[ 4.829234] hid-generic 0003:1A2C:2124.0002: input: USB HID v1.10 Device [SEM USB Keyboard] on usb-xhci-hcd.0.auto-1/input1
[ 5.100632] EXT4-fs (mmcblk1p2): mounted filesystem with writeback data mode. Opts: data=writeback
[ 5.259590] systemd[1]: System time before build time, advancing clock.
[ 5.271512] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 5.284589] systemd[1]: Detected architecture arm64.
[ 5.290231] systemd[1]: Set hostname to .
[ 5.440360] systemd[1]: Created slice System Slice.
[ 5.442932] systemd[1]: Mounting POSIX Message Queue File System...
[ 5.446449] systemd[1]: Listening on udev Control Socket.
[ 5.451592] systemd[1]: Reached target Remote File Systems.
[ 5.457268] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 5.464725] systemd[1]: Listening on udev Kernel Socket.
[ 5.470000] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ 5.522504] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[ 5.603170] systemd-journald[1412]: Received request to flush runtime journal from PID 1
[ 5.781021] input: adc-keys as /devices/platform/adc-keys/input/input3
[ 5.806396] meson-gx-mmc d0070000.mmc: allocated mmc-pwrseq
[ 5.868363] Bluetooth: Core ver 2.22
[ 5.868477] NET: Registered protocol family 31
[ 5.871392] Bluetooth: HCI device and connection manager initialized
[ 5.873369] mmc2: new high speed SDIO card at address 0001
[ 5.877931] Bluetooth: HCI socket layer initialized
[ 5.887629] Bluetooth: L2CAP socket layer initialized
[ 5.892656] Bluetooth: SCO socket layer initialized
[ 5.897468] Registered IR keymap rc-geekbox
[ 5.907015] IR NEC protocol handler initialized
[ 5.914307] Bluetooth: HCI UART driver ver 2.3
[ 5.914348] Bluetooth: HCI UART protocol H4 registered
[ 5.918439] Bluetooth: HCI UART protocol LL registered
[ 5.925967] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 5.933555] rc rc0: meson-ir as /devices/platform/soc/c8100000.bus/c8100580.ir/rc/rc0
[ 5.937521] input: meson-ir as /devices/platform/soc/c8100000.bus/c8100580.ir/rc/rc0/input4
[ 5.939407] Bluetooth: HCI UART protocol Broadcom registered
[ 5.939610] hci_uart_bcm serial0-0: serial0-0 supply vbat not found, using dummy regulator
[ 5.939739] hci_uart_bcm serial0-0: serial0-0 supply vddio not found, using dummy regulator
[ 5.952955] meson-ir c8100580.ir: receiver initialized
[ 5.971102] Bluetooth: HCI UART protocol QCA registered
[ 6.003103] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 6.114047] Bluetooth: hci0: BCM: chip id 107
[ 6.114354] Bluetooth: hci0: BCM: features 0x2f
[ 6.118796] Bluetooth: hci0: BCM4345C0
[ 6.120989] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0000
[ 6.137908] RTL8211F Gigabit Ethernet 0.2009087f:00: attached PHY driver [RTL8211F Gigabit Ethernet] (mii_bus:phy_addr=0.2009087f:00, irq=39)
[ 6.157595] meson8b-dwmac c9410000.ethernet eth0: No Safety Features support found
[ 6.160745] meson8b-dwmac c9410000.ethernet eth0: PTP not supported by HW
[ 6.184465] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 6.196843] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 6.224176] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 6.228157] usbcore: registered new interface driver brcmfmac
[ 6.235746] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.phicomm,n1.txt failed with error -2
[ 6.286313] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 6.286362] Bluetooth: BNEP filters: protocol multicast
[ 6.292238] Bluetooth: BNEP socket layer initialized
[ 6.333520] random: crng init done
[ 6.333526] random: 7 urandom warning(s) missed due to ratelimiting
[ 6.937789] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0252
[ 8.350012] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 8.401500] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Aug 25 2015 18:58:57 version 7.45.69 (r581703) FWID 01-24037f6e
[ 10.180574] meson8b-dwmac c9410000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
[ 10.183818] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

@150balbes
Copy link
Owner

I don't understand your question. Write in detail what you are doing and what the problem is.

@Hnmtc
Copy link
Author

Hnmtc commented Jul 14, 2019

I don't understand your question. Write in detail what you are doing and what the problem is.

  1. HDMI has no show, SSH login is normal;
    The equipment used is Phicomm N1

@150balbes
Copy link
Owner

check your DTS settings.

@Hnmtc
Copy link
Author

Hnmtc commented Jul 16, 2019

The DTS is consistent with the normal display DTS file, and whether the DTS problem can be excluded.

@150balbes
Copy link
Owner

The version of the image ?

@Hnmtc
Copy link
Author

Hnmtc commented Jul 17, 2019

Problem version:
20190712 5.2.0 -> 7f258e5
20181018 4.19.0-rc7 -> 5e7b968

Tested normal version:
20190316 5.0.0 -> 542320b
20181012 4.18.7 -> ce98737

@150balbes
Copy link
Owner

Version image Armbian

@Hnmtc
Copy link
Author

Hnmtc commented Jul 18, 2019

Debian 9

@150balbes
Copy link
Owner

I ask the version of the image Armbian which does not work HDMI.

@Hnmtc
Copy link
Author

Hnmtc commented Jul 18, 2019

I don't quite understand what you mean

Kernel :7f258e5d352505dcb38ce871eff0d72e1ef94206 (Compiled kernel HDMI does not display)
rootfs :2018-10-18-debian-arm64-n1-stretch.zip

Hardware:(Phicomm N1)
CPU: Amlogic S905D
RAM: 2G DDR3
64G eMMC
Ethernet: RTL8211F Gigabit Ethernet
WIFI/Bluetooth: ? CYW43455 ( same as Raspberry Pi 3B+ ) 5G WiFi IEEE 802.11n/ac with

@Hnmtc Hnmtc closed this as completed Jul 19, 2019
isjerryxiao pushed a commit to isjerryxiao/Amlogic_s905-kernel that referenced this issue Aug 17, 2019
commit d0a255e795ab976481565f6ac178314b34fbf891 upstream.

A deadlock with this stacktrace was observed.

The loop thread does a GFP_KERNEL allocation, it calls into dm-bufio
shrinker and the shrinker depends on I/O completion in the dm-bufio
subsystem.

In order to fix the deadlock (and other similar ones), we set the flag
PF_MEMALLOC_NOIO at loop thread entry.

PID: 474    TASK: ffff8813e11f4600  CPU: 10  COMMAND: "kswapd0"
   #0 [ffff8813dedfb938] __schedule at ffffffff8173f405
   150balbes#1 [ffff8813dedfb990] schedule at ffffffff8173fa27
   150balbes#2 [ffff8813dedfb9b0] schedule_timeout at ffffffff81742fec
   150balbes#3 [ffff8813dedfba60] io_schedule_timeout at ffffffff8173f186
   150balbes#4 [ffff8813dedfbaa0] bit_wait_io at ffffffff8174034f
   150balbes#5 [ffff8813dedfbac0] __wait_on_bit at ffffffff8173fec8
   150balbes#6 [ffff8813dedfbb10] out_of_line_wait_on_bit at ffffffff8173ff81
   150balbes#7 [ffff8813dedfbb90] __make_buffer_clean at ffffffffa038736f [dm_bufio]
   150balbes#8 [ffff8813dedfbbb0] __try_evict_buffer at ffffffffa0387bb8 [dm_bufio]
   150balbes#9 [ffff8813dedfbbd0] dm_bufio_shrink_scan at ffffffffa0387cc3 [dm_bufio]
  150balbes#10 [ffff8813dedfbc40] shrink_slab at ffffffff811a87ce
  150balbes#11 [ffff8813dedfbd30] shrink_zone at ffffffff811ad778
  150balbes#12 [ffff8813dedfbdc0] kswapd at ffffffff811ae92f
  150balbes#13 [ffff8813dedfbec0] kthread at ffffffff810a8428
  150balbes#14 [ffff8813dedfbf50] ret_from_fork at ffffffff81745242

  PID: 14127  TASK: ffff881455749c00  CPU: 11  COMMAND: "loop1"
   #0 [ffff88272f5af228] __schedule at ffffffff8173f405
   150balbes#1 [ffff88272f5af280] schedule at ffffffff8173fa27
   150balbes#2 [ffff88272f5af2a0] schedule_preempt_disabled at ffffffff8173fd5e
   150balbes#3 [ffff88272f5af2b0] __mutex_lock_slowpath at ffffffff81741fb5
   150balbes#4 [ffff88272f5af330] mutex_lock at ffffffff81742133
   150balbes#5 [ffff88272f5af350] dm_bufio_shrink_count at ffffffffa03865f9 [dm_bufio]
   150balbes#6 [ffff88272f5af380] shrink_slab at ffffffff811a86bd
   150balbes#7 [ffff88272f5af470] shrink_zone at ffffffff811ad778
   150balbes#8 [ffff88272f5af500] do_try_to_free_pages at ffffffff811adb34
   150balbes#9 [ffff88272f5af590] try_to_free_pages at ffffffff811adef8
  150balbes#10 [ffff88272f5af610] __alloc_pages_nodemask at ffffffff811a09c3
  150balbes#11 [ffff88272f5af710] alloc_pages_current at ffffffff811e8b71
  150balbes#12 [ffff88272f5af760] new_slab at ffffffff811f4523
  150balbes#13 [ffff88272f5af7b0] __slab_alloc at ffffffff8173a1b5
  150balbes#14 [ffff88272f5af880] kmem_cache_alloc at ffffffff811f484b
  150balbes#15 [ffff88272f5af8d0] do_blockdev_direct_IO at ffffffff812535b3
  150balbes#16 [ffff88272f5afb00] __blockdev_direct_IO at ffffffff81255dc3
  150balbes#17 [ffff88272f5afb30] xfs_vm_direct_IO at ffffffffa01fe3fc [xfs]
  150balbes#18 [ffff88272f5afb90] generic_file_read_iter at ffffffff81198994
  150balbes#19 [ffff88272f5afc50] __dta_xfs_file_read_iter_2398 at ffffffffa020c970 [xfs]
  150balbes#20 [ffff88272f5afcc0] lo_rw_aio at ffffffffa0377042 [loop]
  150balbes#21 [ffff88272f5afd70] loop_queue_work at ffffffffa0377c3b [loop]
  150balbes#22 [ffff88272f5afe60] kthread_worker_fn at ffffffff810a8a0c
  150balbes#23 [ffff88272f5afec0] kthread at ffffffff810a8428
  150balbes#24 [ffff88272f5aff50] ret_from_fork at ffffffff81745242

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
isjerryxiao pushed a commit to isjerryxiao/Amlogic_s905-kernel that referenced this issue Oct 5, 2019
commit 41ba17f20ea835c489e77bd54e2da73184e22060 upstream.

Commit <684d984038aa> ('powerpc/powernv: Add debugfs interface for
imc-mode and imc') added debugfs interface for the nest imc pmu
devices to support changing of different ucode modes. Primarily adding
this capability for debug. But when doing so, the code did not
consider the case of cpu-less nodes. So when reading the _cmd_ or
_mode_ file of a cpu-less node will create this crash.

  Faulting instruction address: 0xc0000000000d0d58
  Oops: Kernel access of bad area, sig: 11 [150balbes#1]
  ...
  CPU: 67 PID: 5301 Comm: cat Not tainted 5.2.0-rc6-next-20190627+ 150balbes#19
  NIP:  c0000000000d0d58 LR: c00000000049aa18 CTR:c0000000000d0d50
  REGS: c00020194548f9e0 TRAP: 0300   Not tainted  (5.2.0-rc6-next-20190627+)
  MSR:  9000000000009033 <SF,HV,EE,ME,IR,DR,RI,LE>  CR:28022822  XER: 00000000
  CFAR: c00000000049aa14 DAR: 000000000003fc08 DSISR:40000000 IRQMASK: 0
  ...
  NIP imc_mem_get+0x8/0x20
  LR  simple_attr_read+0x118/0x170
  Call Trace:
    simple_attr_read+0x70/0x170 (unreliable)
    debugfs_attr_read+0x6c/0xb0
    __vfs_read+0x3c/0x70
     vfs_read+0xbc/0x1a0
    ksys_read+0x7c/0x140
    system_call+0x5c/0x70

Patch fixes the issue with a more robust check for vbase to NULL.

Before patch, ls output for the debugfs imc directory

  # ls /sys/kernel/debug/powerpc/imc/
  imc_cmd_0    imc_cmd_251  imc_cmd_253  imc_cmd_255  imc_mode_0    imc_mode_251  imc_mode_253  imc_mode_255
  imc_cmd_250  imc_cmd_252  imc_cmd_254  imc_cmd_8    imc_mode_250  imc_mode_252  imc_mode_254  imc_mode_8

After patch, ls output for the debugfs imc directory

  # ls /sys/kernel/debug/powerpc/imc/
  imc_cmd_0  imc_cmd_8  imc_mode_0  imc_mode_8

Actual bug here is that, we have two loops with potentially different
loop counts. That is, in imc_get_mem_addr_nest(), loop count is
obtained from the dt entries. But in case of export_imc_mode_and_cmd(),
loop was based on for_each_nid() count. Patch fixes the loop count in
latter based on the struct mem_info. Ideally it would be better to
have array size in struct imc_pmu.

Fixes: 684d984 ('powerpc/powernv: Add debugfs interface for imc-mode and imc')
Reported-by: Qian Cai <cai@lca.pw>
Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190827101635.6942-1-maddy@linux.vnet.ibm.com
Cc: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
isjerryxiao pushed a commit to isjerryxiao/Amlogic_s905-kernel that referenced this issue Oct 5, 2019
commit f9c645621a28e37813a1de96d9cbd89cde94a1e4 upstream.

Masoud Sharbiani noticed that commit 29ef680 ("memcg, oom: move
out_of_memory back to the charge path") broke memcg OOM called from
__xfs_filemap_fault() path.  It turned out that try_charge() is retrying
forever without making forward progress because mem_cgroup_oom(GFP_NOFS)
cannot invoke the OOM killer due to commit 3da88fb ("mm, oom:
move GFP_NOFS check to out_of_memory").

Allowing forced charge due to being unable to invoke memcg OOM killer will
lead to global OOM situation.  Also, just returning -ENOMEM will be risky
because OOM path is lost and some paths (e.g.  get_user_pages()) will leak
-ENOMEM.  Therefore, invoking memcg OOM killer (despite GFP_NOFS) will be
the only choice we can choose for now.

Until 29ef680, we were able to invoke memcg OOM killer when
GFP_KERNEL reclaim failed [1].  But since 29ef680, we need to
invoke memcg OOM killer when GFP_NOFS reclaim failed [2].  Although in the
past we did invoke memcg OOM killer for GFP_NOFS [3], we might get
pre-mature memcg OOM reports due to this patch.

[1]

 leaker invoked oom-killer: gfp_mask=0x6200ca(GFP_HIGHUSER_MOVABLE), nodemask=(null), order=0, oom_score_adj=0
 CPU: 0 PID: 2746 Comm: leaker Not tainted 4.18.0+ 150balbes#19
 Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 04/13/2018
 Call Trace:
  dump_stack+0x63/0x88
  dump_header+0x67/0x27a
  ? mem_cgroup_scan_tasks+0x91/0xf0
  oom_kill_process+0x210/0x410
  out_of_memory+0x10a/0x2c0
  mem_cgroup_out_of_memory+0x46/0x80
  mem_cgroup_oom_synchronize+0x2e4/0x310
  ? high_work_func+0x20/0x20
  pagefault_out_of_memory+0x31/0x76
  mm_fault_error+0x55/0x115
  ? handle_mm_fault+0xfd/0x220
  __do_page_fault+0x433/0x4e0
  do_page_fault+0x22/0x30
  ? page_fault+0x8/0x30
  page_fault+0x1e/0x30
 RIP: 0033:0x4009f0
 Code: 03 00 00 00 e8 71 fd ff ff 48 83 f8 ff 49 89 c6 74 74 48 89 c6 bf c0 0c 40 00 31 c0 e8 69 fd ff ff 45 85 ff 7e 21 31 c9 66 90 <41> 0f be 14 0e 01 d3 f7 c1 ff 0f 00 00 75 05 41 c6 04 0e 2a 48 83
 RSP: 002b:00007ffe29ae96f0 EFLAGS: 00010206
 RAX: 000000000000001b RBX: 0000000000000000 RCX: 0000000001ce1000
 RDX: 0000000000000000 RSI: 000000007fffffe5 RDI: 0000000000000000
 RBP: 000000000000000c R08: 0000000000000000 R09: 00007f94be09220d
 R10: 0000000000000002 R11: 0000000000000246 R12: 00000000000186a0
 R13: 0000000000000003 R14: 00007f949d845000 R15: 0000000002800000
 Task in /leaker killed as a result of limit of /leaker
 memory: usage 524288kB, limit 524288kB, failcnt 158965
 memory+swap: usage 0kB, limit 9007199254740988kB, failcnt 0
 kmem: usage 2016kB, limit 9007199254740988kB, failcnt 0
 Memory cgroup stats for /leaker: cache:844KB rss:521136KB rss_huge:0KB shmem:0KB mapped_file:0KB dirty:132KB writeback:0KB inactive_anon:0KB active_anon:521224KB inactive_file:1012KB active_file:8KB unevictable:0KB
 Memory cgroup out of memory: Kill process 2746 (leaker) score 998 or sacrifice child
 Killed process 2746 (leaker) total-vm:536704kB, anon-rss:521176kB, file-rss:1208kB, shmem-rss:0kB
 oom_reaper: reaped process 2746 (leaker), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

[2]

 leaker invoked oom-killer: gfp_mask=0x600040(GFP_NOFS), nodemask=(null), order=0, oom_score_adj=0
 CPU: 1 PID: 2746 Comm: leaker Not tainted 4.18.0+ 150balbes#20
 Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 04/13/2018
 Call Trace:
  dump_stack+0x63/0x88
  dump_header+0x67/0x27a
  ? mem_cgroup_scan_tasks+0x91/0xf0
  oom_kill_process+0x210/0x410
  out_of_memory+0x109/0x2d0
  mem_cgroup_out_of_memory+0x46/0x80
  try_charge+0x58d/0x650
  ? __radix_tree_replace+0x81/0x100
  mem_cgroup_try_charge+0x7a/0x100
  __add_to_page_cache_locked+0x92/0x180
  add_to_page_cache_lru+0x4d/0xf0
  iomap_readpages_actor+0xde/0x1b0
  ? iomap_zero_range_actor+0x1d0/0x1d0
  iomap_apply+0xaf/0x130
  iomap_readpages+0x9f/0x150
  ? iomap_zero_range_actor+0x1d0/0x1d0
  xfs_vm_readpages+0x18/0x20 [xfs]
  read_pages+0x60/0x140
  __do_page_cache_readahead+0x193/0x1b0
  ondemand_readahead+0x16d/0x2c0
  page_cache_async_readahead+0x9a/0xd0
  filemap_fault+0x403/0x620
  ? alloc_set_pte+0x12c/0x540
  ? _cond_resched+0x14/0x30
  __xfs_filemap_fault+0x66/0x180 [xfs]
  xfs_filemap_fault+0x27/0x30 [xfs]
  __do_fault+0x19/0x40
  __handle_mm_fault+0x8e8/0xb60
  handle_mm_fault+0xfd/0x220
  __do_page_fault+0x238/0x4e0
  do_page_fault+0x22/0x30
  ? page_fault+0x8/0x30
  page_fault+0x1e/0x30
 RIP: 0033:0x4009f0
 Code: 03 00 00 00 e8 71 fd ff ff 48 83 f8 ff 49 89 c6 74 74 48 89 c6 bf c0 0c 40 00 31 c0 e8 69 fd ff ff 45 85 ff 7e 21 31 c9 66 90 <41> 0f be 14 0e 01 d3 f7 c1 ff 0f 00 00 75 05 41 c6 04 0e 2a 48 83
 RSP: 002b:00007ffda45c9290 EFLAGS: 00010206
 RAX: 000000000000001b RBX: 0000000000000000 RCX: 0000000001a1e000
 RDX: 0000000000000000 RSI: 000000007fffffe5 RDI: 0000000000000000
 RBP: 000000000000000c R08: 0000000000000000 R09: 00007f6d061ff20d
 R10: 0000000000000002 R11: 0000000000000246 R12: 00000000000186a0
 R13: 0000000000000003 R14: 00007f6ce59b2000 R15: 0000000002800000
 Task in /leaker killed as a result of limit of /leaker
 memory: usage 524288kB, limit 524288kB, failcnt 7221
 memory+swap: usage 0kB, limit 9007199254740988kB, failcnt 0
 kmem: usage 1944kB, limit 9007199254740988kB, failcnt 0
 Memory cgroup stats for /leaker: cache:3632KB rss:518232KB rss_huge:0KB shmem:0KB mapped_file:0KB dirty:0KB writeback:0KB inactive_anon:0KB active_anon:518408KB inactive_file:3908KB active_file:12KB unevictable:0KB
 Memory cgroup out of memory: Kill process 2746 (leaker) score 992 or sacrifice child
 Killed process 2746 (leaker) total-vm:536704kB, anon-rss:518264kB, file-rss:1188kB, shmem-rss:0kB
 oom_reaper: reaped process 2746 (leaker), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

[3]

 leaker invoked oom-killer: gfp_mask=0x50, order=0, oom_score_adj=0
 leaker cpuset=/ mems_allowed=0
 CPU: 1 PID: 3206 Comm: leaker Not tainted 3.10.0-957.27.2.el7.x86_64 150balbes#1
 Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 04/13/2018
 Call Trace:
  [<ffffffffaf364147>] dump_stack+0x19/0x1b
  [<ffffffffaf35eb6a>] dump_header+0x90/0x229
  [<ffffffffaedbb456>] ? find_lock_task_mm+0x56/0xc0
  [<ffffffffaee32a38>] ? try_get_mem_cgroup_from_mm+0x28/0x60
  [<ffffffffaedbb904>] oom_kill_process+0x254/0x3d0
  [<ffffffffaee36c36>] mem_cgroup_oom_synchronize+0x546/0x570
  [<ffffffffaee360b0>] ? mem_cgroup_charge_common+0xc0/0xc0
  [<ffffffffaedbc194>] pagefault_out_of_memory+0x14/0x90
  [<ffffffffaf35d072>] mm_fault_error+0x6a/0x157
  [<ffffffffaf3717c8>] __do_page_fault+0x3c8/0x4f0
  [<ffffffffaf371925>] do_page_fault+0x35/0x90
  [<ffffffffaf36d768>] page_fault+0x28/0x30
 Task in /leaker killed as a result of limit of /leaker
 memory: usage 524288kB, limit 524288kB, failcnt 20628
 memory+swap: usage 524288kB, limit 9007199254740988kB, failcnt 0
 kmem: usage 0kB, limit 9007199254740988kB, failcnt 0
 Memory cgroup stats for /leaker: cache:840KB rss:523448KB rss_huge:0KB mapped_file:0KB swap:0KB inactive_anon:0KB active_anon:523448KB inactive_file:464KB active_file:376KB unevictable:0KB
 Memory cgroup out of memory: Kill process 3206 (leaker) score 970 or sacrifice child
 Killed process 3206 (leaker) total-vm:536692kB, anon-rss:523304kB, file-rss:412kB, shmem-rss:0kB

Bisected by Masoud Sharbiani.

Link: http://lkml.kernel.org/r/cbe54ed1-b6ba-a056-8899-2dc42526371d@i-love.sakura.ne.jp
Fixes: 3da88fb ("mm, oom: move GFP_NOFS check to out_of_memory") [necessary after 29ef680]
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Reported-by: Masoud Sharbiani <msharbiani@apple.com>
Tested-by: Masoud Sharbiani <msharbiani@apple.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: David Rientjes <rientjes@google.com>
Cc: <stable@vger.kernel.org>	[4.19+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants