Giter VIP home page Giter VIP logo

kernel'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  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

kernel's Issues

Setting GPU clock frequency

Hi

The result of CL_DEVICE_MAX_CLOCK_FREQUENCY attribute for OpenCL returns 100MHz only. Is this value correct on RK3288? I am using an Asus Tinkerboard and is there a way I can set the GPU clock in kernel configuration?

thnx

instructions on rockchip wiki page to boot from sd card not correct?

I am using rockchip's kernel and u-boot repos with my firefly rk3288 reload board. I used the instructions at http://rockchip.wikidot.com/linux-user-guide to install an SPL in the emmc:

tools/mkimage -n rk3288 -T rksd -d spl/u-boot-spl-nodtb.bin u-boot-dtb.bin
sudo upgrade_tool db ../rkbin/rk32/rk3288_boot.bin
sudo upgrade_tool wl 64 u-boot-dtb.bin

I then followed the instructions under "booting from sd card" to prepare and SD card. However, one problem I had when booting from it, is that the root=... in extlinux.conf referring to /dev/mmcblk0p7 does not work because as soon as the kernel starts it detects the emmc flash memory (16gb on my firefly rk3288 reload board), and it will name it mmcblk0 as device. If I changed it to mmcblk1p7 then it also doesn't work because then the SD card becomes mmcblk0 and the internal mmc becomes mmcblk1. Naming it mmcblk2p7 also doesn't work, so in the end I took the partition UUID I saw in the kernel output and used root=PARTUUID=... in extlinux.conf and that worked. When I inspected the UUID for the rootfs partition on my linux dev PC it was different than the UUID shown on the serial console when I booted with my board so I wrote down the UUID from the serial console and used that after PARTUUID=...

It would be better to make it clear in the instructions at http://rockchip.wikidot.com/linux-user-guide that the u-boot SPL will not be able to find the emmc and load uboot, and that as such, without patching u-boot, the board will boot from SD card and that it's best to use PARTUUID=... instad of referring to the mmcblk0 device which can be renamed by the linux kernel when it starts.

rockchip isp1 driver

Rockchip ISP1 driver is a new isp driver for rockchip rk3288/rk3399 SoC, we might use it in future for all linux-kernel based OS, including Android, ChromeOS, Linux......
It's writen in standard v4l2, will be compatible with upstream sensor driver.
The development will be last until 2018.04, i hope we could have a working driver, camera hal3, gstreamer plugin at that time.

If you find something is missing in this driver, maybe you could help us add it. ; - p
e.g: MIPI TXRX, you can refer to https://github.com/rockchip-linux/kernel/tree/release-4.4/drivers/media/platform/rk-isp10

At present we have some working drivers for linux, but i recommend to not use them especially you don't have commercial support, since it's also buggy and no one can help you......

Status

I have push the new MIPI CSI driver to isp-early-access branch.
https://github.com/rockchip-linux/kernel/tree/isp-early-access

upstream status:
https://patchwork.linuxtv.org/project/linux-media/list/?submitter=7231

I will maintain this branch until the driver be merged into Rockchip 4.4 kernel/Upstream kernel/ChromeOS kernel.
Report bugs are welcome.

Missing feature in this new driver:

  • No MIPI-TXRX/ DVP support
  • No 3A support

TODO in kernel 4.4:

  • Test isp0/isp1 in rk3399 and add dts node
  • Test dual isp in rk3399

Test in:

  • Tinker Board + imx219/ov5647
  • Firefly + HDMI_IN

missing .dts file for firefly rk3288 reload board

I compiled the kernel using branch release-20160920, hoping to use it with my
firefly rk3288 reload board (see http://en.t-firefly.com/en/firenow/firefly_rk3288/).

I configured the kernel with rockchip_linux_defconfig and I'm using rk3288-firefly.dts. I managed to boot with the kernel but it seems that the hardware on my firefly reload board doesn't work. I can see graphics via HDMI and see the linux desktop but when I plug in a mouse it doesn't work, probably because the .dts file for my reload board has to be different from the original .dts for the firefly board.

Also, I get the below kernel messages on the serial console endlessly looping, I suppose this has to do with the .dts file not being correct for my board. See below for the kernel messages on the serial console which are looping non stop.

I know that firefly has a kernel config and dts file for the reload board in their kernel repository. I thought I could copy their .dts and kernel config to use it with the above branch of rockchip's kernel but I'm not sure how to do it. Is it a matter of putting their kernel config in ./arch/arm/configs/ and .dts file in ./arch/arm/boot/dts/ and i can automatically use it or is there something else I should do? I would appreciate it if the kernel config/dts file for the reload board are added to rockchip's kernel repo.

[ 690.278519] dhd_txglom_enable: enable 0
[ 690.282359] dhd_conf_set_txglom_params: swtxglom=0, txglom_ext=0
[ 690.288406] dhd_conf_set_txglom_params: txglom_bucket_size=0
[ 690.294061] dhd_conf_set_txglom_params: txglomsize=0,
deferred_tx_len=0, bus_txglom=0
[ 690.301906] dhd_conf_set_txglom_params: tx_in_rx=1, tx_max_offset=0
[ 690.308190] dhd_bus_devreset: WLAN OFF DONE
[ 690.313696] wifi_platform_set_power = 0
[ 690.317576] ======== PULL WL_REG_ON LOW! ========
[ 690.322278] [WLAN_RFKILL]: rockchip_wifi_power: 0
[ 690.327626] [WLAN_RFKILL]: wifi shut off power.
[ 690.332155] wl_android_wifi_off out
[ 690.467023] dhd_stop: Exit
[ 690.480667] dhd_set_mac_addr_handler: interface info not available/down
[ 690.590926] dhd_open: Enter eebb7800
[ 690.594506]
[ 690.594506] Dongle Host Driver, version 1.363.59.144.1 (r)
[ 690.601499] wl_android_wifi_on in 1
[ 690.605414] wl_android_wifi_on in 2: g_wifi_on=0
[ 690.610055] wifi_platform_set_power = 1
[ 690.613885] ======== PULL WL_REG_ON HIGH! ========
[ 690.618684] [WLAN_RFKILL]: rockchip_wifi_power: 1
[ 690.623381] [WLAN_RFKILL]: wifi turn on power. -1
[ 690.837146] sdio_reset_comm():
[ 690.843390] dwmmc_rockchip ff0d0000.dwmmc: could not set regulator OCR (-22)
[ 690.850729] dwmmc_rockchip ff0d0000.dwmmc: failed to enable vmmc regulator
[ 690.887384] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req
400000Hz, actual 400000HZ div = 0)
[ 690.910541] mmc_host mmc1: Bus speed (slot 0) = 200000Hz (slot req
200000Hz, actual 200000HZ div = 0)
[ 690.958322] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 690.966781] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 690.975271] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 690.986141] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 691.098590] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot
req 50000000Hz, actual 50000000HZ div = 0)
[ 692.167059] dwmmc_rockchip ff0d0000.dwmmc: Successfully tuned phase to 117
[ 692.174157] sdioh_start: set sd_f2_blocksize 128
[ 692.183550]
[ 692.183550]
[ 692.183550] dhd_bus_devreset: == WLAN ON ==
[ 692.192021] F1 signature read @0x18000000=0x16224335
[ 692.207003] F1 signature OK, socitype:0x1 chip:0x4339 rev:0x1 pkg:0x2
[ 692.214942] DHD: dongle ram size is set to 786432(orig 786432) at 0x180000
[ 692.224124] dhd_os_open_image: /system/etc/firmware/config.txt (204
bytes) open success
[ 692.233653] dhd_conf_read_config: dhd_doflow = 1
[ 692.238549] dhd_conf_read_config: srl = 15
[ 692.242687] dhd_conf_read_config: lrl = 15
[ 692.247548] dhd_conf_set_fw_name_by_chip:
firmware_path=/system/etc/firmware/fw_bcm4339a0_ag.bin
[ 692.256352] dhdsdio_download_firmware: set use_rxchain 0
[ 692.261742] dhdsdio_download_firmware: set txglomsize 40
[ 692.267139] sdioh_set_mode: set txglom_mode to copy
[ 692.272035] Final fw_path=/system/etc/firmware/fw_bcm4339a0_ag.bin
[ 692.278286] Final nv_path=/system/etc/firmware/nvram_AP6335.txt
[ 692.284222] Final conf_path=/system/etc/firmware/config.txt
[ 692.297615] dhd_os_open_image:
/system/etc/firmware/fw_bcm4339a0_ag.bin (517576 bytes) open success
[ 692.360876] dhd_os_open_image:
/system/etc/firmware/nvram_AP6335.txt (2375 bytes) open success
[ 692.369518] NVRAM version: AP6335_NVRAM_V1.2_01092014
[ 692.375557] dhdsdio_write_vars: Download, Upload and compare of
NVRAM succeeded.
[ 692.561339] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
[ 692.567307] bcmsdh_oob_intr_register: Enter
[ 692.571483] bcmsdh_oob_intr_register: HW_OOB enabled
[ 692.576438] bcmsdh_oob_intr_register OOB irq=223 flags=4
[ 692.582201] bcmsdh_oob_intr_register: enable_irq_wake
[ 692.589367] dhd_conf_set_fw_int_cmd: set WLC_SET_BAND 142 0
[ 692.604561] Firmware up: op_mode=0x0005, MAC=94:a1:a2:4b:4b:46
[ 692.610399] dhd_conf_set_country: set country ALL, revision 0
[ 692.616134] dhd_conf_set_fw_string_struct_cmd: set country
[ 692.622243] CONFIG-ERROR) dhd_conf_set_fw_string_struct_cmd:
country setting failed -2
[ 692.630959] Country code: US (US/0)
[ 692.634635] dhd_conf_set_fw_string_cmd: set roam_off 1
[ 692.641241] dhd_conf_set_fw_int_cmd: set WLC_SET_SRL 32 15
[ 692.646994] dhd_conf_set_fw_int_cmd: set WLC_SET_LRL 34 15
[ 692.652914] dhd_conf_set_fw_string_cmd: set txbf 1
[ 692.666123] dhd_preinit_ioctls event_msgs_ext not support or
version mismatch -23
[ 692.677594] Firmware version = wl0: Jul 25 2013 00:04:02 version
6.37.32.5 (r414538)
[ 692.685325] Driver: 1.363.59.144.1 (r)
[ 692.685325] Firmware: wl0: Jul 25 2013 00:04:02 version 6.37.32.5 (r414538)
[ 692.697207] dhd_txglom_enable: enable 1
[ 692.701037] dhd_conf_set_txglom_params: swtxglom=0, txglom_ext=0
[ 692.707049] dhd_conf_set_txglom_params: txglom_bucket_size=0
[ 692.712700] dhd_conf_set_txglom_params: txglomsize=40,
deferred_tx_len=40, bus_txglom=0
[ 692.720699] dhd_conf_set_txglom_params: tx_in_rx=1, tx_max_offset=0
[ 692.726969] dhd_conf_set_disable_proptx: set disable_proptx 0
[ 692.733889] dhd_wlfc_hostreorder_init(): successful bdcv2 tlv signaling, 64
[ 692.741297] wl_android_wifi_on: Success
[ 692.745595] wl_create_event_handler(): thread:wl_event_handler:6b4 started
[ 692.745601] tsk Enter, tsk = 0xedf415c8
[ 692.825591] dhd_open: Exit ret=0
[ 692.832518] dhd_stop: Enter eebb7800
[ 692.838009] wl_event_handler: was terminated
[ 692.842282] wl_destroy_event_handler(): thread:wl_event_handler:6b4
terminated OK
[ 692.849966] CFGP2P-ERROR) wl_cfgp2p_disable_discovery : do
nothing, not initialized
[ 692.857800] CFGP2P-ERROR) wl_cfgp2p_deinit_priv : In
[ 692.863390] CFG80211-ERROR) wl_cfg80211_event : Event handler is not created
[ 692.870864] wl_android_wifi_off in 1
[ 692.874561] wl_android_wifi_off in 2: g_wifi_on=1, on_failure=1
[ 692.881115] dhdsdio_isr : bus is down. we have nothing to do
[ 692.886795] bcmsdh_oob_intr_unregister: Enter
[ 692.891203] ------------[ cut here ]------------
[ 692.895833] WARNING: CPU: 0 PID: 423 at drivers/clk/clk.c:680
clk_core_disable+0x34/0x16c()
[ 692.904173] Modules linked in:
[ 692.907245] CPU: 0 PID: 423 Comm: NetworkManager Tainted: G
W 4.4.16 #2
[ 692.914979] Hardware name: Rockchip (Device Tree)
[ 692.919701] from
[ 692.927449] from
[ 692.934676] from
[ 692.942765] from
[ 692.951546] from
[ 692.960070] from
[ 692.967901] from
[ 692.976774] from

[ 692.985731] from
[ 692.993300] from
[ 693.000352] from
[ 693.008789] from

[ 693.018007] from
[ 693.026707] from
[ 693.035578] from
[ 693.043496] from
[ 693.051068] from
[ 693.058899] from
[ 693.066988] from
[ 693.075423] from
[ 693.083338] from
[ 693.090907] from
[ 693.099084] from
[ 693.107347] from
[ 693.115263] from
[ 693.123353] from
[ 693.131616] from
[ 693.139445] from
[ 693.147360] from
[ 693.155188] from
[ 693.162758] from
[ 693.170494] ---[ end trace 94868236ff675595 ]---

Bug: RK3399 No rule to make target 'zImage'

Hi,

I was trying to compile kernel branch release-4.4 for RK3399, following Rockchip wikidot. But got error: No rule to make target 'zImage'. Stop.

Also tried bzImage, not work either.

It's possible that there's something wrong with the Makefile.

$~/oshw/rk3399/build/kernel$ export ARCH=arm64
$~/oshw/rk3399/build/kernel$ export CROSS_COMPILE=aarch64-linux-gnu-
$~/oshw/rk3399/build/kernel$ make rockchip_linux_defconfig
#
# configuration written to .config
#
$~/oshw/rk3399/build/kernel$ make zImage
scripts/kconfig/conf  --silentoldconfig Kconfig
make: *** No rule to make target 'zImage'.  Stop.
$~/oshw/rk3399/build/kernel$ git checkout 
Your branch is up-to-date with 'origin/release-4.4'.

Only this option worked.

make rk3399-sapphire-excavator-linux.img

But how could I specify the output resource.img or kernel.img with extlinux.conf?

Thanks and BR,
nightseas

RK3288 ov13850_v4l2-i2c-subdev

Hi,
I am trying to capture stream of a ov13850 mipi camera. I am able to communicate with sensor via i2c but stream always hang on VIDEOC_DQBUF. Is kernel MIPI infrastructure complete and working or something is under development yet? I have tried both MMAP and ION but nothing changes.

Searching online I have seen this thread and I suppose kernel CIF_ISP camera driver is not complete yet. Is it so?

Could you give me some advice?
thank you for the attention, best regards
Andrea

DRM: totally broken VOP output mode selector rk3288

Hello.

There is totally broken VOP for rk3288 platforms (TinkerBoard, ...). It usually boots only to 800x600 resolution that pass both errors (see also http://tinkerboarding.co.uk/forum/showthread.php?tid=61&pid=323#pid323).
I identified 2 issues in rockchip DRM/kernel but unable to correct:

1) nearly all output modes are blocked for DMT/VESA modes

Problem is in new validity checking (commit 7e3e0c5) and/or modification of "dclk_vop" clock driver (commit d072a98 maybe other). Due to strictly checking available clock in vop_crtc_mode_valid() (see https://github.com/rockchip-linux/kernel/blob/release-4.4/drivers/gpu/drm/rockchip/rockchip_drm_vop.c#L1443) and some modification in "dclk_vop" clock driver it is not possible to set even basic DMT/VESA modes. Mode validation fails with MODE_CLOCK_RANGE. Example (compare clock != request_clock from code):

Modeline 100:"1280x1024" 75 135000 1280 1296 1440 1688 1024 1025 1028 1066 0x40 0x5
clock error: 133333 != 135000
Modeline 80:"1280x1024" 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x48 0x5
clock error: 100000 != 108000
Modeline 88:"1024x768" 75 78800 1024 1040 1136 1312 768 769 772 800 0x40 0x5
clock error: 74250 != 78800
Modeline 90:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
clock error: 62500 != 65000

2) check modes to "fail-safe" framebuffer size (1024x768) and not to maximum available

