sonyxperiadev / bug_tracker

Empty repository that is used as a bugtracker for Open Devices project
52 stars 13 forks source link

[Tama][XZ3] SDM845 PostmarketOS on mailine kernel #799

Open phodina opened 1 year ago

phodina commented 1 year ago

Platform: Tama Device: XZ3 Kernel version: 6.4.0 Android version: None Software binaries version: edge

Hi, this is continuation of ticket to get PostmarketOS working on Tama XZ3. Currently it boots but do to the missing UFS drivers, that won't wipe the UFS storage the device needs workaround to boot off the SDcard.

https://github.com/sonyxperiadev/kernel/issues/2558

@MarijnS95 @jerpelea @konradybcio @Thaodan

phodina commented 1 year ago

Both kernels boot on the device. The difference is that your branch before upstreaming has also working display panel. (commit 0405d8392656b4ede0c1e71828a9a40a2562838a) https://gitlab.com/phodina/pmaports/-/commit/ffbc2c09633b7300e74ec518c03edc70cd1ae0b1

The 10 patches sent to upstream and applied to mainline commit2d1bcbc6cd703e64caf8df314e3669b4786e008a has display panel that stays black. https://gitlab.com/phodina/pmaports/-/commit/f972caefd2133add20bf2a90d7820626d962219a

As you said there is no obvious problem in the dmesg.

Is there something missing besides the patches, kernel configuration and firmware blobs?

I'll try to add some debugging into both panel drivers and see if I can spot any difference.

MarijnS95 commented 1 year ago

@phodina right, it didn't really get clear to me what was breaking. For one it could be a desync in reset-gpios which I recently changed to ACTIVE_LOW: https://github.com/SoMainline/linux/commit/592020f2268448d384ce308065afe7f427fcbf53 (your patch still uses ACTIVE_HIGH: https://gitlab.com/phodina/pmaports/-/commit/f972caefd2133add20bf2a90d7820626d962219a) but that also requires the following additional driver changes: https://github.com/SoMainline/linux/commit/1f3d7963c3770ddd8f921773a3b9c7e88ddec448

I hope to squash these and do a v2 at some point.

One thing you or I could do is apply the selected patches (panel + Akatsuki DTS) straight to the base -next commit of my branch: if it breaks in the same way there's another patch from my tree that's missing. Otherwise it's more likely that sdm845-mainline is a bit behind and missing out on some mandatory patches that we've landed upstream (or only -next). Though I don't remember anything recent for this ancient SoC and model.

project-two-five-zero-one commented 1 year ago

@phodina , has there been any progress and success with building/flashing PostMarketOS? Would be willing to test it; maybe you can provide a diagram of the wire you have for the pins and how you managed to complete the flash of the new loader with the complications you described?

phodina commented 1 year ago

@project-two-five-zero-one the port on the SoMainline repository works.

The one one mainline kernel does not as the display panel remains black.

To test that change the commit for the pmaports in the repository located by default under ~/.local/var/pmbootstrap/cache_git/pmaports/ to this repo and commit https://gitlab.com/phodina/pmaports/-/commit/2b7ba78b633d6f99f3e7d54c39f9ec5d002139ba.

Then just run pmboostrap init pick the Sony tama device you want and run pmboostrap install --sdcard=<SD CARD> After that flash export the kernel pmboostrap export and flash the resulting boot.img using fastboot to boot (_a or _b) partition.

I tried to make the modification to the ACTIVE_LOW but the panel still was black. So maybe some other patch for the drm subsystem might be missing. Have to try applying them to the -next branch.

phodina commented 1 year ago

@MarijnS95 Tested on mainline 6.4.1 with the ACTIVE_LOW change but still getting black screen.

Are there any other patches sent upstream that should be applied?

Here's again dmesg grabbed from the intiramfs - haven't spotted any issue

~ # dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x517f803c]
[    0.000000] Linux version 6.4.1 (pmos@CZPRGL-B18SYD3) (aarch64-alpine-linux-musl-gcc (Alpine 13.1.1_git20230701) 13.1.1 20230701, GNU ld (GNU Binutils) 2.40) #15-postmarketos-qcom-sdm845 SMP PREEMPT Wed Jul  5 05:06:30 UTC
[    0.000000] Machine model: Sony Xperia XZ3
[    0.000000] efi: UEFI not found.
[    0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!
[    0.000000] Reserved memory: created CMA memory pool at 0x00000000fec00000, size 16 MiB
[    0.000000] OF: reserved mem: initialized node fastrpc, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: 0x00000000fec00000..0x00000000ffbfffff (16384 KiB) map reusable fastrpc
[    0.000000] OF: reserved mem: 0x00000000bfffc000..0x00000000bfffffff (16 KiB) nomap non-reusable mpss-metadata
[    0.000000] OF: reserved mem: 0x0000000085700000..0x0000000085cfffff (6144 KiB) nomap non-reusable hyp-mem@85700000
[    0.000000] OF: reserved mem: 0x0000000085e00000..0x0000000085efffff (1024 KiB) nomap non-reusable xbl-mem@85e00000
[    0.000000] OF: reserved mem: 0x0000000085fc0000..0x0000000085fdffff (128 KiB) nomap non-reusable aop-mem@85fc0000
[    0.000000] OF: reserved mem: 0x0000000085fe0000..0x0000000085ffffff (128 KiB) nomap non-reusable aop-cmd-db-mem@85fe0000
[    0.000000] OF: reserved mem: 0x0000000086000000..0x00000000861fffff (2048 KiB) nomap non-reusable smem@86000000
[    0.000000] OF: reserved mem: 0x0000000086200000..0x0000000088efffff (46080 KiB) nomap non-reusable tz@86200000
[    0.000000] OF: reserved mem: 0x0000000088f00000..0x00000000890fffff (2048 KiB) nomap non-reusable rmtfs@88f00000
[    0.000000] OF: reserved mem: 0x000000008ab00000..0x000000008befffff (20480 KiB) nomap non-reusable qseecom@8ab00000
[    0.000000] OF: reserved mem: 0x000000008bf00000..0x000000008c3fffff (5120 KiB) nomap non-reusable camera-mem@8bf00000
[    0.000000] OF: reserved mem: 0x000000008c400000..0x000000008c40ffff (64 KiB) nomap non-reusable ipa-fw@8c400000
[    0.000000] OF: reserved mem: 0x000000008c410000..0x000000008c414fff (20 KiB) nomap non-reusable ipa-gsi@8c410000
[    0.000000] OF: reserved mem: 0x000000008c415000..0x000000008c416fff (8 KiB) nomap non-reusable gpu@8c415000
[    0.000000] OF: reserved mem: 0x000000008c500000..0x000000008defffff (26624 KiB) nomap non-reusable adsp@8c500000
[    0.000000] OF: reserved mem: 0x000000008df00000..0x000000008dffffff (1024 KiB) nomap non-reusable wlan-msa@8df00000
[    0.000000] OF: reserved mem: 0x000000008e000000..0x00000000957fffff (122880 KiB) nomap non-reusable mpss@8e000000
[    0.000000] OF: reserved mem: 0x0000000095800000..0x0000000095cfffff (5120 KiB) nomap non-reusable venus@95800000
[    0.000000] OF: reserved mem: 0x0000000095d00000..0x00000000964fffff (8192 KiB) nomap non-reusable cdsp@95d00000
[    0.000000] OF: reserved mem: 0x0000000096500000..0x00000000966fffff (2048 KiB) nomap non-reusable mba@96500000
[    0.000000] OF: reserved mem: 0x0000000096700000..0x0000000097afffff (20480 KiB) nomap non-reusable slpi@96700000
[    0.000000] OF: reserved mem: 0x0000000097b00000..0x0000000097bfffff (1024 KiB) nomap non-reusable spss@97b00000
[    0.000000] OF: reserved mem: 0x000000009d400000..0x000000009f7fffff (36864 KiB) nomap non-reusable memory@9d400000
[    0.000000] OF: reserved mem: 0x00000000ffc00000..0x00000000ffcfffff (1024 KiB) nomap non-reusable ramoops@ffc00000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x000000017e2bffff]
[    0.000000] NUMA: NODE_DATA [mem 0x17dac3380-0x17dac5fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000017e2bffff]
[    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-0x0000000085cfffff]
[    0.000000]   node   0: [mem 0x0000000085d00000-0x0000000085dfffff]
[    0.000000]   node   0: [mem 0x0000000085e00000-0x0000000085efffff]
[    0.000000]   node   0: [mem 0x0000000085f00000-0x0000000085fbffff]
[    0.000000]   node   0: [mem 0x0000000085fc0000-0x00000000890fffff]
[    0.000000]   node   0: [mem 0x0000000089100000-0x000000008aafffff]
[    0.000000]   node   0: [mem 0x000000008ab00000-0x000000008c416fff]
[    0.000000]   node   0: [mem 0x000000008c417000-0x000000008c4fffff]
[    0.000000]   node   0: [mem 0x000000008c500000-0x0000000097bfffff]
[    0.000000]   node   0: [mem 0x0000000097c00000-0x000000009d3fffff]
[    0.000000]   node   0: [mem 0x000000009d400000-0x000000009f7fffff]
[    0.000000]   node   0: [mem 0x000000009f800000-0x00000000bfffbfff]
[    0.000000]   node   0: [mem 0x00000000bfffc000-0x00000000bfffffff]
[    0.000000]   node   0: [mem 0x00000000c0000000-0x00000000ffbfffff]
[    0.000000]   node   0: [mem 0x00000000ffc00000-0x00000000ffcfffff]
[    0.000000]   node   0: [mem 0x00000000ffd00000-0x000000017e2bffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000017e2bffff]
[    0.000000] On node 0, zone Normal: 7488 pages in unavailable ranges
[    0.000000] cma: Reserved 32 MiB at 0x00000000fcc00000
[    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.2
[    0.000000] psci: OSI mode supported.
[    0.000000] psci: [Firmware Bug]: failed to set PC mode: -3
[    0.000000] percpu: Embedded 22 pages/cpu s49448 r8192 d32472 u90112
[    0.000000] pcpu-alloc: s49448 r8192 d32472 u90112 alloc=22*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: detected: Hardware dirty bit management
[    0.000000] CPU features: kernel page table isolation forced ON by KASLR
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: PMOS_NOSPLASH androidboot.verifiedbootstate=orange androidboot.keymaster=1 root=PARTUUID=c351ca12-1a0f-43aa-911e-99daf8ba5dcd androidboot.bootdevice=1d84000.ufshc androidboot.baseband=sdm lcdid_adc=856819 androidboot.slot_suffix=_b skip_initramfs rootwait ro init=/init  androidboot.bootloader=xboot oemandroidboot.xboot=1310-7079_X_Boot_SDM845_LA2.0_P_118 androidboot.serialno=QV711YZ01J startup=0x00008004 warmboot=0x00000000 oemandroidboot.babe09a9=00 oemandroidboot.babe08b3=50000000 oemandroidboot.babe137e=40 oemandroidboot.imei=35854009088395 oemandroidboot.security=0 oemandroidboot.securityflags=0x00000003
[    0.000000] Unknown kernel command line parameters "lcdid_adc=856819 startup=0x00008004 warmboot=0x00000000", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Fallback order for Node 0: 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1024821
[    0.000000] Policy zone: Normal
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 8.
[    0.000000] software IO TLB: mapped [mem 0x00000000f8c00000-0x00000000fcc00000] (64MB)
[    0.000000] Memory: 3630436K/4164352K available (14464K kernel code, 2356K rwdata, 5820K rodata, 3776K init, 498K bss, 484764K reserved, 49152K 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]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: 768 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.000213] Console: colour dummy device 80x25
[    0.000224] printk: console [tty0] enabled
[    0.000952] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=19200)
[    0.001031] pid_max: default: 32768 minimum: 301
[    0.001106] LSM: initializing lsm=capability,integrity
[    0.001209] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.001230] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.003173] cblist_init_generic: Setting adjustable number of callback queues.
[    0.003206] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.003281] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.003459] rcu: Hierarchical SRCU implementation.
[    0.003471] rcu:     Max phase no-delay instances is 400.
[    0.004993] EFI services will not be available.
[    0.005329] smp: Bringing up secondary CPUs ...
[    0.007015] Detected VIPT I-cache on CPU1
[    0.007105] GICv3: CPU1: found redistributor 100 region 0:0x0000000017a80000
[    0.007172] CPU1: Booted secondary processor 0x0000000100 [0x517f803c]
[    0.008767] Detected VIPT I-cache on CPU2
[    0.008815] GICv3: CPU2: found redistributor 200 region 0:0x0000000017aa0000
[    0.008865] CPU2: Booted secondary processor 0x0000000200 [0x517f803c]
[    0.010556] Detected VIPT I-cache on CPU3
[    0.010603] GICv3: CPU3: found redistributor 300 region 0:0x0000000017ac0000
[    0.010650] CPU3: Booted secondary processor 0x0000000300 [0x517f803c]
[    0.013002] CPU features: detected: Spectre-v2
[    0.013019] Detected VIPT I-cache on CPU4
[    0.013078] GICv3: CPU4: found redistributor 400 region 0:0x0000000017ae0000
[    0.013125] CPU4: Booted secondary processor 0x0000000400 [0x516f802d]
[    0.015208] Detected VIPT I-cache on CPU5
[    0.015273] GICv3: CPU5: found redistributor 500 region 0:0x0000000017b00000
[    0.015322] CPU5: Booted secondary processor 0x0000000500 [0x516f802d]
[    0.017554] Detected VIPT I-cache on CPU6
[    0.017622] GICv3: CPU6: found redistributor 600 region 0:0x0000000017b20000
[    0.017672] CPU6: Booted secondary processor 0x0000000600 [0x516f802d]
[    0.020080] Detected VIPT I-cache on CPU7
[    0.020151] GICv3: CPU7: found redistributor 700 region 0:0x0000000017b40000
[    0.020201] CPU7: Booted secondary processor 0x0000000700 [0x516f802d]
[    0.020273] smp: Brought up 1 node, 8 CPUs
[    0.020407] SMP: Total of 8 processors activated.
[    0.020418] CPU features: detected: 32-bit EL0 Support
[    0.020427] CPU features: detected: 32-bit EL1 Support
[    0.020438] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.020450] CPU features: detected: Common not Private translations
[    0.020459] CPU features: detected: CRC32 instructions
[    0.020468] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.020476] CPU features: detected: LSE atomic instructions
[    0.020487] CPU features: detected: Privileged Access Never
[    0.020494] CPU features: detected: RAS Extension Support
[    0.020609] CPU: All CPU(s) started at EL1
[    0.020643] alternatives: applying system-wide alternatives
[    0.028175] devtmpfs: initialized
[    0.045149] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.045180] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.046079] pinctrl core: initialized pinctrl subsystem
[    0.046662] DMI not present or invalid.
[    0.047239] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.048221] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.048345] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.048490] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.048547] audit: initializing netlink subsys (disabled)
[    0.048692] audit: type=2000 audit(0.043:1): state=initialized audit_enabled=0 res=1
[    0.049139] thermal_sys: Registered thermal governor 'step_wise'
[    0.049146] thermal_sys: Registered thermal governor 'power_allocator'
[    0.049231] cpuidle: using governor menu
[    0.049530] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.049753] ASID allocator initialised with 32768 entries
[    0.051345] Serial: AMBA PL011 UART driver
[    0.053341] printk: console [ramoops-1] enabled
[    0.071122] pstore: Registered ramoops as persistent store backend
[    0.071284] ramoops: using 0x100000@0xffc00000, ecc: 16
[    0.084897] amba 6041000.funnel: Fixed dependency cycle(s) with /soc@0/stm@6002000/out-ports/port/endpoint
[    0.085206] amba 6045000.funnel: Fixed dependency cycle(s) with /soc@0/funnel@6043000/out-ports/port/endpoint
[    0.085373] amba 6045000.funnel: Fixed dependency cycle(s) with /soc@0/funnel@6041000/out-ports/port/endpoint
[    0.085669] amba 6047000.etf: Fixed dependency cycle(s) with /soc@0/funnel@6045000/out-ports/port/endpoint
[    0.085834] amba 6047000.etf: Fixed dependency cycle(s) with /soc@0/replicator@6046000/in-ports/port/endpoint
[    0.085996] amba 6048000.etr: Fixed dependency cycle(s) with /soc@0/replicator@6046000/out-ports/port/endpoint
[    0.086617] amba 7800000.funnel: Fixed dependency cycle(s) with /soc@0/etm@7740000/out-ports/port/endpoint
[    0.086776] amba 7800000.funnel: Fixed dependency cycle(s) with /soc@0/etm@7640000/out-ports/port/endpoint
[    0.086931] amba 7800000.funnel: Fixed dependency cycle(s) with /soc@0/etm@7540000/out-ports/port/endpoint
[    0.087084] amba 7800000.funnel: Fixed dependency cycle(s) with /soc@0/etm@7440000/out-ports/port/endpoint
[    0.087240] amba 7800000.funnel: Fixed dependency cycle(s) with /soc@0/etm@7340000/out-ports/port/endpoint
[    0.087394] amba 7800000.funnel: Fixed dependency cycle(s) with /soc@0/etm@7240000/out-ports/port/endpoint
[    0.087493] amba 7800000.funnel: Fixed dependency cycle(s) with /soc@0/etm@7140000/out-ports/port/endpoint
[    0.087647] amba 7800000.funnel: Fixed dependency cycle(s) with /soc@0/etm@7040000/out-ports/port/endpoint
[    0.087877] amba 7810000.funnel: Fixed dependency cycle(s) with /soc@0/funnel@7800000/out-ports/port/endpoint
[    0.088050] amba 7810000.funnel: Fixed dependency cycle(s) with /soc@0/funnel@6043000/in-ports/port@5/endpoint
[    0.089765] platform ae00000.display-subsystem: Fixed dependency cycle(s) with /soc@0/clock-controller@af00000
[    0.098609] platform 179c0000.rsc:regulators-0: Fixed dependency cycle(s) with /soc@0/rsc@179c0000/regulators-0/smps5
[    0.098793] platform 179c0000.rsc:regulators-0: Fixed dependency cycle(s) with /soc@0/rsc@179c0000/regulators-0/smps3
[    0.098952] platform 179c0000.rsc:regulators-0: Fixed dependency cycle(s) with /soc@0/rsc@179c0000/regulators-0/smps7
[    0.101713] KASLR enabled
[    0.102665] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.102830] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.102917] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.103064] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.103148] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.103295] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.103383] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.103538] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.121315] raid6: neonx8   gen()  3065 MB/s
[    0.138388] raid6: neonx4   gen()  3140 MB/s
[    0.155462] raid6: neonx2   gen()  2286 MB/s
[    0.172531] raid6: neonx1   gen()  1833 MB/s
[    0.189607] raid6: int64x8  gen()  1359 MB/s
[    0.206686] raid6: int64x4  gen()  1422 MB/s
[    0.223761] raid6: int64x2  gen()  1256 MB/s
[    0.240837] raid6: int64x1  gen()  1097 MB/s
[    0.240981] raid6: using algorithm neonx4 gen() 3140 MB/s
[    0.257902] raid6: .... xor() 2359 MB/s, rmw enabled
[    0.257983] raid6: using neon recovery algorithm
[    0.258256] ACPI: Interpreter disabled.
[    0.260256] iommu: Default domain type: Translated
[    0.260409] iommu: DMA domain TLB invalidation policy: strict mode
[    0.260697] SCSI subsystem initialized
[    0.260893] usbcore: registered new interface driver usbfs
[    0.260993] usbcore: registered new interface driver hub
[    0.261099] usbcore: registered new device driver usb
[    0.261331] pps_core: LinuxPPS API ver. 1 registered
[    0.261413] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.261564] PTP clock support registered
[    0.261784] EDAC MC: Ver: 3.0.0
[    0.262351] CPUidle PSCI: Initialized CPU PM domain topology using OSI mode
[    0.262696] qcom_scm: convention: smc arm 64
[    0.263103] scmi_core: SCMI protocol bus registered
[    0.263583] Advanced Linux Sound Architecture Driver Initialized.
[    0.264341] vgaarb: loaded
[    0.264768] clocksource: Switched to clocksource arch_sys_counter
[    0.265020] VFS: Disk quotas dquot_6.6.0
[    0.265142] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.265360] pnp: PnP ACPI: disabled
[    0.271789] NET: Registered PF_INET protocol family
[    0.272031] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.275338] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.275545] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.275644] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.275973] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.276854] TCP: Hash tables configured (established 32768 bind 32768)
[    0.277017] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.277245] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.277492] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.277972] RPC: Registered named UNIX socket transport module.
[    0.278065] RPC: Registered udp transport module.
[    0.278211] RPC: Registered tcp transport module.
[    0.278292] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.278446] PCI: CLS 0 bytes, default 64
[    0.278707] Trying to unpack rootfs image as initramfs...
[    0.291154] kvm [1]: HYP mode not available
[    0.292070] Initialise system trusted keyrings
[    0.292294] workingset: timestamp_bits=42 max_order=20 bucket_order=0
[    0.292730] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.293077] NFS: Registering the id_resolver key type
[    0.293180] Key type id_resolver registered
[    0.293259] Key type id_legacy registered
[    0.293412] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.293490] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.326310] xor: measuring software checksum speed
[    0.329027]    8regs           :  3769 MB/sec
[    0.331664]    32regs          :  3970 MB/sec
[    0.334460]    arm64_neon      :  3627 MB/sec
[    0.334589] xor: using function: 32regs (3970 MB/sec)
[    0.334666] Key type asymmetric registered
[    0.334739] Asymmetric key parser 'x509' registered
[    0.334744] Freeing initrd memory: 2128K
[    0.334882] Asymmetric key parser 'pkcs8' registered
[    0.334932] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    0.335344] io scheduler mq-deadline registered
[    0.335511] io scheduler kyber registered
[    0.335620] io scheduler bfq registered
[    0.340399] EINJ: ACPI disabled.
[    0.348245] bob: Setting 3312000-3600000uV
[    0.348244] smps3: Setting 600000-600000uV
[    0.351112] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.352654] msm_serial: driver initialized
[    0.354709] arm-smmu 15000000.iommu: probing hardware configuration...
[    0.354872] arm-smmu 15000000.iommu: SMMUv2 with:
[    0.354988] arm-smmu 15000000.iommu:         stage 1 translation
[    0.355145] arm-smmu 15000000.iommu:         non-coherent table walk
[    0.355232] arm-smmu 15000000.iommu:         (IDR0.CTTW overridden by FW configuration)
[    0.355384] arm-smmu 15000000.iommu:         stream matching with 76 register groups
[    0.355499] arm-smmu 15000000.iommu:         45 context banks (0 stage-2 only)
[    0.356554] arm-smmu 15000000.iommu:         Supported page sizes: 0x61311000
[    0.356716] arm-smmu 15000000.iommu:         Stage-1: 48-bit VA -> 48-bit IPA
[    0.357048] arm-smmu 15000000.iommu:         preserved 0 boot mappings
[    0.367806] brd: module loaded
[    0.372507] loop: module loaded
[    0.373485] spmi spmi-0: PMIC arbiter version v5 (0x50000000)
[    0.384949] tun: Universal TUN/TAP device driver, 1.6
[    0.385256] thunder_xcv, ver 1.0
[    0.385372] thunder_bgx, ver 1.0
[    0.385477] nicpf, ver 1.0
[    0.385576] e1000: Intel(R) PRO/1000 Network Driver
[    0.385660] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    0.385835] e1000e: Intel(R) PRO/1000 Network Driver
[    0.385921] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.386168] sky2: driver version 1.30
[    0.386546] VFIO - User Level meta-driver version: 0.3
[    0.387451] usbcore: registered new interface driver usb-storage
[    0.400535] i2c_dev: i2c /dev entries driver
[    0.401805] input: pm8941_pwrkey as /devices/platform/soc@0/c440000.spmi/spmi-0/0-00/c440000.spmi:pmic@0:pon@800/c440000.spmi:pmic@0:pon@800:pwrkey/input/input0
[    0.417661] ghes_edac: GHES probing device list is empty
[    0.419173] sdhci: Secure Digital Host Controller Interface driver
[    0.419424] sdhci: Copyright(c) Pierre Ossman
[    0.419577] Synopsys Designware Multimedia Card Interface Driver
[    0.419830] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.420620] ledtrig-cpu: registered to indicate activity on CPUs
[    0.421242] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    0.421368] hid: raw HID events driver (C) Jiri Kosina
[    0.423125] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[    0.513220] NET: Registered PF_PACKET protocol family
[    0.513361] Key type dns_resolver registered
[    0.519252] registered taskstats version 1
[    0.519535] Loading compiled-in X.509 certificates
[    0.525046] Btrfs loaded, zoned=no, fsverity=no
[    0.525269] pstore: Using crash dump compression: deflate
[    0.543447] bam-dma-engine 1dc4000.dma-controller: Adding to iommu group 0
[    0.543895] bam-dma-engine 1dc4000.dma-controller: num-channels unspecified in dt
[    0.543962] bam-dma-engine 1dc4000.dma-controller: num-ees unspecified in dt
[    0.544936] bam-dma-engine 17184000.dma-controller: Adding to iommu group 1
[    0.546628] geni_se_qup 8c0000.geniqup: Adding to iommu group 2
[    0.548234] qcom_geni_serial 898000.serial: Invalid line -19
[    0.548978] geni_se_qup ac0000.geniqup: Adding to iommu group 3
[    0.549839] qcom_geni_serial a84000.serial: Invalid line -19
[    0.560150] arm-smmu 5040000.iommu: probing hardware configuration...
[    0.560215] arm-smmu 5040000.iommu: SMMUv2 with:
[    0.560339] arm-smmu 5040000.iommu:  stage 1 translation
[    0.560401] arm-smmu 5040000.iommu:  address translation ops
[    0.560502] smps2: Setting 1100000-1100000uV
[    0.560505] arm-smmu 5040000.iommu:  non-coherent table walk
[    0.560510] arm-smmu 5040000.iommu:  (IDR0.CTTW overridden by FW configuration)
[    0.560668] smps3: Setting 1352000-1352000uV
[    0.560733] arm-smmu 5040000.iommu:  stream matching with 5 register groups
[    0.560754] arm-smmu 5040000.iommu:  5 context banks (0 stage-2 only)
[    0.560936] smps5: Setting 1904000-2040000uV
[    0.561040] arm-smmu 5040000.iommu:  Supported page sizes: 0x63315000
[    0.561187] arm-smmu 5040000.iommu:  Stage-1: 48-bit VA -> 36-bit IPA
[    0.561207] smps7: Setting 900000-1028000uV
[    0.561448] ldo1: Setting 880000-880000uV
[    0.561564] arm-smmu 5040000.iommu:  preserved 0 boot mappings
[    0.562438] adreno 5000000.gpu: Adding to iommu group 4
[    0.562703] ldo2: Setting 1200000-1200000uV
[    0.562946] msm-mdss ae00000.display-subsystem: Adding to iommu group 5
[    0.564734] platform ae94000.dsi: Fixed dependency cycle(s) with /soc@0/display-subsystem@ae00000/dsi@ae94000/panel@0/port/endpoint
[    0.564886] platform ae94000.dsi: Fixed dependency cycle(s) with /soc@0/display-subsystem@ae00000/display-controller@ae01000/ports/port@1/endpoint
[    0.565414] ldo3: Setting 1000000-1000000uV
[    0.566069] ldo5: Setting 800000-800000uV
[    0.567318] ldo6: Setting 1856000-1856000uV
[    0.568069] ldo7: Setting 1800000-1800000uV
[    0.568952] ldo8: Setting 1200000-1248000uV
[    0.569479] ldo9: Setting 1704000-2928000uV
[    0.569899] ldo10: Setting 1704000-2928000uV
[    0.570290] ldo11: Setting 1000000-1048000uV
[    0.570902] ldo12: Setting 1800000-1800000uV
[    0.571812] ldo13: Setting 1800000-2960000uV
[    0.572741] ldo14: Setting 1840000-1840000uV
[    0.573530] ldo15: Setting 1800000-1800000uV
[    0.574200] ldo16: Setting 2704000-2704000uV
[    0.575121] ldo17: Setting 1304000-1304000uV
[    0.576050] ldo18: Setting 2704000-2960000uV
[    0.576870] ldo20: Setting 2704000-2960000uV
[    0.577323] ldo21: Setting 2704000-2960000uV
[    0.577751] ldo22: Setting 2696000-2696000uV
[    0.578237] ldo23: Setting 3000000-3312000uV
[    0.578618] ldo24: Setting 3088000-3088000uV
[    0.579135] ldo25: Setting 3000000-3312000uV
[    0.579602] ldo26: Setting 1200000-1200000uV
[    0.580006] ldo28: Setting 3000000-3000000uV
[    0.580801] lvs1: mapping for mode 3 not defined
[    0.580996] lvs2: mapping for mode 3 not defined
[    0.582790] sdhci_msm 8804000.mmc: Adding to iommu group 6
[    0.582986] qcom-qusb2-phy 88e2000.phy: Registered Qcom-QUSB2 phy
[    0.583300] sdhci_msm 8804000.mmc: Got CD GPIO
[    0.585981] dwc3 a600000.usb: Adding to iommu group 7
[    0.598998] mipi-dsi ae94000.dsi.0: Fixed dependency cycle(s) with /soc@0/display-subsystem@ae00000/dsi@ae94000/ports/port@1/endpoint
[    0.599563] msm_dpu ae01000.display-controller: bound ae94000.dsi (ops dsi_ops)
[    0.601702] adreno 5000000.gpu: supply vdd not found, using dummy regulator
[    0.601928] adreno 5000000.gpu: supply vddcx not found, using dummy regulator
[    0.607281] platform 506a000.gmu: Adding to iommu group 8
[    0.609605] msm_dpu ae01000.display-controller: bound 5000000.gpu (ops a3xx_ops)
[    0.621743] [drm:dpu_kms_hw_init:1050] dpu hardware revision:0x40000000
[    0.623507] irq: IRQ128: trimming hierarchy from :soc@0:interrupt-controller@b220000-9
[    0.625243] mmc0: SDHCI controller on 8804000.mmc [8804000.mmc] using ADMA 64-bit
[    0.629645] [drm] Initialized msm 1.10.0 20130625 for ae01000.display-controller on minor 0
[    0.631196] msm_dpu ae01000.display-controller: [drm:adreno_request_fw] loaded qcom/a630_sqe.fw from new location
[    0.631369] msm_dpu ae01000.display-controller: [drm:adreno_request_fw] loaded qcom/a630_gmu.bin from new location
[    0.770536] mmc0: new ultra high speed SDR104 SDHC card at address 0001
[    0.772220] mmcblk0: mmc0:0001 SD32G 29.1 GiB
[    0.775384]  mmcblk0: p1 p2
[    1.062664] Console: switching to colour frame buffer device 180x180
[    1.095658] msm_dpu ae01000.display-controller: [drm] fb0: msmdrmfb frame buffer device
[    1.100643] input: gpio-keys as /devices/platform/gpio-keys/input/input1
[    1.101382] clk: Disabling unused clocks
[    1.101860] ALSA device list:
[    1.101983]   No soundcards found.
[    1.102897] Freeing unused kernel memory: 3776K
[    1.111090] Run /init as init process
[    1.111246]   with arguments:
[    1.111250]     /init
[    1.111255]   with environment:
[    1.111258]     HOME=/
[    1.111262]     TERM=linux
[    1.111265]     lcdid_adc=856819
[    1.111269]     startup=0x00008004
[    1.111273]     warmboot=0x00000000
[    1.436203] configfs-gadget.g1 gadget.0: HOST MAC 06:38:25:02:b3:3b
[    1.436324] configfs-gadget.g1 gadget.0: MAC fa:35:b4:3c:4a:fa
[   11.756773] platform 17d43000.cpufreq: deferred probe pending
[   11.756915] qnoc-sdm845 1380000.interconnect: sync_state() pending due to 1436400.pmu
[   11.757077] qnoc-sdm845 1380000.interconnect: sync_state() pending due to 114a000.pmu
[   11.757241] qnoc-sdm845 1500000.interconnect: sync_state() pending due to aa00000.video-codec
[   11.757347] qnoc-sdm845 1380000.interconnect: sync_state() pending due to aa00000.video-codec
[   11.757504] qnoc-sdm845 1740000.interconnect: sync_state() pending due to aa00000.video-codec
[   11.757679] qnoc-sdm845 17900000.interconnect: sync_state() pending due to aa00000.video-codec
[   11.757853] qnoc-sdm845 17900000.interconnect: sync_state() pending due to 1436400.pmu
[   11.757961] qcom-rpmhpd 179c0000.rsc:power-controller: sync_state() pending due to aa00000.video-codec
[   11.758126] qnoc-sdm845 17900000.interconnect: sync_state() pending due to 898000.serial
[   11.758280] qnoc-sdm845 1500000.interconnect: sync_state() pending due to 898000.serial
[   11.758434] qnoc-sdm845 16e0000.interconnect: sync_state() pending due to 898000.serial
[   11.758539] qcom-rpmhpd 179c0000.rsc:power-controller: sync_state() pending due to 898000.serial
[   11.758696] qnoc-sdm845 17900000.interconnect: sync_state() pending due to a84000.serial
[   11.758856] qnoc-sdm845 1500000.interconnect: sync_state() pending due to a84000.serial
[   11.758958] qnoc-sdm845 1700000.interconnect: sync_state() pending due to a84000.serial
[   11.759108] qcom-rpmhpd 179c0000.rsc:power-controller: sync_state() pending due to a84000.serial
MarijnS95 commented 1 year ago

