maverickjb / linux-6.1.10

Other
17 stars 6 forks source link

请求帮助适配小米平板5pro的键盘 #1

Open amazingfate opened 9 months ago

amazingfate commented 9 months ago

你好! 感谢你对小米平板5的适配,给了我很大启发,我正在尝试给小米平板5pro适配小米的键盘,参考你的这个提交,把安卓内核里的驱动里drm_notif相关的部分去掉,然后在驱动加载的时候执行set_keyboard_status(1)。但是我发现启动键盘后hid设备会在6秒后消失,点击键盘后hid设备会出现,然后6秒左右后也会消失,日志如下:

[   30.402402] [xiaomi-keyboard] xiaomi_keyboard_irq_func 93: keyboard event: wakeup system
[   30.402454] [xiaomi-keyboard] xiaomi_keyboard_connected_notify 38: connected status notify
[   30.402460] [xiaomi-keyboard] xiaomi_keyboard_irq_func 102: keyboard connected status: 0
[   30.640484] usb 1-1: new full-speed USB device number 3 using xhci-hcd
[   30.787453] [xiaomi-keyboard] xiaomi_keyboard_irq_func 93: keyboard event: wakeup system
[   30.787493] [xiaomi-keyboard] xiaomi_keyboard_connected_notify 38: connected status notify
[   30.787499] [xiaomi-keyboard] xiaomi_keyboard_irq_func 102: keyboard connected status: 1
[   30.805707] input: Xiaomi Pad Keyboard as /devices/platform/soc@0/a8f8800.usb/a800000.usb/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/0003:3206:3FFC.0005/input/input10
[   30.865704] input: Xiaomi Pad Mouse as /devices/platform/soc@0/a8f8800.usb/a800000.usb/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/0003:3206:3FFC.0005/input/input11
[   30.865981] hid-generic 0003:3206:3FFC.0005: input: USB HID v1.11 Keyboard [Xiaomi Pad] on usb-xhci-hcd.0.auto-1/input0
[   30.868014] input: Xiaomi Pad as /devices/platform/soc@0/a8f8800.usb/a800000.usb/xhci-hcd.0.auto/usb1/1-1/1-1:1.1/0003:3206:3FFC.0006/input/input12
[   30.868286] hid-multitouch 0003:3206:3FFC.0006: input: USB HID v1.11 Device [Xiaomi Pad] on usb-xhci-hcd.0.auto-1/input1
[   30.869676] hid-generic 0003:3206:3FFC.0007: hiddev96: USB HID v1.11 Device [Xiaomi Pad] on usb-xhci-hcd.0.auto-1/input2
[   30.870668] hid-generic 0003:3206:3FFC.0008: hiddev97: USB HID v1.11 Device [Xiaomi Pad] on usb-xhci-hcd.0.auto-1/input3
[   30.976012] [xiaomi-keyboard] xiaomi_keyboard_irq_func 93: keyboard event: wakeup system
[   30.976047] [xiaomi-keyboard] xiaomi_keyboard_connected_notify 38: connected status notify
[   30.976053] [xiaomi-keyboard] xiaomi_keyboard_irq_func 102: keyboard connected status: 0
[   31.273190] [xiaomi-keyboard] xiaomi_keyboard_irq_func 93: keyboard event: wakeup system
[   31.273230] [xiaomi-keyboard] xiaomi_keyboard_connected_notify 38: connected status notify
[   31.273237] [xiaomi-keyboard] xiaomi_keyboard_irq_func 102: keyboard connected status: 1
[   37.355903] usb 1-1: USB disconnect, device number 3

正常情况下应该像安卓系统一样开机启动了键盘之后就一直有usb hid设备。 请问你在适配键盘的时候设备树是直接照搬安卓的吗,类似这个,还是有额外的其他配置,比如gpio 另外如果方便的话能否提供一个小米平板5的键盘启动日志,命令dmesg |grep xiaomi_keyboard的输出即可,我对照一下看有没有可疑的地方

maverickjb commented 9 months ago

我现在在layout一块板子,没有在弄这个了。我有一个之前的log,你参考一下。键盘的驱动比较简单,我觉得出问题的可能性不大,你可以看看相关的电源有没有被关掉,比如usb供电还在不在。 加油吧!

从 Windows 版邮件发送

