#
#asahi-dev · 2026-06-27 13:52
chadmedthat crashes the cm3, 0x10000000-0x10001000 is where the firmware lives isnt it?
#asahi-dev · 2026-06-27 13:52
sofusthat was what i meant by SP == SRAM_BASE is wrong
#asahi-dev · 2026-06-27 13:51
sofusshould it not be at 0x10000000 + 0x4000
#asahi-dev · 2026-06-27 13:50
chadmednah my issue is i put the logbuffer at 0x10014000, set all its bytes to 0, readl(avd->sram + 0x4000) and get what looks like encoded instructions (read cursor: 3716147649)
#asahi-dev · 2026-06-27 13:49
sofuswhen i figure out how to use stream one i should be flying
#asahi-dev · 2026-06-27 13:49
sofustranslation fault: status:0x80180002 stream:1 code:0x2 (NO PGD FOR IOVA) at 0xdea0
#asahi-dev · 2026-06-27 13:48
sofusis it still the same issue?
#asahi-dev · 2026-06-27 13:48
sofusyeah okay, fixing the sram_base also fixed my issue :p
#asahi-dev · 2026-06-27 13:48
chadmedeh its almost midnight im sure im missing something very stupid and obvious that i will wake up, see immediately and be extremely embarrassed about
#asahi-dev · 2026-06-27 13:47
chadmedyeah
#asahi-dev · 2026-06-27 13:45
sofusno actually i think i was wrong, the sizes in the dt should be right
#asahi-dev · 2026-06-27 13:39
chadmed"yeah cm3 ram base is 0x20000000 except for all the times its not also you might get 4k of ram or 512m of ram who knows"
#asahi-dev · 2026-06-27 13:39
chadmedoh its banked smh
#asahi-dev · 2026-06-27 13:38
sofusiirc, the rest lives another place
#asahi-dev · 2026-06-27 13:37
chadmedah that'd do it then. also interesting that the ap only has 16k of the cm3's memory mapped
#asahi-dev · 2026-06-27 13:36
sofusfor some reason i thought sp was 0x10000000 ??
#asahi-dev · 2026-06-27 13:35
sofuschadmed: sorry SP == SRAM_BASE is wrong
#asahi-dev · 2026-06-27 13:32
myriaintegralpilot: aside, god, that makes me feel old
#asahi-dev · 2026-06-27 13:26
chadmed(ive added a memset/memclear and initialised 0x10010000 + 0x4000 to all zeroes, so after i do a bootup log the write cursor should be 1)
#asahi-dev · 2026-06-27 13:26
chadmedhm ive got the ring buffer working on the fw side but idk if the sram mapping is correct. ive put the ring buffer at 0x10010000 + 0x4000, but reading avd->sram + 0x4000 which should be the write cursor gives nonsense values that may or may not be encoded instructions
#asahi-dev · 2026-06-27 13:23
chadmedback in my day naplan was an OMR "shade the bubble" piece of paper
#asahi-dev · 2026-06-27 13:22
chadmedlets goooo
#asahi-dev · 2026-06-27 13:19
integralpilotanyway thanks again, can't believe that fixed it, so happy rn
#asahi-dev · 2026-06-27 13:19
integralpilotthe very first thing played on M3 (well, base at least) that i used to test it was this lol, traumatic tone that every aussie kid knows: https://www.youtube.com/watch?v=d34JBc51PGQ
#asahi-dev · 2026-06-27 13:17
integralpilotit was the bus keeper masks
#asahi-dev · 2026-06-27 13:17
integralpilotaudio is like fully working, i can't believe it
#asahi-dev · 2026-06-27 13:15
integralpilotTYSM
#asahi-dev · 2026-06-27 13:15
integralpilotIT WORKS NOW!!!!
#asahi-dev · 2026-06-27 13:02
integralpilotah okay, thanks!
#asahi-dev · 2026-06-27 13:01
JamesCalligeros[m]Try swap them
#asahi-dev · 2026-06-27 13:01
JamesCalligeros[m]The 0xf0f0/0x0f0f in the codec dt nodes
#asahi-dev · 2026-06-27 13:00
integralpilotim a bit confused actually sorry, what are those?
#asahi-dev · 2026-06-27 12:57
integralpilotwill try tmrw, thanks
#asahi-dev · 2026-06-27 12:45
JamesCalligeros[m]Try fiddling with the bus keeper masks
#asahi-dev · 2026-06-27 12:37
integralpiloti can't imagine what is going wrong though
#asahi-dev · 2026-06-27 12:37
integralpilotso not a good sign
#asahi-dev · 2026-06-27 12:36
integralpilotin the data, i just see like tiny numbers near 0 and 32767 and -32768
#asahi-dev · 2026-06-27 12:35
integralpilotthats what i thought, but then i tried to make it what seemed like the right one and it got worse so i think i was just reading the data wrong
#asahi-dev · 2026-06-27 12:34
JamesCalligeros[m]As in the dai link has the wrong mapping?
#asahi-dev · 2026-06-27 12:21
integralpilotis that possible?
#asahi-dev · 2026-06-27 12:21
integralpilotokay so i think what the issue is is that the channel map might be wrong
#asahi-dev · 2026-06-27 12:12
integralpilotnow time to analyse!
#asahi-dev · 2026-06-27 12:12
integralpilotokay so just finished collecting the raw data
#asahi-dev · 2026-06-27 10:40
integralpilotadt had v/i the other way around so tried that but didnt fix it
#asahi-dev · 2026-06-27 10:38
JamesCalligeros[m]The slots are probably fine
#asahi-dev · 2026-06-27 10:37
integralpilottrying to get the raw samples now (gave up trying to fiddle around the slot numers blind)
#asahi-dev · 2026-06-27 10:35
JamesCalligeros[m]You might have to patch out the speakersafetyd interlock from the kernel driver
#asahi-dev · 2026-06-27 10:35
JamesCalligeros[m]Did you manage to get the raw samples from the visense capture pcm?
#asahi-dev · 2026-06-27 10:34
integralpilotyeah, i tried a little bit more today but still not right so gave up
#asahi-dev · 2026-06-27 10:33
JamesCalligeros[m]Still getting garbage vi data?

plus ›