@phodina since you seem to be having some trouble piecing together all my patches (which is unsurprising since there are various messy "Rework panel(s)" commits elsewhere on that branch that need to be squashed), I've prepared a branch on top of next-20230724 with just the panel driver, DTS and defconfig (and touchscreen) patches that affect Akatsuki:

https://github.com/SoMainline/linux/commits/marijn/akatsuki-panel-exclusive

With this branch the panel works nominally: it can be turned off and on, and runs at 60Hz without corruption.

It might, but I cannot guarantee that it works on other -next or stable kernel tags, since there are various DSC patches around that either make or break it. If you're still facing trouble on an unmodified stable/next kernel tag, let me know which one and I'll do my best to point out the missing/broken patches.

phodina commented 1 year ago

Thanks @MarijnS95 for helping me stitch all the patches together. I don't currently have Akatsuki with me but I shall test the patches on Monday or Tuesday and see if I can get the display panel working ;-)

MarijnS95 commented 1 year ago

I have to confess this branch is conflated with some other panel drivers and DTS now: you're not the only one to notice that cmd-mode and DSC displays can finally be brought up on Qualcomm platforms, and there are a lot of folks asking how I got it to work, if my patches landed yet (and if not: what series they need to pick) so it's also showing DSC on SM8150 now.

phodina commented 1 year ago

No problem. Even better as that means we can add more devices in the pm OS. Just I won't be able to test that as I have just one Sony phone and I'd like to test later the UFS so it's fully functional and can be added to the list of "working" devices.

MarijnS95 commented 1 year ago

@phodina I'd rather not. This branch is only intended to be temporary as you seem to be determined to get a pmOS configuration contributed with display. The other devices can still be brought up without a panel, and that hopefully keeps the incentive high to upstream the panels (v1 was already on the lists, and v2 is being worked on!) and relevant DTS, as well as have consumers (like pmOS) stick to the latest mainline branches/releases (where it will show up soon™) rather than becoming another downstream kernel.

(OTOH I'm the one to upstream the panels/DTS, and my incentive won't be curbed by whatever happens in pmOS land :wink:)

phodina commented 1 year ago

@MarijnS95 Bad news. I used the branch you posted and the defconfig from the commit.

However, the panel is still black. The CONFIG_DRM_PANEL_SONY_AKATSUKI_LGD is enabled and I don't see any errors in the dmesg about the display.

https://github.com/SoMainline/linux/commits/marijn/akatsuki-panel-exclusive

https://github.com/SoMainline/linux/commit/f1bc1e24009f8c177c32ae4571207d7e333bcb71#diff-51e9ac942cbedfdaf79995df045cabed9d28c14dc6a166cb2f33f9b252fb70bcR343

phodina commented 1 year ago

I saw the patches you send upstream and several comments from the v1 review. Nice job! I'm trying to learn how the panels work so in the future I can help more than just test the kernel on the device with remark that it has just black screen.