The problem is in late hdmi start (state "connected"). Framebuffer is already set do "1024x768" default but new modes are validated to this resolution and not to maximum available (8192x8192?). Mode validation fails with MODE_VIRTUAL_X. Sample from dmesg (XXXX is inside drm_mode_validate_size() "DRM_DEBUG_KMS("XXXX %dx%d %dx%d\n", mode->hdisplay, mode->vdisplay, maxX, maxY);" and "dump_stack()" shows call from drm_fb_helper_hotplug_event() (https://github.com/rockchip-linux/kernel/blob/release-4.4/drivers/gpu/drm/drm_fb_helper.c#L2161) and from rockchip_drm_output_poll_changed() (https://github.com/rockchip-linux/kernel/blob/release-4.4/drivers/gpu/drm/rockchip/rockchip_drm_fb.c#L220)):

[    1.440674] [drm:drm_helper_probe_single_connector_modes_merge_bits] [CONNECTOR:78:HDMI-A-1] disconnected
[    1.440693] rockchip-drm display-subsystem: No connectors reported connected with modes
[    1.448764] [drm:drm_setup_crtcs] 
[    1.448795] [drm:drm_sysfs_hotplug_event] generating hotplug event
[    1.448849] [drm:drm_enable_connectors] connector 78 enabled? no
[    1.448865] [drm:drm_setup_crtcs] picking CRTCs for 8192x8192 config
[    1.448881] [drm:drm_fb_helper_single_fb_probe] Cannot find any crtc or sizes - going 1024x768
[    1.462950] [drm:rockchip_gem_get_pages] rockchip_gem_get_pages, 201, end = 768, n_pages = 768
[    1.467034] [drm:rockchip_drm_fbdev_create] FB [1024x768]-24 kvaddr=f0921000 offset=0 size=3145728
....
[    4.246398] [drm:drm_helper_hpd_irq_event] [CONNECTOR:78:HDMI-A-1] status updated from disconnected to connected
[    4.246411] [drm:drm_sysfs_hotplug_event] generating hotplug event
[    4.246451] [drm:drm_fb_helper_hotplug_event] 
[    4.246467] [drm:drm_helper_probe_single_connector_modes_merge_bits] [CONNECTOR:78:HDMI-A-1]
....
[    4.572432] [drm:drm_mode_validate_size] XXXX 1280x1024 1024x768

Are there any new patches to resolve this issues ?

Thanks, Martin

ASUS Tinker Board Kernel Modules

Hi,
I have tried to test the kernel on this repository for ASUS Tinker Board.(using rk3288_linux_defconfig)
I have compiled the kernel and modules and boot the device with created kernel.

The kernel could load the device successfully however, modules does not load at all as this repository do not create all the required modules.

Device Tree seems different compare to official ASUS DTB file for miniarm.
Can you please advise if modules like WIFI and Bluetooth are included in this repository or not?

Thanks

rk3399: NETDEV WATCHDOG: eth0 (rk_gmac-dwmac): transmit queue 0 timed out

On the RK3399 running the release-4.4 kernel, it is fairly easy to lock up the Ethernet interface by running heavy traffic over it. After a few minutes you'll get a kernel message like this:

[ 3067.819477] NETDEV WATCHDOG: eth0 (rk_gmac-dwmac): transmit queue 0 timed out

This has been reported against the Firefly-RK3399 board here but we are also seeing this on our hardware. Is this a known issue?

Let me know if you need help for reproducing this.

Starting kernel ... hang

ไฝ ๅฅฝ๏ผŒๆˆ‘ไฝฟ็”จRK3229 echoๆฟใ€‚
557798052
ๅฏๅŠจ็š„ๆ—ถๅ€™ๅˆฐStarting kernel ...ๅฐฑๆŒ‚ไบ†ใ€‚ไธ‹้ขๆ˜ฏๅ…ทไฝ“็š„log:

SPL Inittimer init done
rk322x_dmc_probe
ddr clk dpll
ret=600000000
sdram_all_config bw 2 col 10
sdram_all_config reg 110005d0 6281
Returning to boot ROM...

U-Boot 2017.05-g6c615f4-dirty (Jul 10 2017 - 10:03:48 +0800)

Model: Rockchip RK3229 Evaluation board
DRAM:  rk322x_dmc_probe
rockchip_sdram_size 110005d0 6281
rank 1 col 10 bk 3 cs0_row 15 bw 2 row_3_4 0
size 40000000                                                                   
SDRAM base=60000000, size=40000000                                              
992 MiB                                                                         
MMC:   dwmmc@30020000: 0                                                        
*** Warning - bad CRC, using default environment                                
                                                                                
In:    serial@11030000                                                          
Out:   serial@11030000                                                          
Err:   serial@11030000                                                          
Net:   Net Initialization Skipped                                               
No ethernet found.                                                              
Hit any key to stop autoboot:  0                                                
                                                                                
MMC read: dev # 0, block # 32768, count 20480 ... 20480 blocks read: OK         
Wrong Image Format for bootm command                                            
ERROR: can't get kernel image!                                                  
=> run bootcmd_mmc0                                                             
switch to partitions #0, OK                                                     
mmc0(part 0) is current device                                                  
Scanning mmc 0:6...                                                             
Found /extlinux/extlinux.conf                                                   
Retrieving file: /extlinux/extlinux.conf                                        
reading /extlinux/extlinux.conf                                                 
170 bytes read in 8 ms (20.5 KiB/s)                                             
1:      kernel-4.4                                                              
Retrieving file: /zImage                                                        
reading /zImage                                                                 
7340608 bytes read in 5229 ms (1.3 MiB/s)                                       
append: earlyprintk console=ttyFIQ0,115200n8 rw root=/dev/mmcblk0p7 rootfstype=t
Retrieving file: /rk3229-echo-v10.dtb                                           
reading /rk3229-echo-v10.dtb                                                    
26513 bytes read in 28 ms (923.8 KiB/s)                                         
## Flattened Device Tree blob at 61f00000                                       
   Booting using the fdt blob at 0x61f00000                                     
   Loading Device Tree to 683f6000, end 683ff790 ... OK                         
                                                                                
Starting kernel ...  

่ฟ™ๆ˜ฏๆˆ‘็š„extlinux.conf

baozhu@server:~/studio/rockchip/rk-linux$ cat boot/extlinux/extlinux.conf 
label kernel-4.4
    kernel /zImage
    fdt /rk3229-echo-v10.dtb
    append  earlyprintk console=ttyFIQ0,115200n8 rw root=/dev/mmcblk0p7 rootfstype=ext4 init=/sbin/init

่ฏทๅธฎๅฟ™็œ‹็œ‹่ฟ™ไธช้—ฎ้ข˜๏ผŒ่ฐข่ฐข

rk3036-kylin compilation fails on arm-linux-gnueabihf-gcc 6.3.0 (Ubuntu 17.04)

Hello,
have latest gcc installed via aptitude install, kernel fails to compile.

drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/siutils.c:544:14: warning: self-comparison always evaluates to false [-Wtautological-compare]
error, forbidden warning: siutils.c:544

net/rfkill/rfkill-bt.c: In function โ€˜rfkill_rk_removeโ€™:
net/rfkill/rfkill-bt.c:703:5: warning: this โ€˜ifโ€™ clause does not guard... [-Wmisleading-indentation]
error, forbidden warning: rfkill-bt.c:703

Please advise

drivers/mfd/fusb302.c fails to compile

drivers/mfd/fusb302.c: In function โ€˜vdm_send_discoverysvidโ€™:
drivers/mfd/fusb302.c:1164:3: warning: โ€˜memsetโ€™ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
error, forbidden warning: fusb302.c:1164
scripts/Makefile.build:266: recipe for target 'drivers/mfd/fusb302.o' failed
make[2]: *** [drivers/mfd/fusb302.o] Error 1
scripts/Makefile.build:411: recipe for target 'drivers/mfd' failed
make[1]: *** [drivers/mfd] Error 2
Makefile:999: recipe for target 'drivers' failed
make: *** [drivers] Error 2

gcc version 7.2.0 (Ubuntu/Linaro 7.2.0-8ubuntu3)
Ubuntu 17.10

RK3288-FireFly no HDMI Sound

Hi,
I just have used this repository to update my kernel and device tree for rk3288-Firefly.
The only available Sound system is SPDIF and we have no sound on HDMI to select.

When I use KODI I only have to connect SPDIF and the sound is not available on HDMI.
Can you please provide a patch and fix for having HDMI sound as an alternative option to SPDIF for sound system.

Thanks

Firefly-RK3288 Linux Kernel

Sorry I am writing this question here as an issue.
I have a Firefly-RK3288 board. It's dual boot with android so recovery partition is used for linux kernel and at the moment official kernel 3.10.0 is compiled and loaded.

Can I use "kernel" in this repository to update only my Linux kernel on recovery partition of my Firefly-RK3288 board?
Please advise if boot partition (u-boot) needs to be updated as well.

Can you please give me the link to the best guide that I can use?
It seems that it is not normal kernel and dts file copy and I apparently have to make a kernel image with different format compatible with Firefly-rk3288 partitioning, correct?

Thanks for your assistance,

RK3288-miqiๆ— ๆณ•ๅŠ ่ฝฝไปปไฝ•ๅ†…ๆ ธๆจกๅ—

HI
ๆˆ‘ๆ‰‹ๅŠจ็ผ–่ฏ‘ไบ†ๆœ€ๆ–ฐ็š„๏ฝ‹๏ฝ…๏ฝ’๏ฝŽ๏ฝ…๏ฝŒ, ็„ถๅŽๅœจ๏ผญ๏ผฉ๏ผฑ๏ผฉ็š„ๆฟๅญ็š„ไธŠ้ข่ฟ่กŒ๏ผŽๆ— ๆณ•ๅŠ ่ฝฝไปปไฝ•ๅ†…ๆ ธๆจกๅ—๏ผŒไธ‹้ขๆ˜ฏๆˆ‘็š„็ผ–่ฏ‘ๆญฅ้ชค๏ผš

make rockchip_linux_defconfig ARCH=arm
fakeroot make  ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOCALVERSION=-miqi-r1  KDEB_PKGVERSION=1stable bindeb-pkg -j 8

็ผ–่ฏ‘็”Ÿๆˆ็š„linux-image-4.4.83-miqi-r1_1stable_armhf.debๅœจarmbianไธŠ้ขๅฎ‰่ฃ…๏ผŒๅฏไปฅๆญฃๅธธๅฏๅŠจ๏ผŒไฝ†ๆ˜ฏๅฏๅŠจๅŽๆ— ๆณ•ๅŠ ่ฝฝๅ†…ๆ ธๆจกๅ—๏ผŒไพ‹ๅฆ‚๏ผš

v2@miqi:~$ sudo modprobe echainiv
[sudo] password for v2: 
[   63.512700] ------------[ cut here ]------------
[   63.517321] kernel BUG at mm/memory.c:1928!
[   63.521501] Internal error: Oops - BUG: 0 [#1] SMP ARM
[   63.526633] Modules linked in:
[   63.529702] CPU: 0 PID: 2203 Comm: modprobe Not tainted 4.4.83-miqi-r1 #2
[   63.536480] Hardware name: Rockchip (Device Tree)
[   63.541179] task: ed4f5400 task.stack: e44a4000
[   63.545712] PC is at apply_to_page_range+0x30/0x1e0
[   63.550589] LR is at change_memory_common+0xa0/0xd4
[   63.555463] pc : [<c020f6fc>]    lr : [<c0116d08>]    psr: 600e0013
[   63.555463] sp : e44a5dd0  ip : e44a5e10  fp : e44a5e0c
[   63.566924] r10: 00000041  r9 : bf006000  r8 : c11233b8
[   63.572143] r7 : bf002180  r6 : bf006000  r5 : 00000000  r4 : bf006000
[   63.578663] r3 : c0116c24  r2 : 00000000  r1 : bf006000  r0 : c11233b8
[   63.585183] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[   63.592309] Control: 10c5387d  Table: 2cf0006a  DAC: 00000051
[   63.598047] 
[   63.598047] PC: 0xc020f67c:
[   63.602312] f67c  e081c00c e1a0c62c e173000c 2a00000c e590404c e15c0004 3a000009 e0832004
[   63.610598] f69c  e890000a e04cc004 e0433001 e15c0623 3a000003 e590c024 e58dc000 ebffff66
[   63.618874] f6bc  ea000000 e3e00015 e24bd010 e89da810 e1a0c00d e92ddff0 e24cb004 e24dd014
[   63.627152] f6dc  e52de004 e8bd4000 e0819002 e1a08000 e1510009 e1a06001 e50b303c 3a000000
[   63.635429] f6fc  e7f001f2 e5905020 e1a03aa1 e59fa190 e0855183 e2855008 e2867602 e2493001
[   63.643712] f71c  e1a07aa7 e1a07a87 e2472001 e1520003 21a07009 e2552008 0a000044 e158000a
[   63.651990] f73c  1a00000f e5153008 e3530000 0a000006 e5154008 e7e83656 e3c44eff e3c4400f
[   63.660268] f75c  e2444440 e0844103 ea00001f e1a01006 e1a00002 ebfff813 e3500000 0afffff3
[   63.668551] 
[   63.668551] LR: 0xc0116c88:
[   63.672816] 6c88  e3530000 e1a05601 e1a04000 e1a09002 00806005 0a00000b e59f7084 e3c04eff
[   63.681100] 6ca8  e3c4400f e0856004 e5d73000 e3530000 1a000004 e3a01031 e59f0068 eb001b57
[   63.689377] 6cc8  e3a03001 e5c73000 e2843441 e353060e 2a000010 e35604bf 3a00000e e1a02005
[   63.697661] 6ce8  e24b302c e1a01004 e58d3000 e59f0038 e59f3038 e50b902c e50b8028 eb03e270
[   63.705938] 6d08  e1a01006 e1a05000 e1a00004 ebffdfcf e1a00005 ea000000 e3e00015 e24bd024
[   63.714217] 6d28  e89dabf0 c11d32cf c0dc685a c11233b8 c0116c24 e1a0c00d e92dd800 e24cb004
[   63.722498] 6d48  e52de004 e8bd4000 e3a03000 e3a02080 ebffffc2 e89da800 e1a0c00d e92dd800
[   63.730774] 6d68  e24cb004 e52de004 e8bd4000 e3a03080 e3a02000 ebffffb9 e89da800 e1a0c00d
[   63.739051] 
[   63.739051] SP: 0xe44a5d50:
[   63.743316] 5d50  c11cf248 00000000 024280c0 c020f700 00000000 c010ca98 00000000 e7100000
[   63.751602] 5d70  e44a5e0c e44a5d80 c010c660 c010100c c11233b8 bf006000 00000000 c0116c24
[   63.759881] 5d90  bf006000 00000000 bf006000 bf002180 c11233b8 bf006000 00000041 e44a5e0c
[   63.768158] 5db0  e44a5e10 e44a5dd0 c0116d08 c020f6fc 600e0013 ffffffff 00000051 c0116d08
[   63.776440] 5dd0  c0116c24 c0116c30 c0116c24 e453d018 ef4847a0 bf006000 00000000 bf006000
[   63.784719] 5df0  bf002180 00000000 00000080 00000041 e44a5e44 e44a5e10 c0116d08 c020f6d8
[   63.792997] 5e10  e44a5e18 c010ec64 00000080 00000000 c0116d3c c0116d3c bf002180 bf002180
[   63.801279] 5e30  e44a5ee4 00000000 e44a5e54 e44a5e48 c0116d5c c0116c74 e44a5e6c e44a5e58
[   63.809561] 
[   63.809561] IP: 0xe44a5d90:
[   63.813825] 5d90  bf006000 00000000 bf006000 bf002180 c11233b8 bf006000 00000041 e44a5e0c
[   63.822105] 5db0  e44a5e10 e44a5dd0 c0116d08 c020f6fc 600e0013 ffffffff 00000051 c0116d08
[   63.830386] 5dd0  c0116c24 c0116c30 c0116c24 e453d018 ef4847a0 bf006000 00000000 bf006000
[   63.838670] 5df0  bf002180 00000000 00000080 00000041 e44a5e44 e44a5e10 c0116d08 c020f6d8
[   63.846951] 5e10  e44a5e18 c010ec64 00000080 00000000 c0116d3c c0116d3c bf002180 bf002180
[   63.855232] 5e30  e44a5ee4 00000000 e44a5e54 e44a5e48 c0116d5c c0116c74 e44a5e6c e44a5e58
[   63.863511] 5e50  c019f630 c0116d48 bf0021ac c0116d3c e44a5e8c e44a5e70 c01a0d20 c019f5d8
[   63.871788] 5e70  bf002080 e44a5f44 00000000 bf002180 e44a5f3c e44a5e90 c01a2a4c c01a0cd8
[   63.880069] 
[   63.880069] FP: 0xe44a5d8c:
[   63.884334] 5d8c  c0116c24 bf006000 00000000 bf006000 bf002180 c11233b8 bf006000 00000041
[   63.892615] 5dac  e44a5e0c e44a5e10 e44a5dd0 c0116d08 c020f6fc 600e0013 ffffffff 00000051
[   63.900895] 5dcc  c0116d08 c0116c24 c0116c30 c0116c24 e453d018 ef4847a0 bf006000 00000000
[   63.909177] 5dec  bf006000 bf002180 00000000 00000080 00000041 e44a5e44 e44a5e10 c0116d08
[   63.917460] 5e0c  c020f6d8 e44a5e18 c010ec64 00000080 00000000 c0116d3c c0116d3c bf002180
[   63.925743] 5e2c  bf002180 e44a5ee4 00000000 e44a5e54 e44a5e48 c0116d5c c0116c74 e44a5e6c
[   63.934028] 5e4c  e44a5e58 c019f630 c0116d48 bf0021ac c0116d3c e44a5e8c e44a5e70 c01a0d20
[   63.942307] 5e6c  c019f5d8 bf002080 e44a5f44 00000000 bf002180 e44a5f3c e44a5e90 c01a2a4c
[   63.950588] 
[   63.950588] R0: 0xc1123338:
[   63.954853] 3338  0000071f 0000059f 0000059f 0000051f 0000051f 00100000 00000001 00000000
[   63.963138] 3358  dead4ead ffffffff ffffffff c1123364 c1123364 00000000 00000000 04840484
[   63.971422] 3378  dead4ead ffffffff ffffffff ecfff258 edc90f58 00000000 dead4ead ffffffff
[   63.979704] 3398  ffffffff 00000000 02080020 00000000 00000000 dead4ead ffffffff ffffffff
[   63.987988] 33b8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   63.996270] 33d8  c0004000 00000002 00000001 00000000 00000000 00070007 dead4ead ffffffff
[   64.004548] 33f8  ffffffff 00000000 c1123400 c1123400 00000000 dead4ead ffffffff ffffffff
[   64.012830] 3418  00000000 00000000 c1123420 c1123420 00000000 00000000 00000000 00000000
[   64.021114] 
[   64.021114] R3: 0xc0116ba4:
[   64.025379] 6ba4  05993020 01a01002 0a00000f e3c44eff e35504bf e3c4400f e1844006 2a000006
[   64.033661] 6bc4  e3003103 e1d33004 1a000003 e1a00004 ebfffc96 e3a02b02 ea000000 e3a02000
[   64.041944] 6be4  e5993020 e1a01004 e1a00008 e12fff33 e59f3024 e26714ff e1a00005 e281160f
[   64.050226] 6c04  e5933004 e12fff33 e89dabf0 c11233b8 ffeff000 c11d93dc c1106c94 c1106ce8
[   64.058504] 6c24  e1a0c00d e92dd800 e24cb004 e52de004 e8bd4000 e5932004 e593c000 e5901000
[   64.066784] 6c44  e59f3018 e1c11002 e3a02000 e181100c e5933020 e12fff33 e3a00000 e89da800
[   64.075063] 6c64  c1106c94 e1a0c00d e92ddbf0 e24cb004 e24dd010 e52de004 e8bd4000 e1a08003
[   64.083338] 6c84  e7eb3050 e3530000 e1a05601 e1a04000 e1a09002 00806005 0a00000b e59f7084
[   64.091620] 
[   64.091620] R8: 0xc1123338:
[   64.095884] 3338  0000071f 0000059f 0000059f 0000051f 0000051f 00100000 00000001 00000000
[   64.104169] 3358  dead4ead ffffffff ffffffff c1123364 c1123364 00000000 00000000 04840484
[   64.112452] 3378  dead4ead ffffffff ffffffff ecfff258 edc90f58 00000000 dead4ead ffffffff
[   64.120736] 3398  ffffffff 00000000 02080020 00000000 00000000 dead4ead ffffffff ffffffff
[   64.129017] 33b8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   64.137301] 33d8  c0004000 00000002 00000001 00000000 00000000 00070007 dead4ead ffffffff
[   64.145584] 33f8  ffffffff 00000000 c1123400 c1123400 00000000 dead4ead ffffffff ffffffff
[   64.153865] 3418  00000000 00000000 c1123420 c1123420 00000000 00000000 00000000 00000000
[   64.162151] Process modprobe (pid: 2203, stack limit = 0xe44a4258)
[   64.168324] Stack: (0xe44a5dd0 to 0xe44a6000)
[   64.172680] 5dc0:                                     c0116c24 c0116c30 c0116c24 e453d018
[   64.180850] 5de0: ef4847a0 bf006000 00000000 bf006000 bf002180 00000000 00000080 00000041
[   64.189021] 5e00: e44a5e44 e44a5e10 c0116d08 c020f6d8 e44a5e18 c010ec64 00000080 00000000
[   64.197191] 5e20: c0116d3c c0116d3c bf002180 bf002180 e44a5ee4 00000000 e44a5e54 e44a5e48
[   64.205362] 5e40: c0116d5c c0116c74 e44a5e6c e44a5e58 c019f630 c0116d48 bf0021ac c0116d3c
[   64.213532] 5e60: e44a5e8c e44a5e70 c01a0d20 c019f5d8 bf002080 e44a5f44 00000000 bf002180
[   64.221703] 5e80: e44a5f3c e44a5e90 c01a2a4c c01a0cd8 bf002080 c022dae8 000015d8 00000000
[   64.229874] 5ea0: 004fc84c bf00225c f1127588 0000000a c0c031bc 00000036 c1106d1c bf00208c
[   64.238044] 5ec0: 0003e6c7 00000000 0b300001 c03b81a4 00000001 00000000 00000000 00000000
[   64.246213] 5ee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   64.254383] 5f00: 00000000 00000000 00000000 00000000 e44a5f2c 00000000 004fc84c 00000003
[   64.262553] 5f20: 0000017b c0107484 e44a4000 00000000 e44a5fa4 e44a5f40 c01a32e0 c01a13e0
[   64.270723] 5f40: 00000002 f1126000 000015d8 f11270d8 f1126f8c f1126c08 00003000 000030b0
[   64.278893] 5f60: 00000000 00000000 00000000 00001634 0000001e 0000001f 00000016 00000000
[   64.287063] 5f80: 00000011 00000000 00000000 00a8deb8 00a8d1e0 a7f17d00 00000000 e44a5fa8
[   64.295233] 5fa0: c01072c0 c01a327c 00a8deb8 00a8d1e0 00000003 004fc84c 00000000 004fd890
[   64.303404] 5fc0: 00a8deb8 00a8d1e0 a7f17d00 0000017b 00040000 00000000 00a8deb8 00000000
[   64.311574] 5fe0: bebe93b8 bebe93a8 004f44bb b6f326b2 800e0030 00000003 00000000 00000000
[   64.319756] [<c020f6fc>] (apply_to_page_range) from [<c0116d08>] (change_memory_common+0xa0/0xd4)
[   64.328625] [<c0116d08>] (change_memory_common) from [<c0116d5c>] (set_memory_ro+0x20/0x24)
[   64.336973] [<c0116d5c>] (set_memory_ro) from [<c019f630>] (frob_rodata+0x64/0x68)
[   64.344541] [<c019f630>] (frob_rodata) from [<c01a0d20>] (module_enable_ro+0x54/0x5c)
[   64.352368] [<c01a0d20>] (module_enable_ro) from [<c01a2a4c>] (load_module+0x1678/0x1d48)
[   64.360542] [<c01a2a4c>] (load_module) from [<c01a32e0>] (SyS_finit_module+0x70/0x78)
[   64.368371] [<c01a32e0>] (SyS_finit_module) from [<c01072c0>] (ret_fast_syscall+0x0/0x3c)
[   64.376541] Code: e1510009 e1a06001 e50b303c 3a000000 (e7f001f2) 
[   64.382631] ---[ end trace 8ea5028c99065b36 ]---
Segmentation fault
v2@miqi:~$ 