发件人: Jianfeng Liu 发送时间: 2023年9月30日 14:44 收件人: maverickjb/linux-6.1.10 抄送: Subscribed 主题: [maverickjb/linux-6.1.10] 请求帮助适配小米平板5pro的键盘 (Issue #1)

你好! 感谢你对小米平板5的适配,给了我很大启发,我正在尝试给小米平板5pro适配小米的键盘,参考你的这个提交:ae6b58b3c4e61f639534e7e6a407065243755827,把安卓内核里的驱动里drm_notif相关的部分去掉,然后在驱动加载的时候执行set_keyboard_status(1)。但是我发现启动键盘后hid设备会在6秒后消失,点击键盘后hid设备会出现,然后6秒左右后也会消失,日志如下: [ 30.402402] [xiaomi-keyboard] xiaomi_keyboard_irq_func 93: keyboard event: wakeup system [ 30.402454] [xiaomi-keyboard] xiaomi_keyboard_connected_notify 38: connected status notify [ 30.402460] [xiaomi-keyboard] xiaomi_keyboard_irq_func 102: keyboard connected status: 0 [ 30.640484] usb 1-1: new full-speed USB device number 3 using xhci-hcd [ 30.787453] [xiaomi-keyboard] xiaomi_keyboard_irq_func 93: keyboard event: wakeup system [ 30.787493] [xiaomi-keyboard] xiaomi_keyboard_connected_notify 38: connected status notify [ 30.787499] [xiaomi-keyboard] xiaomi_keyboard_irq_func 102: keyboard connected status: 1 [ 30.805707] input: Xiaomi Pad Keyboard as @./a8f8800.usb/a800000.usb/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/0003:3206:3FFC.0005/input/input10 [ 30.865704] input: Xiaomi Pad Mouse as @./a8f8800.usb/a800000.usb/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/0003:3206:3FFC.0005/input/input11 [ 30.865981] hid-generic 0003:3206:3FFC.0005: input: USB HID v1.11 Keyboard [Xiaomi Pad] on usb-xhci-hcd.0.auto-1/input0 [ 30.868014] input: Xiaomi Pad as @./a8f8800.usb/a800000.usb/xhci-hcd.0.auto/usb1/1-1/1-1:1.1/0003:3206:3FFC.0006/input/input12 [ 30.868286] hid-multitouch 0003:3206:3FFC.0006: input: USB HID v1.11 Device [Xiaomi Pad] on usb-xhci-hcd.0.auto-1/input1 [ 30.869676] hid-generic 0003:3206:3FFC.0007: hiddev96: USB HID v1.11 Device [Xiaomi Pad] on usb-xhci-hcd.0.auto-1/input2 [ 30.870668] hid-generic 0003:3206:3FFC.0008: hiddev97: USB HID v1.11 Device [Xiaomi Pad] on usb-xhci-hcd.0.auto-1/input3 [ 30.976012] [xiaomi-keyboard] xiaomi_keyboard_irq_func 93: keyboard event: wakeup system [ 30.976047] [xiaomi-keyboard] xiaomi_keyboard_connected_notify 38: connected status notify [ 30.976053] [xiaomi-keyboard] xiaomi_keyboard_irq_func 102: keyboard connected status: 0 [ 31.273190] [xiaomi-keyboard] xiaomi_keyboard_irq_func 93: keyboard event: wakeup system [ 31.273230] [xiaomi-keyboard] xiaomi_keyboard_connected_notify 38: connected status notify [ 31.273237] [xiaomi-keyboard] xiaomi_keyboard_irq_func 102: keyboard connected status: 1 [ 37.355903] usb 1-1: USB disconnect, device number 3 正常情况下应该像安卓系统一样开机启动了键盘之后就一直有usb hid设备。 请问你在适配键盘的时候设备树是直接照搬安卓的吗,类似这个:https://github.com/MiCode/kernel_devicetree/blob/elish-r-oss/qcom/elish-sm8250.dtsi#L76-L85,还是有额外的其他配置,比如gpio 另外如果方便的话能否提供一个小米平板5的键盘启动日志,命令dmesg |grep xiaomi_keyboard的输出即可,我对照一下看有没有可疑的地方 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>

@.:~$ dmesg [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x51df805e] [ 0.000000] Linux version 6.1.10-g83368c906923-dirty @.) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #34 SMP PREEMPT Sat Jun 10 15:24:49 CST 2023 [ 0.000000] Machine model: Xiaomi Mi Pad 5 [ 0.000000] efi: UEFI not found. [ 0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader! [ 0.000000] NUMA: No NUMA configuration found [ 0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x00000001ffffffff] [ 0.000000] NUMA: NODE_DATA [mem 0x1ff455b00-0x1ff457fff] [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000080000000-0x00000000ffffffff] [ 0.000000] DMA32 empty [ 0.000000] Normal [mem 0x0000000100000000-0x00000001ffffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080000000-0x00000000856fffff] [ 0.000000] node 0: [mem 0x0000000085700000-0x0000000085e3ffff] [ 0.000000] node 0: [mem 0x0000000085e40000-0x0000000085efffff] [ 0.000000] node 0: [mem 0x0000000085f00000-0x0000000085f3ffff] [ 0.000000] node 0: [mem 0x0000000085f40000-0x0000000085ffffff] [ 0.000000] node 0: [mem 0x0000000086000000-0x0000000098f16fff] [ 0.000000] node 0: [mem 0x0000000098f17000-0x0000000098ffffff] [ 0.000000] node 0: [mem 0x0000000099000000-0x000000009a4fffff] [ 0.000000] node 0: [mem 0x000000009a500000-0x000000009bffffff] [ 0.000000] node 0: [mem 0x000000009c000000-0x000000009f7fffff] [ 0.000000] node 0: [mem 0x000000009f800000-0x00000000a4bfffff] [ 0.000000] node 0: [mem 0x00000000a4c00000-0x00000000a87fffff] [ 0.000000] node 0: [mem 0x00000000a8800000-0x00000000bcbfffff] [ 0.000000] node 0: [mem 0x00000000c0000000-0x00000000fe100fff] [ 0.000000] node 0: [mem 0x00000000fe101000-0x00000000fe400fff] [ 0.000000] node 0: [mem 0x00000000fe401000-0x00000001ffffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000001ffffffff] [ 0.000000] On node 0, zone DMA: 13312 pages in unavailable ranges [ 0.000000] cma: Reserved 32 MiB at 0x00000000fc000000 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.1 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: MIGRATE_INFO_TYPE not supported. [ 0.000000] psci: SMC Calling Convention v1.1 [ 0.000000] psci: OSI mode supported. [ 0.000000] psci: failed to set PC mode: -3 [ 0.000000] percpu: Embedded 20 pages/cpu s41384 r8192 d32344 u81920 [ 0.000000] pcpu-alloc: s41384 r8192 d32344 u81920 alloc=20*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [0] 6 [0] 7 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: detected: GIC system register CPU interface [ 0.000000] CPU features: kernel page table isolation forced ON by KASLR [ 0.000000] CPU features: detected: Kernel page table isolation (KPTI) [ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923 [ 0.000000] alternatives: applying boot alternatives [ 0.000000] Fallback order for Node 0: 0 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1534976 [ 0.000000] Policy zone: Normal [ 0.000000] Kernel command line: console=tty0 root=/dev/sda32 rw rootwait androidboot.verifiedbootstate=orange androidboot.keymaster=1 androidboot.bootdevice=1d84000.ufshc androidboot.fstab_suffix=default androidboot.boot_devices=soc/1d84000.ufshc androidboot.serialno=e36212f4 androidboot.ramdump=disable androidboot.secureboot=1 androidboot.hwversion=8.9.0 androidboot.cpuid=0x3ee1deab androidboot.hwc=CN androidboot.hwlevel=MP androidboot.baseband=apq msm_drm.dsi_display0=dsi_k82_42_02_0a_dual_cphy_vid_display: androidboot.ufsid=0x1CE androidboot.dp=0x0 androidboot.dtb_idx=-1347440721 androidboot.force_normal_boot=1 androidboot.batt_verified_result=1111 [ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear) [ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] software IO TLB: area num 8. [ 0.000000] software IO TLB: mapped [mem 0x00000000f8000000-0x00000000fc000000] (64MB) [ 0.000000] Memory: 5526940K/6238208K available (14016K kernel code, 1696K rwdata, 5060K rodata, 2944K init, 534K bss, 678500K reserved, 32768K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1 [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] rcu: RCU event tracing is enabled. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=8. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=8 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GICv3: 928 SPIs implemented [ 0.000000] GICv3: 0 Extended SPIs implemented [ 0.000000] Root IRQ handler: gic_handle_irq [ 0.000000] GICv3: GICv3 features: 16 PPIs [ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000017a60000 [ 0.000000] ITS: No ITS available, not enabling LPIs [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention. [ 0.000000] arch_timer: cp15 and mmio timer(s) running at 19.20MHz (virt/virt). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns [ 0.000000] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns [ 0.000189] Console: colour dummy device 80x25 [ 0.000603] printk: console [tty0] enabled [ 0.000672] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=76800) [ 0.000690] pid_max: default: 32768 minimum: 301 [ 0.000741] LSM: Security Framework initializing [ 0.000827] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.000853] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.002239] rcu: Hierarchical SRCU implementation. [ 0.002253] rcu: Max phase no-delay instances is 1000. [ 0.003529] EFI services will not be available. [ 0.003793] smp: Bringing up secondary CPUs ... [ 0.004978] Detected VIPT I-cache on CPU1 [ 0.005062] GICv3: CPU1: found redistributor 100 region 0:0x0000000017a80000 [ 0.005112] CPU1: Booted secondary processor 0x0000000100 [0x51df805e] [ 0.006156] Detected VIPT I-cache on CPU2 [ 0.006214] GICv3: CPU2: found redistributor 200 region 0:0x0000000017aa0000 [ 0.006250] CPU2: Booted secondary processor 0x0000000200 [0x51df805e] [ 0.007318] Detected VIPT I-cache on CPU3 [ 0.007374] GICv3: CPU3: found redistributor 300 region 0:0x0000000017ac0000 [ 0.007408] CPU3: Booted secondary processor 0x0000000300 [0x51df805e] [ 0.009075] CPU features: detected: Spectre-v2 [ 0.009102] CPU features: detected: Spectre-v4 [ 0.009126] CPU features: detected: ARM erratum 1418040 [ 0.009141] CPU features: detected: Qualcomm erratum 1009, or ARM erratum 1286807, 2441009 [ 0.009148] Detected PIPT I-cache on CPU4 [ 0.009275] GICv3: CPU4: found redistributor 400 region 0:0x0000000017ae0000 [ 0.009302] arch_timer: Enabling local workaround for ARM erratum 1418040 [ 0.009334] CPU4: Booted secondary processor 0x0000000400 [0x51df804e] [ 0.010774] Detected PIPT I-cache on CPU5 [ 0.010855] GICv3: CPU5: found redistributor 500 region 0:0x0000000017b00000 [ 0.010874] arch_timer: Enabling local workaround for ARM erratum 1418040 [ 0.010895] CPU5: Booted secondary processor 0x0000000500 [0x51df804e] [ 0.012359] Detected PIPT I-cache on CPU6 [ 0.012447] GICv3: CPU6: found redistributor 600 region 0:0x0000000017b20000 [ 0.012466] arch_timer: Enabling local workaround for ARM erratum 1418040 [ 0.012487] CPU6: Booted secondary processor 0x0000000600 [0x51df804e] [ 0.014433] Detected PIPT I-cache on CPU7 [ 0.014510] GICv3: CPU7: found redistributor 700 region 0:0x0000000017b40000 [ 0.014527] arch_timer: Enabling local workaround for ARM erratum 1418040 [ 0.014546] CPU7: Booted secondary processor 0x0000000700 [0x51df804e] [ 0.014608] smp: Brought up 1 node, 8 CPUs [ 0.014764] SMP: Total of 8 processors activated. [ 0.014773] CPU features: detected: 32-bit EL0 Support [ 0.014781] CPU features: detected: Data cache clean to the PoU not required for I/D coherence [ 0.014792] CPU features: detected: Common not Private translations [ 0.014800] CPU features: detected: CRC32 instructions [ 0.014808] CPU features: detected: RCpc load-acquire (LDAPR) [ 0.014816] CPU features: detected: LSE atomic instructions [ 0.014823] CPU features: detected: Privileged Access Never [ 0.014831] CPU features: detected: RAS Extension Support [ 0.014945] CPU: All CPU(s) started at EL1 [ 0.014968] alternatives: applying system-wide alternatives [ 0.020235] devtmpfs: initialized [ 0.028882] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.028908] futex hash table entries: 2048 (order: 5, 131072 bytes, linear) [ 0.029349] pinctrl core: initialized pinctrl subsystem [ 0.029684] DMI not present or invalid. [ 0.030146] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.031109] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations [ 0.031348] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.031560] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.031599] audit: initializing netlink subsys (disabled) [ 0.031689] audit: type=2000 audit(0.028:1): state=initialized audit_enabled=0 res=1 [ 0.031905] i2c-core: driver [dummy] registered [ 0.031912] thermal_sys: Registered thermal governor 'step_wise' [ 0.031916] thermal_sys: Registered thermal governor 'power_allocator' [ 0.031957] cpuidle: using governor menu [ 0.032357] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.032494] ASID allocator initialised with 32768 entries [ 0.033448] Serial: AMBA PL011 UART driver [ 0.042284] platform 1d87000.phy: Fixed dependency cycle(s) with @.**@. [ 0.043484] amba 6041000.funnel: Fixed dependency cycle(s) with @.**@./out-ports/port/endpoint [ 0.043636] amba 6045000.funnel: Fixed dependency cycle(s) with @.**@./out-ports/port/endpoint [ 0.043661] amba 6045000.funnel: Fixed dependency cycle(s) with @.**@./out-ports/port/endpoint [ 0.043685] amba 6045000.funnel: Fixed dependency cycle(s) with @.**@./out-ports/port/endpoint [ 0.043801] amba 6047000.etf: Fixed dependency cycle(s) with @.**@./out-ports/port/endpoint [ 0.043824] amba 6047000.etf: Fixed dependency cycle(s) with @.**@./in-ports/port/endpoint [ 0.043899] amba 6048000.etr: Fixed dependency cycle(s) with @.**@*.**@*./endpoint [ 0.043975] amba 604a000.replicator: Fixed dependency cycle(s) with @*.**@*.**@./endpoint [ 0.044057] amba 6b08000.funnel: Fixed dependency cycle(s) with @.**@*.**@*./endpoint [ 0.044138] amba 6b09000.etf: Fixed dependency cycle(s) with @*.**@*./out-ports/port/endpoint [ 0.044231] amba 6b0a000.replicator: Fixed dependency cycle(s) with @*.**@*./out-ports/port/endpoint [ 0.044277] amba 6b0a000.replicator: Fixed dependency cycle(s) with @*.**@*.**@./endpoint [ 0.044622] amba 7800000.funnel: Fixed dependency cycle(s) with @.**@./out-ports/port/endpoint [ 0.044644] amba 7800000.funnel: Fixed dependency cycle(s) with @.**@./out-ports/port/endpoint [ 0.044664] amba 7800000.funnel: Fixed dependency cycle(s) with @.**@./out-ports/port/endpoint [ 0.044684] amba 7800000.funnel: Fixed dependency cycle(s) with @.**@./out-ports/port/endpoint [ 0.044704] amba 7800000.funnel: Fixed dependency cycle(s) with @.**@./out-ports/port/endpoint [ 0.044724] amba 7800000.funnel: Fixed dependency cycle(s) with @.**@./out-ports/port/endpoint [ 0.044744] amba 7800000.funnel: Fixed dependency cycle(s) with @.**@./out-ports/port/endpoint [ 0.044764] amba 7800000.funnel: Fixed dependency cycle(s) with @.**@./out-ports/port/endpoint [ 0.044845] amba 7810000.funnel: Fixed dependency cycle(s) with @.**@./out-ports/port/endpoint [ 0.044912] amba 7810000.funnel: Fixed dependency cycle(s) with @.**@*.**@*./endpoint [ 0.045972] platform ae00000.mdss: Fixed dependency cycle(s) with @*.**@*. [ 0.046035] platform ae00000.mdss: Failed to create device link with ae00000.mdss [ 0.046057] platform ae00000.mdss: Failed to create device link with ae00000.mdss [ 0.046105] platform ae00000.mdss: Failed to create device link with ae00000.mdss [ 0.047286] platform c440000.spmi: Failed to create device link with c440000.spmi [ 0.047298] platform c440000.spmi: Failed to create device link with c440000.spmi [ 0.047308] platform c440000.spmi: Failed to create device link with c440000.spmi [ 0.047317] platform c440000.spmi: Failed to create device link with c440000.spmi [ 0.047328] platform c440000.spmi: Failed to create device link with c440000.spmi [ 0.047342] platform c440000.spmi: Failed to create device link with c440000.spmi [ 0.047352] platform c440000.spmi: Failed to create device link with c440000.spmi [ 0.047362] platform c440000.spmi: Failed to create device link with c440000.spmi [ 0.047375] platform c440000.spmi: Failed to create device link with c440000.spmi [ 0.047384] platform c440000.spmi: Failed to create device link with c440000.spmi [ 0.052482] platform 18200000.rsc:pm8150-rpmh-regulators: Fixed dependency cycle(s) with @*.**@*./pm8150-rpmh-regulators/smps5 [ 0.052510] platform 18200000.rsc:pm8150-rpmh-regulators: Fixed dependency cycle(s) with @*.**@*./pm8150-rpmh-regulators/smps6 [ 0.052605] platform 18200000.rsc:pm8150l-rpmh-regulators: Fixed dependency cycle(s) with @*.**@*./pm8150l-rpmh-regulators/bob [ 0.052625] platform 18200000.rsc:pm8150l-rpmh-regulators: Fixed dependency cycle(s) with @*.**@*./pm8150l-rpmh-regulators/smps8 [ 0.054500] KASLR enabled [ 0.059518] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages [ 0.059530] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page [ 0.059540] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages [ 0.059548] HugeTLB: 508 KiB vmemmap can be freed for a 32.0 MiB page [ 0.059556] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages [ 0.059563] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page [ 0.059572] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages [ 0.059579] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page [ 0.060018] cryptd: max_cpu_qlen set to 1000 [ 0.060366] i2c-core: driver [max732x] registered [ 0.060496] ACPI: Interpreter disabled. [ 0.067716] iommu: Default domain type: Translated [ 0.067728] iommu: DMA domain TLB invalidation policy: strict mode [ 0.067777] i2c-core: driver [rohm-bd718x7] registered [ 0.067912] SCSI subsystem initialized [ 0.068001] libata version 3.00 loaded. [ 0.068165] usbcore: registered new interface driver usbfs [ 0.068192] usbcore: registered new interface driver hub [ 0.068213] usbcore: registered new device driver usb [ 0.068403] pps_core: LinuxPPS API ver. 1 registered [ 0.068411] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti @.> [ 0.068424] PTP clock support registered [ 0.068502] EDAC MC: Ver: 3.0.0 [ 0.068811] CPUidle PSCI: Initialized CPU PM domain topology [ 0.068992] qcom_scm: convention: smc arm 64 [ 0.069463] FPGA manager framework [ 0.069526] Advanced Linux Sound Architecture Driver Initialized. [ 0.069992] vgaarb: loaded [ 0.070492] clocksource: Switched to clocksource arch_sys_counter [ 0.070712] VFS: Disk quotas dquot_6.6.0 [ 0.070751] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.070854] pnp: PnP ACPI: disabled [ 0.074686] NET: Registered PF_INET protocol family [ 0.074874] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.079742] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear) [ 0.079873] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.079889] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear) [ 0.080749] TCP bind hash table entries: 65536 (order: 9, 2097152 bytes, linear) [ 0.084354] TCP: Hash tables configured (established 65536 bind 65536) [ 0.084421] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear) [ 0.084770] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear) [ 0.085193] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.085434] RPC: Registered named UNIX socket transport module. [ 0.085445] RPC: Registered udp transport module. [ 0.085451] RPC: Registered tcp transport module. [ 0.085456] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.085466] PCI: CLS 0 bytes, default 64 [ 0.085627] Unpacking initramfs... [ 0.086295] Initramfs unpacking failed: incorrect cpio method used: use -H newc option [ 0.086989] Freeing initrd memory: 3064K [ 0.087642] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available [ 0.087975] kvm [1]: HYP mode not available [ 0.088634] Initialise system trusted keyrings [ 0.088789] workingset: timestamp_bits=42 max_order=21 bucket_order=0 [ 0.092335] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.092671] NFS: Registering the id_resolver key type [ 0.092697] Key type id_resolver registered [ 0.092703] Key type id_legacy registered [ 0.092748] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.092760] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 0.092850] 9p: Installing v9fs 9p2000 file system support [ 0.127577] Key type asymmetric registered [ 0.127587] Asymmetric key parser 'x509' registered [ 0.127620] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246) [ 0.127631] io scheduler mq-deadline registered [ 0.127638] io scheduler kyber registered [ 0.131647] i2c-core: driver [ktz8866] registered [ 0.131790] simple-framebuffer 9c000000.framebuffer: framebuffer at 0x9c000000, 0x2300000 bytes [ 0.131809] simple-framebuffer 9c000000.framebuffer: format=a8r8g8b8, mode=1600x2560x32, linelength=6400 [ 0.145346] Console: switching to colour frame buffer device 320x100 [ 0.158292] simple-framebuffer 9c000000.framebuffer: fb0: simplefb registered! [ 0.158563] EINJ: ACPI disabled. [ 0.160418] i2c-core: driver [mp8859] registered [ 0.160743] bob: Setting 3008000-4000000uV [ 0.160981] smps8: Setting 1352000-1352000uV [ 0.161118] ldo1: Setting 1800000-1800000uV [ 0.161287] ldo2: Setting 1304000-1304000uV [ 0.161443] ldo3: Setting 1200000-1200000uV [ 0.161603] ldo4: Setting 1704000-2928000uV [ 0.161769] ldo5: Setting 1704000-2928000uV [ 0.161923] ldo6: Setting 1800000-2960000uV [ 0.162085] ldo7: Setting 2856000-3104000uV [ 0.162251] ldo8: Setting 1800000-1800000uV [ 0.162406] ldo9: Setting 2704000-2960000uV [ 0.162584] ldo10: Setting 3000000-3312000uV [ 0.162757] ldo11: Setting 3000000-3312000uV [ 0.163396] i2c-core: driver [nxp-pca9450] registered [ 0.163408] i2c-core: driver [pf8x00] registered [ 0.163418] i2c-core: driver [pfuze100-regulator] registered [ 0.165038] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.165903] msm_serial: driver initialized [ 0.166139] i2c-core: driver [tpm_i2c_infineon] registered [ 0.166566] arm-smmu 2ca0000.iommu: probing hardware configuration... [ 0.166603] arm-smmu 2ca0000.iommu: SMMUv2 with: [ 0.166651] arm-smmu 2ca0000.iommu: stage 1 translation [ 0.166687] arm-smmu 2ca0000.iommu: non-coherent table walk [ 0.166717] arm-smmu 2ca0000.iommu: (IDR0.CTTW overridden by FW configuration) [ 0.166755] arm-smmu 2ca0000.iommu: stream matching with 6 register groups [ 0.166812] arm-smmu 2ca0000.iommu: 5 context banks (0 stage-2 only) [ 0.167012] arm-smmu 2ca0000.iommu: Supported page sizes: 0x61311000 [ 0.167052] arm-smmu 2ca0000.iommu: Stage-1: 48-bit VA -> 48-bit IPA [ 0.167231] arm-smmu 2ca0000.iommu: preserved 0 boot mappings [ 0.169651] arm-smmu 15000000.iommu: probing hardware configuration... [ 0.169692] arm-smmu 15000000.iommu: SMMUv2 with: [ 0.169732] arm-smmu 15000000.iommu: stage 1 translation [ 0.169767] arm-smmu 15000000.iommu: non-coherent table walk [ 0.169798] arm-smmu 15000000.iommu: (IDR0.CTTW overridden by FW configuration) [ 0.169835] arm-smmu 15000000.iommu: stream matching with 94 register groups [ 0.169899] arm-smmu 15000000.iommu: 56 context banks (0 stage-2 only) [ 0.170768] arm-smmu 15000000.iommu: Supported page sizes: 0x61311000 [ 0.170809] arm-smmu 15000000.iommu: Stage-1: 48-bit VA -> 48-bit IPA [ 0.170972] arm-smmu 15000000.iommu: preserved 0 boot mappings [ 0.176960] adreno 2c00000.gpu: Adding to iommu group 0 [ 0.181976] loop: module loaded [ 0.182165] i2c-core: driver [axp20x-i2c] registered [ 0.182368] megasas: 07.719.03.00-rc1 [ 0.183693] spmi spmi-0: PMIC arbiter version v5 (0x50000000) [ 0.192101] tun: Universal TUN/TAP device driver, 1.6 [ 0.192572] thunder_xcv, ver 1.0 [ 0.192617] thunder_bgx, ver 1.0 [ 0.192654] nicpf, ver 1.0 [ 0.192942] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version [ 0.192985] hns3: Copyright (c) 2017 Huawei Corporation. [ 0.193046] hclge is initializing [ 0.193082] e1000: Intel(R) PRO/1000 Network Driver [ 0.193113] e1000: Copyright (c) 1999-2006 Intel Corporation. [ 0.193164] e1000e: Intel(R) PRO/1000 Network Driver [ 0.193193] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [ 0.193243] igb: Intel(R) Gigabit Ethernet Network Driver [ 0.193276] igb: Copyright (c) 2007-2014 Intel Corporation. [ 0.193322] igbvf: Intel(R) Gigabit Virtual Function Network Driver [ 0.193359] igbvf: Copyright (c) 2009 - 2012 Intel Corporation. [ 0.193467] sky2: driver version 1.30 [ 0.193640] VFIO - User Level meta-driver version: 0.3 [ 0.199021] usbcore: registered new interface driver usb-storage [ 0.199246] UDC core: g_ether: couldn't find an available UDC [ 0.199387] i2c-core: driver [ucsi_ccg] registered [ 0.205119] i2c-core: driver [rtc-ds3232] registered [ 0.205186] i2c_dev: i2c /dev entries driver [ 0.205567] i2c-core: driver [pca954x] registered [ 0.207808] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: @. [ 0.208962] sdhci: Secure Digital Host Controller Interface driver [ 0.209005] sdhci: Copyright(c) Pierre Ossman [ 0.209177] Synopsys Designware Multimedia Card Interface Driver [ 0.209409] sdhci-pltfm: SDHCI platform and OF driver helper [ 0.210203] ledtrig-cpu: registered to indicate activity on CPUs [ 0.210510] hid: raw HID events driver (C) Jiri Kosina [ 0.210762] usbcore: registered new interface driver usbhid [ 0.210806] usbhid: USB HID core driver [ 0.210841] i2c-core: driver [cros-ec-i2c] registered [ 0.232616] NET: Registered PF_PACKET protocol family [ 0.232757] 9pnet: Installing 9P2000 support [ 0.232814] Key type dns_resolver registered [ 0.233355] registered taskstats version 1 [ 0.233388] Loading compiled-in X.509 certificates [ 0.252354] geni_se_qup 8c0000.geniqup: Adding to iommu group 1 [ 0.255617] geni_i2c 880000.i2c: i2c fifo/se-dma mode. fifo depth:16 [ 0.255885] i2c_dev: adapter [Geni-I2C] registered as minor 0 [ 0.255944] i2c i2c-0: adapter [Geni-I2C] registered [ 0.255954] i2c i2c-0: of_i2c: walking child nodes [ 0.255959] i2c i2c-0: of_i2c: register @*.**@*.**@*.**@*. [ 0.256153] ktz8866 0-0011: probe [ 0.256560] i2c i2c-0: client [ktz8866] registered with bus id 0-0011 [ 0.256571] geni_i2c 880000.i2c: Geni-I2C adaptor successfully added [ 0.256967] geni_se_qup ac0000.geniqup: Adding to iommu group 2 [ 0.259910] a90000.serial: ttyMSM0 at MMIO 0xa90000 (irq = 128, base_baud = 0) is a MSM [ 0.262801] geni_se_qup cc0000.geniqup: Adding to iommu group 3 [ 0.267048] smps5: Setting 1904000-2040000uV [ 0.269582] smps6: Setting 920000-1128000uV [ 0.272071] ldo1: Setting 752000-752000uV [ 0.274599] ldo2: Setting 3072000-3072000uV [ 0.277104] ldo3: Setting 480000-932000uV [ 0.279603] ldo5: Setting 880000-880000uV [ 0.282066] ldo6: Setting 1200000-1200000uV [ 0.284537] ldo7: Setting 1800000-1800000uV [ 0.286982] ldo9: Setting 1200000-1200000uV [ 0.289376] ldo10: Setting 2504000-2950000uV [ 0.291790] ldo11: Setting 800000-800000uV [ 0.294163] ldo12: Setting 1800000-1800000uV [ 0.296535] ldo13: Setting 2704000-2704000uV [ 0.298981] ldo14: Setting 1880000-1880000uV [ 0.301396] ldo15: Setting 1704000-1704000uV [ 0.304561] ldo16: Setting 2704000-2960000uV [ 0.307740] ldo17: Setting 2856000-3008000uV [ 0.311480] msm-mdss ae00000.mdss: Adding to iommu group 4 [ 0.314000] arm-smmu 15000000.iommu: Unhandled context fault: fsr=0x402, iova=0x9c03bb00, fsynr=0x7d0020, cbfrsynra=0x800, cb=3 [ 0.316189] arm-smmu 15000000.iommu: Unhandled context fault: fsr=0x402, iova=0x9c4d4100, fsynr=0x7d0020, cbfrsynra=0x800, cb=3 [ 0.318332] arm-smmu 15000000.iommu: Unhandled context fault: fsr=0x402, iova=0x9c928600, fsynr=0x7d0020, cbfrsynra=0xc20, cb=3 [ 0.319544] platform ae94000.dsi: Fixed dependency cycle(s) with @*.**@*.**@*.**@*.**@./endpoint [ 0.322478] platform ae94000.dsi: Fixed dependency cycle(s) with @.**@*.**@*.**@./endpoint [ 0.331116] platform ae96000.dsi: Fixed dependency cycle(s) with @.**@*.**@*.**@*.**@*./endpoint [ 0.333195] platform ae96000.dsi: Fixed dependency cycle(s) with @*.**@*.**@*.**@*./endpoint [ 0.339391] [xiaomi-keyboard] xiaomi_keyboard_probe 461: enter [ 0.341535] [xiaomi-keyboard] xiaomi_keyboard_parse_dt 191: xiaomi-kb,reset-gpio=351 [ 0.343600] [xiaomi-keyboard] xiaomi_keyboard_parse_dt 194: xiaomi-kb,in-irq-gpio=343 [ 0.345648] [xiaomi-keyboard] xiaomi_keyboard_parse_dt 197: xiaomi-kb,vdd-gpio=384 [ 0.348293] [xiaomi-keyboard] xiaomi_keyboard_reset 29: xiaomi keyboard IC Reset [ 0.358497] [xiaomi-keyboard] xiaomi_keyboard_probe 537: enable keyboard [ 0.360567] [xiaomi-keyboard] xiaomi_keyboard_power_on 247: Power On [ 0.386501] [xiaomi-keyboard] xiaomi_keyboard_probe 540: Success [ 0.408599] OF: graph: no port node found in @*.**@*.**@*.**@*. [ 0.410763] OF: graph: no port node found in @*.**@*.**@*.**@*./connector [ 0.413164] OF: graph: no port node found in @*.**@*.**@*.**@*./connector [ 0.415287] OF: graph: no port node found in @*.**@*.**@*.**@*./connector [ 0.417362] OF: graph: no port node found in @*.**@*.**@*.**@*./connector [ 0.422809] ufshcd-qcom 1d84000.ufshc: Adding to iommu group 5 [ 0.425986] ufshcd-qcom 1d84000.ufshc: ufshcd_populate_vreg: Unable to find vdd-hba-supply regulator, assuming enabled [ 0.429730] ufshcd-qcom 1d84000.ufshc: ufshcd_variant_hba_init: variant qcom init failed err -517 [ 0.432100] ufshcd-qcom 1d84000.ufshc: Initialization failed [ 0.435048] ufshcd-qcom 1d84000.ufshc: ufshcd_pltfrm_init() failed -517 [ 0.438311] platform 1d84000.ufshc: Fixed dependency cycle(s) with @*.**@*.* [ 0.445369] msm_dsi ae94000.dsi: Failed to create device link with ae96000.dsi [ 0.447959] dwc3 a600000.usb: Adding to iommu group 6 [ 0.512727] using random self ethernet address [ 0.514905] using random host ethernet address [ 0.517268] usb0: HOST MAC 4e:12:73:44:88:83 [ 0.519400] usb0: MAC f6:10:62:b2:17:c9 [ 0.521559] using random self ethernet address [ 0.523699] using random host ethernet address [ 0.525845] g_ether gadget.0: Ethernet Gadget, version: Memorial Day 2008 [ 0.527986] g_ether gadget.0: g_ether ready [ 0.598301] dwc3 a800000.usb: Adding to iommu group 7 [ 0.663612] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 0.665777] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1 [ 0.668117] xhci-hcd xhci-hcd.0.auto: hcc params 0x0230ffe5 hci version 0x110 quirks 0x0000000000010010 [ 0.670320] xhci-hcd xhci-hcd.0.auto: irq 150, io mem 0x0a800000 [ 0.672600] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 0.674768] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2 [ 0.676936] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.1 Enhanced SuperSpeed [ 0.679198] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01 [ 0.681378] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 0.683579] usb usb1: Product: xHCI Host Controller [ 0.685773] usb usb1: Manufacturer: Linux 6.1.10-g83368c906923-dirty xhci-hcd [ 0.687979] usb usb1: SerialNumber: xhci-hcd.0.auto [ 0.691594] hub 1-0:1.0: USB hub found [ 0.693815] hub 1-0:1.0: 1 port detected [ 0.696207] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 0.698481] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01 [ 0.700715] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 0.702938] usb usb2: Product: xHCI Host Controller [ 0.705154] usb usb2: Manufacturer: Linux 6.1.10-g83368c906923-dirty xhci-hcd [ 0.707390] usb usb2: SerialNumber: xhci-hcd.0.auto [ 0.710056] hub 2-0:1.0: USB hub found [ 0.712299] hub 2-0:1.0: 1 port detected [ 0.716200] ufshcd-qcom 1d84000.ufshc: ufshcd_populate_vreg: Unable to find vdd-hba-supply regulator, assuming enabled [ 0.723647] scsi host0: ufshcd [ 0.766415] [xiaomi-keyboard] xiaomi_keyboard_irq_func 93: keyboard event: wakeup system [ 0.768896] [xiaomi-keyboard] xiaomi_keyboard_connected_notify 38: connected status notify [ 0.771353] [xiaomi-keyboard] xiaomi_keyboard_irq_func 102: keyboard connected status: 0 [ 0.826079] ALSA device list: [ 0.828358] ufshcd-qcom 1d84000.ufshc: No HPB LU supported [ 0.832845] No soundcards found. [ 0.843027] scsi 0:0:0:49488: Well-known LUN SAMSUNG KLUDG4UHDC-B0E1 0200 PQ: 0 ANSI: 6 [ 0.849558] scsi 0:0:0:49476: Well-known LUN SAMSUNG KLUDG4UHDC-B0E1 0200 PQ: 0 ANSI: 6 [ 0.854914] scsi 0:0:0:49456: Well-known LUN SAMSUNG KLUDG4UHDC-B0E1 0200 PQ: 0 ANSI: 6 [ 0.860395] scsi 0:0:0:0: Direct-Access SAMSUNG KLUDG4UHDC-B0E1 0200 PQ: 0 ANSI: 6 [ 0.865678] sd 0:0:0:0: [sda] 30660608 4096-byte logical blocks: (126 GB/117 GiB) [ 0.865759] scsi 0:0:0:1: Direct-Access SAMSUNG KLUDG4UHDC-B0E1 0200 PQ: 0 ANSI: 6 [ 0.870387] sd 0:0:0:0: [sda] Write Protect is off [ 0.872661] sd 0:0:0:0: [sda] Mode Sense: 00 32 00 10 [ 0.872778] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA [ 0.872884] scsi 0:0:0:2: Direct-Access SAMSUNG KLUDG4UHDC-B0E1 0200 PQ: 0 ANSI: 6 [ 0.875077] sd 0:0:0:0: [sda] Preferred minimum I/O size 524288 bytes [ 0.875082] sd 0:0:0:0: [sda] Optimal transfer size 524288 bytes [ 0.877564] sd 0:0:0:1: [sdb] 2048 4096-byte logical blocks: (8.39 MB/8.00 MiB) [ 0.881924] sda: sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8 sda9 sda10 sda11 sda12 sda13 sda14 sda15 sda16 sda17 sda18 sda19 sda20 sda21 sda22 sda23 sda24 sda25 sda26 sda27 sda28 sda29 sda30 sda31 sda32 [ 0.882360] sd 0:0:0:1: [sdb] Write Protect is off [ 0.882479] scsi 0:0:0:3: Direct-Access SAMSUNG KLUDG4UHDC-B0E1 0200 PQ: 0 ANSI: 6 [ 0.887426] sd 0:0:0:2: [sdc] 2048 4096-byte logical blocks: (8.39 MB/8.00 MiB) [ 0.889785] sd 0:0:0:1: [sdb] Mode Sense: 00 32 00 10 [ 0.890621] sd 0:0:0:0: [sda] Attached SCSI disk [ 0.892545] sd 0:0:0:2: [sdc] Write Protect is off [ 0.895842] sd 0:0:0:1: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA [ 0.896002] sd 0:0:0:3: [sdd] 8192 4096-byte logical blocks: (33.6 MB/32.0 MiB) [ 0.896059] sd 0:0:0:3: [sdd] Write Protect is off [ 0.896064] sd 0:0:0:3: [sdd] Mode Sense: 00 32 00 10 [ 0.896156] sd 0:0:0:3: [sdd] Write cache: enabled, read cache: enabled, supports DPO and FUA [ 0.896163] sd 0:0:0:3: [sdd] Preferred minimum I/O size 524288 bytes [ 0.896168] sd 0:0:0:3: [sdd] Optimal transfer size 524288 bytes [ 0.896192] scsi 0:0:0:4: Direct-Access SAMSUNG KLUDG4UHDC-B0E1 0200 PQ: 0 ANSI: 6 [ 0.897564] sd 0:0:0:2: [sdc] Mode Sense: 00 32 00 10 [ 0.897660] scsi 0:0:0:5: Direct-Access SAMSUNG KLUDG4UHDC-B0E1 0200 PQ: 0 ANSI: 6 [ 0.898434] sd 0:0:0:4: [sde] 524288 4096-byte logical blocks: (2.15 GB/2.00 GiB) [ 0.898745] sdd: sdd1 sdd2 sdd3 sdd4 sdd5 [ 0.898939] sd 0:0:0:4: [sde] Write Protect is off [ 0.898949] sd 0:0:0:4: [sde] Mode Sense: 00 32 00 10 [ 0.899691] sd 0:0:0:4: [sde] Write cache: enabled, read cache: enabled, supports DPO and FUA [ 0.899704] sd 0:0:0:4: [sde] Preferred minimum I/O size 524288 bytes [ 0.899709] sd 0:0:0:4: [sde] Optimal transfer size 524288 bytes [ 0.900041] sd 0:0:0:1: [sdb] Preferred minimum I/O size 524288 bytes [ 0.900780] sd 0:0:0:5: [sdf] 40960 4096-byte logical blocks: (168 MB/160 MiB) [ 0.900820] sd 0:0:0:3: [sdd] Attached SCSI disk [ 0.900839] sd 0:0:0:5: [sdf] Write Protect is off [ 0.900844] sd 0:0:0:5: [sdf] Mode Sense: 00 32 00 10 [ 0.900959] sd 0:0:0:5: [sdf] Write cache: enabled, read cache: enabled, supports DPO and FUA [ 0.900966] sd 0:0:0:5: [sdf] Preferred minimum I/O size 524288 bytes [ 0.900970] sd 0:0:0:5: [sdf] Optimal transfer size 524288 bytes [ 0.903113] sd 0:0:0:2: [sdc] Write cache: enabled, read cache: enabled, supports DPO and FUA [ 0.903945] sdf: sdf1 sdf2 sdf3 sdf4 sdf5 sdf6 sdf7 sdf8 [ 0.904745] sd 0:0:0:5: [sdf] Attached SCSI disk [ 0.905131] sd 0:0:0:1: [sdb] Optimal transfer size 524288 bytes [ 0.906170] sde: sde1 sde2 sde3 sde4 sde5 sde6 sde7 sde8 sde9 sde10 sde11 sde12 sde13 sde14 sde15 sde16 sde17 sde18 sde19 sde20 sde21 sde22 sde23 sde24 sde25 sde26 sde27 sde28 sde29 sde30 sde31 sde32 sde33 sde34 sde35 sde36 sde37 sde38 sde39 sde40 sde41 sde42 sde43 sde44 sde45 sde46 sde47 sde48 sde49 sde50 sde51 sde52 sde53 sde54 sde55 sde56 sde57 sde58 sde59 sde60 sde61 sde62 sde63 sde64 sde65 sde66 sde67 [ 0.907784] sd 0:0:0:2: [sdc] Preferred minimum I/O size 524288 bytes [ 0.915420] sdb: sdb1 sdb2 [ 0.915679] sd 0:0:0:2: [sdc] Optimal transfer size 524288 bytes [ 0.918939] sd 0:0:0:1: [sdb] Attached SCSI disk [ 0.924795] sdc: sdc1 sdc2 [ 0.932184] sd 0:0:0:4: [sde] Attached SCSI disk [ 0.935500] sd 0:0:0:2: [sdc] Attached SCSI disk [ 1.018848] usb 1-1: new full-speed USB device number 2 using xhci-hcd [ 1.032077] EXT4-fs (sda32): recovery complete [ 1.035907] EXT4-fs (sda32): mounted filesystem with ordered data mode. Quota mode: none. [ 1.038512] VFS: Mounted root (ext4 filesystem) on device 259:16. [ 1.042708] devtmpfs: mounted [ 1.045993] Freeing unused kernel memory: 2944K [ 1.048659] Run /sbin/init as init process [ 1.051147] with arguments: [ 1.051149] /sbin/init [ 1.051151] with environment: [ 1.051153] HOME=/ [ 1.051156] TERM=linux [ 1.147640] systemd[1]: System time before build time, advancing clock. [ 1.150388] [xiaomi-keyboard] xiaomi_keyboard_irq_func 93: keyboard event: wakeup system [ 1.153553] [xiaomi-keyboard] xiaomi_keyboard_connected_notify 38: connected status notify [ 1.156688] [xiaomi-keyboard] xiaomi_keyboard_irq_func 102: keyboard connected status: 1 [ 1.177407] usb 1-1: New USB device found, idVendor=3206, idProduct=3ffc, bcdDevice= 0.01 [ 1.183743] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1.186901] usb 1-1: Product: Pad [ 1.190053] usb 1-1: Manufacturer: Xiaomi [ 1.193203] usb 1-1: SerialNumber: 803108210231 [ 1.199145] NET: Registered PF_INET6 protocol family [ 1.204002] Segment Routing with IPv6 [ 1.206590] In-situ OAM (IOAM) with IPv6 [ 1.211074] input: Xiaomi Pad Keyboard as *@./a8f8800.usb/a800000.usb/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/0003:3206:3FFC.0001/input/input0 [ 1.226387] systemd[1]: systemd 249.11-0ubuntu3.9 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified) [ 1.232891] systemd[1]: Detected architecture arm64. [ 1.245483] systemd[1]: Hostname set to . [ 1.271234] input: Xiaomi Pad Mouse as @./a8f8800.usb/a800000.usb/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/0003:3206:3FFC.0001/input/input1 [ 1.274817] hid-generic 0003:3206:3FFC.0001: input,hidraw0: USB HID v1.11 Keyboard [Xiaomi Pad] on usb-xhci-hcd.0.auto-1/input0 [ 1.280261] input: Xiaomi Pad as @./a8f8800.usb/a800000.usb/xhci-hcd.0.auto/usb1/1-1/1-1:1.1/0003:3206:3FFC.0002/input/input2 [ 1.284326] hid-generic 0003:3206:3FFC.0002: input,hidraw1: USB HID v1.11 Device [Xiaomi Pad] on usb-xhci-hcd.0.auto-1/input1 [ 1.288983] hid-generic 0003:3206:3FFC.0003: hidraw2: USB HID v1.11 Device [Xiaomi Pad] on usb-xhci-hcd.0.auto-1/input2 [ 1.293357] hid-generic 0003:3206:3FFC.0004: hidraw3: USB HID v1.11 Device [Xiaomi Pad] on usb-xhci-hcd.0.auto-1/input3 [ 1.397648] [xiaomi-keyboard] xiaomi_keyboard_irq_func 93: keyboard event: wakeup system [ 1.401258] [xiaomi-keyboard] xiaomi_keyboard_connected_notify 38: connected status notify [ 1.404778] [xiaomi-keyboard] xiaomi_keyboard_irq_func 102: keyboard connected status: 0 [ 1.693663] [xiaomi-keyboard] xiaomi_keyboard_irq_func 93: keyboard event: wakeup system [ 1.700725] [xiaomi-keyboard] xiaomi_keyboard_connected_notify 38: connected status notify [ 1.704226] [xiaomi-keyboard] xiaomi_keyboard_irq_func 102: keyboard connected status: 1 [ 3.621299] systemd[1]: /usr/local/lib/systemd/system/setup_usb_network.service:6: Failed to parse service restart specifier, ignoring: oneshot [ 3.651604] systemd[1]: Queued start job for default target Graphical Interface. [ 4.150499] random: crng init done [ 4.169175] systemd[1]: Created slice Slice /system/getty. [ 4.177631] systemd[1]: Created slice Slice /system/modprobe. [ 4.185611] systemd[1]: Created slice User and Session Slice. [ 4.192901] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ 4.200224] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 4.207392] systemd[1]: Condition check resulted in Arbitrary Executable File Formats File System Automount Point being skipped. [ 4.210998] systemd[1]: Reached target Local Encrypted Volumes. [ 4.218147] systemd[1]: Reached target Path Units. [ 4.225225] systemd[1]: Reached target Remote File Systems. [ 4.232317] systemd[1]: Reached target Slice Units. [ 4.239241] systemd[1]: Reached target Swaps. [ 4.246068] systemd[1]: Reached target Local Verity Protected Volumes. [ 4.253207] systemd[1]: Listening on initctl Compatibility Named Pipe. [ 4.261413] systemd[1]: Listening on Journal Audit Socket. [ 4.268959] systemd[1]: Listening on Journal Socket (/dev/log). [ 4.276580] systemd[1]: Listening on Journal Socket. [ 4.284398] systemd[1]: Listening on Network Service Netlink Socket. [ 4.292131] systemd[1]: Listening on udev Control Socket. [ 4.299698] systemd[1]: Listening on udev Kernel Socket. [ 4.306652] systemd[1]: Reached target Socket Units. [ 4.339157] systemd[1]: Mounting Huge Pages File System... [ 4.350077] systemd[1]: Mounting POSIX Message Queue File System... [ 4.361039] systemd[1]: Mounting Kernel Debug File System... [ 4.368717] systemd[1]: Condition check resulted in Kernel Trace File System being skipped. [ 4.372695] systemd[1]: systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling. [ 4.376192] systemd[1]: (This warning is only shown for the first unit using IP firewalling.) [ 4.382651] systemd[1]: Starting Journal Service... [ 4.393552] systemd[1]: Starting Create List of Static Device Nodes... [ 4.404375] systemd[1]: Starting Load Kernel Module chromeos_pstore... [ 4.415169] systemd[1]: Starting Load Kernel Module configfs... [ 4.425928] systemd[1]: Starting Load Kernel Module drm... [ 4.436805] systemd[1]: Starting Load Kernel Module efi_pstore... [ 4.447679] systemd[1]: Starting Load Kernel Module fuse... [ 4.458431] systemd[1]: Starting Load Kernel Module pstore_blk... [ 4.469321] systemd[1]: Starting Load Kernel Module pstore_zone... [ 4.473850] fuse: init (API version 7.37) [ 4.483796] systemd[1]: Starting Load Kernel Module ramoops... [ 4.491134] systemd[1]: Condition check resulted in OpenVSwitch configuration for cleanup being skipped. [ 4.499357] systemd[1]: Starting Load Kernel Modules... [ 4.508311] systemd[1]: Starting Remount Root and Kernel File Systems... [ 4.517343] systemd[1]: Starting Coldplug All udev Devices... [ 4.531652] systemd[1]: Mounted Huge Pages File System. [ 4.537986] systemd[1]: Mounted POSIX Message Queue File System. [ 4.544071] systemd[1]: Mounted Kernel Debug File System. [ 4.551202] systemd[1]: Finished Create List of Static Device Nodes. [ 4.558295] systemd[1]: @._pstore.service: Deactivated successfully. [ 4.562267] systemd[1]: Finished Load Kernel Module chromeos_pstore. [ 4.569111] systemd[1]: @.: Deactivated successfully. [ 4.573012] systemd[1]: Finished Load Kernel Module configfs. [ 4.579780] systemd[1]: @.: Deactivated successfully. [ 4.583653] systemd[1]: Finished Load Kernel Module drm. [ 4.590599] systemd[1]: @._pstore.service: Deactivated successfully. [ 4.594469] systemd[1]: Finished Load Kernel Module efi_pstore. [ 4.601580] systemd[1]: @.: Deactivated successfully. [ 4.605451] systemd[1]: Finished Load Kernel Module fuse. [ 4.612289] systemd[1]: @._blk.service: Deactivated successfully. [ 4.616325] systemd[1]: Finished Load Kernel Module pstore_blk. [ 4.623056] systemd[1]: @._zone.service: Deactivated successfully. [ 4.626903] systemd[1]: Finished Load Kernel Module pstore_zone. [ 4.633627] systemd[1]: @.: Deactivated successfully. [ 4.637698] systemd[1]: Finished Load Kernel Module ramoops. [ 4.643626] systemd[1]: Started Journal Service. [ 4.716128] systemd-journald[224]: Received client request to flush runtime journal. [ 4.724910] systemd-journald[224]: File /var/log/journal/04d7ab7b5d3c4759bb45d2c5cb484c36/system.journal corrupted or uncleanly shut down, renaming and replacing. [ 5.326108] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 2995200 KHz, changing to: 1785600 KHz [ 5.326555] cpu cpu0: EM: created perf domain [ 5.329541] cpufreq: cpufreq_online: CPU4: Running at unlisted initial frequency: 2995200 KHz, changing to: 2419200 KHz [ 5.329984] cpu cpu4: EM: created perf domain [ 5.331585] cpu cpu7: Voltage update failed freq=2956800 [ 5.334445] cpu cpu7: failed to update OPP for freq=2956800 [ 5.334459] cpu cpu7: Voltage update failed freq=2956800 [ 5.337338] cpu cpu7: failed to update OPP for freq=2956800 [ 5.338886] NET: Registered PF_QIPCRTR protocol family [ 5.339781] cpufreq: cpufreq_online: CPU7: Running at unlisted initial frequency: 2995200 KHz, changing to: 2841600 KHz [ 5.340287] cpu cpu7: EM: created perf domain [ 5.341458] remoteproc remoteproc0: 4080000.remoteproc is available [ 5.345675] remoteproc remoteproc1: 8300000.remoteproc is available [ 5.346968] remoteproc remoteproc2: 17300000.remoteproc is available [ 5.371789] remoteproc remoteproc1: powering up 8300000.remoteproc [ 5.371797] remoteproc remoteproc1: Booting fw image qcom/sm8150/nabu/cdsp.mdt, size 7580 [ 5.371884] remoteproc remoteproc2: powering up 17300000.remoteproc [ 5.371886] remoteproc remoteproc2: Booting fw image qcom/sm8150/nabu/adsp.mdt, size 7820 [ 5.399481] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 5.408291] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 5.467270] using random self ethernet address [ 5.467284] using random host ethernet address [ 5.482179] remoteproc remoteproc1: remote processor 8300000.remoteproc is now up [ 5.502676] UDC core: g1: couldn't find an available UDC or it's busy [ 5.560245] remoteproc remoteproc2: remote processor 17300000.remoteproc is now up [ 5.577061] ath10k_snoc 18800000.wifi: Adding to iommu group 8 [ 5.580337] ath10k_snoc 18800000.wifi: supply vdd-3.3-ch1 not found, using dummy regulator [ 5.676790] msm_dpu ae01000.mdp: bound ae94000.dsi (ops dsi_ops) [ 5.680402] msm_dpu ae01000.mdp: bound ae96000.dsi (ops dsi_ops) [ 5.681410] adreno 2c00000.gpu: supply vdd not found, using dummy regulator [ 5.683046] adreno 2c00000.gpu: supply vddcx not found, using dummy regulator [ 5.684550] adreno 2c00000.gpu: [drm:msm_devfreq_init] ERROR Couldn't register GPU cooling device [ 5.697576] platform 2c6a000.gmu: Adding to iommu group 9 [ 5.703688] msm_dpu ae01000.mdp: bound 2c00000.gpu (ops a3xx_ops) [ 5.704578] rtc-pm8xxx @.**@.: registered as rtc0 [ 5.704620] rtc-pm8xxx @.**@.: setting system clock to 1971-08-19T02:00:59 UTC (51415259) [ 5.705514] [drm:dpu_kms_hw_init:1067] dpu hardware revision:0x50000001 [ 5.710608] [drm] Initialized msm 1.9.0 20130625 for ae01000.mdp on minor 0 [ 5.711267] msm_dpu ae01000.mdp: [drm:adreno_request_fw] loaded qcom/a630_sqe.fw from new location [ 5.711805] msm_dpu ae01000.mdp: [drm:adreno_request_fw] loaded qcom/a640_gmu.bin from new location [ 5.715711] msm_dpu ae01000.mdp: [drm:adreno_request_fw] loaded qcom/a640_zap.mdt from new location [ 5.732818] Console: switching to colour dummy device 80x25 [ 5.759439] input: Xiaomi Pad as @.***/a8f8800.usb/a800000.usb/xhci-hcd.0.auto/usb1/1-1/1-1:1.1/0003:3206:3FFC.0002/input/input3 [ 5.759894] hid-multitouch 0003:3206:3FFC.0002: input,hidraw1: USB HID v1.11 Device [Xiaomi Pad] on usb-xhci-hcd.0.auto-1/input1 [ 6.051452] Console: switching to colour frame buffer device 320x100 [ 6.090305] msm_dpu ae01000.mdp: [drm] fb0: msmdrmfb frame buffer device