I used to work with displays on STM32 and other microcontrollers but they were simpler (SPI or some parallel interface) and had datasheet available. Also the whole MCU was easier to debug and had manual about the peripherals with register description.

phodina commented 1 year ago

If you want I can share with you the built boot.img, but not sure it will help.

Seems that some small patch might be still missing in the branch as the original one worked.

MarijnS95 commented 1 year ago

No datasheets here. No vendor help. Panels are a copy-paste job, "no questions asked" :(


The marijn/akatsuki-panel-exclusive branch worked for me and still works. What exactly are you referring to with "the original one worked", my day-to-day marijn/longbois-next development branch (preferably share a commit hash)? EDIT: Seems like it considering https://github.com/sonyxperiadev/kernel/issues/2558#issuecomment-1591990218 / https://github.com/sonyxperiadev/bug_tracker/issues/799#issuecomment-1596025144.

Are you sure your userspace initializes and uses the panel? After mounting debugfs, anything to find under dri/0/...?


Perhaps it is easier if I share my boot.img instead. The below Drive link (because GitHub refuses to take these files, they're over 10MB) were compiled using my oot scripts below (to build kernels, bootimages and other flashables that reside in an AOSP tree... without using the AOSP build system... some legacy cruft I cannot stop using), and combined with an archlinuxarm64 ramdisk from a year or two ago (this should at least print some logs to fb0, and then try init at root=/dev/mmcblk0 which is the SDCard).

https://github.com/MarijnS95/oot/tree/mainline https://drive.google.com/drive/folders/1wyVP6aFcDQDhCArBrnqFjrnWuCy98cH9?usp=sharing

As you should be able to tell after booting these, the commit hash shown in dmesg points to: https://github.com/SoMainline/linux/commits/ae9464c3a7de63696d20be236c931ef30cc54a5f

phodina commented 1 year ago

I was using the commit e7b303a8da6a5f93fdcd7c0d0e30addc6a329941.

https://github.com/SoMainline/linux/commits/e7b303a8da6a5f93fdcd7c0d0e30addc6a329941

The original branch I was referring as "working" was the marijn/longbois-next pointed to commit 0405d8392656b4ede0c1e71828a9a40a2562838a

https://github.com/SoMainline/linux/commits/0405d8392656b4ede0c1e71828a9a40a2562838a

I'll test the boot.img as well as the newest rebase of the branch marijn/akatsuki-panel-exclusive

I'll check if there are entries in the dri/0/. However, since the GNOME is booting I think it should find them and use the display. At least on the original marijn/longbois-next that was the case.

phodina commented 1 year ago

So tested your boot.img and can confirm it's working. Thanks @MarijnS95 !

Therefore the issue is somewhere on my side in the build.

image

phodina commented 1 year ago

So here's the current state:

The device boots with the display panel on and touchscreen working.

It's incredibly slow due to the uSD, but the Plasma Mobile loads eventually.

https://github.com/sonyxperiadev/bug_tracker/assets/2997905/99a8c1c8-2799-44de-b6e0-9686c97501cd

Thanks @MarijnS95

akatsuki.dmesg.log

phodina commented 1 year ago

@MarijnS95 since the display panel now works shall we open another ticket regarding the mainline kernel and UFS?

Btw I'm thinking of getting the Sony XZ2 for testing the UFS. It's cheaper than the Sony XZ3 and the SoC is the same. I got the feeling the patches might end up bricking the device :smiley:

phodina commented 1 year ago

In case somebody is interested in testing this out here's the MR https://gitlab.com/postmarketOS/pmaports/-/merge_requests/4183.

There's a neat tool to test the MR mrtest. https://wiki.postmarketos.org/wiki/Mrtest

MarijnS95 commented 1 year ago

Nice job @phodina! I've provided some review comments on your MR, as well as offered to test these patches straight on top of 6.4.0 (and eventually put together a more elaborate branch if more patches turn out to be missing compared to 6.5 or -next).

Not sure whether to proceed on UFS now, it's not anywhere close on my list of interests as there's still so much more other hardware to bring up (and a fast uSD card seems to "solve" it for me: I can even rotate it around the many Sony devices without worrying which revision of void, tools, debug files or .zsh_history I may or may not have on a certain phone).

MarijnS95 commented 1 year ago

@kholk might be the one to talk to for "UFS things", though he's unlikely to be available.

MarijnS95 commented 1 year ago

https://github.com/SoMainline/linux/commits/marijn/akatsuki-panel-exclusive-6.4

As anticipated the panel works nominally on 6.4 as well, no extra patches required. Better not use pmOS's sdm845 fork :wink:

phodina commented 1 year ago

Thanks @MarijnS95 . I've went through the review and fixed some issues.

Also it runs on mainline without any issue and thanks for double checking.

I'll double check the linux-postmarketos-qcom-sdm845-6.4.0 again.

From what I understand the UFS is issue on any phone manufactured by Sony.

It will have to be solved at some point. At the moment there's availability of the tama platform devices for reasonable amount of euros.

I picked the SDM845 as it's well supported in the mainline.

But yes, there are other issues about the phone and uSD for now is a good solution especially if you port multiple devices and need to switch between them.

phodina commented 1 year ago

@kholk might be the one to talk to for "UFS things", though he's unlikely to be available.

Thanks for the tip. Well we recently met in Prague for EOSS 2023 where he had presentation about porting devices to Mediatek so we chat a little about this BIGME Inknotec tablet that I'm trying to port.

But I'll try to ask him about the UFS issue :wink:

Less bricked devices is definitely better for the planet.

phodina commented 1 year ago

Nice job @phodina! I've provided some review comments on your MR, as well as offered to test these patches straight on top of 6.4.0 (and eventually put together a more elaborate branch if more patches turn out to be missing compared to 6.5 or -next).

Not sure whether to proceed on UFS now, it's not anywhere close on my list of interests as there's still so much more other hardware to bring up (and a fast uSD card seems to "solve" it for me: I can even rotate it around the many Sony devices without worrying which revision of void, tools, debug files or .zsh_history I may or may not have on a certain phone).

OFFTOPIC Also little bit curious about the list of items you are interested about Sony devices.

MarijnS95 commented 1 year ago

Mainly "getting everything to work". My focus is still on display (10IV, 1IV and the new V generation...), and I tricked myself into becoming a drm/msm reviewer and part-time contributor. Then there are many more patches to upstream for various generations including older platforms like Loire and Nile.

At some point I may have thought that device-upstreaming can be "finished" once all the hardware parts are in place. But even if we could have every little hardware feature and optimization under the sun contributed upstream, there's a never ending pit of (code) cleanups and improvements to be done. Not even considering userspace.

So for now I just try very hard to improve and upstream what I have before embarking on new subjects/subsystems. If that means someone else finds time picking up UFS, all the better. (EDIT: I'm not at all saying that you shouldn't do UFS. Just that I'd like to stay away from it myself to be able to focus on all the other items... it's very easy to loose track and perhaps even burn out on this massive task)

On that note, the more we manage to upstream the more attractive running mainline becomes, and the more potential contributors appear... yourself being a prime example :slightly_smiling_face:

phodina commented 1 year ago

Understood. Thanks again with the help and upstreaming the display panels.

I've looked little bit into what's missing on the akatsuki to get similar experience as on the Oneplus enchillada and there's "unfortunately" lot. So I'll start looking into that.

Yeah, not saying the UFS or block devices are easy but since nobody want to touch that and I'd like to have a let's say a partially working device I brick some in order to get there :smile:

Definitely, it's very hard to stay on track and not get burnt out as this is a massive task that requires a whole community to take part.

Speaking of that I still have my old trusty Google Pixel 3 that has no working display panel so I might gather the experience from here and attempt to revive the patch set I have.

phodina commented 1 year ago

@MarijnS95 regarding the touch screen. Do you know if there's some special way how to handle the touch screen on the curved edges as it's not responsive there.

I recall Sony had some special feature called Side sense for the edges.

MarijnS95 commented 1 year ago

Speaking of that I still have my old trusty Google Pixel 3 that has no working display panel so I might gather the experience from here and attempt to revive the patch set I have.

The DRM/MSM maintainer is already on it, trying to piece together the missing part of the DSC puzzle while wondering why our Sony SDM845 setup is working which is very similar.

Which is funny since DSC was originally "brought up on" that device, but it seems to have never been tested / made it to completion :frowning_face:


No clue if you can easily turn off "side sense" and treat it as normal touches. I haven't checked the limits on mine, but without a case you'd rather reject the sides as it's very easy to activate accidental touches while merely holding the phone.

bartcubbins commented 1 year ago

@phodina in order to get a UART output, you need to put the microsd card holder tray into the slot not completely (see the photo under the spoiler), so as not to trigger the cd-gpio. And another important moment, first you have to press the power button and then connect the Rx pin to the already prepared USB-UART adapter, then you will get the UART fancy output

Photo
bartcubbins commented 1 year ago

PS. in order to avoid these connection order tricks, you can try to use a pull-down ~4.7k resistor

phodina commented 1 year ago

@phodina in order to get a UART output, you need to put the microsd card holder tray into the slot not completely (see the photo under the spoiler), so as not to trigger the cd-gpio. And another important moment, first you have to press the power button and then connect the Rx pin to the already prepared USB-UART adapter, then you will get the UART fancy output Photo

Thank you very much for the detailed photo and additional information. I'll test that once I'll have the uSD adapter with me and add description to the pmOS about this.

phodina commented 1 year ago

Also there are incremental improvements. @MarijnS95

I was able to get the battery fuel gauge working as well as the haptics sensor on the akatsuki.

I'm attempting to get also the WiFi working but that depends on the modem firmware running and atm it's crashing without any additional information.

So I'll have to learn more about the remoteproc and how it exactly works in order to get those working and turn it back to a useful phone.

https://gitlab.com/sdm845-mainline/linux/-/merge_requests/73

bartcubbins commented 1 year ago

@phodina in order to get a UART output, you need to put the microsd card holder tray into the slot not completely (see the photo under the spoiler), so as not to trigger the cd-gpio. And another important moment, first you have to press the power button and then connect the Rx pin to the already prepared USB-UART adapter, then you will get the UART fancy output Photo

Thank you very much for the detailed photo and additional information. I'll test that once I'll have the uSD adapter with me and add description to the pmOS about this.

you're welcome. ping me if you need anything, I'll try to help if it's in my power

phodina commented 1 year ago

@bartcubbins I tried the UART adapter. Unfortunately no UART signal, just if I plug it to far I get the SD card interface CLK signal.

Regarding the pull-down. So your suggestion is to put it to the Rx line right?

Also how does your adapter look like? Did the continuity test with the multimeter and the signals go for each end to the other and they are not short circuit with any other. image

bartcubbins commented 1 year ago

I suspect you didn't do the connection order trick. Then my recommendation is to find a resistor.

Yes, between GND and Rx, any resistor in the range of about 1-10k will work (I have tried 7.5k (purple-green-red-gold) and 2.2k (red-red-red-gold) resistors).

This is a SD card in which the tracks between the card itself and the contact pads are physically broken (cut), two 0.125mm (36 AWG) wires are soldered directly to the pads and polished to prevent damage to the contacts in the device, then a 7.5k resistor is soldered between them and everything is connected to CH340G

phodina commented 1 year ago

@bartcubbins So I added the pull-down resistor - 3.9k between the Rx and GND. Measured for short circuit and also checked the resistance between the GND and Rx.

However, I still don't see any UART signal on the osciloscope. I tried several positions for insertion and either I get the CLK for the uSD card if inserted to much or nothing at all just GND.

Is there some fastboot command to enable the UART? E.g. Pixel line of devices have them.

Even without the USB UART converter there's no signal on the osciloscope as you mentioned the trick.

Is it possible the UART from bootloader has UART disabled in firmware?

konradybcio commented 1 year ago

@phodina I found this.. The commit message says it was enough to make msm8974 (2013) modem happy, maybe it's worth a shot on tama as well

konradybcio commented 1 year ago

note you'll also need to copy your modemst* and something else partitions from the ufs, store them on the sdcard in a directory and point rmtfs to them

phodina commented 1 year ago

Thanks @konradybcio. I somehow forgot that we run from the uSD and some data is on the UFS internal storage.

Here's the list of the partitions:

akari:/ $ ls /dev/block/by-name/ -1
LTALabel
Qnovo
TA
abl_a
abl_b
aop_a
aop_b
apdp
appslog
bluetooth_a
bluetooth_b
boot_a
boot_b
cdt
cmnlib64_a
cmnlib64_b
cmnlib_a
cmnlib_b
ddr
devcfg_a
devcfg_b
devinfo
diag
dsp_a
dsp_b
dtbo_a
dtbo_b
frp
fsc
fsg
fsmetadata
hyp_a
hyp_b
keymaster_a
keymaster_b
keystore
limits
logdump
logfs
misc
modem_a
modem_b
modemst1
modemst2
msadp
oem_a
oem_b
persist
qupfw_a
qupfw_b
rddata
rdimage_a
rdimage_b
sda
sdb
sdc
sec
spunvm
ssd
system_a
system_b
toolsfv
tz_a
tz_b
tzxfl_a
tzxfl_b
tzxflattest_a
tzxflattest_b
userdata
vbmeta_a
vbmeta_b
vendor_a
vendor_b
xbl_a
xbl_b
xbl_config_a
xbl_config_b
xfl_a
xfl_b
xflkeystore
xflkeystorebak

I've dumped with dd the modemst1 and modemst2. Should I also dump the fsg since it contains the default factory settings for the modem?

Also are these A/B partitions since they have 1/2? The modem partitions use a/b/.

Do you konw how to point the rmtfs? Haven't found any reference in the mainline kernel documentation Documentation/devicetree/bindings/reserved-memory/qcom,rmtfs-mem.yaml.

Also the Linux kernel is responsible for loading them, right, since it's in charge of UFS (at least on Android) and it get's some RPC from other remote processor to access the specified partition?

phodina commented 1 year ago

@konradybcio Also I have an akari phone that runs mainline. If you have any ideas how to prepare for the UFS test I'll set it up and test the patches to see if it kills the phone or makes the UFS driver work.

https://github.com/sonyxperiadev/bug_tracker/issues/802

I bought it with the intention to run the test on that phone.

phodina commented 1 year ago

I've found the rmtfs service on the pmOS in the /etc/init.d/rmtfs so I'll pass it the files dumped from the device and see if it works :-)

bartcubbins commented 1 year ago

Is it possible the UART from bootloader has UART disabled in firmware?

No, UART is enabled by default and you should see the bootloader logs even on a locked bootloader. This is valid for all devices from Tama to Sagami platforms.

jerpelea commented 1 year ago

If UART is correctly installed there are initial messages from bootloader. To get messages from kernel you must se the GENI_SERIAL_CONSOLE and enable the right console on cmdline

phodina commented 1 year ago

@konradybcio The dumped modemst{1,2} files helped. There are now no crashes in the kernel log.

Still no celluar connectivity but I'll look into the other repo you suggested and modem manager/qrtr to find what's the cause.

Also I've dumped the sensors from the device so I'll check them with the protobuf-inspector to learn the format.

https://gitlab.com/sdm845-mainline/sensors-porting/-/merge_requests/2

$ ps aux | grep rmtfs
 1357 root      0:00 supervise-daemon rmtfs --start --respawn-delay 1 --respawn-max 5 --respawn-period 1800 /usr/sbin/rmtfs -- -o /home/cylon2p0/modemst1 /home/cylon2p0/modemst2 -r -s
 1358 root      0:00 /usr/sbin/rmtfs -o /home/cylon2p0/modemst1 /home/cylon2p0/modemst2 -r -s
 3922 cylon2p0  0:00 grep rmtfs

# dmesg 
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x517f803c]
[    0.000000] Linux version 6.4.0-sdm845 (pmos@CZPRGL-B18SYD3) (aarch64-alpine-linux-musl-gcc (Alpine 13.1.1_git20230722) 13.1.1 20230722, GNU ld (GNU Binutils) 2.40) #12-postmarketos-qcom-sdm845 SMP PREEMPT Tue Sep  5 19:46:29 UTC
[    0.000000] Machine model: Sony Xperia XZ3
[    0.000000] efi: UEFI not found.
[    0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!
[    0.000000] Reserved memory: created CMA memory pool at 0x00000000fe800000, size 16 MiB
[    0.000000] OF: reserved mem: initialized node fastrpc, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: 0x00000000fe800000..0x00000000ff7fffff (16384 KiB) map reusable fastrpc
[    0.000000] OF: reserved mem: 0x00000000bfffc000..0x00000000bfffffff (16 KiB) nomap non-reusable mpss-metadata
[    0.000000] OF: reserved mem: 0x0000000085700000..0x0000000085cfffff (6144 KiB) nomap non-reusable hyp-mem@85700000
[    0.000000] OF: reserved mem: 0x0000000085e00000..0x0000000085efffff (1024 KiB) nomap non-reusable xbl-mem@85e00000
[    0.000000] OF: reserved mem: 0x0000000085fc0000..0x0000000085fdffff (128 KiB) nomap non-reusable aop-mem@85fc0000
[    0.000000] OF: reserved mem: 0x0000000085fe0000..0x0000000085ffffff (128 KiB) nomap non-reusable aop-cmd-db-mem@85fe0000
[    0.000000] OF: reserved mem: 0x0000000086000000..0x00000000861fffff (2048 KiB) nomap non-reusable smem@86000000
[    0.000000] OF: reserved mem: 0x0000000086200000..0x0000000088efffff (46080 KiB) nomap non-reusable tz@86200000
[    0.000000] OF: reserved mem: 0x000000008ab00000..0x000000008befffff (20480 KiB) nomap non-reusable qseecom@8ab00000
[    0.000000] OF: reserved mem: 0x000000008bf00000..0x000000008c3fffff (5120 KiB) nomap non-reusable camera-mem@8bf00000
[    0.000000] OF: reserved mem: 0x000000008c400000..0x000000008c40ffff (64 KiB) nomap non-reusable ipa-fw@8c400000
[    0.000000] OF: reserved mem: 0x000000008c410000..0x000000008c414fff (20 KiB) nomap non-reusable ipa-gsi@8c410000
[    0.000000] OF: reserved mem: 0x000000008c415000..0x000000008c415fff (4 KiB) nomap non-reusable gpu@8c415000
[    0.000000] OF: reserved mem: 0x000000008c500000..0x000000008defffff (26624 KiB) nomap non-reusable adsp@8c500000
[    0.000000] OF: reserved mem: 0x000000008df00000..0x000000008dffffff (1024 KiB) nomap non-reusable wlan-msa@8df00000
[    0.000000] OF: reserved mem: 0x000000008e000000..0x00000000957fffff (122880 KiB) nomap non-reusable mpss@8e000000
[    0.000000] OF: reserved mem: 0x0000000095800000..0x0000000095cfffff (5120 KiB) nomap non-reusable venus@95800000
[    0.000000] OF: reserved mem: 0x0000000095d00000..0x00000000964fffff (8192 KiB) nomap non-reusable cdsp@95d00000
[    0.000000] OF: reserved mem: 0x0000000096500000..0x00000000966fffff (2048 KiB) nomap non-reusable mba@96500000
[    0.000000] OF: reserved mem: 0x0000000096700000..0x000000009787ffff (17920 KiB) nomap non-reusable slpi@96700000
[    0.000000] OF: reserved mem: 0x0000000097b00000..0x0000000097bfffff (1024 KiB) nomap non-reusable spss@97b00000
[    0.000000] OF: reserved mem: 0x000000009d400000..0x000000009f7fffff (36864 KiB) nomap non-reusable framebuffer@9d400000
[    0.000000] OF: reserved mem: 0x00000000fdc00000..0x00000000fdc00fff (4 KiB) nomap non-reusable rmtfs-lower-guard@fdc00000
[    0.000000] OF: reserved mem: 0x00000000fdc01000..0x00000000fde00fff (2048 KiB) nomap non-reusable rmtfs-mem@fdc01000
[    0.000000] OF: reserved mem: 0x00000000fde01000..0x00000000fde01fff (4 KiB) nomap non-reusable rmtfs-upper-guard@fde01000
[    0.000000] OF: reserved mem: 0x00000000ffb00000..0x00000000ffbfffff (1024 KiB) nomap non-reusable debug_mem@ffb00000
[    0.000000] OF: reserved mem: 0x00000000ffc00000..0x00000000ffcfffff (1024 KiB) nomap non-reusable ramoops@ffc00000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x000000017e2bffff]
[    0.000000] NUMA: NODE_DATA [mem 0x17dabe380-0x17dac0fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000017e2bffff]
[    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-0x0000000085cfffff]
[    0.000000]   node   0: [mem 0x0000000085d00000-0x0000000085dfffff]
[    0.000000]   node   0: [mem 0x0000000085e00000-0x0000000085efffff]
[    0.000000]   node   0: [mem 0x0000000085f00000-0x0000000085fbffff]
[    0.000000]   node   0: [mem 0x0000000085fc0000-0x0000000088efffff]
[    0.000000]   node   0: [mem 0x0000000088f00000-0x000000008aafffff]
[    0.000000]   node   0: [mem 0x000000008ab00000-0x000000008c415fff]
[    0.000000]   node   0: [mem 0x000000008c416000-0x000000008c4fffff]
[    0.000000]   node   0: [mem 0x000000008c500000-0x000000009787ffff]
[    0.000000]   node   0: [mem 0x0000000097880000-0x0000000097afffff]
[    0.000000]   node   0: [mem 0x0000000097b00000-0x0000000097bfffff]
[    0.000000]   node   0: [mem 0x0000000097c00000-0x000000009d3fffff]
[    0.000000]   node   0: [mem 0x000000009d400000-0x000000009f7fffff]
[    0.000000]   node   0: [mem 0x000000009f800000-0x00000000bfffbfff]
[    0.000000]   node   0: [mem 0x00000000bfffc000-0x00000000bfffffff]
[    0.000000]   node   0: [mem 0x00000000c0000000-0x00000000fdbfffff]
[    0.000000]   node   0: [mem 0x00000000fdc00000-0x00000000fde01fff]
[    0.000000]   node   0: [mem 0x00000000fde02000-0x00000000ffafffff]
[    0.000000]   node   0: [mem 0x00000000ffb00000-0x00000000ffcfffff]
[    0.000000]   node   0: [mem 0x00000000ffd00000-0x000000017e2bffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000017e2bffff]
[    0.000000] On node 0, zone Normal: 7488 pages in unavailable ranges
[    0.000000] cma: Reserved 32 MiB at 0x00000000fbc00000
[    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.2
[    0.000000] psci: OSI mode supported.
[    0.000000] psci: [Firmware Bug]: failed to set PC mode: -3
[    0.000000] percpu: Embedded 22 pages/cpu s49448 r8192 d32472 u90112
[    0.000000] pcpu-alloc: s49448 r8192 d32472 u90112 alloc=22*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: detected: Hardware dirty bit management
[    0.000000] CPU features: kernel page table isolation forced ON by KASLR
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: console=null  androidboot.verifiedbootstate=orange androidboot.keymaster=1 root=PARTUUID=f9cdf7ba-b834-a72a-f1c9-d6e0c0983896 androidboot.bootdevice=1d84000.ufshc androidboot.baseband=sdm lcdid_adc=856933 androidboot.slot_suffix=_a skip_initramfs rootwait ro init=/init  androidboot.bootloader=xboot oemandroidboot.xboot=1310-7079_X_Boot_SDM845_LA2.0_P_118 androidboot.serialno=QV711YZ01J startup=0x0000c000 warmboot=0x00000000 oemandroidboot.babe09a9=00 oemandroidboot.babe08b3=50000000 oemandroidboot.babe137e=40 oemandroidboot.imei=35854009088395 oemandroidboot.security=0 oemandroidboot.securityflags=0x00000003
[    0.000000] Unknown kernel command line parameters "lcdid_adc=856933 startup=0x0000c000 warmboot=0x00000000", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Fallback order for Node 0: 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1024821
[    0.000000] Policy zone: Normal
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 8.
[    0.000000] software IO TLB: mapped [mem 0x00000000f7c00000-0x00000000fbc00000] (64MB)
[    0.000000] Memory: 3630316K/4164352K available (14720K kernel code, 2014K rwdata, 5880K rodata, 3776K init, 499K bss, 484884K reserved, 49152K 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]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: 768 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.000001] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000207] Console: colour dummy device 80x25
[    0.000291] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=19200)
[    0.000304] pid_max: default: 32768 minimum: 301
[    0.000372] LSM: initializing lsm=capability,integrity
[    0.000470] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000484] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.002458] cblist_init_generic: Setting adjustable number of callback queues.
[    0.002477] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.002547] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.002722] rcu: Hierarchical SRCU implementation.
[    0.002726] rcu:     Max phase no-delay instances is 400.
[    0.004344] EFI services will not be available.
[    0.004668] smp: Bringing up secondary CPUs ...
[    0.006347] Detected VIPT I-cache on CPU1
[    0.006437] GICv3: CPU1: found redistributor 100 region 0:0x0000000017a80000
[    0.006506] CPU1: Booted secondary processor 0x0000000100 [0x517f803c]
[    0.008084] Detected VIPT I-cache on CPU2
[    0.008132] GICv3: CPU2: found redistributor 200 region 0:0x0000000017aa0000
[    0.008183] CPU2: Booted secondary processor 0x0000000200 [0x517f803c]
[    0.009865] Detected VIPT I-cache on CPU3
[    0.009913] GICv3: CPU3: found redistributor 300 region 0:0x0000000017ac0000
[    0.009961] CPU3: Booted secondary processor 0x0000000300 [0x517f803c]
[    0.012318] CPU features: detected: Spectre-v2
[    0.012337] Detected VIPT I-cache on CPU4
[    0.012394] GICv3: CPU4: found redistributor 400 region 0:0x0000000017ae0000
[    0.012444] CPU4: Booted secondary processor 0x0000000400 [0x516f802d]
[    0.014516] Detected VIPT I-cache on CPU5
[    0.014582] GICv3: CPU5: found redistributor 500 region 0:0x0000000017b00000
[    0.014632] CPU5: Booted secondary processor 0x0000000500 [0x516f802d]
[    0.016847] Detected VIPT I-cache on CPU6
[    0.016916] GICv3: CPU6: found redistributor 600 region 0:0x0000000017b20000
[    0.016965] CPU6: Booted secondary processor 0x0000000600 [0x516f802d]
[    0.019392] Detected VIPT I-cache on CPU7
[    0.019464] GICv3: CPU7: found redistributor 700 region 0:0x0000000017b40000
[    0.019515] CPU7: Booted secondary processor 0x0000000700 [0x516f802d]
[    0.019599] smp: Brought up 1 node, 8 CPUs
[    0.019606] SMP: Total of 8 processors activated.
[    0.019612] CPU features: detected: 32-bit EL0 Support
[    0.019614] CPU features: detected: 32-bit EL1 Support
[    0.019618] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.019623] CPU features: detected: Common not Private translations
[    0.019627] CPU features: detected: CRC32 instructions
[    0.019632] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.019635] CPU features: detected: LSE atomic instructions
[    0.019640] CPU features: detected: Privileged Access Never
[    0.019642] CPU features: detected: RAS Extension Support
[    0.019737] CPU: All CPU(s) started at EL1
[    0.019760] alternatives: applying system-wide alternatives
[    0.027302] devtmpfs: initialized
[    0.044668] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.044693] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.045586] pinctrl core: initialized pinctrl subsystem
[    0.046167] DMI not present or invalid.
[    0.046713] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.047700] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.047800] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.047925] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.047976] audit: initializing netlink subsys (disabled)
[    0.048116] audit: type=2000 audit(0.042:1): state=initialized audit_enabled=0 res=1
[    0.048584] thermal_sys: Registered thermal governor 'step_wise'
[    0.048589] thermal_sys: Registered thermal governor 'power_allocator'
[    0.048643] cpuidle: using governor menu
[    0.048919] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.049135] ASID allocator initialised with 32768 entries
[    0.050919] Serial: AMBA PL011 UART driver
[    0.186539] printk: console [ramoops-1] enabled
[    0.206764] pstore: Registered ramoops as persistent store backend
[    0.206860] ramoops: using 0x100000@0xffc00000, ecc: 16
[    0.221987] amba 6041000.funnel: Fixed dependency cycle(s) with /soc@0/stm@6002000/out-ports/port/endpoint
[    0.222294] amba 6045000.funnel: Fixed dependency cycle(s) with /soc@0/funnel@6043000/out-ports/port/endpoint
[    0.222461] amba 6045000.funnel: Fixed dependency cycle(s) with /soc@0/funnel@6041000/out-ports/port/endpoint
[    0.222743] amba 6047000.etf: Fixed dependency cycle(s) with /soc@0/funnel@6045000/out-ports/port/endpoint
[    0.222836] amba 6047000.etf: Fixed dependency cycle(s) with /soc@0/replicator@6046000/in-ports/port/endpoint
[    0.223056] amba 6048000.etr: Fixed dependency cycle(s) with /soc@0/replicator@6046000/out-ports/port/endpoint
[    0.223662] amba 7800000.funnel: Fixed dependency cycle(s) with /soc@0/etm@7740000/out-ports/port/endpoint
[    0.223831] amba 7800000.funnel: Fixed dependency cycle(s) with /soc@0/etm@7640000/out-ports/port/endpoint
[    0.223993] amba 7800000.funnel: Fixed dependency cycle(s) with /soc@0/etm@7540000/out-ports/port/endpoint
[    0.224155] amba 7800000.funnel: Fixed dependency cycle(s) with /soc@0/etm@7440000/out-ports/port/endpoint
[    0.224325] amba 7800000.funnel: Fixed dependency cycle(s) with /soc@0/etm@7340000/out-ports/port/endpoint
[    0.224416] amba 7800000.funnel: Fixed dependency cycle(s) with /soc@0/etm@7240000/out-ports/port/endpoint
[    0.224569] amba 7800000.funnel: Fixed dependency cycle(s) with /soc@0/etm@7140000/out-ports/port/endpoint
[    0.224725] amba 7800000.funnel: Fixed dependency cycle(s) with /soc@0/etm@7040000/out-ports/port/endpoint
[    0.224962] amba 7810000.funnel: Fixed dependency cycle(s) with /soc@0/funnel@7800000/out-ports/port/endpoint
[    0.225131] amba 7810000.funnel: Fixed dependency cycle(s) with /soc@0/funnel@6043000/in-ports/port@5/endpoint
[    0.226804] platform ae00000.display-subsystem: Fixed dependency cycle(s) with /soc@0/clock-controller@af00000
[    0.235879] platform 179c0000.rsc:regulators-0: Fixed dependency cycle(s) with /soc@0/rsc@179c0000/regulators-0/smps5
[    0.236073] platform 179c0000.rsc:regulators-0: Fixed dependency cycle(s) with /soc@0/rsc@179c0000/regulators-0/smps3
[    0.236231] platform 179c0000.rsc:regulators-0: Fixed dependency cycle(s) with /soc@0/rsc@179c0000/regulators-0/smps7
[    0.239447] KASLR enabled
[    0.240474] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.240566] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.240721] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.240873] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.240957] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.241101] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.241192] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.241344] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.258783] raid6: neonx8   gen()  3064 MB/s
[    0.275859] raid6: neonx4   gen()  3143 MB/s
[    0.292938] raid6: neonx2   gen()  2286 MB/s
[    0.310010] raid6: neonx1   gen()  1835 MB/s
[    0.327080] raid6: int64x8  gen()  1359 MB/s
[    0.344159] raid6: int64x4  gen()  1422 MB/s
[    0.361235] raid6: int64x2  gen()  1256 MB/s
[    0.378309] raid6: int64x1  gen()  1097 MB/s
[    0.378390] raid6: using algorithm neonx4 gen() 3143 MB/s
[    0.395380] raid6: .... xor() 2359 MB/s, rmw enabled
[    0.395465] raid6: using neon recovery algorithm
[    0.395755] ACPI: Interpreter disabled.
[    0.397210] iommu: Default domain type: Translated 
[    0.397309] iommu: DMA domain TLB invalidation policy: strict mode 
[    0.397652] SCSI subsystem initialized
[    0.397857] usbcore: registered new interface driver usbfs
[    0.398040] usbcore: registered new interface driver hub
[    0.398145] usbcore: registered new device driver usb
[    0.398369] pps_core: LinuxPPS API ver. 1 registered
[    0.398453] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.398608] PTP clock support registered
[    0.398838] EDAC MC: Ver: 3.0.0
[    0.399420] CPUidle PSCI: Initialized CPU PM domain topology using OSI mode
[    0.399767] qcom_scm: convention: smc arm 64
[    0.400221] scmi_core: SCMI protocol bus registered
[    0.400660] Advanced Linux Sound Architecture Driver Initialized.
[    0.401387] vgaarb: loaded
[    0.401818] clocksource: Switched to clocksource arch_sys_counter
[    0.402072] VFS: Disk quotas dquot_6.6.0
[    0.402245] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.402463] pnp: PnP ACPI: disabled
[    0.409119] NET: Registered PF_INET protocol family
[    0.409369] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.412691] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.412841] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.413006] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.413332] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.414147] TCP: Hash tables configured (established 32768 bind 32768)
[    0.414373] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.414598] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.414853] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.415335] RPC: Registered named UNIX socket transport module.
[    0.415431] RPC: Registered udp transport module.
[    0.415586] RPC: Registered tcp transport module.
[    0.415670] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.415843] PCI: CLS 0 bytes, default 64
[    0.416105] Trying to unpack rootfs image as initramfs...
[    0.429212] kvm [1]: HYP mode not available
[    0.430103] Initialise system trusted keyrings
[    0.430316] workingset: timestamp_bits=42 max_order=20 bucket_order=0
[    0.430703] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.431005] NFS: Registering the id_resolver key type
[    0.431171] Key type id_resolver registered
[    0.431248] Key type id_legacy registered
[    0.431401] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.431484] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.465085] xor: measuring software checksum speed
[    0.467797]    8regs           :  3806 MB/sec
[    0.470448]    32regs          :  3977 MB/sec
[    0.473213]    arm64_neon      :  3673 MB/sec
[    0.473289] xor: using function: 32regs (3977 MB/sec)
[    0.473438] Key type asymmetric registered
[    0.473526] Asymmetric key parser 'x509' registered
[    0.473671] Asymmetric key parser 'pkcs8' registered
[    0.473784] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    0.474086] io scheduler mq-deadline registered
[    0.474170] io scheduler kyber registered
[    0.474271] io scheduler bfq registered
[    0.479601] EINJ: ACPI disabled.
[    0.487319] bob: Setting 3312000-3600000uV
[    0.487320] smps3: Setting 600000-600000uV
[    0.490035] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.491513] msm_serial: driver initialized
[    0.493682] arm-smmu 15000000.iommu: probing hardware configuration...
[    0.493771] arm-smmu 15000000.iommu: SMMUv2 with:
[    0.493946] arm-smmu 15000000.iommu:     stage 1 translation
[    0.494026] arm-smmu 15000000.iommu:     non-coherent table walk
[    0.494169] arm-smmu 15000000.iommu:     (IDR0.CTTW overridden by FW configuration)
[    0.494249] arm-smmu 15000000.iommu:     stream matching with 76 register groups
[    0.494415] arm-smmu 15000000.iommu:     45 context banks (0 stage-2 only)
[    0.495442] arm-smmu 15000000.iommu:     Supported page sizes: 0x61311000
[    0.495528] arm-smmu 15000000.iommu:     Stage-1: 48-bit VA -> 48-bit IPA
[    0.495907] arm-smmu 15000000.iommu:     preserved 0 boot mappings
[    0.506698] brd: module loaded
[    0.511201] loop: module loaded
[    0.512262] spmi spmi-0: PMIC arbiter version v5 (0x50000000)
[    0.517554] Freeing initrd memory: 3752K
[    0.524850] tun: Universal TUN/TAP device driver, 1.6
[    0.525182] thunder_xcv, ver 1.0
[    0.525299] thunder_bgx, ver 1.0
[    0.525467] nicpf, ver 1.0
[    0.525572] e1000: Intel(R) PRO/1000 Network Driver
[    0.525657] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    0.525838] e1000e: Intel(R) PRO/1000 Network Driver
[    0.525923] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.526175] sky2: driver version 1.30
[    0.526573] VFIO - User Level meta-driver version: 0.3
[    0.527546] usbcore: registered new interface driver usb-storage
[    0.540664] i2c_dev: i2c /dev entries driver
[    0.541994] input: pm8941_pwrkey as /devices/platform/soc@0/c440000.spmi/spmi-0/0-00/c440000.spmi:pmic@0:pon@800/c440000.spmi:pmic@0:pon@800:pwrkey/input/input0
[    0.558388] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[    0.558596] ghes_edac: GHES probing device list is empty
[    0.560210] sdhci: Secure Digital Host Controller Interface driver
[    0.560456] sdhci: Copyright(c) Pierre Ossman
[    0.560671] Synopsys Designware Multimedia Card Interface Driver
[    0.560866] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.561769] ledtrig-cpu: registered to indicate activity on CPUs
[    0.562345] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    0.562530] hid: raw HID events driver (C) Jiri Kosina
[    0.566580] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[    0.639147] NET: Registered PF_PACKET protocol family
[    0.639345] Key type dns_resolver registered
[    0.645308] registered taskstats version 1
[    0.645544] Loading compiled-in X.509 certificates
[    0.651187] Btrfs loaded, zoned=no, fsverity=no
[    0.651347] pstore: Using crash dump compression: deflate
[    0.670621] bam-dma-engine 1dc4000.dma-controller: Adding to iommu group 0
[    0.670977] bam-dma-engine 1dc4000.dma-controller: num-channels unspecified in dt
[    0.671109] bam-dma-engine 1dc4000.dma-controller: num-ees unspecified in dt
[    0.673196] bam-dma-engine 17184000.dma-controller: Adding to iommu group 1
[    0.674681] geni_se_qup 8c0000.geniqup: Adding to iommu group 2
[    0.690133] qcom_geni_serial 898000.serial: Invalid line -19
[    0.690826] geni_se_qup ac0000.geniqup: Adding to iommu group 3
[    0.691658] qcom_geni_serial a84000.serial: Invalid line -19
[    0.724412] smps2: Setting 1100000-1100000uV
[    0.724581] arm-smmu 5040000.iommu: probing hardware configuration...
[    0.724650] arm-smmu 5040000.iommu: SMMUv2 with:
[    0.724697] smps3: Setting 1352000-1352000uV
[    0.724786] arm-smmu 5040000.iommu:  stage 1 translation
[    0.724917] arm-smmu 5040000.iommu:  address translation ops
[    0.724982] smps5: Setting 1904000-2040000uV
[    0.725033] arm-smmu 5040000.iommu:  non-coherent table walk
[    0.725208] arm-smmu 5040000.iommu:  (IDR0.CTTW overridden by FW configuration)
[    0.725225] smps7: Setting 900000-1028000uV
[    0.725272] arm-smmu 5040000.iommu:  stream matching with 5 register groups
[    0.725480] arm-smmu 5040000.iommu:  5 context banks (0 stage-2 only)
[    0.725522] ldo1: Setting 880000-880000uV
[    0.725630] arm-smmu 5040000.iommu:  Supported page sizes: 0x63315000
[    0.725779] arm-smmu 5040000.iommu:  Stage-1: 48-bit VA -> 36-bit IPA
[    0.726094] arm-smmu 5040000.iommu:  preserved 0 boot mappings
[    0.726444] ldo2: Setting 1200000-1200000uV
[    0.727571] ldo3: Setting 1000000-1000000uV
[    0.727839] ldo5: Setting 800000-800000uV
[    0.728073] ldo6: Setting 1856000-1856000uV
[    0.728320] ldo7: Setting 1800000-1800000uV
[    0.729462] adreno 5000000.gpu: Adding to iommu group 4
[    0.729767] ldo8: Setting 1200000-1248000uV
[    0.730051] ldo9: Setting 1704000-2928000uV
[    0.730295] ldo10: Setting 1704000-2928000uV
[    0.730346] msm-mdss ae00000.display-subsystem: Adding to iommu group 5
[    0.730627] ldo11: Setting 1000000-1048000uV
[    0.730900] ldo12: Setting 1800000-1800000uV
[    0.731179] ldo13: Setting 1800000-2960000uV
[    0.731414] ldo14: Setting 1840000-1840000uV
[    0.731647] ldo15: Setting 1800000-1800000uV
[    0.731975] ldo16: Setting 2704000-2704000uV
[    0.732248] ldo17: Setting 1304000-1304000uV
[    0.732262] platform ae94000.dsi: Fixed dependency cycle(s) with /soc@0/display-subsystem@ae00000/dsi@ae94000/panel@0/port/endpoint
[    0.732469] platform ae94000.dsi: Fixed dependency cycle(s) with /soc@0/display-subsystem@ae00000/display-controller@ae01000/ports/port@1/endpoint
[    0.732566] ldo18: Setting 2704000-2960000uV
[    0.732903] ldo20: Setting 2704000-2960000uV
[    0.733175] ldo21: Setting 2704000-2960000uV
[    0.733412] ldo22: Setting 2696000-2696000uV
[    0.733642] ldo23: Setting 3300000-3312000uV
[    0.733938] ldo24: Setting 3088000-3088000uV
[    0.734185] ldo25: Setting 3300000-3312000uV
[    0.734421] ldo26: Setting 1200000-1200000uV
[    0.734689] ldo28: Setting 3000000-3000000uV
[    0.734951] lvs1: mapping for mode 3 not defined
[    0.735269] lvs2: mapping for mode 3 not defined
[    0.759251] sdhci_msm 8804000.mmc: Adding to iommu group 6
[    0.759624] sdhci_msm 8804000.mmc: Got CD GPIO
[    0.760670] qcom-qusb2-phy 88e2000.phy: Registered Qcom-QUSB2 phy
[    0.801199] irq: IRQ126: trimming hierarchy from :soc@0:interrupt-controller@b220000-9
[    0.803525] mmc0: SDHCI controller on 8804000.mmc [8804000.mmc] using ADMA 64-bit
[    0.955412] atmel_mxt_ts 5-004a: Family: 166 Variant: 1 Firmware V2.1.AA Objects: 40
[    0.955597] atmel_mxt_ts 5-004a: Direct firmware load for maxtouch.cfg failed with error -2
[    0.957775] mipi-dsi ae94000.dsi.0: Fixed dependency cycle(s) with /soc@0/display-subsystem@ae00000/dsi@ae94000/ports/port@1/endpoint
[    0.958352] msm_dpu ae01000.display-controller: bound ae94000.dsi (ops dsi_ops)
[    0.959722] adreno 5000000.gpu: supply vdd not found, using dummy regulator
[    0.959942] adreno 5000000.gpu: supply vddcx not found, using dummy regulator
[    0.961255] atmel_mxt_ts 5-004a: Touchscreen size X1439Y2879
[    0.961480] input: Atmel maXTouch Touchscreen as /devices/platform/soc@0/8c0000.geniqup/894000.i2c/i2c-5/5-004a/input/input1
[    0.964488] platform 506a000.gmu: Adding to iommu group 7
[    0.966031] msm_dpu ae01000.display-controller: bound 5000000.gpu (ops a3xx_ops)
[    0.972104] [drm:dpu_kms_hw_init:1050] dpu hardware revision:0x40000000
[    0.976645] [drm] Initialized msm 1.10.0 20130625 for ae01000.display-controller on minor 0
[    0.977695] msm_dpu ae01000.display-controller: [drm:adreno_request_fw] loaded qcom/a630_sqe.fw from new location
[    0.977884] msm_dpu ae01000.display-controller: [drm:adreno_request_fw] loaded qcom/a630_gmu.bin from new location
[    1.020457] mmc0: new ultra high speed SDR104 SDHC card at address b368
[    1.021387] mmcblk0: mmc0:b368 LX32G 29.5 GiB 
[    1.024714]  mmcblk0: p1 p2
[    1.401446] Console: switching to colour frame buffer device 180x180
[    1.418491] msm_dpu ae01000.display-controller: [drm] fb0: msmdrmfb frame buffer device
[    1.419430] dwc3 a600000.usb: Adding to iommu group 8
[    1.426758] input: gpio-keys as /devices/platform/gpio-keys/input/input2
[    1.427689] clk: Disabling unused clocks
[    1.428166] ALSA device list:
[    1.428227]   No soundcards found.
[    1.428319] Warning: unable to open an initial console.
[    1.429189] Freeing unused kernel memory: 3776K
[    1.429372] Run /init as init process
[    1.429475]   with arguments:
[    1.429478]     /init
[    1.429480]   with environment:
[    1.429483]     HOME=/
[    1.429486]     TERM=linux
[    1.429489]     lcdid_adc=856933
[    1.429493]     startup=0x0000c000
[    1.429496]     warmboot=0x00000000
[    1.700288] configfs-gadget.g1 gadget.0: HOST MAC b2:ae:e4:a1:26:00
[    1.700301] configfs-gadget.g1 gadget.0: MAC 22:2c:81:ef:a0:2a
[    1.809534] EXT4-fs (mmcblk0p1): mounting ext2 file system using the ext4 subsystem
[    1.811483] EXT4-fs (mmcblk0p1): mounted filesystem 9842ac09-c64a-4270-ae8a-0ac2808a9634 ro without journal. Quota mode: none.
[    2.922579] EXT4-fs (mmcblk0p2): orphan cleanup on readonly fs
[    2.923989] EXT4-fs (mmcblk0p2): mounted filesystem 709dd4dd-761f-4e23-ad27-2b9b0b091219 ro with ordered data mode. Quota mode: none.
[    2.930522] EXT4-fs (mmcblk0p1): unmounting filesystem 9842ac09-c64a-4270-ae8a-0ac2808a9634.
[    2.997759] EXT4-fs (mmcblk0p1): mounting ext2 file system using the ext4 subsystem
[    3.001020] EXT4-fs (mmcblk0p1): mounted filesystem 9842ac09-c64a-4270-ae8a-0ac2808a9634 r/w without journal. Quota mode: none.
[    4.109160] udevd[877]: starting version 3.2.12
[    4.537839] random: crng init done
[    4.609738] udevd[877]: starting eudev-3.2.12
[    4.729614] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 2995200 KHz, changing to: 1766400 KHz
[    4.730052] cpu cpu0: EM: created perf domain
[    4.735851] NET: Registered PF_QIPCRTR protocol family
[    4.738010] cpufreq: cpufreq_online: CPU4: Running at unlisted initial frequency: 2995200 KHz, changing to: 2649600 KHz
[    4.738501] cpu cpu4: EM: created perf domain
[    4.741622]  cs_system_cfg: CoreSight Configuration manager initialised
[    4.742486] remoteproc remoteproc0: remoteproc-adsp is available
[    4.744325] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    4.745905] remoteproc remoteproc1: remoteproc-cdsp is available
[    4.749683] coresight-tmc: probe of 6048000.etr failed with error -13
[    4.751188] ipa 1e40000.ipa: Adding to iommu group 9
[    4.751503] coresight stm0: STM32 initialized
[    4.751830] remoteproc remoteproc2: 5c00000.remoteproc is available
[    4.751885] remoteproc remoteproc2: Direct firmware load for qcom/sdm845/Sony/tama/slpi.mbn failed with error -2
[    4.751889] remoteproc remoteproc2: powering up 5c00000.remoteproc
[    4.751897] remoteproc remoteproc2: Direct firmware load for qcom/sdm845/Sony/tama/slpi.mbn failed with error -2
[    4.751900] remoteproc remoteproc2: request_firmware failed: -2
[    4.752624] ipa 1e40000.ipa: channel 4 limited to 256 TREs
[    4.753134] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    4.757007] ipa 1e40000.ipa: IPA driver initialized
[    4.757639] qcrypto 1dfa000.crypto: Adding to iommu group 0
[    4.795895] ipa 1e40000.ipa: IPA driver setup completed successfully
[    4.821684] remoteproc remoteproc3: 4080000.remoteproc is available
[    4.834848] gpi 800000.dma-controller: Adding to iommu group 10
[    4.836923] gpi a00000.dma-controller: Adding to iommu group 11
[    4.837563] remoteproc remoteproc1: powering up remoteproc-cdsp
[    4.837571] remoteproc remoteproc1: Booting fw image qcom/sdm845/Sony/tama/cdsp.mbn, size 2835988
[    4.837752] rtc-pm8xxx c440000.spmi:pmic@0:rtc@6000: registered as rtc0
[    4.837806] rtc-pm8xxx c440000.spmi:pmic@0:rtc@6000: setting system clock to 1970-02-15T04:19:46 UTC (3903586)
[    4.865968] spmi spmi-0: cleanup_irq apid=219 sid=0x2 per=0x40 irq=7
[    4.865989] irq 87, desc: 00000000e96120ad, depth: 0, count: 0, unhandled: 0
[    4.865994] ->handle_irq():  000000003231f868, pmic_arb_chained_irq+0x0/0x30c
[    4.866010] ->irq_data.chip(): 00000000394a431f, gic_chip+0x0/0x108
[    4.866018] ->action(): 0000000070382aa6
[    4.866021] ->action->handler(): 0000000086750ed8, bad_chained_irq+0x0/0x4c
[    4.866029]      IRQ_LEVEL set
[    4.866031]    IRQ_NOPROBE set
[    4.866032]  IRQ_NOREQUEST set
[    4.866034]   IRQ_NOTHREAD set
[    4.902785] remoteproc remoteproc1: remote processor remoteproc-cdsp is now up
[    4.914486] mc: Linux media interface: v0.10
[    4.953101] qcom,fastrpc remoteproc-cdsp:glink-edge.fastrpcglink-apps-dsp.-1.-1: no reserved DMA memory for FASTRPC
[    4.954638] ath10k_snoc 18800000.wifi: Adding to iommu group 12
[    4.956004] qcom,fastrpc-cb remoteproc-cdsp:glink-edge:fastrpc:compute-cb@1: Adding to iommu group 13
[    4.956778] qcom,fastrpc-cb remoteproc-cdsp:glink-edge:fastrpc:compute-cb@2: Adding to iommu group 14
[    4.957489] remoteproc remoteproc0: powering up remoteproc-adsp
[    4.957497] remoteproc remoteproc0: Booting fw image qcom/sdm845/Sony/tama/adsp.mbn, size 11160092
[    4.957725] qcom,fastrpc-cb remoteproc-cdsp:glink-edge:fastrpc:compute-cb@3: Adding to iommu group 15
[    4.959193] qcom,fastrpc-cb remoteproc-cdsp:glink-edge:fastrpc:compute-cb@4: Adding to iommu group 16
[    4.959365] videodev: Linux video capture interface: v2.00
[    4.960365] qcom,fastrpc-cb remoteproc-cdsp:glink-edge:fastrpc:compute-cb@5: Adding to iommu group 17
[    4.961627] qcom,fastrpc-cb remoteproc-cdsp:glink-edge:fastrpc:compute-cb@6: Adding to iommu group 18
[    4.962258] qcom,fastrpc-cb remoteproc-cdsp:glink-edge:fastrpc:compute-cb@7: Adding to iommu group 19
[    4.963207] qcom,fastrpc-cb remoteproc-cdsp:glink-edge:fastrpc:compute-cb@8: Adding to iommu group 20
[    5.007379] qcom-venus aa00000.video-codec: Adding to iommu group 21
[    5.008115] qcom-venus aa00000.video-codec: non legacy binding
[    5.088055] qcom,fastrpc remoteproc-adsp:glink-edge.fastrpcglink-apps-dsp.-1.-1: no reserved DMA memory for FASTRPC
[    5.088055] remoteproc remoteproc0: remote processor remoteproc-adsp is now up
[    5.089672] qcom,fastrpc-cb remoteproc-adsp:glink-edge:fastrpc:compute-cb@3: Adding to iommu group 22
[    5.091291] qcom,fastrpc-cb remoteproc-adsp:glink-edge:fastrpc:compute-cb@4: Adding to iommu group 23
[    5.335101] NET: Registered PF_INET6 protocol family
[    5.335791] Segment Routing with IPv6
[    5.335799] In-situ OAM (IOAM) with IPv6
[    5.498723] EXT4-fs (mmcblk0p2): re-mounted 709dd4dd-761f-4e23-ad27-2b9b0b091219 r/w. Quota mode: none.
[    5.779774] qcom,apr remoteproc-adsp:glink-edge.apr_audio_svc.-1.-1: Adding APR/GPR dev: aprsvc:service:4:3
[    5.779956] qcom,apr remoteproc-adsp:glink-edge.apr_audio_svc.-1.-1: Adding APR/GPR dev: aprsvc:service:4:4
[    5.780024] qcom,apr remoteproc-adsp:glink-edge.apr_audio_svc.-1.-1: Adding APR/GPR dev: aprsvc:service:4:7
[    5.780089] qcom,apr remoteproc-adsp:glink-edge.apr_audio_svc.-1.-1: Adding APR/GPR dev: aprsvc:service:4:8
[    5.780168] qcom,apr remoteproc-adsp:glink-edge.apr_audio_svc.-1.-1: Adding APR/GPR dev: aprsvc:apr-service:4:9
[    5.780234] qcom,apr remoteproc-adsp:glink-edge.apr_audio_svc.-1.-1: Adding APR/GPR dev: aprsvc:apr-service:4:a
[    5.780308] qcom,apr remoteproc-adsp:glink-edge.apr_audio_svc.-1.-1: Adding APR/GPR dev: aprsvc:apr-service:4:b
[    5.810978] q6asm-dai remoteproc-adsp:glink-edge:apr:service@7:dais: Adding to iommu group 24
[    5.811177] q6asm-dai remoteproc-adsp:glink-edge:apr:service@7:dais: No dais found in DT
[    5.811182] q6asm-dai: probe of remoteproc-adsp:glink-edge:apr:service@7:dais failed with error -22
[    6.190002] Bluetooth: Core ver 2.22
[    6.190095] NET: Registered PF_BLUETOOTH protocol family
[    6.190098] Bluetooth: HCI device and connection manager initialized
[    6.190112] Bluetooth: HCI socket layer initialized
[    6.190117] Bluetooth: L2CAP socket layer initialized
[    6.190136] Bluetooth: SCO socket layer initialized
[   10.916868] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=1970 'gnome-shell'
[   13.482122] rfkill: input handler disabled
[   18.407590] qnoc-sdm845 17900000.interconnect: sync_state() pending due to 898000.serial
[   18.407617] qnoc-sdm845 1500000.interconnect: sync_state() pending due to 898000.serial
[   18.407629] qnoc-sdm845 16e0000.interconnect: sync_state() pending due to 898000.serial
[   18.407640] qcom-rpmhpd 179c0000.rsc:power-controller: sync_state() pending due to 898000.serial
[   18.407655] qnoc-sdm845 17900000.interconnect: sync_state() pending due to a84000.serial
[   18.407664] qnoc-sdm845 1500000.interconnect: sync_state() pending due to a84000.serial
[   18.407674] qnoc-sdm845 1700000.interconnect: sync_state() pending due to a84000.serial
[   18.407683] qcom-rpmhpd 179c0000.rsc:power-controller: sync_state() pending due to a84000.serial
[   54.305079] zram: Added device: zram0
[   54.324048] zram0: detected capacity change from 0 to 3686400
[   54.360707] Adding 1843196k swap on /dev/zram0.  Priority:16383 extents:1 across:1843196k SSDsc
[   62.622450] rfkill: input handler enabled
[   65.387215] rfkill: input handler disabled
phodina commented 1 year ago