ไธ‹้ขๆ˜ฏdmesg็š„๏ฝŒ๏ฝ๏ฝ‡
https://gist.github.com/Pillar1989/2d9a4af65b83e7347fc8f6d8c882f0e3
ๆˆ‘ๆฒกๆœ‰ๆ”นไปปไฝ•ไปฃ็ ๏ผŒ่ฟ™ไธช้—ฎ้ข˜ๅพˆๅฎนๆ˜“ๅค็Žฐ็š„๏ผŽ

rk3399 Excavator sapphire board SD card can't work.

I compile the source with 'rockchip_linux_defconfig' config,and successful access to the system.But I can't find any information when I insert sd card.
A device tree entry for SD card on RK3399 may be added.

Compilation errors for camsys on RK3288 device

root@x:/build/koala/linux_sdk# ./build/mk-kernel.sh rk3288-koala
Building kernel for rk3288-koala board!
Using rk3288-koala_defconfig

configuration written to .config

scripts/kconfig/conf --silentoldconfig Kconfig
make[1]: 'arch/arm/boot/dts/rk3288-koala.dtb' is up to date.
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
CHK kernel/config_data.h
CC drivers/media/video/rk_camsys/camsys_drv.o
CC drivers/media/video/rk_camsys/camsys_marvin.o
CC drivers/media/video/rk_camsys/camsys_mipicsi_phy.o
CC drivers/media/video/rk_camsys/camsys_soc_priv.o
CC drivers/media/video/rk_camsys/camsys_soc_rk3288.o
CC drivers/media/video/rk_camsys/camsys_soc_rk3368.o
CC drivers/media/video/rk_camsys/camsys_soc_rk3399.o
CC drivers/media/video/rk_camsys/ext_flashled_drv/rk_ext_fshled_ctl.o
LD drivers/media/video/rk_camsys/ext_flashled_drv/built-in.o
LD drivers/media/video/rk_camsys/built-in.o
LD drivers/media/built-in.o
LD drivers/built-in.o
LINK vmlinux
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
drivers/built-in.o๏ผšๅœจๅ‡ฝๆ•ฐโ€˜camsys_soc_initโ€™ไธญ๏ผš
/build/koala/linux_sdk/kernel/drivers/media/video/rk_camsys/camsys_soc_priv.c:61๏ผšๅฏนโ€˜camsys_rk3368_cfgโ€™ๆœชๅฎšไน‰็š„ๅผ•็”จ
/build/koala/linux_sdk/kernel/drivers/media/video/rk_camsys/camsys_soc_priv.c:61๏ผšๅฏนโ€˜rockchip_soc_idโ€™ๆœชๅฎšไน‰็š„ๅผ•็”จ
/build/koala/linux_sdk/kernel/drivers/media/video/rk_camsys/camsys_soc_priv.c:61๏ผšๅฏนโ€˜camsys_rk3366_cfgโ€™ๆœชๅฎšไน‰็š„ๅผ•็”จ
/build/koala/linux_sdk/kernel/drivers/media/video/rk_camsys/camsys_soc_priv.c:61๏ผšๅฏนโ€˜camsys_rk3399_cfgโ€™ๆœชๅฎšไน‰็š„ๅผ•็”จ
Makefile:947: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1

rk3288 Firefly Kernel Modules

Hi,
I see that the kernel is not going to build in your build script.
I remembered from past that we use Android libhybris and mount it as /system to get access to modules!
Is it still the case?
If not, why we do not build kernel modules?
If we create them, does it work on Firefly board?

I do appreciate if you explain me in detail to understand how the modules work on Firefly with your Kernel!
Thanks

CRLF/CR

Hello.

Most of Rockchip source code are using randomly CRLF, mixed LF and CRLF and even CR-only line separators. Can you review your source code and place LF-only line separators ?

Thanks.

with_at_least_one_cr.txt

Failed to boot android gui after update kernel.

  The platform is rk3399(sapphire excavator edp).Android6.0 system has been stopped in the kernel logo without showing the android graphics after using the lastest version of kernel branch(release-4.4).Debug serial port can be used normally.
It maybe caused by the patchs as follows:

4fe5f7e(MALI: rockchip: upgrade midgard DDK to r13p0-00rel0)
1729873(MALI: midgard: ARM: patch for fence timeout in monkey test)

RK3288 usb_host1 (dwc2) incomplete MJPEG frames

Hi,
has anyone ever get into an incomplete MJPG frame error streaming a UVC camera connected on RK3288 host#1 (dw)? connecting the same camera on host#0 (ehci) it work without any error. This happens only with format equal or grater than 1920x1080 so I suppose could be a bug in dwc2 kernel driver. Is it possible?

I check it using a command like

v4l2-ctl --verbose -d /dev/video2 --stream-mmap=2 --stream-to=./stream.jpg --stream-count=10 --stream-poll

I do not see any error on dmseg log but I obtain partial MJPG frames.
thank you
Andrea

RK3328 kernel hang on h264 encoding

Using the updated source code:

  • kernel release-4.4 branch (03d6a38) + rockchip_linux_defconfig + rk3328-evb.dtb
  • mpp release branch (60cbbff / tag release_20170811)
  • run mpi_enc_test

rock64@rock64:~/mpp/out$ sudo ./test/mpi_enc_test -t 7 -d 255 -i ./oo.raw -o ./oo.h264 -w 960 -h 544
mpi_enc_test: cmd parse result:
mpi_enc_test: input file name: ./oo.raw
mpi_enc_test: output file name: ./oo.h264
mpi_enc_test: width : 960
mpi_enc_test: height : 544
mpi_enc_test: type : 7
mpi_enc_test: debug flag : ff
mpi_enc_test: mpi_enc_test start
mpi_enc_test: mpi_enc_test encoder test start w 960 h 544 type 7
mpi: mpp version: 60cbbff author: Herman Chen [h264e]: Fix QP stuck error
mpi: mpp_init leave ret 0
mpi: mpi_control enter ctx 0x55828d4500 cmd 320003 parm 0x55828d2138
mpi: mpi_control leave ret 0
mpi_enc_test: mpi_enc_test bps 1958400 fps 30 gop 60
mpi: mpi_control enter ctx 0x55828d4500 cmd 320005 parm 0x55828d2184
h264e_api: h264e_config MPP_ENC_SET_RC_CFG bps 1958400 [1836000 : 2080800]
mpi: mpi_control leave ret 0
mpi: mpi_control enter ctx 0x55828d4500 cmd 320007 parm 0x55828d21bc
mpi: mpi_control leave ret 0
mpi: mpi_control enter ctx 0x55828d4500 cmd 32000f parm 0x55828d2790
mpi: mpi_control leave ret 0
mpi: mpi_control enter ctx 0x55828d4500 cmd 32000e parm 0x7fc4dc6038
mpi: mpi_control leave ret 0
mpi: mpi_poll enter ctx 0x55828d4500 type 0 timeout -1
mpi: mpi_poll leave ret 0
mpi: mpi_dequeue enter ctx 0x55828d4500 type 0 task 0x7fc4dc6030
mpi: mpi_dequeue leave ret 0
mpi: mpi_enqueue enter ctx 0x55828d4500 type 0 task 0x55828d7d80
mpi: mpi_enqueue leave ret 0
mpi: mpi_poll enter ctx 0x55828d4500 type 1 timeout -1

  • Kernel log