maverickjb commented 9 months ago

Ps,关于小米平板5(nabu)的linux源码,我看到的基本都是基于大神map220v的,我的也不例外。 GitHub - map220v/sm8150-mainline: WIP Mainline kernel for Xiaomi Pad 5 小米的官方源码太旧了,只是简单参考。

从 Windows 版邮件发送

发件人: Jianfeng Liu 发送时间: 2023年9月30日 14:44 收件人: maverickjb/linux-6.1.10 抄送: Subscribed 主题: [maverickjb/linux-6.1.10] 请求帮助适配小米平板5pro的键盘 (Issue #1)

你好! 感谢你对小米平板5的适配,给了我很大启发,我正在尝试给小米平板5pro适配小米的键盘,参考你的这个提交:ae6b58b3c4e61f639534e7e6a407065243755827,把安卓内核里的驱动里drm_notif相关的部分去掉,然后在驱动加载的时候执行set_keyboard_status(1)。但是我发现启动键盘后hid设备会在6秒后消失,点击键盘后hid设备会出现,然后6秒左右后也会消失,日志如下: [ 30.402402] [xiaomi-keyboard] xiaomi_keyboard_irq_func 93: keyboard event: wakeup system [ 30.402454] [xiaomi-keyboard] xiaomi_keyboard_connected_notify 38: connected status notify [ 30.402460] [xiaomi-keyboard] xiaomi_keyboard_irq_func 102: keyboard connected status: 0 [ 30.640484] usb 1-1: new full-speed USB device number 3 using xhci-hcd [ 30.787453] [xiaomi-keyboard] xiaomi_keyboard_irq_func 93: keyboard event: wakeup system [ 30.787493] [xiaomi-keyboard] xiaomi_keyboard_connected_notify 38: connected status notify [ 30.787499] [xiaomi-keyboard] xiaomi_keyboard_irq_func 102: keyboard connected status: 1 [ 30.805707] input: Xiaomi Pad Keyboard as @./a8f8800.usb/a800000.usb/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/0003:3206:3FFC.0005/input/input10 [ 30.865704] input: Xiaomi Pad Mouse as @./a8f8800.usb/a800000.usb/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/0003:3206:3FFC.0005/input/input11 [ 30.865981] hid-generic 0003:3206:3FFC.0005: input: USB HID v1.11 Keyboard [Xiaomi Pad] on usb-xhci-hcd.0.auto-1/input0 [ 30.868014] input: Xiaomi Pad as @./a8f8800.usb/a800000.usb/xhci-hcd.0.auto/usb1/1-1/1-1:1.1/0003:3206:3FFC.0006/input/input12 [ 30.868286] hid-multitouch 0003:3206:3FFC.0006: input: USB HID v1.11 Device [Xiaomi Pad] on usb-xhci-hcd.0.auto-1/input1 [ 30.869676] hid-generic 0003:3206:3FFC.0007: hiddev96: USB HID v1.11 Device [Xiaomi Pad] on usb-xhci-hcd.0.auto-1/input2 [ 30.870668] hid-generic 0003:3206:3FFC.0008: hiddev97: USB HID v1.11 Device [Xiaomi Pad] on usb-xhci-hcd.0.auto-1/input3 [ 30.976012] [xiaomi-keyboard] xiaomi_keyboard_irq_func 93: keyboard event: wakeup system [ 30.976047] [xiaomi-keyboard] xiaomi_keyboard_connected_notify 38: connected status notify [ 30.976053] [xiaomi-keyboard] xiaomi_keyboard_irq_func 102: keyboard connected status: 0 [ 31.273190] [xiaomi-keyboard] xiaomi_keyboard_irq_func 93: keyboard event: wakeup system [ 31.273230] [xiaomi-keyboard] xiaomi_keyboard_connected_notify 38: connected status notify [ 31.273237] [xiaomi-keyboard] xiaomi_keyboard_irq_func 102: keyboard connected status: 1 [ 37.355903] usb 1-1: USB disconnect, device number 3 正常情况下应该像安卓系统一样开机启动了键盘之后就一直有usb hid设备。 请问你在适配键盘的时候设备树是直接照搬安卓的吗,类似这个:https://github.com/MiCode/kernel_devicetree/blob/elish-r-oss/qcom/elish-sm8250.dtsi#L76-L85,还是有额外的其他配置,比如gpio 另外如果方便的话能否提供一个小米平板5的键盘启动日志,命令dmesg |grep xiaomi_keyboard的输出即可,我对照一下看有没有可疑的地方 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>

amazingfate commented 9 months ago

非常感谢,map220v我看了下没有usb2相关的。我准备对比安卓的设备树配置gpio看看能不能行。另外我现在用的是6.5内核,主线内核从6.3开始删掉了接口 of_get_named_gpio_flags,不知道是否有关。

thd2020 commented 1 month ago

非常感谢,map220v我看了下没有usb2相关的。我准备对比安卓的设备树配置gpio看看能不能行。另外我现在用的是6.5内核,主线内核从6.3开始删掉了接口 of_get_named_gpio_flags,不知道是否有关。

大佬,现在有思路吗?这个键盘如果能修好就太好了。

amazingfate commented 1 month ago

非常感谢,map220v我看了下没有usb2相关的。我准备对比安卓的设备树配置gpio看看能不能行。另外我现在用的是6.5内核,主线内核从6.3开始删掉了接口 of_get_named_gpio_flags,不知道是否有关。

大佬,现在有思路吗?这个键盘如果能修好就太好了。

米板5pro的键盘问题是sm8250特有的,做主线支持的lujianhua大佬也看过很久,没有思路