marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
daftfrog[m] has joined #asahi
NikolaCicmil[m] has joined #asahi
bngs[m] has joined #asahi
blazra[m] has joined #asahi
svenpeter[m] has joined #asahi
svenpeter[m] is now known as Guest2146
ganpa[m] has joined #asahi
besmirich[m] has joined #asahi
doggkruse has joined #asahi
emilazy has joined #asahi
quentincestino[m] has joined #asahi
fluffypup[m] has joined #asahi
digitalfx[m] has joined #asahi
PixelyIon[m] has joined #asahi
SocioProphet[m] has joined #asahi
mmlb[m] has joined #asahi
samfromspace[m] has joined #asahi
rob-3[m] has joined #asahi
s-urabe[m] has joined #asahi
mofux[m] has joined #asahi
yuyichao_ has joined #asahi
twoscomplement0b[m] has joined #asahi
Rakshit[m] has joined #asahi
ruach[m] has joined #asahi
fedx[m] has joined #asahi
perigoso[m] has joined #asahi
MatrixTravelerbot[m] has joined #asahi
RowanGoemans[m] has joined #asahi
DanielHuisman[m] has joined #asahi
brentr123[m] has joined #asahi
i509vcb[m] has joined #asahi
anfernee[m] has joined #asahi
lockna has joined #asahi
ted[m]1 has joined #asahi
ella-0[m] has joined #asahi
psydroid has joined #asahi
CristianMgheruan-Stanciu[m] has joined #asahi
dnjmis[m] has joined #asahi
doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AkihikoOdaki[m] has joined #asahi
pho[m] has joined #asahi
arnidg[m] has joined #asahi
davay[m] has joined #asahi
user1tt[m] has joined #asahi
xerpi[m] has joined #asahi
nilsi[m] has joined #asahi
___nick___ has joined #asahi
simjnd[m] has joined #asahi
ar88kk[m] has joined #asahi
doggkruse has joined #asahi
Bastian[m] has joined #asahi
sandornagy[m] has joined #asahi
PhilippvK has joined #asahi
phiologe has quit [Ping timeout: 480 seconds]
haterade[m] has joined #asahi
GenieLotion[m] has joined #asahi
sephamorr[m] has joined #asahi
camr0[m] has joined #asahi
pg12_ has quit [Remote host closed the connection]
pg12_ has joined #asahi
floxf5[m] has joined #asahi
doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Scott[m]1 has joined #asahi
doggkruse has joined #asahi
Izumoo[m] has joined #asahi
darkapex1 is now known as darkapex
kov has quit [Quit: Coyote finally caught me]
marvin24_ has joined #asahi
MagMell[m] has joined #asahi
marvin24 has quit [Ping timeout: 480 seconds]
alessandrorzz[m] has joined #asahi
abilash1994[m] has joined #asahi
blind_system[m] has joined #asahi
ah-[m] has joined #asahi
psykose has quit [Read error: Connection reset by peer]
psykose has joined #asahi
PieroDel[m] has joined #asahi
al3xtjames0 has joined #asahi
al3xtjames has quit [Remote host closed the connection]
<FireFox317>
apple calls it the ´spimc´ in their device tree
<arnd>
firefox317: I'm pretty sure it's different enough from all the ones in mainline linux. I looked through them in the past, and there are a number of other drivers that sort-of all do the same things, but each of them have different register offsets.
<kettenis>
same here
<arnd>
they look more like the result of convergent evolution than being actually the same
<alyssa>
it turns out it's really easy to NIH an spi controller...?
booffo[m] has joined #asahi
<kettenis>
why pay $0.01 to someone else for each chip you produce when one of your hardware developers can cook something up in an afternoon?
<alyssa>
fair
<FireFox317>
kettenis, yeah sure, but they also include a samsung uart in the m1, which is a device that is super easy to implement too
<alyssa>
that one might be royalty free, depending on the history
<alyssa>
?
<alyssa>
Or even more pathological, that one might be Apple IP engineered to maintain b/w compat with the samsung registers so they could ease porting from s5l series
<FireFox317>
alyssa, yeah we are not gonna know the answer unfortunately. But i guess the best way forward would be to use the corellium spi controller, and maybe upstream that some time
<alyssa>
WARNING: Macros with flow control statements should be avoided
<alyssa>
checkpatch doesn't like my solution either.
AnushervonTabarov[m] has joined #asahi
The_DarkFire_[m] has joined #asahi
VitorCardoso[m] has joined #asahi
sajattack[m] has joined #asahi
marcan[m] has joined #asahi
<maz>
alyssa: checkpatch is often best ignored.
<alyssa>
noted.
izzyisles[m] has joined #asahi
bastilian[m] has joined #asahi
yuyichao_ has quit [Ping timeout: 480 seconds]
yuyichao_ has joined #asahi
muscularduckling[m] has joined #asahi
landscape15[m] has joined #asahi
HaoYanQi[m] has joined #asahi
yuyichao_ has quit [Quit: Konversation terminated!]
yuyichao has joined #asahi
dgc[m] has joined #asahi
coolshaurya[m] has joined #asahi
povik has joined #asahi
EdwardAnd[m] has joined #asahi
doggkruse has joined #asahi
darkapex has quit [Ping timeout: 480 seconds]
izica has joined #asahi
tomtastic_ has joined #asahi
tomtastic has quit [Ping timeout: 480 seconds]
shaman_br[m] has joined #asahi
foxlet has joined #asahi
MingcongBai[m] has joined #asahi
facez[m] has joined #asahi
ovf[m] has joined #asahi
happy-dude[m] has joined #asahi
wollymilkcap[m] has joined #asahi
AndrewLee[m] has joined #asahi
darkapex has joined #asahi
<marcan>
firefox317: I suspect it's a *very* distant relative of the samsung one, too far to share a driver
<marcan>
I need to double check how wrong the corellium driver is
<marcan>
but I suspect some of its antics are just poor reverse engineering, and actually match the Samsung SPI control reg a bit better
<marcan>
however, still not close enough to share a driver
<marcan>
just need to spend some time flipping bits
<marcan>
either way I will probably rewrite that SPI driver, because let's face it, everyone who tried to upstream a corellium driver so far ended up rewriting most of it anyway
<marcan>
there's a reason I didn't want to use their code from the start, and it's not because I hate them or love NIH :p
JuniorJPDJ has joined #asahi
<marcan>
I've long had the "they aren't reverse engineering things properly, or actively obfuscating their sources" spidey sense tickling
* alyssa
solved the "rewriting corellium code" dilemma by spending all her time on a driver that corellium doesn't have
<marcan>
:p
<alyssa>
well, 2 such drivers
<j_ey>
marcan: happy to test and stuff SPI
<marcan>
well, I didn't even *look* at their ATC driver (other than that time I opened their... clock driver... that actually starts an ASC?!... and I closed the window in horror) but given what I've heard from people who have... I'm almost certainly better off doing a cleanroom RE from scratch
<marcan>
j_ey: cool :)
<sven>
the register names in the #defines are useful and essentially just taken from the 5 or so kexts
<marcan>
yeah, I do know their took the names from the kexts
<sven>
i don't trust some of the bits they defined though
<marcan>
(that's how I know they're not cleanrooming this either)
<sven>
they are not from the kext afaict and at least some of them are odd
<marcan>
well, given that the "CFG_DONE" in their GPIO driver turned out to be "INPUT_BUFFER_ENABLE", let's just say I have zero faith in their bit defs
<sven>
and all those kexts have a debug XNU arg anyway that will just spit out all those register names
<marcan>
yeah
<j_ey>
marcan: the spi driver is probably 200 lines not including noilerplate
angustrau[m] has joined #asahi
<marcan>
yeah, spi is going to be easy anyway
<j_ey>
b*
<sven>
and the most annoying part about ATC is that XNU seems to re-apply different tunables again and again depending on the mode (at least usb3 vs. thunderbolt)
<marcan>
also need to add irqs to i2c at some point (sven didn't do that yet IIRC)
<marcan>
sven: yeah, I think I saw that
<sven>
yeah, i didn't do irqs yet
<j_ey>
sven: is there one for spi?
<marcan>
so we're going to have to do something about those tunables :(
<marcan>
do we know if they're static or from syscfg yet?
<marcan>
if they're from syscfg there's no way around them having to be in the DT then
<sven>
syscfg?
<sven>
they're from the ADT afaict
<marcan>
yes but which adt
<j_ey>
sven: debug arg for xnu spi, I mean
<sven>
oh
<sven>
no idea
<marcan>
the template or dynamic stuff iBoot inserts
<marcan>
got the prop names?
<sven>
sure, let me check
<sven>
j_ey: no idea, but i can check that as well
<j_ey>
you just lost all your street credibility :p
<marcan>
inorite
<marcan>
in my defense I joined a slightly more serious band doing songs from the same series... which ended up de facto disbanding and doing nothing right after the first meeting :p
<kettenis>
yeah, I play the violin in a symphony orchestra
<kettenis>
bit different ;)
<sven>
fun! :)
<kettenis>
I certainly missed doing it
<marcan>
kettenis: nice!
<marcan>
I love orchestra stuff too, though performances I've seen have mostly been orchestra arrangements of some kind of game or anime music ;)
* eta
used to be in orchestras when she was in school
<eta>
they're pretty fun
<marcan>
certainly sounds like a very different experience
<marcan>
I like listening to it but I don't think I have the chops for it, I'm terrible at reading music and playing things "properly" :)
<eta>
oh, I was pretty crap :p
<eta>
but trombonists were hard to come by, so they mostly put up with that >_>
<marcan>
hah
<marcan>
how about euphos, enough of those?
<marcan>
(there's a whole anime that basically starts off as a "oh we need someone to play the eupho" meme)
<eta>
same problem
<marcan>
thought so
<eta>
in fact I think most trombonists start off playing euphonium and then graduate to the trombone
<eta>
at least I did :p
<marcan>
ahaha
<marcan>
nice
<marcan>
I've been pondering if I want to try playing a wind instrument some day... though I keep thinking of getting an EWI instead, because, well, that sounds like the kind of thing I'd enjoy
<marcan>
(digital wind instrument thing)
<eta>
oh yeah, I've kind of heard of those; they seem cool
<eta>
the issue I have is I have no reason to play the trombone any more now that I don't have regularly scheduled things forcing me to do it
<marcan>
yeah, that's how it goes isn't it
<eta>
I'm slowly working on trying to arrange stuff I want to play for myself and then recording that
<marcan>
I stopped going to the jazz jams late last year when covid was going into an even worse wave, and am only restarting now
<eta>
but that requires me to be good at transcribing, which I'm not :p
<kettenis>
we're blessed with our brass section
<marcan>
definitely lost some chops in the meantime
<marcan>
eta: it's all down to practice there
<marcan>
I've done song re-creations to learn styles and such
<marcan>
your ear gets better :)
<sven>
isn't practice that answer to everything? :D
<eta>
that's reassuring!
<eta>
I mean I usually find I have to EQ stuff quite heavily to isolate voices / instruments
<marcan>
have you tried spleeter?
<eta>
nope; what's that
<marcan>
AI stem splitter thing
<eta>
oh
<marcan>
basically the EQ thing, but magic
<eta>
that's cheating, but I'm also totally going to try it :p
<marcan>
it's... quite impressive
<marcan>
I mean, it won't split *everything*, there are only some pretrained models
<marcan>
for just vocals/inst, or vocals/drum/bass/piano/other, and I think one or two more
<eta>
"Transcribe!" can be decent enough
<marcan>
it's not perfect but it sure helps
<eta>
at least it can detect chords / likely notes for you sometimes
<marcan>
ah heh
<marcan>
yeah, another thing I do a lot is use mpv-visualizer
<marcan>
bass/drums/vocals are spleetered, all the synths are re-done
<marcan>
(and the FX added etc)
<marcan>
sven: I know right?
<eta>
I mean I had years of trombone lessons
<eta>
but most of my music stuff was associated with school, so
<marcan>
right
<sven>
yeah. it's partly because i know i have lessons once a week and don't want to show up being like "yeah... i didn't make any progress since last week"
<marcan>
and I guess learning how to play classical doesn't really teach you theory?
<marcan>
sven: mood
<eta>
sven, that was a lot of my motivation too >.<
<marcan>
do I sense ADHD? :p
<eta>
marcan, yeah, my trombone teacher would occasionally mention how things were linked to various theory concepts, but I never really took a lot of it in
<sven>
and then it's also stuff like "drag your hand with the elbow to the right to play this run much faster"
<marcan>
yeah, fingering stuff
<sven>
which is kinda obvious in hindsight but hard to realize on your own
<marcan>
my technique was terrible
<sven>
yup
<eta>
the people who understood music theory just seemed to be on another plane of existence that I couldn't hope to reach :p
* eta
was like: "I play instrument, make loud sound"
<marcan>
honestly, once you get down to it, it's very much in the same class as programming
<sven>
and suddenly with proper technique playing at speed suddenly felt simple and good instead of "ugh.. how can this possibly work at all"
<marcan>
in the end it's just math and algorithms
<eta>
the abstractions seem broken though
<marcan>
the abstractions are, well, outdated at least
<eta>
like a lot of it seems internally inconsistent
<marcan>
but once you get past the *terrible* terminology it does make sense
<eta>
at least it's not just me :p
<marcan>
though since it's descriptive it doesn't exactly have one "right" answer for everything
<eta>
yeah. a lot of the reason for learning it for me would be "how do I use this to make music that sounds good"
<eta>
to which the answer is usually "well you don't; we just describe how the people who know how to make music do things"
<marcan>
yeah, er
<marcan>
again why I went for jazz lessons
<marcan>
:)
<eta>
maybe I should try and get a teacher specifically for improv purposes
<marcan>
turns out jazz is kinda the foundation of most music I like (j-pop etc, at least the good stuff anyway)
<marcan>
so now I'm like "oooh tritone substitution" :)
<eta>
ah, you've ascended to said plane of existence, I see
<sven>
yeah, definitely get a teacher. most of them do online lessons these days so you're not really limited to a local one either
<eta>
<marcan> do I sense ADHD? :p ← for some reason about 12 people have made this observation
<eta>
(about me that is :p)
<marcan>
let's just say it's been a pattern
<sven>
and i seriously can't recommend a good teacher enough. worth every minute
<marcan>
and it took me about a decade too long to do something about it
<marcan>
(and I'm glad I did)
<eta>
if anything the most convincing smoking gun I've seen is like. apparently caffeine's effects are different for ADHD people
<eta>
for more neurotypical people it apparently like. gives you some energy or something
<eta>
I find it does ...nothing
<eta>
and other people who have ADHD have reported such an experience, so :p
<eta>
(also the whole ASD/ADHD comorbidity thing)
<marcan>
yup.
<marcan>
for me it's... variable.
<marcan>
but it's definitely not the same clear effect NT people get
<eta>
I'm not really sure what I'd want to do with an ADHD diagnosis even if that were the case
<marcan>
well, medication helps
<eta>
but I'm not convinced I have especially great degrees of problem :p
<eta>
(I mean, I guess maybe being able to do things without enforced external structure would be neat sometimes)
<marcan>
I got diagnosed last year after I realized I would spend entire days thinking of starting doing something I *wanted* to do, with a deadline of tomorrow, and then failing.
<marcan>
at that point it was clearly a problem and not something I could just brush off
<eta>
I mean I've been thinking about working on a side project for the past 3 days >_>
<eta>
there's generally some invisible barrier that I need to push myself to get over and then once I've started it's fine though
doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eta>
the other thing is, the UK NHS basically means getting diagnosed is somewhat of an impossibility
<eta>
(or at least it'd take a few years or something, who knows)
<sven>
better get started today then!
<sven>
or, well, moday i guess since everything will be closed today
<eta>
one thing at a time; I'm trying to extract gender pills out of that system at present :p
<marcan>
eta: you know that trans people are also like 6 times more likely to be ADHD than the general population? ;)
<eta>
fasdhklfhsadf
<eta>
I. did not know that
<marcan>
juuust saying~
<marcan>
actually it might be 8 times
<eta>
ironically this is one of those self-defeating problems
<marcan>
but yeah, I got lucky in japan... took about a month since I had to schedule a test, but then I had my diagnosis
<marcan>
eta: it absolutely is
<eta>
like. getting things out of the NHS usually requires a degree of organization :p
<marcan>
that is also an ADHD meme :p
<marcan>
and I'm... sorry you have to deal with the NHS for gender stuff
<marcan>
haven't heard great things about that system :(
<eta>
thankfully the catgirl collective that helped me figure out said gender also helped me get offlabel HRT
<eta>
and the system will at least prescribe more HRT for you if you're already taking it yourself
<marcan>
ah yes, that trick
<marcan>
I've heard that story enough times
<alyssa>
are y'all talking about trans/ND intersectionality without me?
<alyssa>
r00d
<alyssa>
eta: you do know the catgirl collective is entirely ND right?
<Glanzmann>
j_ey: As I mentioned yesterday, a few days ago VMware ESX 7 U 3 was released, I had trouble booting it on my servers, so I tried different things and now have a workaround: Boot using UEFI instead of CMS (bios simulation)
<Glanzmann>
j_ey: Sorry, that was for another channel.
<j_ey>
Glanzmann: oh, missed your other reply. ok!
mort_ has quit [Quit: Ping timeout (120 seconds)]
mort_ has joined #asahi
povik has quit [Remote host closed the connection]
<krbtgt>
i think linux irc channels attract more neurodiverse people
<i509vcb[m]>
For me it's mainly a lack of experience with the functions in libc for Linux and sometimes jargon used to explain the things
darkapex1 has joined #asahi
darkapex has quit [Ping timeout: 480 seconds]
darkapex2 has joined #asahi
darkapex1 has quit [Ping timeout: 480 seconds]
___nick___ has quit [Ping timeout: 480 seconds]
yuyichao_ has quit [Ping timeout: 480 seconds]
frode_0xa has quit [Remote host closed the connection]