[ 41.675708] ff340000.vepu: power on
[ 41.676326] Unhandled fault: synchronous external abort (0x96000210) at 0xffffff8008066804
[ 41.677599] Internal error: : 96000210 [#1] SMP
[ 41.678269] Modules linked in:
[ 41.678760] CPU: 1 PID: 525 Comm: mpp_enc_ctrl Not tainted 4.4.71 #3
[ 41.679682] Hardware name: Rockchip RK3328 EVB (DT)
[ 41.680403] task: ffffffc038530000 ti: ffffffc038538000 task.ti: ffffffc038538000
[ 41.681498] PC is at rk_iommu_read+0x20/0x34
[ 41.682132] LR is at rk_iommu_is_stall_active+0x44/0x64
[ 41.682893] pc : [] lr : [] pstate: 80000145
[ 41.696025] sp : ffffffc03853bb60
[ 41.708725] x29: ffffffc03853bb60 x28: ffffffc038538000
[ 41.721762] x27: ffffff8008bb2000 x26: 000000000000001d
[ 41.734521] x25: 000000000000011d x24: ffffffc0397cd030
[ 41.747008] x23: ffffffc03977ded0 x22: ffffffc03e5cac10
[ 41.759381] x21: ffffffc03e67b728 x20: ffffff8008066800
[ 41.771668] x19: 0000000000000004 x18: 00000000000a4f7c
[ 41.783931] x17: 0000007f7ab57ed0 x16: ffffff80081b6254
[ 41.795952] x15: 000000000000000a x14: ffffff8009683c20
[ 41.807699] x13: ffffff8009683c20 x12: 0000000000000000
[ 41.819401] x11: ffffff8008c0d600 x10: 0000000000000001
[ 41.830920] x9 : 0000000000000001 x8 : 00000000ffffffff
[ 41.842345] x7 : ffffffc039053480 x6 : ffffff8009683c20
[ 41.853679] x5 : 0000000000000000 x4 : 0000000000000000
[ 41.864900] x3 : 0000000000000000 x2 : ffffff80091504e8
[ 41.876019] x1 : 0000000000000004 x0 : ffffff8008066804
[ 41.886960]
[ 41.886960] PC: 0xffffff8008452098:
[ 41.907716] 2098 910103a1 aa1703e0 d63f0040 350001a0 110006d6 910103a4 2a1603e3 aa1503e2
[ 41.919268] 20b8 aa1403e1 aa1803e0 9411d621 350000e0 f94023a0 97ffffbd aa0003f3 b5fffde0
[ 41.930935] 20d8 d2800000 14000002 aa1303e0 a94153f3 a9425bf5 a94363f7 a8c97bfd d65f03c0
[ 41.942704] 20f8 a9be7bfd 910003fd a90153f3 aa0003f4 aa1e03e0 2a0103f3 d503201f 8b334280
[ 41.954434] 2118 b9400000 d5033d9f a94153f3 a8c27bfd d65f03c0 a9be7bfd 910003fd a90153f3
[ 41.966098] 2138 aa0003f3 aa1e03e0 2a0103f4 d503201f 52800000 b9401262 6b02001f 5400010a
[ 41.977798] 2158 d5033e9f f9400661 f860d822 91002042 b9000054 11000400 17fffff7 a94153f3
[ 41.989579] 2178 a8c27bfd d65f03c0 a9bd7bfd 910003fd a90153f3 f90013f5 aa0003f5 aa1e03e0
[ 42.001399]
[ 42.001399] LR: 0xffffff8008452144:
[ 42.022878] 2144 d503201f 52800000 b9401262 6b02001f 5400010a d5033e9f f9400661 f860d822
[ 42.034775] 2164 91002042 b9000054 11000400 17fffff7 a94153f3 a8c27bfd d65f03c0 a9bd7bfd
[ 42.046698] 2184 910003fd a90153f3 f90013f5 aa0003f5 aa1e03e0 52800013 52800034 d503201f
[ 42.058718] 21a4 b94012a0 6b00027f 5400012a f94006a0 52800081 f873d800 11000673 97ffffce
[ 42.070763] 21c4 d3420800 0a000294 17fffff6 2a1403e0 f94013f5 a94153f3 a8c37bfd d65f03c0
[ 42.082891] 21e4 a9bd7bfd 910003fd a90153f3 f90013f5 aa0003f5 aa1e03e0 52800013 52800034
[ 42.095013] 2204 d503201f b94012a0 6b00027f 5400010a f94006a0 52800081 f873d800 11000673
[ 42.107202] 2224 97ffffb5 0a140014 17fffff7 2a1403e0 f94013f5 a94153f3 a8c37bfd d65f03c0
[ 42.119358]
[ 42.119358] SP: 0xffffffc03853bae0:
[ 42.141329] bae0 3e5cac10 ffffffc0 3977ded0 ffffffc0 397cd030 ffffffc0 0000011d 00000000
[ 42.153484] bb00 0000001d 00000000 08bb2000 ffffff80 38538000 ffffffc0 3853bb60 ffffffc0
[ 42.165635] bb20 084521c4 ffffff80 3853bb60 ffffffc0 08452118 ffffff80 80000145 00000000
[ 42.177695] bb40 0000011d 00000000 0000001d 00000000 00000000 00000080 08b9ee78 ffffff80
[ 42.189725] bb60 3853bb80 ffffffc0 084521c4 ffffff80 00000001 00000000 00000001 00000000
[ 42.201865] bb80 3853bbb0 ffffffc0 08453538 ffffff80 3e67b728 ffffffc0 3977ded0 ffffffc0
[ 42.213882] bba0 3977ded0 ffffffc0 3977ded0 ffffffc0 3853bbe0 ffffffc0 084538d4 ffffff80
[ 42.225767] bbc0 3e67b728 ffffffc0 3977ded0 ffffffc0 3977ded0 ffffffc0 3e5cac10 ffffffc0
[ 42.233395] xhci-hcd xhci-hcd.8.auto: Cannot set link state.
[ 42.233449] usb usb5-port1: cannot disable (err = -32)
[ 42.260595]
[ 42.260595] X0: 0xffffff8008066784:
[ 42.282852] 6784
[ 42.283140] Unhandled fault: synchronous external abort (0x96000210) at 0xffffff8008066784
[ 49.306020] BUG: spinlock lockup suspected on CPU#1, mpp_enc_ctrl/525
[ 49.318172] lock: 0xffffff80090d8ca8, .magic: dead4ead, .owner: mpp_enc_ctrl/525, .owner_cpu: 1
[ 49.330854] CPU: 1 PID: 525 Comm: mpp_enc_ctrl Not tainted 4.4.71 #3
[ 49.343503] Hardware name: Rockchip RK3328 EVB (DT)
[ 49.356072] Call trace:
[ 49.368319] [] dump_backtrace+0x0/0x1b4
[ 49.381044] [] show_stack+0x24/0x30
[ 49.393759] [] dump_stack+0x94/0xb4
[ 49.406485] [] spin_dump+0x8c/0x9c
[ 49.419133] [] do_raw_spin_lock+0x104/0x158
[ 49.431955] [] _raw_spin_lock_irq+0x24/0x30
[ 49.444596] [] die+0x3c/0x1b4
[ 49.457010] [] arm64_notify_die+0x6c/0x7c
[ 49.469422] [] do_mem_abort+0x9c/0xac
[ 49.481648] Exception stack(0xffffffc03853b670 to 0xffffffc03853b7a0)
[ 49.494059] b660: ffffffc038538000 0000008000000000
[ 49.506650] b680: ffffffc03853b840 ffffff8008380c44 0000000000000007 ffffff8000000000
[ 49.519220] b6a0: ffffff8008066784 0000000000000004 ffffff80090e5000 ffffff800921b000
[ 49.531702] b6c0: 0000000000000005 0000000000000000 0000000000000000 ffffff800925e040
[ 49.543999] b6e0: 0000000000000005 0000000000000000 ffffffc03853b710 0000000000000368
[ 49.556359] b700: 0000000000000001 ffffff80090e5818 ffffffc03853b8cc ffffff8008066784
[ 49.568545] b720: 0000000000000004 ffffffc038530000 0000000000000000 ffffffc03853b8d0
[ 49.580619] b740: ffffffc03853b8cc ffffffc039052560 00000000ffffffff 0000000000000001
[ 49.592641] b760: 0000000000000001 ffffff8008c0d600 0000000000000000 ffffff8009723ea0
[ 49.604609] b780: ffffff8009723ea0 000000000000000a ffffff80081b6254 0000007f7ab57ed0
[ 49.616577] [] el1_da+0x18/0x78
[ 49.628154] [] show_data.constprop.3+0xa4/0xf4
[ 49.639783] [] __show_regs+0x158/0x198
[ 49.651190] [] die+0xb8/0x1b4
[ 49.662290] [] arm64_notify_die+0x6c/0x7c
[ 49.673576] [] do_mem_abort+0x9c/0xac
[ 49.684612] Exception stack(0xffffffc03853b990 to 0xffffffc03853bac0)
[ 49.695863] b980: 0000000000000004 0000008000000000
[ 49.707402] b9a0: ffffffc03853bb60 ffffff8008452118 0000000000000007 0000000000000000
[ 49.718842] b9c0: ffffff8008066804 ffff000100010002 ffffffc038434000 0000000000000000
[ 49.730226] b9e0: 0000024000000000 0000001000000008 0000000000000007 ffffffc0397db401
[ 49.741678] ba00: ffffffc03853ba40 ffffff80080b924c ffffff8009146450 0000000000000004
[ 49.753258] ba20: ffffffc03853ba90 000000000000000a ffffff8008066804 0000000000000004
[ 49.764829] ba40: ffffff80091504e8 0000000000000000 0000000000000000 0000000000000000
[ 49.776195] ba60: ffffff8009683c20 ffffffc039053480 00000000ffffffff 0000000000000001
[ 49.787498] ba80: 0000000000000001 ffffff8008c0d600 0000000000000000 ffffff8009683c20
[ 49.798841] baa0: ffffff8009683c20 000000000000000a ffffff80081b6254 0000007f7ab57ed0
[ 49.810376] [] el1_da+0x18/0x78
[ 49.821689] [] rk_iommu_is_stall_active+0x44/0x64
[ 49.833065] [] rk_iommu_enable_stall+0x24/0xf4
[ 49.844180] [] rk_iommu_attach_device+0x44/0x308
[ 49.855075] [] __iommu_attach_device+0x38/0xb0
[ 49.865738] [] iommu_group_do_attach_device+0x28/0x34
[ 49.876417] [] __iommu_group_for_each_dev+0x3c/0x5c
[ 49.887102] [] __iommu_attach_group+0x48/0x5c
[ 49.897652] [] iommu_attach_device+0x84/0xac
[ 49.908222] [] vpu_drm_attach+0xa0/0xf0
[ 49.918814] [] vpu_iommu_attach+0x38/0x44
[ 49.929428] [] mpp_dev_power_on+0xf8/0x128
[ 49.940038] [] rockchip_mpp_try_run+0xec/0x250
[ 49.950686] [] mpp_dev_ioctl+0x148/0x34c
[ 49.961262] [] do_vfs_ioctl+0x4d4/0x56c
[ 49.971839] [] SyS_ioctl+0x6c/0x94
[ 49.982341] [] el0_svc_naked+0x24/0x28
[ 60.146026] Watchdog detected hard LOCKUP on cpu 1
[ 60.146748] ------------[ cut here ]------------
[ 60.166562] WARNING: at kernel/watchdog.c:352
[ 60.176665] Modules linked in:
[ 60.186602]
[ 60.196239] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.4.71 #3
[ 60.206541] Hardware name: Rockchip RK3328 EVB (DT)
[ 60.216757] task: ffffff80090d7010 ti: ffffff80090c0000 task.ti: ffffff80090c0000
[ 60.227435] PC is at watchdog_timer_fn+0xfc/0x2e0
[ 60.237791] LR is at watchdog_timer_fn+0xfc/0x2e0
[ 60.247879] pc : [] lr : [] pstate: 600001c5
[ 60.258329] sp : ffffffc03ff5ee00
[ 60.268316] x29: ffffffc03ff5ee00 x28: 0000000000000001
[ 60.278580] x27: ffffff80090cdf10 x26: ffffff800909b1f8
[ 60.288835] x25: ffffffc03ff61210 x24: ffffff80090c3e10
[ 60.299038] x23: 0000000000000000 x22: 0000000000000034
[ 60.309248] x21: ffffff80090cc000 x20: ffffff800909b270
[ 60.319330] x19: ffffff800909b000 x18: 0000000000023a6a
[ 60.329187] x17: 0000000000000008 x16: 000000000000000e
[ 60.338962] x15: 000000000000000a x14: ffffff80097242c0
[ 60.348664] x13: ffffff80097242c0 x12: 0000000000000000
[ 60.358256] x11: ffffff8008c0d600 x10: 0000000000000001
[ 60.367614] x9 : 0000000000000001 x8 : 00000000ffffffff
[ 60.376994] x7 : ffffffc039053890 x6 : ffffff80097242c0
[ 60.386397] x5 : 0000000000000000 x4 : 0000000000000000
[ 60.395790] x3 : 00000000ffffffff x2 : ffffff80090e58b8
[ 60.405079] x1 : 0000000000000000 x0 : 0000000000000026
[ 60.414216]
[ 60.414216] PC: 0xffffff8008129d00:
[ 60.431181] 9d00 54000481 d5384100 b9401c00 f90037a4 97fffea6 2a0003e1 f0007d00 b94ea400
[ 60.440928] 9d20 6b00003f 54000362 d50339bf 90007d3b 2a0103fc 913c437b 91002283 f94037a4
[ 60.450825] 9d40 f87c7b62 38626860 34000060 3823685f 14000010 91020283 f8626b40 f8636845
[ 60.460818] 9d60 91022294 eb05001f 54000e00 f8236840 f87c7b60 3834681f 14000006 9400d533
[ 60.470926] 9d80 d4210000 f87c7b60 52800021 38346801 9107a274 913be2ba d538d081 91008280
[ 60.481102] 9da0 f8616800 97fe6b21 f9400b5b f9401b20 f9401000 d63f0000 aa0003e1 aa1b03e2
[ 60.491431] 9dc0 aa1903e0 97ff5854 b50000f6 91022694 d538d080 38606a81 34000341 38206a9f
[ 60.501861] 9de0 14000018 97fe7fb0 f9477ea1 36080941 b9400b41 34000901 531f7821 d35efc00
[ 60.512415]
[ 60.512415] LR: 0xffffff8008129d00:
[ 60.531644] 9d00 54000481 d5384100 b9401c00 f90037a4 97fffea6 2a0003e1 f0007d00 b94ea400
[ 60.542536] 9d20 6b00003f 54000362 d50339bf 90007d3b 2a0103fc 913c437b 91002283 f94037a4
[ 60.553547] 9d40 f87c7b62 38626860 34000060 3823685f 14000010 91020283 f8626b40 f8636845
[ 60.564701] 9d60 91022294 eb05001f 54000e00 f8236840 f87c7b60 3834681f 14000006 9400d533
[ 60.575997] 9d80 d4210000 f87c7b60 52800021 38346801 9107a274 913be2ba d538d081 91008280
[ 60.587441] 9da0 f8616800 97fe6b21 f9400b5b f9401b20 f9401000 d63f0000 aa0003e1 aa1b03e2
[ 60.598954] 9dc0 aa1903e0 97ff5854 b50000f6 91022694 d538d080 38606a81 34000341 38206a9f
[ 60.610573] 9de0 14000018 97fe7fb0 f9477ea1 36080941 b9400b41 34000901 531f7821 d35efc00
[ 60.622285]
[ 60.622285] SP: 0xffffffc03ff5ed80:
[ 60.643885] ed80 00000034 00000000 00000000 00000000 090c3e10 ffffff80 3ff61210 ffffffc0
[ 60.655915] eda0 0909b1f8 ffffff80 090cdf10 ffffff80 00000001 00000000 3ff5ee00 ffffffc0
[ 60.667928] edc0 08129d80 ffffff80 3ff5ee00 ffffffc0 08129d80 ffffff80 600001c5 00000000
[ 60.679857] ede0 090ccef8 ffffff80 0000000a 00000000 00000000 00000080 3e800028 ffffffc0
[ 60.691726] ee00 3ff5ee70 ffffffc0 08100758 ffffff80 3ff61210 ffffffc0 3ff60bc0 ffffffc0
[ 60.703788] ee20 3ff60c40 ffffffc0 00000003 00000000 0920b470 ffffff80 090cbe88 ffffff80
[ 60.715713] ee40 08129c84 ffffff80 fbad22f0 0000000d 3ff60d28 ffffffc0 090c0000 ffffff80
[ 60.727551] ee60 3ff61210 ffffffc0 090ccef8 ffffff80 3ff5eee0 ffffffc0 08100d8c ffffff80
[ 60.739471]
[ 60.739471] X2: 0xffffff80090e5838:
[ 60.761475] 5838 008d008d dead4ead ffffffff 00000000 ffffffff ffffffff 38f3a978 ffffffc0
[ 60.773786] 5858 38f3a978 ffffffc0 00000001 00000000 00000000 dead4ead ffffffff 00000000
[ 60.786235] 5878 ffffffff ffffffff 090e5880 ffffff80 090e5880 ffffff80 00040000 00000000
[ 60.798777] 5898 0ea50ea5 dead4ead ffffffff 00000000 ffffffff ffffffff 00000001 00000000
[ 60.811461] 58b8 090e58b8 ffffff80 090e58b8 ffffff80 00000000 dead4ead ffffffff 00000000
[ 60.824329] 58d8 ffffffff ffffffff 00001388 0000000a 00000000 00000000 00000000 00000000
[ 60.837254] 58f8 00000000 00000000 0000000f 00000004 00000001 00000007 00000001 ffffffff
[ 60.850310] 5918 ffffffff 00000000 080ec464 ffffff80 090dfc50 ffffff80 00000000 00000000
[ 60.863474]
[ 60.863474] X6: 0xffffff8009724240:
[ 60.887863] 4240 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 60.901350] 4260 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 60.914719] 4280 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 60.927934] 42a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 60.941067] 42c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 60.953879] 42e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 60.966420] 4300 00000000 00000000 00000000 00000000 00aaaaaa 00000000 00000000 00000000
[ 60.978731] 4320 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 60.990814]
[ 60.990814] X7: 0xffffffc039053810:
[ 61.012650] 3810 c6c6c6c6 00c6c6c6 c6c6c6c6 78c6c6c6 d6d6d6d6 00000000 00000000 00000000
[ 61.024650] 3830 fcc6fcc6 fcc6fcc6 c6c0c6c0 c6c0c6c0 c6c0c6c0 c6c0c6c0 c6c0c6c0 c6c0c6c0
[ 61.036587] 3850 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.048479] 3870 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.060278] 3890 00000000 00000000 00000000 00000000 00000000 6cc6387c c606c606 d606d63c
[ 61.071872] 38b0 c606c606 387c6cc6 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.083380] 38d0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.094684] 38f0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.105724]
[ 61.105724] X11: 0xffffff8008c0d580:
[ 61.125482] d580 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.136440] d5a0 00000000 00000000 00000000 00000000 00000000 ff000000 00ff0000 ffff0000
[ 61.147144] d5c0 0000ff00 ff00ff00 00ffff00 ffffff00 000000ff ff0000ff 00ff00ff ffff00ff
[ 61.157679] d5e0 0000ffff ff00ffff 00ffffff ffffffff 00000000 ffff0000 0000ffff ffffffff
[ 61.168238] d600 00000000 ffffffff 00000000 ff000000 00ff0000 ffff0000 0000ff00 ff00ff00
[ 61.178633] d620 00ffff00 ffffff00 000000ff ff0000ff 00ff00ff ffff00ff 0000ffff ff00ffff
[ 61.188904] d640 00ffffff ffffffff 00000000 ffff0000 0000ffff ffffffff 00000000 ffffffff
[ 61.199081] d660 00000000 00000000 00000000 00000000 08500e48 ffffff80 08501208 ffffff80
[ 61.209205]
[ 61.209205] X13: 0xffffff8009724240:
[ 61.227375] 4240 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.237679] 4260 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.247822] 4280 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.257641] 42a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.267375] 42c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.276811] 42e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.285977] 4300 00000000 00000000 00000000 00000000 00aaaaaa 00000000 00000000 00000000
[ 61.294955] 4320 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.303775]
[ 61.303775] X14: 0xffffff8009724240:
[ 61.319176] 4240 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.328070] 4260 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.336736] 4280 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.345109] 42a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.353408] 42c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.361384] 42e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.369334] 4300 00000000 00000000 00000000 00000000 00aaaaaa 00000000 00000000 00000000
[ 61.377317] 4320 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.385347]
[ 61.385347] X19: 0xffffff800909af80:
[ 61.399852] af80 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.408559] afa0 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.417201] afc0 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.425557] afe0 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.433812] b000 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.441773] b020 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.449532] b040 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.457023] b060 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.464525]
[ 61.464525] X20: 0xffffff800909b1f0:
[ 61.477616] b1f0 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.485475] b210 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.493351] b230 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.500897] b250 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.508341] b270 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.515497] b290 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.522590] b2b0 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.529577] b2d0 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.536466]
[ 61.536466] X21: 0xffffff80090cbf80:
[ 61.548339] bf80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.555564] bfa0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.562628] bfc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.569376] bfe0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.576040] c000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.582398] c020 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.588773] c040 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.595132] c060 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.601504]
[ 61.601504] X24: 0xffffff80090c3d90:
[ 61.612749] 3d90 090c3db0 ffffff80 080cdb00 ffffff80 3ff652c8 ffffffc0 3ff652c8 ffffffc0
[ 61.619815] 3db0 090c3e30 ffffff80 080d7da0 ffffff80 3ff65240 ffffffc0 003a4ce0 ffffffc0
[ 61.626920] 3dd0 090c0000 ffffff80 00000000 00000000 00000000 00000000 090e6140 ffffff80
[ 61.633895] 3df0 00000000 01000000 57d60bc3 00000000 00008cae 00000000 00000000 00000000
[ 61.640935] 3e10 00000140 00000000 00000000 00000000 00000000 00000000 090e6140 ffffff80
[ 61.647814] 3e30 00000000 01000000 57d60bc3 00000000 00008cae 00000000 00000000 00000000
[ 61.654813] 3e50 090c3f1c ffffff80 090c0000 ffffff80 00000900 00000000 00000400 00000000
[ 61.661955] 3e70 00000144 00000000 00000004 00000000 00000001 00000000 00000007 00000000
[ 61.669263]
[ 61.669263] X25: 0xffffffc03ff61190:
[ 61.682350] 1190 ffffffff 00000000 ffffffff ffffffff 00000001 00000000 3ff611a8 ffffffc0
[ 61.690327] 11b0 3ff611a8 ffffffc0 3ff611b8 ffffffc0 3ff611b8 ffffffc0 08128888 ffffff80
[ 61.698467] 11d0 002ffcf8 ffffffc0 002ffc50 ffffffc0 00020002 00000000 00000034 00000000
[ 61.706518] 11f0 00000000 00000000 0000000f 00000000 0000000e 00000000 003a72c0 ffffffc0
[ 61.714699] 1210 3ff61210 ffffffc0 3ff61080 ffffffc0 00000000 00000000 fbad1840 0000000d
[ 61.722772] 1230 fbad1840 0000000d 08129c84 ffffff80 3ff60c40 ffffffc0 00000000 0000000a
[ 61.731061] 1250 08129c54 ffffff80 63746177 676f6468 0000302f 00000000 0000000f 00000000
[ 61.739538] 1270 00000000 00000000 00000000 00000000 00000000 00000000 00000001 00000000
[ 61.748212]
[ 61.748212] X26: 0xffffff800909b178:
[ 61.764037] b178 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.773437] b198 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.782825] b1b8 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.791879] b1d8 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.800875] b1f8 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.809532] b218 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.818175] b238 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.826828] b258 ******** ******** ******** ******** ******** ******** ******** ********
[ 61.835481]
[ 61.835481] X27: 0xffffff80090cde90:
[ 61.851286] de90 00000001 00000000 00000001 00000000 000003e8 00000000 3ffaf500 ffffffc0
[ 61.860652] deb0 00000015 00000000 3ffaf4c0 ffffffc0 00000001 00000000 00000060 00000000
[ 61.870187] ded0 00015000 00001000 00000001 00000000 3ffaf540 ffffffc0 3ffb1700 ffffffc0
[ 61.879651] def0 00000004 00000000 00000003 00000010 3ffaf3c0 ffffffc0 3ff5b000 ffffffc0
[ 61.889097] df10 36ec6000 00000040 36edb000 00000040 36ef0000 00000040 36f05000 00000040
[ 61.898417] df30 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.907828] df50 00000002 00000000 00003217 00000000 00010000 00000000 0003ffff 00000000
[ 61.917313] df70 00007233 00000000 00002000 00000000 00000000 0000fffa 00000000 00000000
[ 61.926894]
[ 61.926894] X29: 0xffffffc03ff5ed80:
[ 61.944532] ed80 00000034 00000000 00000000 00000000 090c3e10 ffffff80 3ff61210 ffffffc0
[ 61.954831] eda0 0909b1f8 ffffff80 090cdf10 ffffff80 00000001 00000000 3ff5ee00 ffffffc0
[ 61.965334] edc0 08129d80 ffffff80 3ff5ee00 ffffffc0 08129d80 ffffff80 600001c5 00000000
[ 61.975692] ede0 090ccef8 ffffff80 0000000a 00000000 00000000 00000080 3e800028 ffffffc0
[ 61.986229] ee00 3ff5ee70 ffffffc0 08100758 ffffff80 3ff61210 ffffffc0 3ff60bc0 ffffffc0
[ 61.996646] ee20 3ff60c40 ffffffc0 00000003 00000000 0920b470 ffffff80 090cbe88 ffffff80
[ 62.007142] ee40 08129c84 ffffff80 fbad22f0 0000000d 3ff60d28 ffffffc0 090c0000 ffffff80
[ 62.017609] ee60 3ff61210 ffffffc0 090ccef8 ffffff80 3ff5eee0 ffffffc0 08100d8c ffffff80
[ 62.028104]
[ 62.037541] ---[ end trace bc6b2d37aa9b4068 ]---
[ 62.047435] Call trace:
[ 62.057022] Exception stack(0xffffffc03ff5ec30 to 0xffffffc03ff5ed60)
[ 62.067271] ec20: ffffff800909b000 0000008000000000
[ 62.077684] ec40: ffffffc03ff5ee00 ffffff8008129d80 0000000000000000 ffffff800925e040
[ 62.088270] ec60: 0000000000000026 0000000000000000 ffffffc03ff5ec90 00000000000003a5
[ 62.098827] ec80: 0000000000000000 ffffff80090e5818 ffffffc03ff5ed20 ffffff80080ebdf8
[ 62.109316] eca0: ffffffc03ff5ed80 ffffff8008e34fe5 ffffff80090cc000 0000000000000034
[ 62.119812] ecc0: 0000000000000000 ffffff80090c3e10 0000000000000026 0000000000000000
[ 62.130272] ece0: ffffff80090e58b8 00000000ffffffff 0000000000000000 0000000000000000
[ 62.140659] ed00: ffffff80097242c0 ffffffc039053890 00000000ffffffff 0000000000000001
[ 62.150974] ed20: 0000000000000001 ffffff8008c0d600 0000000000000000 ffffff80097242c0
[ 62.161263] ed40: ffffff80097242c0 000000000000000a 000000000000000e 0000000000000008
[ 62.171601] [] watchdog_timer_fn+0xfc/0x2e0
[ 62.181632] [] __hrtimer_run_queues+0x15c/0x280
[ 62.191791] [] hrtimer_interrupt+0xac/0x1bc
[ 62.201729] [] arch_timer_handler_phys+0x3c/0x4c
[ 62.211908] [] handle_percpu_devid_irq+0xc4/0x170
[ 62.222234] [] generic_handle_irq+0x2c/0x44
[ 62.232649] [] __handle_domain_irq+0x90/0xb8
[ 62.243218] [] gic_handle_irq+0x78/0xc8
[ 62.253857] Exception stack(0xffffff80090c3e10 to 0xffffff80090c3f40)
[ 62.264892] 3e00: 0000000000000140 0000000000000000
[ 62.276417] 3e20: 0000000000000000 ffffff80090e6140 0100000000000000 0000000057d60bc3
[ 62.287825] 3e40: 0000000000008cae 0000000000000000 ffffff80090c3f1c ffffff80090c0000
[ 62.299370] 3e60: 0000000000000900 0000000000000400 0000000000000144 0000000000000004
[ 62.310742] 3e80: 0000000000000001 0000000000000007 000000000000000e 0000000000000008
[ 62.322002] 3ea0: 000000001ed3e33c 0000000000000000 0000000000000000 ffffff80090c0000
[ 62.333127] 3ec0: ffffff80090cb000 ffffff80090cbe18 ffffff8009004b38 00000000032d5000
[ 62.344441] 3ee0: 00000000032d8000 0000000002ba01f0 0000000002fb001c ffffff80090c3f40
[ 62.355815] 3f00: ffffff80080df29c ffffff80090c3f40 ffffff80080df30c 0000000060000145
[ 62.367338] 3f20: ffffff80090c0000 ffffff80090cb000 ffffffffffffffff ffffff80080df29c
[ 62.378957] [] el1_irq+0xb4/0x140
[ 62.390389] [] cpu_startup_entry+0x23c/0x2b8
[ 62.401705] [] rest_init+0x78/0x80
[ 62.412975] [] start_kernel+0x3d0/0x3e4
[ 62.424114] [] __primary_switched+0x30/0x6c