The modem is not even listed in the qrtr-lookup

$ qrtr-lookup 
  Service Version Instance Node  Port
       14       1        0    1    14 Remote file system service
       49       1        1    1 16387 IPA control service
       64       1        1    1 16392 Service registry locator service
     4096       1        0    1 16394 TFTP
       15       1       32    5     1 Test service
       66       1       74    5     2 Service registry notification service
       43       2       20    5     5 Subsystem control service
       51       1        5    5     6 CoreSight remote tracing service
       24       1        1    5     8 Thermal mitigation device service
       15       1       33    5     9 Test service
      769       1        0    5    11 SLIMbus control service
       15       1       64   10     1 Test service
       66       1       76   10     2 Service registry notification service
       43       2       23   10     5 Subsystem control service
       51       1       13   10     6 CoreSight remote tracing service
       24       1       67   10     8 Thermal mitigation device service

Here's comparison for enchillada:

$ qrtr-lookup
  Service Version Instance Node  Port
       66       1      180    0     1 Service registry notification service
       43       2       18    0     4 Subsystem control service
       15       1        0    0    22 Test service
       51       1        2    0    23 CoreSight remote tracing service
       21       1        0    0    24 Modem embedded file system service
       24       1        0    0    25 Thermal mitigation device service
       23       1        0    0    26 Thermal sensors service
       22       1        0    0    27 Time service
       36       1        0    0    29 Persistent device configuration service
       49       1        2    0    30 IPA control service
       54       1        0    0    35 <unknown>
       17       1        0    0    37 Specific absorption rate service
       74       1        0    0    38 <unknown>
     4098       0        0    0    39 <unknown>
       34       1        0    0    41 Coexistence service
       41       1        1    0    43 RF radiated performance enhancement service
       55       1        2    0    46 <unknown>
      228       1        0    0    47 <unknown>
       50       1        0    0    51 <unknown>
        9       2        0    0    53 Voice service
        3       1        0    0    54 Network Access Service
       12       1        0    0    55 Phonebook Management service
       10       2        0    0    56 Card Application Toolkit service (v2)
       47       1        0    0    57 Data Port Mapper service
        1       1        0    0    58 Wireless Data Service
        4       1        0    0    59 Quality Of Service service
       26       1        0    0    60 Wireless data administrative service
        7       1        0    0    61 Authentication service
        8       1        0    0    62 AT service
       29       1        0    0    63 Circuit switched videotelephony service
       71       1        0    0    64 <unknown>
       11       1        0    0    65 User Identity Module service
       42       1        0    0    71 Data system determination service
        2       1        0    0    72 Device Management Service
        5       1        0    0    73 Wireless Messaging Service
       48       1        0    0    74 <unknown>
       68       1        0    0    75 <unknown>
       16       2        0    0    80 Location service (~ PDS v2)
       51       1        3    0    84 CoreSight remote tracing service
       69       1        0    0    85 ATH10k WLAN firmware service
       77       1        0    0    90 <unknown>
       33       1        0    0    93 IMS application service
       18       1        0    0    94 IMS settings service
     4099       0        0    0   157 <unknown>
       57       1        0    0   159 <unknown>
       14       1        0    1    14 Remote file system service
       49       1        1    1 16392 IPA control service
       64       1        1    1 16395 Service registry locator service
     4096       1        0    1 16398 TFTP
       15       1       32    5     1 Test service
       66       1       74    5     2 Service registry notification service
       43       2       20    5     5 Subsystem control service
       51       1        5    5     6 CoreSight remote tracing service
       24       1        1    5     8 Thermal mitigation device service
       15       1       33    5     9 Test service
      769       1        0    5    11 SLIMbus control service
       15       1       48    9     1 Test service
       66       1       90    9     2 Service registry notification service
       43       2       22    9     5 Subsystem control service
       51       1        8    9     6 CoreSight remote tracing service
       24       1       83    9     8 Thermal mitigation device service
       15       1       49    9     9 Test service
       51       1       12    9    11 CoreSight remote tracing service
      400       1        0    9    12 <unknown>
     4100      10        0    9    13 <unknown>

