2021-08-03
01:03chadmedmarcan: late to the party but yeah DCP is probably more important at this stage than an install script. imo the kind of people who would want to play around with the WIP stuff (i.e. people who dont mind that they cant boot a live usb and look at plasma desktop just yet) dont mind the extra work required to set it up at this stage, so getting everything working is a better use of time than making what is done more
01:05amwCan some one decode SError crash? I have a crash here https://raw.githubusercontent.com/amworsley/asahi-wiki/main/images/nvme-crash.png
01:06amwI can't link the Linux code names with the relevant ARM64 Exception terms - e.g. e1h_64_error -> is that Hypervisor exception, PL1 ?
01:08amwPSTATE is clear enough - but is that exception because it accessed a bad address, illegal (PAN active?) address and if so what address?
01:31amwGreat - is there a way to point to how I can learn how to decode this - the disconnect of the linux info from the ARM manuals is very frustrating
01:31quarkyalice has quit [Ping timeout: 480 seconds]
01:32quarkyalice has joined #asahi
01:38chadmedlooking at the stack dump it seems like apple_mbox_hw_can_send is what is offending the system. serrors are caused by illegal memory access so if the error is infinitely reproducible the easiest way would be to just trace the stack while you let it happen and see what the mbox driver is trying to do. kdebug maybe?
02:24amwchadmed: Thanks - my ARM64 manual doesn't have the term SERROR in it at all - but google found another ARM document on Exception types that says it is an System Error -> memory system
02:25amwIt's very reproducible so that's my way in - at least now thanks to you I have some idea of what it is complaining about
02:25phiologe has joined #asahi
02:28PhilippvK has quit [Ping timeout: 480 seconds]
02:36chadmedno problems mate. id love to be able to help out with debug work but we're locked down right now and i dont have access to hardware
02:54chadmedyeah, queensland. we had life basically back to normal for most of 2020 and into this year too, but because the federal government (here responsible for procuring and administering vaccines) did not procure or administer vaccines because its full of anti vaxxers we are currently at 16% vax rate and having Delta outbreaks everywhere
03:08marcanamw: I think SPI is another smasung derivative, needs some digging to see if we already have a driver for similar enough hardware
03:09marcanamw: re SError, unfortunately there's no useful info there. Usually SError is a fabric error on M1, and to decode that you need a dump of some proprietary registers
03:09marcanI should add a patch for that to a branch somewhere, probably won't ever get merged but we should be running it for debugging
03:10marcanthe proprietary registers tell you exactly what address and access type caused the SError
03:14amwmarcan: So I'm ok to patch another (Samsung based?) spi driver et cetera based on my readings of corellium code
03:21marvin24_ has joined #asahi
03:22marcancorellium wrote their own uart driver which was dumb, as linux already had a samsung uart driver we could adapt
03:23marcanthey also did that for i2c which again was silly, we know there's a driver that is nearly identical already :p
03:23marcanthe SError stuff is another story, that's core arch code and I don't know if there is any precedent for having SoC-specific syndrome register dumps in there
03:25marvin24 has quit [Ping timeout: 480 seconds]
03:25marcanthe reason why I usually avoid reading corellium code is not because I hate them, it's because it's often wrong and would lead to red herrings or point toward the wrong approach
03:28marcanI would treat it as license-incompatible out of an abundance of caution, but reading it is not banned or anything
03:28marcanI'm more worried about it leading people down wrong paths than about the licensing question
04:01quarkyalice has quit [Remote host closed the connection]
04:02quarkyalice has joined #asahi
04:03roxfan has quit [Read error: Connection reset by peer]
04:04roxfan has joined #asahi
04:11marcanoh and if you meant reading corellium code for the SError stuff: I don't know if they have that at all, but it's in m1n1's exception handler, so use that as a reference (the L2C_* registers)
04:12marcanI don't think they cared about SErrors, seeing as they actually disabled them, presumably to work around driver bugs ;)
04:13marcanok, I'm going to do a cleanup pass on the DCP commits then spend a day or two looking into an install script. worth giving it that much time.
04:15boardwalk has joined #asahi
04:23amwI think I might try and get this error under the hypervisor as it might be a much better way to debug exceptions
04:29marcanthe hypervisor does not forward SErrors, so yes, you'll get the m1n1 dump in that case with the L2C registers
04:30marcanactually, it'll throw you into the python handler, let me check if the L2C regs are dumped there
04:34amwok - will have a go and report back. I think I need to disable the first USB port in the device tree so m1n1 can use it
04:40marcanbut you need to run m1n1 under the hv first to be able to boot linux; you should be able to use the second USB port to talk to the inner m1n1 and launch linux that way
04:40marcanalternatively, concatenate m1n1 and linux using payload mode and load it directly under the hv
04:41amwI've just been doing run_guest.py as per https://github.com/AsahiLinux/docs/wiki/SW:Linux#under-hypervisor
04:55x56 is now known as Guest3123
04:55x56 has joined #asahi
04:56Guest3123 has quit [Ping timeout: 480 seconds]
05:58svenpeter[m]That serror is because a clock is not enabled
05:59svenpeter[m]Do you the nvme branch? You’ll have to manually enable the clocks for the ANS node then before booting
06:01amwsvenpeter[m]: I have both the nvme branch and the dart combined (but it is the nvme that introduces the problem...)
06:03svenpeter[m]Yes it is
06:03svenpeter[m]Try that pmgr adt enable calls with /arm-io/ans or so
06:06amwproxyclient/experiments/i2c.py has "...run pmgr_adt_clocks_enable for /arm-io/i2c0 before this script."
06:07amwI assume something similar but for "ans" - don't understand the syntax so will require some reading...
06:21jbowen has quit [Remote host closed the connection]
06:22jbowen has joined #asahi
06:32marcanhttps://developer.limneos.net/index.php?ios=5.0&framework=CoreVideo.framework&header=CVPixelBuffer.h
06:41bps has joined #asahi
06:51amwpipcet[m]: Thanks - my MBP is down doing an update/charging (run it out of battery under m1n1 I think)
06:52amw*Sorry that was MBA - I think it might have been running m1n1 when I closed the lid till the battery went flat - it wouldn't start up till I plugged in a power cable to a good USB charger
07:11pipcet[m](the SMC stuff to query battery status and all that stuff isn't hard, but I'm waiting for the ASC mailbox stuff to work properly)
07:17VinDuv_ is now known as VinDuv
07:27bps has quit [Ping timeout: 480 seconds]
07:33svenat this point i think the mailbox driver should probably really only implement the "dumb" mailbox interface. that's at least what all other drivers in there also do
07:49amwI'm getting a ImportError on "python3.9 ./proxyclient/m1n1/adt.py --retrieve dt.bin" - attempted relative import with no known parent package
07:53marcanhttps://github.com/AsahiLinux/m1n1/blob/78d5b073e375edbb5c38c10fd809ebd13535df1c/proxyclient/experiments/dcp.py#L143
07:53rkjnsn[m]For the installer, would it be at all reasonable to build a self-contained binary using, e.g., Rust, rather than the install script needing to download a full Python interpreter?
07:55marcaninstallation is going to involve a 1GB recovery image, so 50MB or whatever for python is rounding error
07:56rkjnsn[m]Smaller download, conceptually simpler (to my brain, at least) would be the advantages that would push me that way. Not relevant, since I probably won't be hacking on it, but I also find compiled languages to be more productive for me personally since the kinds of mistakes I tend to make most are the ones compilers are good at catching before even running the code.
07:59bps has joined #asahi
07:59rkjnsn[m]Not having to maintain the stripped-down Python package, I guess. Since the project already has a lot of Python code, though, I will readily admit that's a good point for using it rather than introducing a new language.
08:09amwI think my changes to proxyclient/m1n1/shell.py have broken proxyclient/tools/shell.py :-( sorry
08:26amwUnder shell.py - I had to fix the broken help code though - just did a try to catch the exception when no Signature found
08:47chadmedrkjnsn: there are ways to package/bundle the python interpreter and whatever modules you need with your script and have it run in a self-contained way. as marcan said, the size added by doing this is insignificant
08:48chadmednow if it were _just_ the script required as a self-contained program without such a huge external dependency then i think most would agree that writing a proper program would be beneficial. but as it stands, its more work for questionable benefit
10:34amwsven: nvme + dart + ans clocks can see nvme drive - now how would I re-partition it for Linux? - https://raw.githubusercontent.com/amworsley/asahi-wiki/main/images/nvme-boot.jpg
10:36sveni strongly recommend against doing that for now fwiw. the mailbox driver is still quite a hack and the co-processor is not shut down cleanly. now if you're still brave enough to continue: if you follow that general setup guide you should have two FAT partitions there
11:00_alice has quit [Quit: Bridge terminating on SIGTERM]
11:00go4godvin has quit [Quit: Bridge terminating on SIGTERM]
11:00perigoso[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00maxim[m] has quit []
11:00davay[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00angustrau[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00jammie[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00bfredl[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00brentr123[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00noc0lour[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00PthariensFlame[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00sephamorr[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00stttcccccccccccc[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00sandornagy[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00spot[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00svenpeter[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00Dementor[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00The_DarkFire_[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00YichaoYu[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00ted[m]1 has quit [Quit: Bridge terminating on SIGTERM]
11:00Izumoo[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00ganpa[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00mulderje has quit [Quit: Bridge terminating on SIGTERM]
11:00ovf[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00vivithecanine[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00fluffypup[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00AndrewLee[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00andi-[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00Bastian[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00AkihikoOdaki[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00booffo[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00AlessandroFerrari[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00TypoKign[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00AONeiLL[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00alexanderwillner[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00cepheus has quit [Quit: Bridge terminating on SIGTERM]
11:00jevinskie[m] has quit []
11:00ll3macorn[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00MingcongBai[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00marcan[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00PeterHilgenfeld[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00nemanjan00[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00MagMell[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00facez[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00Spectrejan[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00SocioProphet[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00rob-3[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00quentincestino[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00uur[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00dpatterbee[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00julianp[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00alicela1n has quit [Quit: Bridge terminating on SIGTERM]
11:00i509vcb[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00fedx[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00ella-0[m] has quit []
11:00Aaron[m]1 has quit [Quit: Bridge terminating on SIGTERM]
11:00Serentty[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00alessandrorzz[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00davidrysk[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00bastilian[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00DanielHuisman[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00NikolaCicmil[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00blazra[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00izzyisles[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00Ferluci[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00PixelyIon[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00anfernee[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00rkjnsn[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00s-urabe[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00pitust[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00xerpi[m] has quit []
11:00Emantor[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00samfromspace[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00M32thSystem[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00bngs[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00RowanGoemans[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00c1truz[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00pipcet[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00rowang077[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00user1tt[m] has quit []
11:00TellowKrinkle[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00PieroDel[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00CristianMgheruan-Stanciu[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00mmlb[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00ruach[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00ryanhrob[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00haterade[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00mofux[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00Scott[m]1 has quit [Quit: Bridge terminating on SIGTERM]
11:00foxlet has quit [Quit: Bridge terminating on SIGTERM]
11:00ilovetrains[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00hablerentand[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00cavoirom[m] has quit [Quit: Bridge terminating on SIGTERM]
11:00LeviLynch[m] has quit [Quit: Bridge terminating on SIGTERM]
11:13M32thSystem[m] has joined #asahi
11:49amwsven: Thanks - I might just focus on the keyboard/spi for the moment - but fun to get this far...
11:58deed02392 has joined #asahi
12:07marcanthe installer will bundle a bunch of stuff anyway, we need stuff like img4tool and possibly some userspace filesystem stuff depending on how fancy we want to get with the linux install side
12:07marcanso it'll be python driving the UI and download and file operations, plus some helper tools for specific things that already exist
12:19svenkettenis: thanks for updating the device tree dart nodes in u-boot btw. that made booting with pci support much less painful :-)
12:36j_eydeed02392: iBoot sets up a framebuffer, but without the DCP resolution can't be changed, brightness, colour grading(I think), stuff like that
12:40deed02392i was watching how it seemed to be responsible for drawing the tiles and cursor etc. on the screen as well, from the framebuffer. this was being re'd in the latest DCP youtube video i watched
13:22phiremarcan: you know how you said the actual dcp hardware only supports 3 surfaces? what happens when you set all four?
13:25amwFinally got the nvme/USB running under the HV - needed to compile in the kernel parameters into the kernel image - updated https://github.com/AsahiLinux/docs/wiki/SW:Linux#nvme--usb
13:27pipcet[m] has joined #asahi
13:27pipcet[m]there is, but the kernel takes its command line from one of three locations (built-in, device tree, passed by boot loader) and it's a bit hard to make sure it's using the right one
13:37yuyichao has quit [Ping timeout: 480 seconds]
13:46alyssaj_ey: for a second i thought this would be a meme, then i realized it'd be a marcan work stream, now i'm still worried it'll be a rickroll
13:51Caedus[m] has joined #asahi
13:51Aaron[m]1 has joined #asahi
13:51ah-[m] has joined #asahi
13:51alessandrorzz[m] has joined #asahi
13:51alexanderwillner[m] has joined #asahi
13:51_alice has joined #asahi
13:51Amey has joined #asahi
13:51alicela1n has joined #asahi
13:51andi-[m] has joined #asahi
13:51AONeiLL[m] has joined #asahi
13:51anfernee[m] has joined #asahi
13:51angustrau[m] has joined #asahi
13:51AkihikoOdaki[m] has joined #asahi
13:51avx3[m] has joined #asahi
13:51davay[m] has joined #asahi
13:51Bastian[m] has joined #asahi
13:51bastilian[m] has joined #asahi
13:51bfredl[m] has joined #asahi
13:51blazra[m] has joined #asahi
13:51bngs[m] has joined #asahi
13:51booffo[m] has joined #asahi
13:51brentr123[m] has joined #asahi
13:51c1truz[m] has joined #asahi
13:51AndrewLee[m] has joined #asahi
13:51cavoirom[m] has joined #asahi
13:51cepheus has joined #asahi
13:51NikolaCicmil[m] has joined #asahi
13:51CristianMgheruan-Stanciu[m] has joined #asahi
13:52DanielHuisman[m] has joined #asahi
13:52davidrysk[m] has joined #asahi
13:52TypoKign[m] has joined #asahi
13:52dpatterbee[m] has joined #asahi
13:52ella-0[m] has joined #asahi
13:52Emantor[m] has joined #asahi
13:52emilazy has joined #asahi
13:52facez[m] has joined #asahi
13:52fedx[m] has joined #asahi
13:52LeviLynch[m] has joined #asahi
13:52Ferluci[m] has joined #asahi
13:52AlessandroFerrari[m] has joined #asahi
13:52fluffypup[m] has joined #asahi
13:52foxlet has joined #asahi
13:52fridtjof[m] has joined #asahi
13:52ganpa[m] has joined #asahi
13:52go4godvin has joined #asahi
13:52h_ro[m] has joined #asahi
13:52hablerentand[m] has joined #asahi
13:52happy-dude[m] has joined #asahi
13:52haterade[m] has joined #asahi
13:52i509vcb[m] has joined #asahi
13:52ilovetrains[m] has joined #asahi
13:52Izumoo[m] has joined #asahi
13:52izzyisles[m] has joined #asahi
13:52jammie[m] has joined #asahi
13:52jevinskie[m] has joined #asahi
13:52jryans has joined #asahi
13:52julianp[m] has joined #asahi
13:52mofux[m] has joined #asahi
13:52ll3macorn[m] has joined #asahi
13:52marcan[m] has joined #asahi
13:52maxim[m] has joined #asahi
13:52MingcongBai[m] has joined #asahi
13:52mmlb[m] has joined #asahi
13:52mulderje has joined #asahi
13:52nemanjan00[m] has joined #asahi
13:52noc0lour[m] has joined #asahi
13:52ovf[m] has joined #asahi
13:52perigoso[m] has joined #asahi
13:52PeterHilgenfeld[m] has joined #asahi
13:52pitust[m] has joined #asahi
13:52PixelyIon[m] has joined #asahi
13:52psydroid[m] has joined #asahi
13:52PthariensFlame[m] has joined #asahi
13:52quentincestino[m] has joined #asahi
13:52rkjnsn[m] has joined #asahi
13:52rob-3[m] has joined #asahi
13:52RowanGoemans[m] has joined #asahi
13:52rowang077[m] has joined #asahi
13:52ruach[m] has joined #asahi
13:52ryanhrob[m] has joined #asahi
13:52s-urabe[m] has joined #asahi
13:52MagMell[m] has joined #asahi
13:52samfromspace[m] has joined #asahi
13:52sandornagy[m] has joined #asahi
13:52Scott[m] has joined #asahi
13:52sephamorr[m] has joined #asahi
13:52Serentty[m] has joined #asahi
13:52SocioProphet[m] has joined #asahi
13:53Spectrejan[m] has joined #asahi
13:53spot[m] has joined #asahi
13:53stttcccccccccccc[m] has joined #asahi
13:53svenpeter has joined #asahi
13:53ted[m]1 has joined #asahi
13:53TellowKrinkle[m] has joined #asahi
13:53Dementor[m] has joined #asahi
13:53The_DarkFire_[m] has joined #asahi
13:53user1tt[m] has joined #asahi
13:53uur[m] has joined #asahi
13:53vivithecanine[m] has joined #asahi
13:53xerpi[m] has joined #asahi
13:53YichaoYu[m] has joined #asahi
13:53PieroDel[m] has joined #asahi
13:53svenpeter is now known as Guest3181
14:29marcanphire: old firmware only supported 3, I assume this is for newer hardware and it'll probably fail, but I haven't tried
14:36alyssamarcan: that's annoying, means you can't crop if a window goes partially offscreen or something?
14:44marcanI think the iova offset thing I saw was a red herring caused by the compression reading data starting halfway into the buffer
14:55marcanalyssa: https://github.com/AsahiLinux/m1n1/blob/3f6e1fe028226cd77b7bd9d338f93a5e3e1c3b28/proxyclient/experiments/dcp.py#L181
14:56deed02392 has quit [Remote host closed the connection]
14:57alyssaon linux, libliftoff is the closest we have to that sort of display plane / GPU management
15:10marcanj_ey: okay yeah there is a complicated mapping between those values and the table I found
15:26marcanand this is from the surface def to the internal stuff... so where does the surface def come from?
15:31marcandoesn't help that ARM64 does not align 16-bit constant fields, so I can't just grep binaries for this
15:48Andalu30 has joined #asahi
15:52marcanI love how I can just run through all possible 32-bit format codes in a couple minutes :p
16:06tomtastic_ has joined #asahi
16:07tomtastic has quit [Ping timeout: 480 seconds]
16:12dougallhacky script i use for finding immediate magic numbers in kernelcaches: https://gist.github.com/dougallj/bfbffffe8af7a08e322633d7d7f19af7
16:53mps has joined #asahi
17:02mpsif I decide to install linux on M1 macbook pro what will not work of the hardware? according to https://github.com/AsahiLinux/docs/wiki/Tasks not much drivers works
17:11j_eymps: there's branches that have some nvme support, and pipcet[m] has more stuff working based on corelliums code
17:20marcanmps: I wouldn't recommend anything as a daily driver until we get the GPU working, but maybe that's just me
17:21marcanwe aren't really prioritizing getting stuff working so much as getting stuff working *right*, so e.g. there is no keyboard support yet, not because it's hard but because we've been busy with more interesting drivers :)
17:21alyssamps: If you're a linux hat, the M1 isn't a computer, it's an expensive toy for reverse-engineering addicts like marcan and me
17:21mpsmarcan: maybe gpu is not much important to my use case, I use chromebooks without gpu driver and that is quite fine for me
17:22marcandepends on what you do I guess, e.g. playing video without GPU is, at best, questionable (tearing...)
17:23marcanbut either way I'm going to work on the installation tools a bit this week, which will at least make it less annoying to set up for development
17:23alyssamarcan: that video players need GPU is more of a "linux video players suck" issue and not anything more fundamental
17:23mpsmarcan: I use old mt8173 (acer R13) chromebook (linux installed first day) for about 5 years without gpu driver and I'm quite satisfied
17:25alyssamarcan: fwiw, since i'm still learning kernel and KMS on top of DCP, i'm planning to start with a dummy driver using the corellium regs and the iboot framebuffer
17:26alyssamarcan: At minimum, getting no tearing would be an improvement on the current state of affairs. And that's just disp0-dart and twiddle one register back and forth :p
17:27alyssa(and there next milestone would be running the python dcp client on boot, then booting linux and issueing set_matrix() from linux side)
17:28brentr123[m]I can create a portable python .zip if necessary
17:28Andalu30 has quit [Quit: Konversation terminated!]
17:29marcanhowever, I expect the driver will probably tear down the iBoot mappings on init... so that should probably be fixed
17:30marcanalyssa: that would be one heck of a hack and not very useful IMO. the problem is you need to carry over state and the linux ASC driver isn't designed to get instantiated on an already initialized device.
17:31Andalu30 has joined #asahi
17:33marcanalyssa: you can probably just call printRegs or other dummy stuff without doing the actual high level init sequence on DCP though
17:33marcanand the stuff below that is trivial, just setting up the shmem buffer, which you need to do anyway
17:34marcanand once that works you can move on to working through the init sequence, which you can do incrementally (the very first thing it's going to require you to do is support callbacks)
17:56svenj_ey: unmanaged domain just means "translation enabled, but not managed by the iommu-dma layer"
17:58svenfor the locked we'll need to somehow hack the io-pgtable code to not allocate the first level pagetable but just take some pointer instead
18:00marcanI was thinking we could walk the page table, re-adding those mappings to the kernel's view
18:01marcanand then once that's done you swap out the kernel's idea of what the real L1 is and you're done
18:02svenand then the dcp or whatever drivers need to be made away of the right memory locations as well i guess
18:09pipcet[m]mps: I do have stuff working with Corellium's drivers but really the work marcan and sven and alyssa are doing is just amazing, and you should help them in any way you can :-)
18:12mpspipcet[m]: thanks for info. I don't have M1 and only tested corellium few times on my son machine and had a hope that we will not wait too long for 'working' solution
18:13mpspipcet[m]: these days I contemplated about buying yet another one, but above answers 'explained' to me that is not worth waste of money
18:14mpsthough display is very good and that was main reason I wanted to buy it (I'm about 13-16 hours behind screen daily)
18:14svenalyssa> mps: If you're a linux hat, the M1 isn't a computer, it's an expensive toy for reverse-engineering addicts like marcan and me <-- that's... very very accurate.
18:15pipcet[m]yeah, I'm beginning to wish I had gotten two of them so I could use one and hack on the other (also it would have been really handy that time I ended up putting my machine into I-need-DFU mode)
18:16marcanactually the imac is still in the box because I've been procrastinating figuring out where to mount it
18:30Andalu30 has quit [Quit: Konversation terminated!]
18:41EmantorI have started to put together all necessary parts to boot m1 linux into a Yocto BSP (m1n1, u-boot, merged kernel branches). Next up I'll add an initramfs and than it should be good to go.
19:35hexchain_ has joined #asahi
19:37BlitzWorks has quit [Ping timeout: 480 seconds]
19:40hexchain has quit [Ping timeout: 480 seconds]
20:31linearcannon has quit [Remote host closed the connection]
20:53j_eyIs this still right? "You need at least 70GB for the stub partition, because the macOS install/update process is very inefficient. " I feel like someone said it might be even bigger now
20:54brentr123[m]does macos automatically reserve storage space for updates/
20:54brentr123[m] * does macos automatically reserve storage space for updates?
21:04mps has left #asahi [#asahi]
21:30Guest3181 is now known as svenpeter[m]
21:30MTecknologyThis was a lot more interesting than I was expecting (homemade apple 1) https://www.youtube.com/watch?v=36NgkpctW6k
21:48deed02392 has joined #asahi
21:48deed02392 has quit []
22:53amwj_ey: I think so - See https://paste.debian.net/1206483/ - that output was from linux.py over the serial I believe
22:54amwThere is a bug in the system some where with the extra spaces (in the python/m1n1) I believe
23:25amwYou might be right about the partitioning - I'll have to check exactly what I did as it was a while ago and didn't touch it since then
23:46cth451_desktop has quit [Remote host closed the connection]
23:55quarkyalice has quit [Remote host closed the connection]