rk-isp10 haven't any interrupts with ov13850

Hi,
I was on rk3288 board, and have added ov13850_v4l2-i2c-subdev.c file to rk-isp10 driver referring to OV13850_table.c of android 7.0, but I cann't receive any interrupts. There are any reasons for this problem? Here is my configuration about OV13850:
static struct ov_camera_module_config ov13850_configs[] = {
{
.name = "2112x1568_30fps",
.frm_fmt = {
.width = 2112,
.height = 1568,
.code = MEDIA_BUS_FMT_SBGGR10_1X10
},
.frm_intrvl = {
.interval = {
.numerator = 1,
.denominator = 30
}
},
.auto_exp_enabled = false,
.auto_gain_enabled = false,
.auto_wb_enabled = false,
.reg_table = (void *)ov13850_init_twolane_2112_1568_30fps,
.reg_table_num_entries =
sizeof(ov13850_init_twolane_2112_1568_30fps) /
sizeof(ov13850_init_twolane_2112_1568_30fps[0]),
.v_blanking_time_us = 3078,
.ignore_measurement_check = 1,
PLTFRM_CAM_ITF_MIPI_CFG(0, 2, 640, 24000000)
}
};

DRM: HDMI CEC support

Hello.
I do not known how long this branch will be supported but some HDMI CEC support should be added to code. I backported and corrected CEC support from UPSTREAM (4.10+) and from FROMLIST patches (level RFCv2) of media tree (but development of this API is very active and planned to 4.12+).

Please check situation and do decision.

See: http://tinkerboarding.co.uk/forum/thread-258-post-687.html#pid687
See: https://git.linuxtv.org/hverkuil/media_tree.git/log/?h=cec-notifiers
See: https://patchwork.kernel.org/project/linux-media/list/?submitter=520
See: https://github.com/mcerveny/rockchip-linux/tree/release-4.4-cec
Attached patches too: tinker-board-cec-patch-20170428.zip

Update - also check another similar work: https://github.com/Kwiboo/linux-rockchip/tree/tinkerboard-4.10-cec
new patches from Russell King (cec-notifier) - http://git.armlinux.org.uk/cgit/linux-arm.git/log/?h=cec-v18

Thanks, Martin

AP6335 wifiๆจกๅ— ๆ— ้™้‡ๅฏ

[ 98.584324] dhd_bus_devreset: == WLAN ON ==
[ 98.592262] F1 signature read @0x18000000=0x16224335
[ 98.600516] F1 signature OK, socitype:0x1 chip:0x4339 rev:0x1 pkg:0x2
[ 98.607316] DHD: dongle ram size is set to 786432(orig 786432) at 0x180000
[ 98.614404] dhd_os_open_image: /system/etc/firmware/config.txt (30 bytes) open success
[ 98.622386] dhd_conf_read_sdio_params: dhd_slpauto = 0
[ 98.627520] dhd_conf_read_sdio_params: txglom_mode = 0
[ 98.632673] Final fw_path=/system/etc/firmware/fw_bcm4339a0_ag.bin
[ 98.638841] Final nv_path=/system/etc/firmware/nvram_AP6335.txt
[ 98.644763] Final clm_path=/system/etc/firmware/clm_bcmdhd.blob
[ 98.650683] Final conf_path=/system/etc/firmware/config.txt
[ 98.656244] dhd_set_bus_params: set use_rxchain 0
[ 98.660953] dhd_set_bus_params: set txglomsize 36
[ 98.665962] dhd_os_open_image: /system/etc/firmware/fw_bcm4339a0_ag.bin (541314 bytes) open success
[ 98.740337] dhd_os_open_image: /system/etc/firmware/nvram_AP6335.txt (2366 bytes) open success
[ 98.749030] NVRAM version: AP6335_NVRAM_V1.7_04102014
[ 98.754731] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
[ 99.760558] dhdsdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[ 99.766756] dhd_bus_init: clock state is wrong. state = 1
[ 100.770570] dhdsdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[ 100.777374] dhd_net_bus_devreset: dhd_bus_devreset: -1
[ 100.782634] dhd_wl_ioctl: returning as busstate=0
[ 100.787344] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 100.792866] wifi_platform_set_power = 0
[ 100.796710] ======== PULL WL_REG_ON(-1) LOW! ========
[ 100.801803] [WLAN_RFKILL]: rockchip_wifi_power: 0
[ 100.806564] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
[ 100.920464] [WLAN_RFKILL]: wifi shut off power.
[ 100.924991] wl_android_wifi_on: Failed
[ 100.928737] dhd_open : wl_android_wifi_on failed (-1)
[ 100.933803] dhd_stop: Enter ee329800
[ 100.937372] wl_android_wifi_off in 1
[ 100.941019] wl_android_wifi_off in 2: g_wifi_on=0, on_failure=1
[ 100.946939] dhd_wl_ioctl: returning as busstate=0
[ 100.951661] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 100.956947] sdioh_disable_func_intr: error for read SDIO_CCCR_IENx : 0xffffff92
[ 100.964279] wifi_platform_set_power = 0
[ 100.968107] ======== PULL WL_REG_ON(-1) LOW! ========
[ 100.973167] [WLAN_RFKILL]: rockchip_wifi_power: 0
[ 100.977981] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
[ 101.090773] [WLAN_RFKILL]: wifi shut off power.
[ 101.095377] wl_android_wifi_off out
[ 101.099071] dhd_stop: Exit
[ 101.102016] dhd_open: Exit ret=-1
SIOCSIFFLAGS: Operation not permitted

iwconfigๅฏไปฅ่Žทๅ–ๅˆฐwlan0 ไฝ†ๆ˜ฏ่ฆup็š„ๆ—ถๅ€™ ๅ‡บ็ŽฐไธŠ้ข็š„ๆƒ…ๅ†ต

[RK3399 Firefly] Hangs on boot

Compiled latest master build (4.4.93-1) and the kernel is hanging on boot at

[    2.073914] usbserial: USB Serial support registered for Qualcomm USB modem
[    2.073914] usbserial: USB Serial support registered for Qualcomm USB modem
[    2.078902] usbcore: registered new interface driver sierra
[    2.078902] usbcore: registered new interface driver sierra
[    2.083626] usbserial: USB Serial support registered for Sierra USB modem
[    2.083626] usbserial: USB Serial support registered for Sierra USB modem
[    2.089530] usbcore: registered new interface driver usbtouchscreen
[    2.089530] usbcore: registered new interface driver usbtouchscreen
[    2.094763] i2c /dev entries driver
[    2.094763] i2c /dev entries driver

I have attached the complete log as well as the .config.
rk3300-4.4-93-1-ttyS2-i2cHang.log
.config.txt

Building Errors. build/mk-kernel.sh rk3288-firefly

Hello!
I'm trying to compile the kernel for a rk3288-firefly, but I'm having some making errors.

Please, I would appreciate any help with this matter.

Here you can find some information about the OS and the machine, and a summary of the build/mk-kernel.sh rk3288-firefly output (only the error messages)

Asus Core i5. x86_64 GNU/Linux

$ sudo build/mk-kernel.sh rk3288-firefly
...
Building kernel for rk3288-evb board!
Using rockchip_linux_defconfig

net/rfkill/rfkill-bt.c: In function โ€˜rfkill_rk_removeโ€™:
net/rfkill/rfkill-bt.c:703:5: warning: this โ€˜ifโ€™ clause does not guard... [-Wmisleading-indentation]
error, forbidden warning: rfkill-bt.c:703
scripts/Makefile.build:258: fallo en las instrucciones para el objetivo 'net/rfkill/rfkill-bt.o'
make[2]: *** [net/rfkill/rfkill-bt.o] Error 1
scripts/Makefile.build:403: fallo en las instrucciones para el objetivo 'net/rfkill'
make[1]: *** [net/rfkill] Error 2
make[1]: *** Se espera a que terminen otras tareas....

Makefile:986: fallo en las instrucciones para el objetivo 'net'
make: *** [net] Error 2
make: *** Se espera a que terminen otras tareas....

drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/siutils.c: In function โ€˜si_doattachโ€™:
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/siutils.c:544:14: warning: self-comparison always evaluates to false [-Wtautological-compare]
error, forbidden warning: siutils.c:544
scripts/Makefile.build:258: fallo en las instrucciones para el objetivo 'drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/siutils.o'
make[6]: *** [drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/siutils.o] Error 1
make[6]: *** Se espera a que terminen otras tareas....

scripts/Makefile.build:403: fallo en las instrucciones para el objetivo 'drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd'
make[5]: *** [drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd] Error 2
scripts/Makefile.build:403: fallo en las instrucciones para el objetivo 'drivers/net/wireless/rockchip_wlan/rkwifi'
make[4]: *** [drivers/net/wireless/rockchip_wlan/rkwifi] Error 2
make[4]: *** Se espera a que terminen otras tareas....

drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_security.c: In function โ€˜aes_cipherโ€™:
drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_security.c:1598:5: warning: this โ€˜forโ€™ clause does not guard... [-Wmisleading-indentation]
error, forbidden warning: rtw_security.c:1598
scripts/Makefile.build:258: fallo en las instrucciones para el objetivo 'drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_security.o'
make[5]: *** [drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_security.o] Error 1
make[5]: *** Se espera a que terminen otras tareas....

scripts/Makefile.build:403: fallo en las instrucciones para el objetivo 'drivers/net/wireless/rockchip_wlan/rtl8188eu'
make[4]: *** [drivers/net/wireless/rockchip_wlan/rtl8188eu] Error 2
scripts/Makefile.build:403: fallo en las instrucciones para el objetivo 'drivers/net/wireless/rockchip_wlan'
make[3]: *** [drivers/net/wireless/rockchip_wlan] Error 2
make[3]: *** Se espera a que terminen otras tareas....

scripts/Makefile.build:403: fallo en las instrucciones para el objetivo 'drivers/net/wireless'
make[2]: *** [drivers/net/wireless] Error 2
scripts/Makefile.build:403: fallo en las instrucciones para el objetivo 'drivers/net'
make[1]: *** [drivers/net] Error 2
Makefile:986: fallo en las instrucciones para el objetivo 'drivers'
make: *** [drivers] Error 2
MAKE KERNEL IMAGE FAILED.

