ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
so101 has quit []
tristan2_ has joined #asahi-dev
tristan2 has quit [Ping timeout: 480 seconds]
midou_ has quit [Ping timeout: 480 seconds]
lewurm`` has joined #asahi-dev
lewurm has quit [Ping timeout: 480 seconds]
Dementor has quit [Ping timeout: 480 seconds]
balrog has quit [Quit: Bye]
balrog has joined #asahi-dev
midou has joined #asahi-dev
Dementor has joined #asahi-dev
<DannyB>
maz: Got the central scrutinizer. Works great on the m3. Thank you!
kidplayer666 has quit [Quit: Connection closed for inactivity]
jeisom has quit [Ping timeout: 480 seconds]
maria has quit [Ping timeout: 480 seconds]
maria has joined #asahi-dev
john-cabaj has quit [Ping timeout: 480 seconds]
tristan2 has joined #asahi-dev
tristan2_ has quit [Ping timeout: 480 seconds]
Wubbzy04 has joined #asahi-dev
capta1nt0ad has joined #asahi-dev
Wubbzy04 has quit [Ping timeout: 480 seconds]
Wubbzy04_ has joined #asahi-dev
<Wubbzy04_>
Hello! I would really like to become a contributor to the project, I've read a bunch of the blog posts and do understand a chunk of it all!
<Wubbzy04_>
New to a open source contributing though, which brought me here to kinda try to talk to people who already are involved in the process.
<Wubbzy04_>
yknow, im also new to IRC Chats lol so if anyone can actually see this message please say something like "its working" hah
elvishjerricco has joined #asahi-dev
elvishjerricco has quit [Remote host closed the connection]
elvishjerricco has joined #asahi-dev
kidplayer666 has joined #asahi-dev
Wubbzy04_ has quit [Ping timeout: 480 seconds]
capta1nt0ad has quit [Ping timeout: 480 seconds]
crabbedhaloablut has joined #asahi-dev
Wubbzy04 has joined #asahi-dev
crabbedhaloablut has quit [Read error: No route to host]
crabbedhaloablut has joined #asahi-dev
skoobasteeve has quit [Ping timeout: 480 seconds]
crabbedhaloablut has quit [Ping timeout: 480 seconds]
crabbedhaloablut has joined #asahi-dev
Wubbzy04 has quit [Ping timeout: 480 seconds]
Wubbzy04 has joined #asahi-dev
gladiac is now known as Guest8515
gladiac has joined #asahi-dev
Wubbzy04_ has joined #asahi-dev
Guest8515 has quit [Ping timeout: 480 seconds]
Wubbzy04 has quit [Ping timeout: 480 seconds]
Wubbzy04_ has quit [Ping timeout: 480 seconds]
elvishjerricco has quit [Read error: Connection reset by peer]
elvishjerricco has joined #asahi-dev
Wubbzy04 has joined #asahi-dev
veebop has quit [Ping timeout: 480 seconds]
Wubbzy04 has quit [Ping timeout: 480 seconds]
<maz>
DannyB: awesome, thanks for letting me know!
<janneg>
kettenis: is there a reason why we split the main mmio range up in u-boot?
veloek has joined #asahi-dev
m42uko_ has joined #asahi-dev
m42uko has quit [Ping timeout: 480 seconds]
capta1nt0ad has joined #asahi-dev
Wubbzy04 has quit [Ping timeout: 480 seconds]
Wubbzy04 has joined #asahi-dev
topaz has joined #asahi-dev
veebop has joined #asahi-dev
topaz has quit [Quit: topaz]
Wubbzy04_ has joined #asahi-dev
Wubbzy04 has quit [Ping timeout: 480 seconds]
Wubbzy04_ has quit [Ping timeout: 480 seconds]
Wubbzy04 has joined #asahi-dev
jnn has joined #asahi-dev
Wubbzy04 has quit [Ping timeout: 480 seconds]
jn has quit [Ping timeout: 480 seconds]
Wubbzy04 has joined #asahi-dev
Wubbzy04 has quit [Ping timeout: 480 seconds]
jesse-s has quit [Read error: Connection reset by peer]
msteffen has quit [Write error: connection closed]
jluthra has quit [Write error: connection closed]
jesse-s has joined #asahi-dev
annan_person has quit [Read error: Connection reset by peer]
Manouchehri_ has quit [Read error: Connection reset by peer]
jluthra has joined #asahi-dev
annan_person has joined #asahi-dev
Manouchehri_ has joined #asahi-dev
kidplayer666 has quit [Read error: Connection reset by peer]
irth has quit [Read error: Connection reset by peer]
qyousef has quit [Read error: Connection reset by peer]
irth has joined #asahi-dev
sjg has quit [Read error: Connection reset by peer]
sjg has joined #asahi-dev
qyousef has joined #asahi-dev
kidplayer666 has joined #asahi-dev
msteffen has joined #asahi-dev
Wubbzy04 has joined #asahi-dev
<kettenis>
janneg: one reason is the PCIe nGnRE "holes"
<kettenis>
the other reason is to keep the page tables relatively small
<kettenis>
not sure that actually matters
Wubbzy04 has quit [Ping timeout: 480 seconds]
jeisom has joined #asahi-dev
Wubbzy04 has joined #asahi-dev
chadmed has quit [Remote host closed the connection]
Wubbzy04 has quit [Ping timeout: 480 seconds]
Wubbzy04 has joined #asahi-dev
kidplayer666 has quit [Quit: Connection closed for inactivity]
Wubbzy04_ has joined #asahi-dev
Wubbzy04 has quit [Ping timeout: 480 seconds]
Wubbzy04_ has quit [Ping timeout: 480 seconds]
chadmed has joined #asahi-dev
Wubbzy04 has joined #asahi-dev
Wubbzy04 has quit [Ping timeout: 480 seconds]
Wubbzy04 has joined #asahi-dev
c10l has quit [Quit: Bye o/]
c10l has joined #asahi-dev
Wubbzy04 has quit [Ping timeout: 480 seconds]
kidplayer666 has joined #asahi-dev
Wubbzy04 has joined #asahi-dev
Wubbzy04 has quit [Ping timeout: 480 seconds]
Wubbzy04 has joined #asahi-dev
Wubbzy04 has quit [Ping timeout: 480 seconds]
Wubbzy04 has joined #asahi-dev
john-cabaj has joined #asahi-dev
Wubbzy04 has quit [Ping timeout: 480 seconds]
Wubbzy04 has joined #asahi-dev
Wubbzy04 has quit [Ping timeout: 480 seconds]
Wubbzy04 has joined #asahi-dev
chadmed has quit [Ping timeout: 480 seconds]
Wubbzy04 has quit [Ping timeout: 480 seconds]
Wubbzy04 has joined #asahi-dev
i509vcb has joined #asahi-dev
chadmed has joined #asahi-dev
Wubbzy04_ has joined #asahi-dev
Wubbzy04 has quit [Ping timeout: 480 seconds]
Wubbzy04_ is now known as Wubbzy04
kidplayer666 has quit [Quit: Connection closed for inactivity]
<Wubbzy04>
Hello! I would really like to become a contributor to the project, I've read a bunch of the blog posts and do understand a chunk of it all!
<Wubbzy04>
New to a open source contributing though, which brought me here to kinda try to talk to people who already are involved in the process.
<Wubbzy04>
I'd be happy to just document/test or even some other boring task
<Wubbzy04>
though obviously anything works :)
lonjil has quit [Remote host closed the connection]
gmuuywom has joined #asahi-dev
lonjil has joined #asahi-dev
gmuuywom has quit []
c4sp3r has joined #asahi-dev
<ArcaneNibble>
Wubbzy04: pong. your IRC is working
<ArcaneNibble>
how familiar are you with linux kernel dev, or reverse engineering?
<ArcaneNibble>
it'd be nice if Someone(TM) wrote a prores driver
<Wubbzy04>
I had to write a few kernel modules for coursework (college student atm), so I understand the idea behind them
<Wubbzy04>
Id have to learn reverse engineering though, but its something I want to learn so doing it in pursuit of some goal would be cool
erincandescent has joined #asahi-dev
<ArcaneNibble>
there's #asahi-re for binary RE involving macos drivers, but there's also the option of poking the hardware with m1n1
<Wubbzy04>
icic
<Wubbzy04>
do you think there is a preferrable option
<Wubbzy04>
I assume the macos driver approach would be to reverse engineer a macos driver, as to try to re-implement it to work for asahi?
gmuuywom has joined #asahi-dev
c4sp3r has quit [Ping timeout: 480 seconds]
<j`ey>
Wubbzy04: RE to understand the HW, then write something in python with m1n1, then write a linux driver
gmuuywom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Wubbzy04>
oooh
<Wubbzy04>
ok
gmuuywom has joined #asahi-dev
<ArcaneNibble>
yeah, you don't want to re-implement exactly what macos does
<ArcaneNibble>
both for copyright reasons and also because macos might not always be doing something that makes the most sense for linux (or in general!)
<ArcaneNibble>
you should read the copyright and reverse engineering policy first if you haven't already https://asahilinux.org/copyright/
<Wubbzy04>
was just doing that
<ArcaneNibble>
if you're american like we're assuming and studying CS, you're usually supposed to learn about copyright issues in that one engineering ethics course that nobody pays much attention to ;)
<ArcaneNibble>
(not a dig at you, many people don't understand these issues as well as they ideally should)
<Wubbzy04>
LOL yea I did take a class of that nature
<Wubbzy04>
and yea, I am an american studying CS
gmuuywom has quit [Ping timeout: 480 seconds]
<ArcaneNibble>
if you're interested in RE you probably want to set up m1n1 with the hypervisor to trace macOS
<Wubbzy04>
gotcha
<Wubbzy04>
Ill work on that
rootbeerdan has joined #asahi-dev
<DannyB>
FWIW - if you need general advice, i'm not just a developer, i'm also an IP lawyer and i've run RE projects safely before :)
<DannyB>
But i'ma lso not your lawyer, or the project's lawyer, so i can only give you general advice :)
<DannyB>
I was responsible for running the team that added windows C++ ABI support to clang/llvm
<nicolas17>
looks nicer, but Apple keeps fucking with the ObjC ABI and random Hopper features keep breaking with it :(
<DannyB>
Which is the kind of project you want run by an engilawyer
<DannyB>
Anyway, most license clauses are the advanced version of the signs in parking lots that say "not responsible for lost stuff and broken cars" and signs on the back of dump trucks that say "not responsible for broken windshields"
<DannyB>
just because you write the sign doesn't make it true
<DannyB>
(in mos tstates, dump trucks are responsible for breaking your windshield, and in most parking lots, the store is responsible if your car gets broken into or stuff gets stolen)
<nicolas17>
what a local lawyer with a big presence on twitter calls #LeyMataCartel (law kills sign)
eiln has joined #asahi-dev
* ArcaneNibble
is now in not-USA where the worst of the worst RE restrictions are no longer a thing (e.g. DMCA)
* maz
plays Judas Priest's Breaking The Law...
rootbeerdan has quit [Quit: rootbeerdan]
<eiln>
Wubbzy04: if you like video you could help fuzz/test coverage for avd
<eiln>
ArcaneNibble: I might be able to port APR except I don't have one heh
<eiln>
is decode blocked by a lack of a bitstream parser? if so we could add one to the avd repo
<ArcaneNibble>
for prores?
<eiln>
yes
<eiln>
I only see encode in prores.py
<ArcaneNibble>
i don't want to touch linux kernel code because i decompile everything and consider myself super ip-tainted (even though i am quite careful to not taint other people)
<ArcaneNibble>
oh hm, decode might not ever have been done? or might be sitting in the back of my brain somewhere or in a ghidra project somewhere
<ArcaneNibble>
the problem is the integration with whatever linux frameworks would be necessary for a "real" driver
<ArcaneNibble>
v4l2?
<eiln>
yeaah I'm pretty cautious about that. also I don't find disassembly very helpful
<ArcaneNibble>
the spec for prores bitstreams has been leaked and ffmpeg supports it, although this is missing for prores raw (anybody want to take that?)
<eiln>
is bitstream parsing handled entirely in hardware?
<ArcaneNibble>
oh wait, it's not leaked, it's actually publicly available
<eiln>
writing one isn't hard, I'm wondering if we have to write one at all
<eiln>
this affects V4L2 UAPI
<ArcaneNibble>
yeah i know absolutely nothing about v4l2 uapi and it doesn't interest me much
<ArcaneNibble>
have to write... a driver?
<ArcaneNibble>
the m1 max has 2 copies of the prores IP, and the macos driver somehow does some load balancing across them
<ArcaneNibble>
so we probably want some kind of abstraction
<eiln>
write a bitstream parser, sorry
<ArcaneNibble>
it'd be nice to have one for prores raw
<ArcaneNibble>
just so it's not a complete black box
<ArcaneNibble>
but iirc no, we don't need one
jeisom has quit [Remote host closed the connection]
jeisom has joined #asahi-dev
<ArcaneNibble>
ah fuck, prores notes might be on the laptop that died because it got rained on in a field in the netherlands
<ArcaneNibble>
in any case, if the prores decoder has to parse anything at all, it only has to handle the frame header
<ArcaneNibble>
nothing internal
<ArcaneNibble>
yeah, looks like "decode" at this point consists of one screen of ghidra decompile code only
<ArcaneNibble>
guess i must've gotten bored
kidplayer666 has joined #asahi-dev
<sven>
fwiw, most European countries have laws that are somewhat similar to the dmca
eiln has quit [Remote host closed the connection]
<Wubbzy04>
So I want to try and write the prores driver, what would a general start be?
<Wubbzy04>
I should first obviosly get m1n1 up and running
<Wubbzy04>
speaking of- I am unsure the best way to do the development
<Wubbzy04>
I have 2 systems: x86 Personal computer, and my m1 macbook air. I assume I would be doing my tests and stuff for the driver on the air, should I be dual-booting asahi & MacOS?
<Wubbzy04>
I dont anticipate doing any of the contributing from my PC
<ArcaneNibble>
wait, does the m1 have prores?
<Wubbzy04>
oo
<Wubbzy04>
unsure
<Wubbzy04>
from a brief look-up, yes
<Wubbzy04>
it has decoding support for prores
<Wubbzy04>
it does not encode from what I am reading
gmuuywom has joined #asahi-dev
<janneg>
wasn't the hw prores decoder/encoder added with m1 pro/max?
crabbedhaloablut has quit []
<Wubbzy04>
I was under the impression that pro/max added accelerators
<Wubbzy04>
but that the base m1 could still decode
c4sp3r has joined #asahi-dev
<janneg>
accelrators means in this case decoding and encoding engines. those are in apr. the video decoding block supports h264, h265 and vp9
c4sp3r has quit [Ping timeout: 480 seconds]
<Wubbzy04>
oh darn
dylanchapell has quit [Read error: Connection reset by peer]
<lena6>
you'd need to first poke at and trace the hardware with the m1n1 hypervisor and understand how it works, then you can start picturing how a possible driver may be implemented
<lena6>
you can't do step 2 without step 1
dylanchapell has joined #asahi-dev
<ArcaneNibble>
prores is understood well enough to get started on a driver
<ArcaneNibble>
even without the decode descriptor
<ArcaneNibble>
tl;dr it just contains a ring buffer of commands
<Wubbzy04>
due to lack of storage space preventing me from installing m1n1 and by proxy asahi, I think Im gonna try and make my MacOS boot from my external 2TB SSD so that I have an obscene amount of space lol
<Wubbzy04>
at least compared to my 256GB m1 air
<Wubbzy04>
That shouldnt cause issues with building & running m1n1 right/
<Wubbzy04>
I read online that Apple implemented the ability to boot from external devices recently
<lena6>
iBoot can only boot off of the internal SSD, to secure the boot chain
midou has quit [Read error: Connection reset by peer]
gladiac has quit [Quit: Ping timeout (120 seconds)]
gladiac has joined #asahi-dev
midou has joined #asahi-dev
c4sp3r has joined #asahi-dev
c4sp3r has quit [Ping timeout: 480 seconds]
SalimTerryLi has joined #asahi-dev
SalimTer- has quit [Ping timeout: 480 seconds]
c4sp3r has joined #asahi-dev
c4sp3r has quit []
<nicolas17>
yeah but you can get the 20GB of actual OS into an external disk
kraem has quit [Remote host closed the connection]
kraem has joined #asahi-dev
gmuuywom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]