The remote processors are enabled by this commit, so could it be due to some regulators not being turn on?

https://gitlab.com/phodina/linux/-/commit/9c5b955432ad74e6d40641e594a4605b889e4ce4

phodina commented 1 year ago

Also what's the purpose of the ~240MiB partition modem? Shouldn't it also get loaded?

phodina commented 1 year ago

Is it possible the UART from bootloader has UART disabled in firmware?

No, UART is enabled by default and you should see the bootloader logs even on a locked bootloader. This is valid for all devices from Tama to Sagami platforms.

Okay, in that case it's probably the design of the adapter that triggers either the Card/Tray detect or is not inserted enough to capture the bootloader logs.

I acknowledge that the kernel will not output anything unless configured correctly.

rhjdvsgsgks commented 1 year ago

sorry for the off topic. i know its the issue for tama. but i cant find any better place to ask. where can i know the mainline progress of yoshino? especially the display part. is it been abandoned? by using kernel from https://github.com/SoMainline/linux/commit/4f0d15d01ffe162d7b8ce5beed1e3eae93d8fb13 , i can only get a working back light and usb gadget for ssh. is display still be worked on?

phodina commented 1 year ago

@rhjdvsgsgks no problem hopefully someone will be able to give you more details, however if you look at the main page of the bug_tacker the yoshino platform is listed in the README as deprecated