And exits with error 255.

Thank you in advance for your help.

Daniel Gutierrez

SPI: random data length/tx/rx for DMA SPI transfers (eg. size over 32 bytes) "CONFIG_SPI_ROCKCHIP"

SPI driver CONFIG_SPI_ROCKCHIP (drivers/spi/spi-rockchip.c) does not work for transfers over 32 bytes (switched to DMA transfers, see rockchip_spi_can_dma()). Totally random length/rx/tx are send and received with rk3288 (TinkerBoard, TinkerOS 1.8). Checked with external protocol analyzer and testing code:

#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <inttypes.h>
#include <linux/spi/spidev.h>
#include <linux/types.h>
#include <sys/ioctl.h>
#include <linux/ioctl.h>

// SZ <= 32 OK (PIO transfers), >32 radom length send, random data send (checked from logic analyzer), random data received (DMA transfers)
#define SZ 33

int main()
{
	int fd = open("/dev/spidev2.0", O_RDWR);

	uint8_t mode = SPI_MODE_3;
	ioctl(fd, SPI_IOC_WR_MODE, &mode);
	ioctl(fd, SPI_IOC_RD_MODE, &mode);

        struct spi_ioc_transfer xfer;
	memset(&xfer, 0, sizeof(xfer));

	uint8_t tx_buf[SZ] = "\03\0\0\0";  // "\03\0\0\0" read from SPI flash or "\237" Manufacturer and Device ID Read (len 7)
        uint8_t rx_buf[SZ];

	xfer.tx_buf = (unsigned long)&tx_buf;
	xfer.rx_buf = (unsigned long)&rx_buf;
	xfer.len = sizeof(rx_buf);
	xfer.speed_hz = 10000000;
	xfer.bits_per_word = 8;

	int status = ioctl(fd, SPI_IOC_MESSAGE(1), &xfer);

	printf("status %d\n", status);
	int i;
	for(i=0; i<sizeof(rx_buf); i++) printf("%02x ", rx_buf[i]);
	printf("\n");

	close(fd);

	return 0;
}

Mali driver fails to initialize

Often the mali driver stack fails to initialize:

$ glmark2-es2
ERROR: The DDK is not compatible with any of the Mali GPUs on the system.
The DDK was built for 0x750 r0p0 status range [1..1], but none of the GPUs matched:
Error: eglInitialize() failed with error: 0x3001
ERROR: The DDK is not compatible with any of the Mali GPUs on the system.
The DDK was built for 0x750 r0p0 status range [1..1], but none of the GPUs matched:
Error: eglInitialize() failed with error: 0x3001
Error: main: Could not initialize canvas

The only thing I can do at that point is to repeatedly reboot until driver starts up correctly and I'm able to access the GPU again.

$ dmesg
[    0.000000] Booting Linux on physical CPU 0x500
[    0.000000] Linux version 4.4.16-pTAM8_v00.01 (teseo@teseo-desktop) (gcc version 6.2.0 (GCC) ) #3 SMP Tue Oct 10 16:50:43 CEST 2017
[    0.000000] CPU: ARMv7 Processor [410fc0d1] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Boardcon-RK3288
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c109b180, node_mem_map eeffa000
[    0.000000]   Normal zone: 1536 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 327680 pages, LIFO batch:31
[    0.000000] PERCPU: Embedded 13 pages/cpu @eef8e000 s24024 r8192 d21032 u53248
[    0.000000] pcpu-alloc: s24024 r8192 d21032 u53248 alloc=13*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: earlyprintk=ttyS2,115200 console=tty0 console=ttyS2,115200 androidboot.selinux=permissive androidboot.hardware=rk30board androidboot.console=ttyS2 root=/dev/mmcblk2p3 rw rootfstype=ext4 init=/sbin/init  mtdparts=rk29xxnand:0x00010000@0x00002000(boot),0x00002000@0x00012000(backup),-@0x00014000(linuxroot) storagemedia=emmc uboot_logo=0x02000000@0x7dc00000 loader.timestamp=2015-06-20_15:49:25
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 2060256K/2097152K available (11022K kernel code, 656K rwdata, 2848K rodata, 1024K init, 517K bss, 36896K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0e8ba0c   (14863 kB)
[    0.000000]       .init : 0xc0f00000 - 0xc1000000   (1024 kB)
[    0.000000]       .data : 0xc1000000 - 0xc10a4300   ( 657 kB)
[    0.000000]        .bss : 0xc10a6000 - 0xc11275f8   ( 518 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] L2C: failed to init: -19
[    0.000000] rockchip_clk_register_ddrclk: unsupported ddrclk type 3
[    0.000000] rockchip_clk_register_branches: failed to register clock sclk_ddrc: -22
[    0.000000] Architected 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.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000023] Switching to timer-based delay loop, resolution 41ns
[    0.001955] Console: colour dummy device 80x30
[    0.002863] console [tty0] enabled
[    0.002913] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.002974] pid_max: default: 32768 minimum: 301
[    0.003094] Security Framework initialized
[    0.003127] Yama: becoming mindful.
[    0.003214] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.003254] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.004059] CPU: Testing write buffer coherency: ok
[    0.004128] ftrace: allocating 34301 entries in 101 pages
[    0.078846] CPU0: update cpu_capacity 430
[    0.078888] CPU0: thread -1, cpu 0, socket 5, mpidr 80000500
[    0.079233] Setting up static identity map for 0x100000 - 0x100058
[    0.082123] CPU1: update cpu_capacity 430
[    0.082130] CPU1: thread -1, cpu 1, socket 5, mpidr 80000501
[    0.083887] CPU2: update cpu_capacity 430
[    0.083894] CPU2: thread -1, cpu 2, socket 5, mpidr 80000502
[    0.085633] CPU3: update cpu_capacity 430
[    0.085640] CPU3: thread -1, cpu 3, socket 5, mpidr 80000503
[    0.085724] Brought up 4 CPUs
[    0.085851] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[    0.085873] CPU: All CPU(s) started in SVC mode.
[    0.087373] devtmpfs: initialized
[    0.101891] VFP support v0.3: implementor 41 architecture 3 part 30 variant d rev 0
[    0.102303] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.102654] pinctrl core: initialized pinctrl subsystem
[    0.103740] NET: Registered protocol family 16
[    0.104579] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.128583] cpuidle: using governor ladder
[    0.158605] cpuidle: using governor menu
[    0.173659] gpiochip_add: registered GPIOs 0 to 23 on device: gpio0
[    0.173793] gpiochip_add: registered GPIOs 24 to 55 on device: gpio1
[    0.173912] gpiochip_add: registered GPIOs 56 to 87 on device: gpio2
[    0.174029] gpiochip_add: registered GPIOs 88 to 119 on device: gpio3
[    0.174152] gpiochip_add: registered GPIOs 120 to 151 on device: gpio4
[    0.174270] gpiochip_add: registered GPIOs 152 to 183 on device: gpio5
[    0.174393] gpiochip_add: registered GPIOs 184 to 215 on device: gpio6
[    0.174511] gpiochip_add: registered GPIOs 216 to 247 on device: gpio7
[    0.174628] gpiochip_add: registered GPIOs 248 to 263 on device: gpio8
[    0.185124] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.185168] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.219964] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/dovdd-1v8-regulator[0]'
[    0.220287] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/vsys-regulator[0]'
[    0.220692] of_get_named_gpiod_flags: parsed 'gpio' property of node '/sdmmc-regulator[0]' - status (0)
[    0.221026] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/flash-regulator[0]'
[    0.221293] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/usb-regulator[0]'
[    0.221670] of_get_named_gpiod_flags: parsed 'gpio' property of node '/usb-host-regulator[0]' - status (0)
[    0.222054] of_get_named_gpiod_flags: parsed 'gpio' property of node '/usb-otg-regulator[0]' - status (0)
[    0.222427] of_get_named_gpiod_flags: parsed 'gpio' property of node '/vcc28-dvp-regulator[0]' - status (0)
[    0.223137] iommu: Adding device ff930000.vop to group 0
[    0.223249] iommu: Adding device ff940000.vop to group 1
[    0.223354] iommu: Adding device ff9a0000.video-codec to group 2
[    0.224483] SCSI subsystem initialized
[    0.224787] usbcore: registered new interface driver usbfs
[    0.224875] usbcore: registered new interface driver hub
[    0.224954] usbcore: registered new device driver usb
[    0.225115] Linux video capture interface: v2.00
[    0.225177] pps_core: LinuxPPS API ver. 1 registered
[    0.225200] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.225255] PTP clock support registered
[    0.225780] Advanced Linux Sound Architecture Driver Initialized.
[    0.226566] Bluetooth: Core ver 2.21
[    0.226622] NET: Registered protocol family 31
[    0.226644] Bluetooth: HCI device and connection manager initialized
[    0.226675] Bluetooth: HCI socket layer initialized
[    0.226702] Bluetooth: L2CAP socket layer initialized
[    0.226752] Bluetooth: SCO socket layer initialized
[    0.228076] clocksource: Switched to clocksource arch_sys_counter
[    0.287945] NET: Registered protocol family 2
[    0.288746] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.288861] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.289119] TCP: Hash tables configured (established 8192 bind 8192)
[    0.289231] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.289323] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.289656] NET: Registered protocol family 1
[    0.290095] RPC: Registered named UNIX socket transport module.
[    0.290124] RPC: Registered udp transport module.
[    0.290145] RPC: Registered tcp transport module.
[    0.290166] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.291090] hw perfevents: enabled with armv7_cortex_a12 PMU driver, 7 counters available
[    0.292921] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.293640] Initialise system trusted keyring
[    0.304860] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.307013] NFS: Registering the id_resolver key type
[    0.307070] Key type id_resolver registered
[    0.307092] Key type id_legacy registered
[    0.307133] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.307230] fuse init (API version 7.23)
[    0.312653] NET: Registered protocol family 38
[    0.312703] Key type asymmetric registered
[    0.312733] Asymmetric key parser 'x509' registered
[    0.312832] bounce: pool size: 64 pages
[    0.313075] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.313122] io scheduler noop registered
[    0.313151] io scheduler deadline registered
[    0.313354] io scheduler cfq registered (default)
[    0.313788] rockchip-usb-phy phy: GPIO lookup for consumer vbus_drv
[    0.313800] rockchip-usb-phy phy: using device tree for GPIO lookup
[    0.313814] of_get_named_gpiod_flags: can't parse 'vbus_drv-gpios' property of node '/phy[0]'
[    0.313826] of_get_named_gpiod_flags: can't parse 'vbus_drv-gpio' property of node '/phy[0]'
[    0.313837] rockchip-usb-phy phy: using lookup tables for GPIO lookup
[    0.313849] rockchip-usb-phy phy: lookup for GPIO vbus_drv failed
[    0.313861] rockchip-usb-phy phy: vbus_drv is not assigned!
[    0.316136] pwm-backlight backlight: GPIO lookup for consumer enable
[    0.316150] pwm-backlight backlight: using device tree for GPIO lookup
[    0.316186] of_get_named_gpiod_flags: parsed 'enable-gpios' property of node '/backlight[0]' - status (0)
[    0.316240] backlight supply power not found, using dummy regulator
[    0.319047] dma-pl330 ff250000.dma-controller: Loaded driver for PL330 DMAC-241330
[    0.319093] dma-pl330 ff250000.dma-controller: 	DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[    0.320068] dma-pl330 ffb20000.dma-controller: Loaded driver for PL330 DMAC-241330
[    0.320111] dma-pl330 ffb20000.dma-controller: 	DBUFF-64x8bytes Num_Chans-5 Num_Peri-6 Num_Events-10
[    0.320818] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.322786] ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 39, base_baud = 1500000) is a 16550A
[    0.323631] ff190000.serial: ttyS1 at MMIO 0xff190000 (irq = 40, base_baud = 1500000) is a 16550A
[    0.324454] console [ttyS2] disabled
[    0.324515] ff690000.serial: ttyS2 at MMIO 0xff690000 (irq = 41, base_baud = 1500000) is a 16550A
[    1.083906] console [ttyS2] enabled
[    1.088384] ff1b0000.serial: ttyS3 at MMIO 0xff1b0000 (irq = 42, base_baud = 1500000) is a 16550A
[    1.098764] func: gpio_controller_probe
[    1.102642] of_get_named_gpiod_flags: parsed 'sata_enable' property of node '/gpio-controller[0]' - status (0)
[    1.118115] of_get_named_gpiod_flags: parsed 'sata_reset' property of node '/gpio-controller[0]' - status (0)
[    1.138255] [drm] Initialized drm 1.1.0 20060810
[    1.144299] [drm:rockchip_lvds_probe] *ERROR* failed to find panel
[    1.150587] platform ff96c000.lvds: Driver rockchip-lvds requests probe deferral
[    1.159255] usbcore: registered new interface driver udl
[    1.165962] lvds_panel supply power not found, using dummy regulator
[    1.172408] panel-simple lvds_panel: GPIO lookup for consumer enable
[    1.172420] panel-simple lvds_panel: using device tree for GPIO lookup
[    1.172452] of_get_named_gpiod_flags: parsed 'enable-gpios' property of node '/lvds_panel[0]' - status (0)
[    1.172467] no flags found for enable
[    1.173918] platform ffa30000.gpu: Driver mali requests probe deferral
[    1.181844] brd: module loaded
[    1.192086] loop: module loaded
[    1.195284] lkdtm: No crash points registered, enable through debugfs
[    1.206128] tun: Universal TUN/TAP device driver, 1.6
[    1.211235] tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
[    1.217629] CAN device driver interface
[    1.221781] vcc_5v: supplied by vcc_sys
[    1.258979] rk_gmac-dwmac ff290000.ethernet: phy regulator is not available yet, deferred probing
[    1.267916] platform ff290000.ethernet: Driver rk_gmac-dwmac requests probe deferral
[    1.276248] PPP generic driver version 2.4.2
[    1.280876] usbcore: registered new interface driver rndis_wlan
[    1.287031] usbcore: registered new interface driver rt2800usb
[    1.293163] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[    1.300671] usbcore: registered new interface driver pegasus
[    1.306400] usbcore: registered new interface driver rtl8150
[    1.312147] usbcore: registered new interface driver r8152
[    1.317714] usbcore: registered new interface driver asix
[    1.323198] usbcore: registered new interface driver ax88179_178a
[    1.329383] usbcore: registered new interface driver cdc_ether
[    1.335283] usbcore: registered new interface driver dm9601
[    1.340958] usbcore: registered new interface driver smsc75xx
[    1.346789] usbcore: registered new interface driver smsc95xx
[    1.352620] usbcore: registered new interface driver net1080
[    1.358360] usbcore: registered new interface driver rndis_host
[    1.364344] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[    1.371877] usbcore: registered new interface driver cdc_ncm
[    1.377602] usbcore: registered new interface driver cdc_mbim
[    1.383769] ff540000.usb supply vusb_d not found, using dummy regulator
[    1.390475] ff540000.usb supply vusb_a not found, using dummy regulator
[    1.557440] dwc2 ff540000.usb: DWC OTG Controller
[    1.562216] dwc2 ff540000.usb: new USB bus registered, assigned bus number 1
[    1.569320] dwc2 ff540000.usb: irq 46, io mem 0x00000000
[    1.574912] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.581734] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.588988] usb usb1: Product: DWC OTG Controller
[    1.593704] usb usb1: Manufacturer: Linux 4.4.16-pTAM8_v00.01 dwc2_hsotg
[    1.600428] usb usb1: SerialNumber: ff540000.usb
[    1.605762] hub 1-0:1.0: USB hub found
[    1.609591] hub 1-0:1.0: 1 port detected
[    1.614170] ff580000.usb supply vusb_d not found, using dummy regulator
[    1.620877] ff580000.usb supply vusb_a not found, using dummy regulator
[    1.918118] dwc2 ff580000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM
[    1.925674] dwc2 ff580000.usb: DWC OTG Controller
[    1.930439] dwc2 ff580000.usb: new USB bus registered, assigned bus number 2
[    1.937523] dwc2 ff580000.usb: irq 47, io mem 0x00000000
[    1.943024] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.949845] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.957086] usb usb2: Product: DWC OTG Controller
[    1.961815] usb usb2: Manufacturer: Linux 4.4.16-pTAM8_v00.01 dwc2_hsotg
[    1.968539] usb usb2: SerialNumber: ff580000.usb
[    1.973820] hub 2-0:1.0: USB hub found
[    1.977613] hub 2-0:1.0: 1 port detected
[    1.982907] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.989481] ehci-platform: EHCI generic platform driver
[    1.995002] ehci-platform ff500000.usb: EHCI Host Controller
[    2.000915] ehci-platform ff500000.usb: new USB bus registered, assigned bus number 3
[    2.008906] ehci-platform ff500000.usb: irq 45, io mem 0xff500000
[    2.028102] ehci-platform ff500000.usb: USB 2.0 started, EHCI 1.00
[    2.034454] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    2.041285] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.048544] usb usb3: Product: EHCI Host Controller
[    2.053434] usb usb3: Manufacturer: Linux 4.4.16-pTAM8_v00.01 ehci_hcd
[    2.059990] usb usb3: SerialNumber: ff500000.usb
[    2.065286] hub 3-0:1.0: USB hub found
[    2.069109] hub 3-0:1.0: 1 port detected
[    2.073781] usbcore: registered new interface driver cdc_acm
[    2.079485] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    2.087666] usbcore: registered new interface driver cdc_wdm
[    2.093489] usbcore: registered new interface driver usb-storage
[    2.099645] usbcore: registered new interface driver usbserial
[    2.105535] usbcore: registered new interface driver usbserial_generic
[    2.112130] usbserial: USB Serial support registered for generic
[    2.118222] usbcore: registered new interface driver cp210x
[    2.123839] usbserial: USB Serial support registered for cp210x
[    2.129872] usbcore: registered new interface driver ftdi_sio
[    2.135664] usbserial: USB Serial support registered for FTDI USB Serial Device
[    2.143174] usbcore: registered new interface driver keyspan
[    2.148898] usbserial: USB Serial support registered for Keyspan - (without firmware)
[    2.156779] usbserial: USB Serial support registered for Keyspan 1 port adapter
[    2.164162] usbserial: USB Serial support registered for Keyspan 2 port adapter
[    2.171615] usbserial: USB Serial support registered for Keyspan 4 port adapter
[    2.179025] usbcore: registered new interface driver option
[    2.184645] usbserial: USB Serial support registered for GSM modem (1-port)
[    2.191849] usbcore: registered new interface driver oti6858
[    2.197556] usbserial: USB Serial support registered for oti6858
[    2.203655] usbcore: registered new interface driver pl2303
[    2.209289] usbserial: USB Serial support registered for pl2303
[    2.215284] usbcore: registered new interface driver qcserial
[    2.221093] usbserial: USB Serial support registered for Qualcomm USB modem
[    2.228153] usbcore: registered new interface driver sierra
[    2.233772] usbserial: USB Serial support registered for Sierra USB modem
[    2.241414] usbcore: registered new interface driver usbtouchscreen
[    2.248024] i2c /dev entries driver
[    2.252389] rk3x-i2c ff140000.i2c: Initialized RK3xxx I2C bus at f08dc000
[    2.259991] at24 3-0050: 8192 byte 24c64 EEPROM, writable, 32 bytes/write
[    2.267106] rk3x-i2c ff150000.i2c: Initialized RK3xxx I2C bus at f08de000
[    2.274684] rk3x-i2c ff170000.i2c: Initialized RK3xxx I2C bus at f08f2000
[    2.282326] fan53555-regulator 0-0040: GPIO lookup for consumer vsel
[    2.282339] fan53555-regulator 0-0040: using device tree for GPIO lookup
[    2.282354] of_get_named_gpiod_flags: can't parse 'vsel-gpios' property of node '/i2c@ff650000/syr827@40[0]'
[    2.282367] of_get_named_gpiod_flags: can't parse 'vsel-gpio' property of node '/i2c@ff650000/syr827@40[0]'
[    2.282378] fan53555-regulator 0-0040: using lookup tables for GPIO lookup
[    2.282390] fan53555-regulator 0-0040: lookup for GPIO vsel failed
[    2.282788] fan53555-regulator 0-0040: FAN53555 Option[8] Rev[1] Detected!
[    2.290062] vdd_cpu: No configuration
[    2.294946] fan53555-regulator 0-0041: GPIO lookup for consumer vsel
[    2.294959] fan53555-regulator 0-0041: using device tree for GPIO lookup
[    2.294972] of_get_named_gpiod_flags: can't parse 'vsel-gpios' property of node '/i2c@ff650000/syr828@41[0]'
[    2.294984] of_get_named_gpiod_flags: can't parse 'vsel-gpio' property of node '/i2c@ff650000/syr828@41[0]'
[    2.294995] fan53555-regulator 0-0041: using lookup tables for GPIO lookup
[    2.295006] fan53555-regulator 0-0041: lookup for GPIO vsel failed
[    2.295349] fan53555-regulator 0-0041: FAN53555 Option[8] Rev[1] Detected!
[    2.302594] vdd_gpu: No configuration
[    2.309931] rtc-hym8563 0-0051: rtc core: registered hym8563 as rtc0
[    2.316998] rockchip-pinctrl pinctrl: pin gpio7-14 already requested by ff120000.spi; cannot claim for 0-005a
[    2.326967] rockchip-pinctrl pinctrl: pin-230 (0-005a) status -22
[    2.333087] rockchip-pinctrl pinctrl: could not request pin 230 (gpio7-14) from group pmic-vsel  on device rockchip-pinctrl
[    2.344245] act8865 0-005a: Error applying setting, reverse things back
[    2.359490] rk3x-i2c ff650000.i2c: Initialized RK3xxx I2C bus at f08f4000
[    2.367127] func: lt8618_i2c_probe
[    2.380955] rk3x-i2c ff660000.i2c: Initialized RK3xxx I2C bus at f08f6000
[    2.388111] usb 3-1: new high-speed USB device number 2 using ehci-platform
[    2.388690] probe device ff9a0000.video-codec
[    2.399578] rockchip-vpu ff9a0000.video-codec: Rockchip VPU encoder registered as /vpu/video0
[    2.408377] rockchip-vpu ff9a0000.video-codec: Rockchip VPU decoder registered as /vpu/video1
[    2.417199] usbcore: registered new interface driver uvcvideo
[    2.422979] USB Video Class driver (1.1.1)
[    2.427943] vcc_io: supplied by vcc_sys
[    2.432437] vcc28_dvp: supplied by vcc_io
[    2.436657] dovdd_1v8: supplied by vcc28_dvp
[    2.441117] vcc_flash: supplied by vcc_io
[    2.445424] vcc_lan: supplied by vcc_sys
[    2.449843] vcc_20: supplied by vcc_sys
[    2.453877] vcc_18: supplied by vcc_20
[    2.458680] vcca_33: supplied by vcc_sys
[    2.463198] vccio_sd: supplied by vcc_sys
[    2.469543] rk_tsadcv2_initialize: Missing rockchip,grf property
[    2.477017] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: [email protected]
[    2.485877] Bluetooth: Virtual HCI driver ver 1.5
[    2.490800] Bluetooth: HCI UART driver ver 2.3
[    2.495260] Bluetooth: HCI UART protocol H4 registered
[    2.500427] Bluetooth: HCI UART protocol LL registered
[    2.505575] Bluetooth: HCI UART protocol ATH3K registered
[    2.511094] usbcore: registered new interface driver bfusb
[    2.516677] usbcore: registered new interface driver btusb
[    2.522571] vdd_cpu: supplied by vcc_sys
[    2.529827] cpufreq-dt cpufreq-dt: failed register driver: -17
[    2.535668] cpufreq-dt: probe of cpufreq-dt failed with error -17
[    2.541813] sdhci: Secure Digital Host Controller Interface driver
[    2.547990] sdhci: Copyright(c) Pierre Ossman
[    2.552348] Synopsys Designware Multimedia Card Interface Driver
[    2.558661] usb 3-1: New USB device found, idVendor=0424, idProduct=2514
[    2.558811] dwmmc_rockchip ff0c0000.dwmmc: IDMAC supports 32-bit address mode.
[    2.558834] dwmmc_rockchip ff0c0000.dwmmc: Using internal DMA controller.
[    2.558840] dwmmc_rockchip ff0c0000.dwmmc: Version ID is 270a
[    2.558868] dwmmc_rockchip ff0c0000.dwmmc: DW MMC controller at irq 29,32 bit host data width,256 deep fifo
[    2.558924] vcc_sd: supplied by vcc_io
[    2.559280] dwmmc_rockchip ff0c0000.dwmmc: GPIO lookup for consumer cd
[    2.559283] dwmmc_rockchip ff0c0000.dwmmc: using device tree for GPIO lookup
[    2.559287] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node '/dwmmc@ff0c0000[0]'
[    2.559290] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node '/dwmmc@ff0c0000[0]'
[    2.559292] dwmmc_rockchip ff0c0000.dwmmc: using lookup tables for GPIO lookup
[    2.559296] dwmmc_rockchip ff0c0000.dwmmc: lookup for GPIO cd failed
[    2.559299] dwmmc_rockchip ff0c0000.dwmmc: GPIO lookup for consumer wp
[    2.559301] dwmmc_rockchip ff0c0000.dwmmc: using device tree for GPIO lookup
[    2.559304] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/dwmmc@ff0c0000[0]'
[    2.559306] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/dwmmc@ff0c0000[0]'
[    2.559308] dwmmc_rockchip ff0c0000.dwmmc: using lookup tables for GPIO lookup
[    2.559310] dwmmc_rockchip ff0c0000.dwmmc: lookup for GPIO wp failed
[    2.598607] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.606123] hub 3-1:1.0: USB hub found
[    2.610026] hub 3-1:1.0: 4 ports detected
[    2.688100] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    2.709128] dwmmc_rockchip ff0c0000.dwmmc: 1 slots initialized
[    2.715212] dwmmc_rockchip ff0d0000.dwmmc: IDMAC supports 32-bit address mode.
[    2.722460] dwmmc_rockchip ff0d0000.dwmmc: Using internal DMA controller.
[    2.729255] dwmmc_rockchip ff0d0000.dwmmc: Version ID is 270a
[    2.735023] dwmmc_rockchip ff0d0000.dwmmc: DW MMC controller at irq 30,32 bit host data width,256 deep fifo
[    2.744944] dwmmc_rockchip ff0d0000.dwmmc: No vmmc regulator found
[    2.751133] dwmmc_rockchip ff0d0000.dwmmc: GPIO lookup for consumer wp
[    2.751138] dwmmc_rockchip ff0d0000.dwmmc: using device tree for GPIO lookup
[    2.751144] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/dwmmc@ff0d0000[0]'
[    2.751149] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/dwmmc@ff0d0000[0]'
[    2.751153] dwmmc_rockchip ff0d0000.dwmmc: using lookup tables for GPIO lookup
[    2.751158] dwmmc_rockchip ff0d0000.dwmmc: lookup for GPIO wp failed
[    2.751226] platform sdio-pwrseq: GPIO lookup for consumer reset
[    2.751231] platform sdio-pwrseq: using device tree for GPIO lookup
[    2.751241] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/sdio-pwrseq[0]' - status (0)
[    2.751265] dwmmc_rockchip ff0d0000.dwmmc: allocated mmc-pwrseq
[    2.768096] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    2.788105] dwmmc_rockchip ff0d0000.dwmmc: 1 slots initialized
[    2.794179] dwmmc_rockchip ff0f0000.dwmmc: IDMAC supports 32-bit address mode.
[    2.802437] dwmmc_rockchip ff0f0000.dwmmc: Using internal DMA controller.
[    2.809251] dwmmc_rockchip ff0f0000.dwmmc: Version ID is 270a
[    2.817030] dwmmc_rockchip ff0f0000.dwmmc: DW MMC controller at irq 31,32 bit host data width,256 deep fifo
[    2.827001] dwmmc_rockchip ff0f0000.dwmmc: GPIO lookup for consumer wp
[    2.827006] dwmmc_rockchip ff0f0000.dwmmc: using device tree for GPIO lookup
[    2.827015] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/dwmmc@ff0f0000[0]'
[    2.827020] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/dwmmc@ff0f0000[0]'
[    2.827024] dwmmc_rockchip ff0f0000.dwmmc: using lookup tables for GPIO lookup
[    2.827029] dwmmc_rockchip ff0f0000.dwmmc: lookup for GPIO wp failed
[    2.838088] mmc_host mmc2: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    2.848088] mmc_host mmc1: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0)
[    2.859161] dwmmc_rockchip ff0f0000.dwmmc: 1 slots initialized
[    2.867127] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.873924] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/work[0]' - status (0)
[    2.876036] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/power[0]' - status (0)
[    2.876150] hidraw: raw HID events driver (C) Jiri Kosina
[    2.885058] usbcore: registered new interface driver usbhid
[    2.888078] usb 3-1.1: new low-speed USB device number 3 using ehci-platform
[    2.897702] usbhid: USB HID core driver
[    2.902885] usbcore: registered new interface driver snd-usb-audio
[    2.909691] platform sound_i2s: Driver asoc-simple-card requests probe deferral
[    2.917900] u32 classifier
[    2.921703] mmc2: MAN_BKOPS_EN bit is not set
[    2.926251] Initializing XFRM netlink socket
[    2.930995] NET: Registered protocol family 10
[    2.935468] mmc_host mmc2: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0)
[    2.945374] mmc2: new high speed MMC card at address 0001
[    2.950838] mmc_host mmc1: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
[    2.951109] sit: IPv6 over IPv4 tunneling driver
[    2.951461] NET: Registered protocol family 17
[    2.951475] NET: Registered protocol family 15
[    2.951501] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.951505] can: controller area network core (rev 20120528 abi 9)
[    2.951538] NET: Registered protocol family 29
[    2.951557] can: raw protocol (rev 20120528)
[    2.951561] can: broadcast manager protocol (rev 20120528 t)
[    2.951567] can: netlink gateway (rev 20130117) max_hops=1
[    2.951722] Bluetooth: RFCOMM socket layer initialized
[    2.951765] Bluetooth: RFCOMM ver 1.11
[    2.951775] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    2.951780] Bluetooth: HIDP socket layer initialized
[    2.951813] 8021q: 802.1Q VLAN Support v1.8
[    2.951828] lib80211: common routines for IEEE802.11 drivers
[    2.951830] lib80211_crypt: registered algorithm 'NULL'
[    2.951835] lib80211_crypt: registered algorithm 'WEP'
[    2.951840] lib80211_crypt: registered algorithm 'CCMP'
[    2.951845] lib80211_crypt: registered algorithm 'TKIP'
[    2.951850] [WLAN_RFKILL]: Enter rfkill_wlan_init
[    2.952021] [WLAN_RFKILL]: Enter rfkill_wlan_probe
[    2.952039] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = ap6210
[    2.952042] [WLAN_RFKILL]: wlan_platdata_parse_dt: enable wifi power control.
[    2.952044] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi power controled by gpio.
[    2.952047] of_get_named_gpiod_flags: can't parse 'WIFI,poweren_gpio' property of node '/wireless-wlan[0]'
[    2.952049] of_get_named_gpiod_flags: can't parse 'WIFI,reset_gpio' property of node '/wireless-wlan[0]'
[    2.952066] of_get_named_gpiod_flags: parsed 'WIFI,host_wake_irq' property of node '/wireless-wlan[0]' - status (0)
[    2.952068] [WLAN_RFKILL]: wlan_platdata_parse_dt: get property: WIFI,host_wake_irq = 150, flags = 0.
[    2.952069] [WLAN_RFKILL]: rfkill_wlan_probe: init gpio
[    2.952074] [WLAN_RFKILL]: Exit rfkill_wlan_probe
[    2.952102] [BT_RFKILL]: Enter rfkill_rk_init
[    2.952299] [BT_RFKILL]: Enter rfkill_rk_probe
[    2.952302] [BT_RFKILL]: Enter bluetooth_platdata_parse_dt
[    2.952313] of_get_named_gpiod_flags: parsed 'uart_rts_gpios' property of node '/wireless-bluetooth[0]' - status (0)
[    2.952315] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: uart_rts_gpios = 139.
[    2.952319] of_get_named_gpiod_flags: can't parse 'BT,power_gpio' property of node '/wireless-bluetooth[0]'
[    2.952326] of_get_named_gpiod_flags: parsed 'BT,reset_gpio' property of node '/wireless-bluetooth[0]' - status (0)
[    2.952328] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,reset_gpio = 149.
[    2.952334] of_get_named_gpiod_flags: parsed 'BT,wake_gpio' property of node '/wireless-bluetooth[0]' - status (0)
[    2.952336] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,wake_gpio = 146.
[    2.952342] of_get_named_gpiod_flags: parsed 'BT,wake_host_irq' property of node '/wireless-bluetooth[0]' - status (0)
[    2.952343] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,wake_host_irq = 151.
[    2.952355] [BT_RFKILL]: init gpio
[    2.952356] [BT_RFKILL]: Enter rfkill_rk_setup_gpio
[    2.952357] [BT_RFKILL]: Enter rfkill_rk_setup_gpio
[    2.952365] [BT_RFKILL]: Enter rfkill_rk_setup_gpio
[    2.952368] [BT_RFKILL]: Enter rfkill_rk_setup_gpio
[    2.952373] [BT_RFKILL]: Enter rfkill_rk_setup_wake_irq
[    2.952374] [BT_RFKILL]: Enter rfkill_rk_setup_gpio
[    2.952378] [BT_RFKILL]: Request irq for bt wakeup host
[    2.952416] [BT_RFKILL]: ** disable irq
[    2.952419] [BT_RFKILL]: setup rfkill
[    2.952506] [BT_RFKILL]: bt_default device registered.
[    2.952552] Key type dns_resolver registered
[    2.952869] ThumbEE CPU extension supported.
[    2.952881] Registering SWP/SWPB emulation handler
[    2.953270] Loading compiled-in X.509 certificates
[    2.968826] iommu: Adding device display-subsystem to group 3
[    2.968834] rockchip-drm display-subsystem: Possibly a virtual device
[    2.968983] rockchip-drm display-subsystem: bound ff940000.vop (ops vop_component_ops)
[    2.969076] rockchip-drm display-subsystem: bound ff930000.vop (ops vop_component_ops)
[    2.969120] rockchip-drm display-subsystem: bound ff96c000.lvds (ops rockchip_lvds_component_ops)
[    2.969196] dwhdmi-rockchip ff980000.hdmi: Detected HDMI controller 0x20:0xa:0xa0:0xc1
[    2.969604] rockchip-drm display-subsystem: bound ff980000.hdmi (ops dw_hdmi_rockchip_ops)
[    2.969745] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.969747] [drm] No driver support for vblank timestamp query.
[    2.969762] rockchip-drm display-subsystem: failed to parse display resources
[    3.036272] usb 3-1.1: New USB device found, idVendor=04d9, idProduct=1203
[    3.036276] usb 3-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.066060] input: HID 04d9:1203 as /devices/platform/ff500000.usb/usb3/3-1/3-1.1/3-1.1:1.0/0003:04D9:1203.0001/input/input0
[    3.128388] hid-generic 0003:04D9:1203.0001: input,hidraw0: USB HID v1.11 Keyboard [HID 04d9:1203] on usb-ff500000.usb-1.1/input0
[    3.177353] input: HID 04d9:1203 as /devices/platform/ff500000.usb/usb3/3-1/3-1.1/3-1.1:1.1/0003:04D9:1203.0002/input/input1
[    3.238248] hid-generic 0003:04D9:1203.0002: input,hidraw1: USB HID v1.11 Device [HID 04d9:1203] on usb-ff500000.usb-1.1/input1
[    3.341120] mmcblk2: mmc2:0001 8GND3R 7.28 GiB 
[    3.358107] mmcblk2boot0: mmc2:0001 8GND3R partition 1 4.00 MiB
[    3.358265] mmcblk2boot1: mmc2:0001 8GND3R partition 2 4.00 MiB
[    3.358395] mmcblk2rpmb: mmc2:0001 8GND3R partition 3 512 KiB
[    3.358813]       boot: 0x000400000 -- 0x002400000 (32 MB)
[    3.358816]     backup: 0x002400000 -- 0x002800000 (4 MB)
[    3.358819]  linuxroot: 0x002800000 -- 0x1d1c00000 (7412 MB)
[    3.368761]  mmcblk2: p1 p2 p3
[    3.368765] Console: switching to colour frame buffer device 240x67
[    3.445077] rockchip-drm display-subsystem: fb0:  frame buffer device
[    3.458933] vendor storage:20160801 ret = 0
[    3.478491] vdd_gpu: supplied by vcc_sys
[    3.483290] mali ffa30000.gpu: GPU identified as 0x0750 r0p0 status 1
[    3.490466] mali ffa30000.gpu: Probed as mali0
[    3.495641] rk_gmac-dwmac ff290000.ethernet: clock input or output? (input).
[    3.502844] rk_gmac-dwmac ff290000.ethernet: TX delay(0x30).
[    3.508622] rk_gmac-dwmac ff290000.ethernet: RX delay(0x10).
[    3.514450] rk_gmac-dwmac ff290000.ethernet: clock input from PHY
[    3.520668] rk_gmac-dwmac ff290000.ethernet: init for RGMII
[    3.531538] stmmac - user ID: 0x10, Synopsys ID: 0x35
[    3.536673]  Ring mode enabled
[    3.539794]  DMA HW capability register supported
[    3.544410]  Normal descriptors
[    3.547796]  RX Checksum Offload Engine supported (type 2)
[    3.553390]  TX Checksum insertion supported
[    3.557730]  Wake-Up On Lan supported
[    3.561497]  Enable RX Mitigation via HW Watchdog Timer
[    3.567370] of_get_named_gpiod_flags: parsed 'snps,reset-gpio' property of node '/ethernet@ff290000[0]' - status (0)
[    4.592036] libphy: stmmac: probed
[    4.595500] eth0: PHY ID 001cc915 at 0 IRQ POLL (stmmac-0:00) active
[    4.601990] eth0: PHY ID 001cc915 at 1 IRQ POLL (stmmac-0:01)
[    4.608141] of_get_named_gpiod_flags: can't parse 'simple-audio-card,hp-det-gpio' property of node '/sound_i2s[0]'
[    4.608147] of_get_named_gpiod_flags: can't parse 'simple-audio-card,mic-det-gpio' property of node '/sound_i2s[0]'
[    4.608985] asoc-simple-card sound_i2s: i2s-hifi <-> ff890000.i2s mapping ok
[    4.616960] of_get_named_gpiod_flags: parsed 'gpios' property of node '/gpio-keys/button@0[0]' - status (0)
[    4.617014] gpio-5 (GPIO Power): gpiod_set_debounce: missing set() or set_debounce() operations
[    4.617179] input: gpio-keys as /devices/platform/gpio-keys/input/input2
[    4.624607] rtc-hym8563 0-0051: setting system clock to 2017-10-16 09:37:33 UTC (1508146653)
[    4.641250] dovdd_1v8: disabling
[    4.644578] vcc_sd: disabling
[    4.648130] ALSA device list:
[    4.651165]   #0: rockchip,boardcon-codec
[    4.655521] ttyS2 - failed to request DMA
[    4.684276] EXT4-fs (mmcblk2p3): recovery complete
[    4.695213] EXT4-fs (mmcblk2p3): mounted filesystem with ordered data mode. Opts: (null)
[    4.709185] VFS: Mounted root (ext4 filesystem) on device 179:3.
[    4.721522] devtmpfs: mounted
[    4.730828] Freeing unused kernel memory: 1024K (c0f00000 - c1000000)
[    5.064128] udevd[152]: starting version 3.2
[    5.075381] random: udevd urandom read with 32 bits of entropy available
[    5.119208] udevd[153]: starting eudev-3.2
[    5.186071] EXT4-fs (mmcblk2p3): re-mounted. Opts: data=ordered
[    5.712957] eth0: device MAC address 5a:59:40:16:9b:a8
[    6.416623] ret = fffffff2
[    6.422372] ret = fffffff2
[   10.858495] rk_gmac-dwmac ff290000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   23.741024] ret = fffffff2
[   23.743973] ret = fffffff2
[   23.747373] ret = fffffff2
[   23.750187] ret = fffffff2
[   56.772647] random: nonblocking pool is initialized
[  329.444002] ret = fffffff2
[  329.446993] ret = fffffff2
[  329.450087] ret = fffffff2
[  329.452903] ret = fffffff2
[  338.844784] ret = fffffff2
[  338.847706] ret = fffffff2
[  338.850798] ret = fffffff2
[  338.853579] ret = fffffff2

I'm using the morty branch of meta-rockchip.

USB 3.0 disconnect hangs USB subsystem

First saw this with xenial-minimal-rock64-0.4.17-85-arm64.img. Next tried jessie-minimal-rock64-0.5.7-101-arm64.img, and seeing same basic issue. After disconnecting USB 3.0 HD from USB 3.0 port, any attempt to interface with USB causes timeout and kernel panic.

Using rock64 4GB, booting from 4GB SD Card. Connected a USB 3.0 external disk drive (already formatted w/ 2 linux partitions). Drive is a Seagate 2TB 2.5" Hybrid drive, in a bus powered JMicron based external housing.

Mounted both partitions under /media/sda1 & /media/sda3. Did 'ls -ahl' on both mounts. Then unmounted both partitions, and verified with "mount". Next unplugged USB drive.

The jessie image console output at disconnect was :
[ 873.393783] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 873.394805] xhci-hcd xhci-hcd.8.auto: Cannot set link state.
[ 873.395754] usb usb5-port1: cannot disable (err = -32)
[ 875.910788] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 875.911801] xhci-hcd xhci-hcd.8.auto: Cannot set link state.
[ 875.912735] usb usb5-port1: cannot disable (err = -32)
[ 878.426774] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 878.427787] xhci-hcd xhci-hcd.8.auto: Cannot set link state.
[ 878.428729] usb usb5-port1: cannot disable (err = -32)
[ 880.943791] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 880.944809] xhci-hcd xhci-hcd.8.auto: Cannot set link state.
[ 880.945741] usb usb5-port1: cannot disable (err = -32)
[ 880.946543] xhci-hcd xhci-hcd.8.auto: Cannot set link state.
[ 880.947492] usb usb5-port1: cannot disable (err = -32)
[ 880.948328] scsi host0: uas_post_reset: alloc streams error -19 after reset
[ 880.952607] sd 0:0:0:0: [sda] Synchronizing SCSI cache

Awhile later, tried to do a lsusb, and it hung. Then kernel panic was next :
(attached as text file, since form is messing with content)
kernelpanic.txt

RK3288 kernel hang on boot

I'm having issues with booting Linux on my RK3288 Firefly Reload board. With some configurations of kernel command line options and peripherals in the dts, the kernel hangs during boot: it hangs around the point where late initcalls are being executed. No stack trace or anything else is printed on the console, the system just hangs. This happens mostly when booting the kernel with the "quiet" command line option, but I have seen it happening also without this option. I tried removing various peripherals from the device tree (SD slot, eMMC, USB ports, I2C, UART) to single out possible sources of the problem, but the kernel still hangs without these peripherals.
I'm using an LVDS panel as a display interface, with the LVDS driver taken from this repository and added to mainline kernel (tried with 4.11 and 4.12 mainline kernel versions), but the problem is not in the LVDS stuff, because I have seen the system hanging with the mainline kernel (which doesn't have support for LVDS) too.

Are there any known issues that may cause the kernel to hang with this SoC?

LVDS has no signal on firefly-reload

I have got device fb0 on my firefly-reload
root@linaro-alip:~# fbset

mode "1280x800"
geometry 1280 800 1280 800 32
timings 0 0 0 0 0 0 0
accel true
rgba 8/16,8/8,8/0,0/0
endmode

And
root@linaro-alip:~# cd /sys/class/drm/card0-LVDS-1/
root@linaro-alip:/sys/class/drm/card0-LVDS-1# cat status
connected
root@linaro-alip:/sys/class/drm/card0-LVDS-1# cat enabled
enabled
root@linaro-alip:/sys/class/drm/card0-LVDS-1# cat modes
1280x800p60
root@linaro-alip:/sys/class/drm/card0-LVDS-1#

I think lvds should work but I didn't get any signal with scope.
Could any one help me?

Here is my dts

#include "rk3288-firefly.dtsi"

/ {
model = "Firefly-RK3288";
compatible = "firefly,firefly-rk3288", "rockchip,rk3288";

    lvds_panel: lvds-panel {
            compatible ="auo,b101ew05","simple-panel";
            status = "okay";
            rockchip,data-mapping = "jeida";
            rockchip,data-width = <24>;
            rockchip,output = "lvds";
            ports {
                    panel_in_lvds: endpoint {
                            remote-endpoint = <&lvds_out_panel>;
                    };
            };
    };

};
&lvds {
status = "okay";
rockchip,grf = <&grf>;
avdd1v0-supply = <&vdd10_lcd>;
avdd1v8-supply = <&vcc18_lcd>;
avdd3v3-supply = <&vcca_33>;
rockchip,data-mapping = "jeida";
rockchip,data-width = <24>;
rockchip,output = "lvds";

    ports {
             lvds_out: port@1 {
                    reg = <1>;
                    #address-cells = <1>;
                    #size-cells = <0>;

                    lvds_out_panel: endpoint {
                        reg = <0>;
                            remote-endpoint = <&panel_in_lvds>;
                    };
            };
    };

};

&lvds_in {
/delete-node/ endpoint@0;
};

&vopb_out {
/delete-node/ endpoint@3;
};

rk3399: test_dec-gst.sh fails: mpp_drm: mmap failed: Invalid argument

I am running the latest release-4.4 kernel (d0f8c7a plus our patches) with the latest rk3399 debian rootfs rootfs-debian-20170504-beta-4.tar.gz from Google Drive. Hardware-accelerated video decoding fails. Is there a newer/older gst I have to use with this kernel?

root@linaro-alip:~# test_dec-gst.sh
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
mpi: mpp version: bc95242 author: LongChair mpp : add a control command to retrieve available input packet free slots
hal_h264d_api: hal_h264d_init mpp_buffer_group_get_internal used ion In
mpp_drm: mmap failed: Invalid argument
mpp_drm: os_allocator_drm_alloc drm_map failed ret -22
mpp_buffer: mpp_buffer_create failed to create buffer with size 160192
mpp_hal: mpp_hal_init hal h264d_rkdec init failed ret -1
mpp_hal: mpp_hal_init could no[  554.325164] rk-vcodec ff660000.rkvdec: closed
t found coding type 7
mpp_dec: mpp_dec_init could not init hal
mpp: error found on mpp initialization
ERROR: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0: Internal data stream error.
Additional debug info:
qtdemux.c(5850): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0:
streaming stopped, reason error (-5)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

DRM: problem with drmModeSetPlane() scaling

Hello.

I have problem with DRM overlay scaling. If I use "drmModeSetPlane(fd, plane_id, crtc_id, fb_id, 0, fb_x, fb_y, fb_width, fb_height, 0, 0, width << 16, height << 16);" and (height == fb_height*2) or (height == fb_height*4) the display image is corrupted. About first 16 lines are unexpectedly shifted and after image to end of screen is corrupted frame buffer (see attached image). Testing program is attached too.
HW/SW - TinkerBoard (rk3288), TinkerOS 1.4 (kernel 4.4.16 #25) or TinkerOS 1.6 (kernel 4.4.17 #1).

Any hit or patch ?
Thanks, Martin

drm_test.zip

rk3288 tinker board no videoX device

Hello,

with branch release-4.4 configured with rockchip_linux_defconfig I get no /dev/videoX device. With kernel from TinderOS is there video0 and video1.
This is dmesg:

dmesg.txt

Regards zillevdr

pinctrl: RK3288 different GPIO pin numbers

Hello.

This kernel is using different pin numbers (better) for GPIO (due to commit 1d9964a) than other kernels (TinkerOS, upstream...). Problem is here "PIN_BANK_IOMUX_FLAGS(0, 32, "gpio0",..." but in other kernels here or here "PIN_BANK_IOMUX_FLAGS(0, 24, "gpio0"...).
This kernel: GPIO5_B2 = 5*32 + ("B") 1*8 + 2 = gpio170
Other kernels: GPIO5_B2 = 5*32 + ("B") 1*8 + 2 - 8 = gpio162 (subtract 8 for >gpio24)

This leads to incompatibility of "/sys/class/gpio/*" and libraries for TinkerBoard GPIO_API_for_C and GPIO_API_for_Python.

How to resolve this ?
Will this commit be pushed to upstream + TinkerOS ?

Thanks, Martin

ref: http://tinkerboarding.co.uk/forum/thread-306-post-916.html#pid916

error compiling drivers/gpu/arm/midgard/mali_kbase_jd.c

using release-4.4 branch:

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4
...
CC drivers/gpu/arm/midgard/mali_kbase_jd.o
drivers/gpu/arm/midgard/mali_kbase_jd.c: In function 'kbase_jd_umm_map':
drivers/gpu/arm/midgard/mali_kbase_jd.c:368:2: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' [-Wformat=]
error, forbidden warning: mali_kbase_jd.c:368
...

RK3288 UART4 wrong defined at rk3288.dtsi

I want to enable the UART4 in my RK3288-Firefly board but it is not working at real pins level, although it does appear at kernel level as /dev/ttyS4.

I've disabled the SPI0 node in the rk3288-firefly.dtsi file as follows:

&spi0 {
   pinctrl-names = "default";
   pinctrl-0 = <&spi0_clk>, <&spi0_cs0>, <&spi0_tx>, <&spi0_rx>, <&spi0_cs1>;
   status = "disabled";
};

And I've enabled the UART4 as follows:

&uart4 {
    status = "okay";
};

Then I've also checked with dmesg the UART4 is probed:
[ 1.177999] ff1c0000.serial: ttyS4 at MMIO 0xff1c0000 (irq = 40, base_baud = 1500000) is a 16550A

Also checked:

root@ubuntu:~# cat /sys/firmware/devicetree/base/serial\@ff1c0000/status
okay

And:

root@ubuntu:~# cat /sys/firmware/devicetree/base/spi\@ff110000/status
disabled

But when I write some characters to the UART4 using:

stty -F /dev/ttyS4 115200
echo hello world > /dev/ttyS4

Nothing is read from the pins side...
Therefore I think the UART4 node is wrong defined at the rk3288.dtsi file level.

DeviceTree: rk3288

Hello.
How long known errors in device trees remains ?
Can Rockchip authoritatively check and correct errors ?
Thank you very much.

Like:

diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
index 9e8e11a..409aafe 100644
--- a/arch/arm/boot/dts/rk3288.dtsi
+++ b/arch/arm/boot/dts/rk3288.dtsi
@@ -1067,7 +1067,7 @@
 		status = "disabled";
 	};
 
-	spdif: sound@ff88b0000 {
+	spdif: sound@ff8b0000 {
 		compatible = "rockchip,rk3288-spdif", "rockchip,rk3066-spdif";
 		reg = <0xff8b0000 0x10000>;
 		#sound-dai-cells = <0>;
@@ -1237,7 +1237,7 @@
 	mipi_dsi: mipi@ff960000 {
 		compatible = "rockchip,rk3288-mipi-dsi", "snps,dw-mipi-dsi";
 		reg = <0xff960000 0x4000>;
-		interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
+		interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_MIPI_DSI0>;
 		clock-names = "ref", "pclk";
 		power-domains = <&power RK3288_PD_VIO>;
@@ -1530,7 +1530,7 @@
 		#address-cells = <0>;
 
 		reg = <0xffc01000 0x1000>,
-		      <0xffc02000 0x1000>,
+		      <0xffc02000 0x2000>,
 		      <0xffc04000 0x2000>,
 		      <0xffc06000 0x2000>;
 		interrupts = <GIC_PPI 9 0xf04>;
@@ -1780,7 +1780,7 @@
 				rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up>;
 			};
 
-			sdmmc_cd: sdmcc-cd {
+			sdmmc_cd: sdmmc-cd {
 				rockchip,pins = <6 22 RK_FUNC_1 &pcfg_pull_up>;
 			};
 

Linux 4.x on RK3066 tablet ?

My question is very generic. Will this kernel source work on my rk3066 tablet out-of-box or with small modifications (for example .dts with corrected built-in screen params) or will not work, because this hardware is too old ?

RK2926 support

Does this kernel support RK2926?

I have tablet with RK2926 and want build kernel for it.

Disable VSYNC

Neither eglSwapInterval(0) nor vblank_mode=0 works as expected. Is there any other way to disable VSYNC?

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.