klange changed the topic of #osdev to: Operating System Development || Don't ask to ask---just ask! || For 3+ LoC, use a pastebin (for example https://gist.github.com/) || Stats + Old logs: http://osdev-logs.qzx.com New Logs: https://libera.irclog.whitequark.org/osdev || Visit https://wiki.osdev.org and https://forum.osdev.org || Books: https://wiki.osdev.org/Books
<junon> whereas "lock inc QWORD[reg]" and "lock stosq" have definition instruction prefixes for all registers that matter.
* moon-child uses avx512 scatter to write zeroes to 16 different pages all at once
<mjg> :]
<mjg> no half measures
<moon-child> wait no I can do 32
<moon-child> by making them misaligned
<moon-child> but better would be making them misaligned but only one page gets all zero writes
nyah has quit [Quit: leaving]
<zid> gog help
<zid> I found a mystery product in the fridg
<zid> it says "creamy icelandic style"
<zid> but no other information
<heat> does it taste salty
<zid> I'm not tasting it
<moon-child> can I taste it
<zid> if you come here
<moon-child> that would be a creamy canadian style
<zid> what
<zid> oh, are you a french
<moon-child> what
<zid> ARE YOU A FRENCH
<moon-child> no ..
<zid> Okay you may live.
rnicholl1 has joined #osdev
<zid> I didn't know there were hippie enclaves in canada ngl
<heat> openbsd inc
<mjg> > Here at Microsoft, we are always looking to engage with open source communities to produce better solutions for the community and our customers.
<mjg> lmao
<heat> microsoft was the 17th most active corp for the linux 6.4 release
<zid> I believed them until 'community'
<zid> Here at Microsoft, we are always looking to engage with open source communities to produce extended versions for our bank account.
<zid> ftfy
<mjg> heat: that's cause they have no choice because of azure
Brnocrist has quit [Ping timeout: 245 seconds]
<mjg> you may be missing antitrust lawsuits they lost
<heat> why do they not have a choice?
<zid> microsoft moved on from extending their OWN ecosystem exclusively, because they're not stupid
<mjg> linux is big and if they want their cloud to succeed it needs to run well there
<zid> linux is huge, they need to create management software etc for it they can sell
<heat> sponsoring stupid shit like mm folio work is not exclusive to azure
<mjg> they sponsored folio?
<heat> yes
<mjg> wut
<heat> wilcox was under microsoft for a good while
<mjg> i only know them from azure bringup
<junon> okay going back to my crazy question about skipping RIP from a page fault handler, how would that work again? I just jmp back or what? don't I have problems with stacks and stuff, and the fact I'm in ring 0? don't I need to iret?
<mjg> fucking iwndows 10 has a 5.7G iso
<mjg> wtf
<zid> that's tiny for how much nonsense it includes, gj microsoft
<heat> over the last years they have done a lot more than hyperv shit
<heat> junon, so, you iret, and it sets the rip
<junon> what sets the rip?
<heat> so you change the rip on your stack to $something, and iret, and it sets the rip
<heat> the instruction
[itchyjunk] has quit [Ping timeout: 260 seconds]
<zid> push rip -> call 2
<zid> pop rip -> ret
<heat> you don't need that, this is an interrupt
<zid> mov rip, [rsp] -> ret, even :P
<zid> (and adjust rsp)
<zid> heat why did long mode remove jmp n:aaaa
<zid> WHY
<heat> idk it pains me too
<heat> mjg, willy is under oracle now, such as the other mm maple tree guy
<moon-child> freebsd is like 1gb
<heat> so now the great sponsor of good mm work is *Oracle*
<moon-child> so same order of magnitude tbh
<heat> how do you know?
<junon> RIP is at the top of the stack, you mean?
<zid> windows 95 came on 1.68MiB formatted floppies
<heat> do you have an iso of freebsd?
<zid> cus it was a FAT BOI
<heat> do you know that's against the geneva convention
<heat> junon, investigate your interrupt frame
<moon-child> i plead the fifth
<moon-child> wait what the dvd version is like 4gb
[itchyjunk] has joined #osdev
<zid> 4.7GB is the size of a DVD
<zid> is it that big
<bslsk05> ​download.freebsd.org: Index of /releases/amd64/amd64/ISO-IMAGES/13.2/
<moon-child> no
<moon-child> and it xzs down to only 3g
<moon-child> only xz down to 3g, I mean
<moon-child> xzs*
<mcrod> oh speaking of canada
<mjg> dafuq did they put in there
<mcrod> the wildfire smoke is blanketing the US again, but not nearly as bad
<mjg> is it all the packages
<heat> the dvd version of freebsd 13.2 has a copy of shrek 2
<zid> canada needs to do better then, mcrod
<moon-child> based
<mjg> maybe there is audio tracks there
<heat> like 2 years ago i wanted to rewatch wall-e but i had to use my xbox 360 as the player
<zid> It's actually a dreamcast disc
<heat> as literally the only thing in the house that has a dvd drive
<zid> I'd use a ps2 for that
<zid> but I don't have component cables for ps2
<zid> so.. 576i woo
<zid> with shitty colour res
<zid> heat: a wii can just barely run mplayer well enough to play videos btw
<heat> xbox 360 POWERPC > ps2 shitty mips
<zid> I know this because I tested it
<mjg> itanium > *
<mcrod> was linux ported to the wii
<heat> that XENON chip was goated
<mcrod> god it was
<moon-child> putting the power in powerpc
<zid> I don't think a 'proper' version was, like you would have done if you were microsoft
<zid> as it's a weird split kernel/user arch with a cpu each
<zid> like the DS
<zid> I think they ran linux in userspace, effectively
<CompanionCube> heat: thinking of the powerpc in xbox brings to mind that 'xdcbt' instruction
<zid> the buggy cache one?
<CompanionCube> yes
<zid> I like that article.
<zid> spectre before it was cool
gog has quit [Ping timeout: 260 seconds]
<heat> omg thanks i was trying to remember how that guy was called
<heat> that guy knows how to trace windows mjg
<zid> XLAT
<zid> is all I can ever remember
<heat> https://randomascii.wordpress.com/ somewhere around here is a bunch of profiling shit
<bslsk05> ​randomascii.wordpress.com: Random ASCII – tech blog of Bruce Dawson | Forecast for randomascii: programming, tech topics, with a chance of unicycling
<zid> profiling is an illegal police tactic heat
<zid> stop doing it
* CompanionCube remembers he googled 'windows kernel flamegraph' earlier, turned up https://randomascii.wordpress.com/2013/03/26/summarizing-xperf-cpu-usage-with-flame-graphs/
<bslsk05> ​randomascii.wordpress.com: Summarizing Xperf CPU Usage with Flame Graphs | Random ASCII – tech blog of Bruce Dawson
<junon> does the x86_64 LOCK prefix make the new value show up across all processors?
<CompanionCube> not sure that's actually kernel profiling though, from the graphs
<zid> no
<zid> lock STEALS IT
<junon> what does that mean from the NUMA perspective?
<zid> nothing
<zid> you have a numa system to test it on?
<junon> I thought all modern CPUs were NUMA?
<heat> lock locks a cacheline across all cpus in your system
<junon> or am I misremembering
<heat> misremembering
<zid> lock makes things atomic, by forcefully evicting it out of everybody else's cache
<zid> and giving the line to you
<heat> CompanionCube, you can 100% do it, and get flamegraphs
<junon> right okay
<zid> it only does anything to RMW operations like inc
<heat> UIForETW is great
<junon> the whole cache/ownership/staleness model is called what again? I always forget
<junon> not NUMA
<zid> memory ordering? memory model?
<zid> x86's is "stronger than diamond" btw
<heat> it's the cache coherency thing
<junon> yeah but there's an acronym for the states they can be in right?
<heat> i'm blanking atm
<zid> there's a great table on wookipedia
<junon> MESI
<zid> ALPHA: "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY"
<junon> I always wanna say "MRSA" and then see NUMA and go "yeah that's the one" but I'm wrong on both counts lmao
<zid> x86 is incredibly tame
<bslsk05> ​starwars.fandom.com: Star Wars: Episode II Attack of the Clones | Wookieepedia | Fandom
<zid> Multiple Exceptional Sexual Incidnts
<heat> linux RCU is full of passive-agressive mentions of alpha
<zid> That's the diary entry of the woman I slept with last weekend btw
<zid> It was either that or "I wouldn't sleep with such a messy tramp", I forget
<heat> "this does not require memory barriers on any architecture, EXCEPT alpha"
<junon> okay last kooky question - i could verify this myself but it'd take me a while to get back into my dev environment etc.
<zid> six.
<zid> False.
<zid> Only on tuesdays.
<moon-child> except after c
<junon> do AND [addr], reg and/or INC [reg] perform a read as well as a write in terms of checking permissions? Or just a write?
<junon> sorry, do they check present + write, or just write?
<junon> sorry, no, still not the right question
<zid> present is what makes a mapping *exist*
<heat> they always check present
<zid> so I bloody hope it checks present
<zid> rather than thinking every single page is mapped to phys 0
<junon> do they do a read first, which checks the present bit first?
<heat> and obviously as you're reading the page needs to be readable
<junon> or does it immediately try to do a write
<zid> what
<zid> how would it write data *before* checkin the present bit and *before* reading?
<zid> ???
<heat> i think the question is: does it lookup directly in the TLB with (READ | WRITE) or READ first and then, if need be, WRITE
<junon> I meant more that is an INC two discrete memory ops - a read and then a write?
<heat> which I asked like 2 weeks ago and no one answered so Here Be Dragons?
<junon> since it's a single instruction
<zid> Yes, it's a RMW op, it cannot possibly work any other way
<zid> that's why LOCK is useful for it
<zid> because otherwise you could read 47, write back 48, but someone else wrote 49 while you were doing the 'increment' part
<zid> so now you've corrupted it
<zid> i.e multiple writers all trying to 'inc' a refcount
<junon> OKay so most specifically, if I do an INC [reg] and it faults due to the page not being present, the error code isn't going to include the write bit, will it?
<zid> I'd expect it to, tbh
<zid> but I can see it doing either
<junon> I can confirm it later but yeah, I can see it doing either
<zid> I give it 85/15 that write is set
<zid> 6:1 odds roughly
pmaz has joined #osdev
<bslsk05> ​i.imgur.com <no title>
<heat> ok i trivially checked, they lookup with READ | WRITE
<heat> i did const int a = 0; and then andl $0, a, which segfaults
boga has quit [Remote host closed the connection]
Vercas has quit [Remote host closed the connection]
heat has quit [Remote host closed the connection]
Vercas has joined #osdev
gorgonical` has quit [Server closed connection]
Turn_Left has joined #osdev
Turn_Left has quit [Read error: Connection reset by peer]
xvmt_ has joined #osdev
xvmt_ is now known as xvmt
xvmt has quit [Ping timeout: 245 seconds]
DanDan has quit [Ping timeout: 245 seconds]
pmaz has quit [*.net *.split]
bliminse has quit [*.net *.split]
pounce has quit [*.net *.split]
Matt|home has quit [*.net *.split]
dormito has quit [*.net *.split]
cross has quit [*.net *.split]
hrberg has quit [*.net *.split]
merry has quit [*.net *.split]
pie_ has quit [*.net *.split]
vancz has quit [*.net *.split]
tanto has quit [*.net *.split]
jleightcap has quit [*.net *.split]
vismie has quit [*.net *.split]
sm2n has quit [*.net *.split]
whereiseveryone has quit [*.net *.split]
gjn has quit [*.net *.split]
patwid has quit [*.net *.split]
milesrout has quit [*.net *.split]
exec64 has quit [*.net *.split]
noeontheend has quit [*.net *.split]
JTL has quit [*.net *.split]
tommybomb has quit [*.net *.split]
yuiyukihira has quit [*.net *.split]
staceee has quit [*.net *.split]
tom5760 has quit [*.net *.split]
yyp has quit [*.net *.split]
dzwdz has quit [*.net *.split]
ZipCPU has quit [*.net *.split]
pmaz has joined #osdev
Matt|home has joined #osdev
bliminse has joined #osdev
pie_ has joined #osdev
vancz has joined #osdev
tanto has joined #osdev
cross has joined #osdev
JTL has joined #osdev
jleightcap has joined #osdev
vismie has joined #osdev
sm2n has joined #osdev
whereiseveryone has joined #osdev
gjn has joined #osdev
noeontheend has joined #osdev
dormito has joined #osdev
merry has joined #osdev
milesrout has joined #osdev
patwid has joined #osdev
tommybomb has joined #osdev
dzwdz has joined #osdev
yyp has joined #osdev
yuiyukihira has joined #osdev
tom5760 has joined #osdev
exec64 has joined #osdev
ZipCPU has joined #osdev
staceee has joined #osdev
cross has quit [Max SendQ exceeded]
JTL has quit [Max SendQ exceeded]
JTL has joined #osdev
cross has joined #osdev
kerravon has joined #osdev
pounce has joined #osdev
[itchyjunk] has quit [Read error: Connection reset by peer]
kerravon has quit [Ping timeout: 246 seconds]
<mcrod> hi
<geist> hiya
gorgonical has quit [Ping timeout: 240 seconds]
tomaw has quit [*.net *.split]
tomaw has joined #osdev
slidercrank has joined #osdev
DanDan has joined #osdev
slidercrank has quit [Ping timeout: 260 seconds]
Vercas has quit [Remote host closed the connection]
Vercas has joined #osdev
gareppa has joined #osdev
gareppa has quit [Remote host closed the connection]
gareppa has joined #osdev
\Test_User has quit [Quit: \Test_User]
\Test_User has joined #osdev
biblio has joined #osdev
slidercrank has joined #osdev
bliminse has quit [Quit: leaving]
sympt has quit [Quit: Ping timeout (120 seconds)]
biblio has quit [Remote host closed the connection]
sympt has joined #osdev
bgs has joined #osdev
Vercas4 has joined #osdev
Vercas has quit [Ping timeout: 240 seconds]
Vercas4 is now known as Vercas
bliminse has joined #osdev
GeDaMo has joined #osdev
rnicholl1 has quit [Quit: My laptop has gone to sleep.]
zxrom_ has joined #osdev
zxrom has quit [Ping timeout: 250 seconds]
zxrom_ is now known as zxrom
rnicholl1 has joined #osdev
nur has joined #osdev
rnicholl1 has quit [Quit: My laptop has gone to sleep.]
danilogondolfo has joined #osdev
Left_Turn has joined #osdev
remexre_ has joined #osdev
remexre has quit [Read error: Connection reset by peer]
remexre_ is now known as remexre
PapaFrog has quit [Ping timeout: 252 seconds]
PapaFrog has joined #osdev
_whitelogger has joined #osdev
ecs_ is now known as ecs
graphitemaster has joined #osdev
nickster has quit [Server closed connection]
nickster has joined #osdev
Vercas has quit [Remote host closed the connection]
Vercas has joined #osdev
GreaseMonkey has joined #osdev
amj has quit [Ping timeout: 246 seconds]
gog has joined #osdev
pmaz has quit [Ping timeout: 245 seconds]
nyah has joined #osdev
MuonNeutrino has quit [Remote host closed the connection]
pog has joined #osdev
gog has quit [Ping timeout: 245 seconds]
pmaz has joined #osdev
<pog> hi
<sham1> Poggers
<pog> shammers
Left_Turn has quit [Remote host closed the connection]
Left_Turn has joined #osdev
<zid> Is it 8 weeks from now yet
<zid> I wanna read the next volume of my book
<pog> it is not
<zid> damnit
<moon-child> you should have just wait 8 weeks longer before starting to read the book
<junon> morning
<moon-child> and then read it at the same pace
<moon-child> then your chapter would be ready right now
<zid> one comes out every 8 weeks
<zid> so I'd still be saying it
<moon-child> should have waited 16 weeks then
<zid> should have waited 56
<moon-child> should have waited 30 years
<zid> nah that's too long
<zid> we're on the final part
<zid> I think it will be finished in 56 weeks or so
<moon-child> hmmm
<moon-child> have you tried reading a real book instead?
<zid> It is a real book?
<zid> if anything it's a hyperreal book, it's longer than war and peace
<moon-child> real books are published all at once
<moon-child> not serialised
<zid> That's very not true
<zid> especially for fantasy or sci fi
<pog> which novel was it that was originally a series and then compiled
<pog> there are several
<pog> but there's a big classic one
<zid> thousands
<zid> all of asimov's stuff
<moon-child> isaac asimov is a fake ass bitch and my dad could beat up his dad
<zid> moon-child only reads shampoo bottles is what we've discovered
<Ellenor> atheples
clever has quit [Ping timeout: 240 seconds]
<zid> I'm glad tensei shitara kan deshita isn't my favourite, cus that one releases a vol every 6 months
<moon-child> if a shampoo bottle is published all at once I will read it
<bslsk05> ​dict.org: dict.org- serial
<zid> so what are your thoughts on wheel of time, game of thrones, harry potter, etc, etc?
<zid> unreadable trash nobody should bother with because there's more than 1?
<kof123> They wrote, not jointly but alternately Unfortunately they quarreled, and one Monday morning when Bowman read the paper to prepare himself for his task, he found his work cut out for him in a way to surprise and pain him. His collaborator had embarked every character of the narrative on a ship and sunk them all in the deepest part of the Atlantic.
<moon-child> crap, crap, crap
<zid> I mean, harry potter is crap
<zid> wheel of time I've not read, game of thrones was good until it stopped
<moon-child> I read game of thrones (or, technically, 'a song of ice and fire') and I think I enjoyed it, but don't really remember it
<moon-child> agree re harry potter and wheel of time
<mjg> OH
<mjg> piercy jackson for life amirite
<zid> piercy?
<mjg> percy?
<zid> did someone seriously name their kid that
<mjg> i barely know the franchise exists :p
<moon-child> zid: probably
<zid> ah percy jackson is infact an author
<mjg> MISTBORN amirite
<zid> I read mistborn
<zid> it was okay
<mjg> you hae no shame, do you
<zid> how come
<moon-child> wait mistborn isn't wheel of time?
<moon-child> or just same author or sth?
<zid> wheel of time is robert jordon, brandon snaderson finished the last three
<zid> cus he.. died
<zid> but he used robert's notes to finish them
<mjg> > defo more cringe for the last books
<mjg> brando sando: who am i to argue
<zid> The quality of these series is one thing, but you can't deny that it's a very popular form of writing books
<mjg> i'm just taking a piss, i don't know quat about wot
<moon-child> apropos of nothing
<mjg> i do know a little about mistborn and it was enough to conclude it is crap
<moon-child> mjg: https://www.youtube.com/watch?v=E8Lhqri8tZk you may enjoy this
<bslsk05> ​'1,500 Slot Machines Walk into a Bar: Adventures in Quantity Over Quality' by GDC (01:00:26)
<mjg> a propos motherfucker
<mjg> moon-child: i have seen this
<zid> mistborn isn't crap
<zid> it's got a fairly neat plot overall
<mjg> i might even even linked it one channel over
<zid> and the writing is fine
<mjg> :]
<mjg> zid: i could not get past the second chapter i think
<moon-child> grep sez that's a big fat lie
<zid> what's one channel over? I have ##asm
<moon-child> #tendra I assume
<zid> #pascal-sexual-encounters ?
<moon-child> but maybe something else
<zid> #polan-space-research
<zid> #fortran-lovers-club
<mjg> moon-child: my grep confirms i did not, that's weird
<zid> did you search for miestbourne
<mjg> moon-child: anyhow i had friends who were doing mobile games, they told me years back that this is the way
<mjg> moon-child: as in you do some bullshit n an ez way and wait for bored people to buy it
<mjg> going for /quality/ is a waste of effort
<moon-child> gets worse now with 'chatgpt' et c
<mjg> but the above guys made the process industrial quality
<mjg> zid: sarch for mistrobnerne on r/bookscirclejerk
<mjg> fwiw my friends were able to make a living from doing very little
<mjg> but they were not pulling in any "big bucks"
<mjg> to each thieir own
<pog> chat guid partition table
<mjg> next year jamie on joe rogan will be replaced by chatgpt
<mjg> and maybe weill get named something like lexy
<mjg> lexy pull up some bullshit real quick
<zid> you know I think I'll just ignore mjg
<mjg> you do you mate
<zid> gog: cat, I farted
goliath has joined #osdev
<mjg> my internetz are so fast that i can barely do anything while downloading the windows 10 iso at 1MB/s
pmaz has quit [Ping timeout: 245 seconds]
<pog> never download windows
<pog> you wouldn't download a car
<zid> ofc I wouldn't, I've got not room in my computer for a car
<mjg> that's some OG commentary
<moon-child> why would you download a windows 10 iso
<mjg> i believe common answer was "fuck you, i would if i could" though
<mjg> moon-child: to install dtrace and compain about their dogshit code
<zid> because w7 doesn't support advertising bing to you
<moon-child> fair and valid
<pog> can't wait for the first entirely 3d-printed car
<sham1> Hopefully it'll be an electric car
<mjg> but elon did not say anything about it?
<zid> why
<mjg> maybe spacex will have 3d printed rocket engines
<mjg> anyone heard anything
<sham1> I personally don't care about what liars say
<GeDaMo> I think there are already 3D printed cars, or at least prototypes
<mjg> elon best person
<zid> I think it's probably much easier to 3D print an ICE car than an electric one
<zid> how do you 3d print lithium polymer batteries, and an ECU?
<bslsk05> ​www.wired.com: The World’s First 3D-Printed Rocket Is About to Launch | WIRED
<zid> 3d printed rockets are all over the place tbh, it's just to what degree
<zid> rocket nozzels are really really hard to manufacture traditionally, for example
<zid> nozzles
<bslsk05> ​www.3dsourced.com: The 10 Most Exciting 3D Printed Cars & Supercars 2023 - 3DSourced
<sham1> Elon is pessimal
<pog> yes
* kof123 points at sturgeon's law "gold is for heroes"
<pog> the noozle on the end of the roocket
<mjg> you would not download a rocket
* kof123 makes hand signals to clarify pointing is re: earlier quality stuff
<zid> your mum's a rocket noozle
clever has joined #osdev
<mjg> elon should date elizabeth holmes, the theranos ceo. would be a power couple of the century
<mjg> elon: tesla can do self-driving today
<mjg> lizzy: it could do it yesterday
<mjg> it will be also taking blood samples from your butt as you sit in it
Turn_Left has joined #osdev
<bslsk05> ​'NASA's clever technique to make combustion chambers' by Breaking Taps (00:16:18)
clever has quit [Ping timeout: 245 seconds]
Left_Turn has quit [Ping timeout: 245 seconds]
awita has joined #osdev
goliath has quit [Quit: SIGSEGV]
clever has joined #osdev
Turn_Left has quit [Remote host closed the connection]
clever has quit [Ping timeout: 240 seconds]
kerravon has joined #osdev
Turn_Left has joined #osdev
Ellenor is now known as Reinhilde
Ermine has quit [Remote host closed the connection]
Ermine has joined #osdev
Turn_Left has quit [Ping timeout: 250 seconds]
koolazer has quit [Ping timeout: 264 seconds]
Turn_Left has joined #osdev
<junon> god I hate spiders and it's spider reproduction season here in the apartment it seems
<junon> so I see one tiny spider and immediately feel like I have a hundred on me
<zid> nothing wrong with spiders
<zid> salticus best spider
<junon> I know that, they're ecologically important and valid and generally pretty harmless but my little creepycrawliesinstincts kick in and I turn into a gorilla whenever I see one
<zid> What if they were 18 feet tall and you were powerless to damage them, would that help
<junon> they can be ecologically important somewhere else
<junon> no, I'd probably be dead already, or something like a resistance member from the Half Life series
<zid> what about cattle
<junon> what about cattle
<zid> a cow will give you a nasty nip too
<junon> yes sure but I can see them coming and they don't have 8 legs or whatever
<zid> Pretty sure you'd see an 18 foot tall spider coming
<junon> well I supposed I'd see giant spiders coming too but I feel like they'd be more aggressive than cattle
<mcrod> hi
<zid> omg junon is secretly a giant fly
<zid> we found out why he hates spiders
<sham1> I *knew* it
<zid> I keep a supply of many legged furry predators in my kitchen actually
<zid> They answer to the name "Are you really going to sleep *there*? Wtf cat" and "fattie"
<mcrod> i'm getting a cat and i am excited
<zid> good marbling?
HeTo has quit [Server closed connection]
<mcrod> huh
HeTo has joined #osdev
<pog> cat!
* pog cats around
<zid> Catticus Cattington you get down here right now!
<Ermine> poggers is here!
<mcrod> pog may I scratch you
<pog> yes
* mcrod scratches pog
* pog prr
clever has joined #osdev
<mcrod> I have to tell you
<mcrod> why do companies insist on providing people with ultra low power laptops
<mcrod> my first job it thermal throttled and downclocked to 400MHz
<mcrod> this job it caused actual issues for the QA team
<zid> doesn't sound like it was low power then :P
<mcrod> yeah yeah yeah, I'm talking about the intel CPUs that have the U suffix
<zid> sounds like it had shitty cooling and too much power
<mcrod> no they're always windtunnels
<mcrod> (as in, I agree)
<mcrod> drives me fucking nuts that people in IT give shit fucking PCs
<mcrod> security people also drive me fucking crazy
<zid> A lot of laptops are massively undercooled to keep them thin to mimic apple:/
<pog> mine is only slightly undercooled because they couldn't fit a bigger heatsink inside
<pog> but it's also RYZEN
<zid> (to keep it thin)
<mcrod> fuck I wish we had a mac
<pog> as thin as possible
<zid> I've never looked at ryzen mobile
<mcrod> but there would be a revolt if we went to macs
<zid> I know the intel cpus were like 30W
<pog> zid on a scale of 1 to ryzen how hype are you today
<zid> 0, it's not bookworm monday
<pog> mine is 45W
<zid> beast
<pog> yeah when it's running full tilt it gets real hot and loud
<zid> people used to pair those with 100W 980 ti mobiles
<zid> and cool it with a fan the size of a pea
<pog> i've got a 1650 mobile its uh 50w i think
<zid> did someone say 1650
<zid> oh wrong chip :(
<pog> so i've got a 100W heater basically
<pog> if i can max all cores and gpu shaders at the same time
<pog> not likely
<zid> 100W isn't *terrible*, but you'll want spigots to add the water cooling loop to it
<zid> to stop your legs melting
<pog> heh, the little silicone bar on the bottom has actually expanded by a bout 3mm and doen't sit in its recess correctly anymore
<pog> the heat pipes run directly beneath the side that's wonky
<zid> I made that up but it's apparently a real thing
<bslsk05> ​www.pcspecialist.ie: Attention Required! | Cloudflare
<pog> wtf lmao
<bslsk05> ​ftp.gnu.org: Using as - Fill
<zid> erm gas
<zid> are you feeling okay
<zid> it's "repeat" not result, and why is it limited to 8
<pog> documentation L
<pog> ratio + no bitches + you fell off
* mjg checks channel name
<zid> hmm why is the w7 boot.efi 0x2000 characteristic
<zid> that's DLL
<mjg> hrm so i got a win 10 iso and it asks me for a product key?
<mjg> was that supposed to be free?
<pog> efi images are dlls
<pog> subsystem 0x..10?
<zid> til
kerravon has quit [Ping timeout: 246 seconds]
<zid> Now I need to remember hwo all the imagebase, baseofcode etc shite works
<pog> it's really easier to just use clank and lld-link
<pog> clang
<zid> I don't have clank!
<zid> and that's not really a project
Guest9618 has joined #osdev
goliath has joined #osdev
<Guest9618> when an interrupt gets masked out due to its low priority, is the interrupt added to some queue so it can be serviced when the interrupt priority mask is lowered? If the answer is "it depends", does it depend on the OS or CPU architecture?
<zid> cpu
<zid> on x86 the PIC chip just has 8 input lines, any of which could be high
<zid> and the chip talks to the cpu by raising a flag and putting "4" onto a tiny little bus
<zid> once the device's irq is gone, another pin might still be lit up, and it will change to "7" or whatever
<zid> it's up to the *device* to stop signalling they have an IRQ
<zid> and for the PIC to deliver simultaneous IRQs in a certain order
<Guest9618> ohh, I see. Its up to the device.
<zid> I mean, that's sort of the entire point :D
<Guest9618> I was thinking about it backwards
<zid> interrupts are so hardware can signal the cpu that they want some loving
<sham1> Yeah, you'd most likely want to make your ISR just register the fact that you got an interrupt from $DEVICE and then handle the thing outside of the ISR. Of course you'll have to EOI stuff, but that's not too bad
<Guest9618> whats EOI?
<zid> end of interrupt
<sham1> Of course if devices share interrupt lines, then it's more interesting although then you can just be like "some device on line FOO signaled an interrupt"
<zid> the ACK message you send to a device to shut it up
<sham1> And have the drivers figure out which it was
slidercrank has quit [Ping timeout: 246 seconds]
<zid> which may just be directly to the interrupt controller, if it's signalled by pulses for example, and not lines behind held high or low
<zid> it needs telling that interrupt '4' is finished
<zid> and to move on to '7'
<sham1> At least on x86 you have both an interrupt handler EOI signal and then also of course the device can be told that you've handled whatever you wanted to handle
<zid> If the interrupt system is 'lines get held high' then you often don't need an EOI, as that's mainly for the interrupt controller to de-latch
<zid> just tell the device to shut up
<zid> "yes, I know you've found a cool bug, go back outside and play"
<pog> i found an uncool bug
<pog> the program kind
<sham1> I found some very uncool code today which I'll have to rewrite. Code from 2014 which is so very convoluted
<pog> that's a good feeling though, turning convoluted code into comprehensible code
<Guest9618> In regards to "autovectored interrupts", when we say "vector" do we just mean an array of addresses that point to ISR's indexed by IRQ number? And does the "auto" mean that we dont need to worry about where this vector is located because its location will be supplied to the cpu by (? the program) via some register? How true is what I just said?
<Guest9618> Also what is the alternative to autovectored interrupts?
<zid> no idea what auto means
<zid> sounds like you're reading some specific book
<zid> and it may be using ibm terms, internal intel terms because he's an ex-intel engineer, etc, etc etc, never can tell with books..
<zid> vectored means you can change where the interrupt handler lives
<zid> aka a vector.. aka an arrow in space... aka a pointer
<zid> either in a table, or register, etc as you said
<Guest9618> ctrlf "autovector" ... I got this term from this musashi m68k emulator, and I thought it was just an established term. https://github.com/kstenerud/Musashi
<bslsk05> ​kstenerud/Musashi - Motorola 680x0 emulator written in C (86 forks/330 stargazers)
goliath has quit [Quit: SIGSEGV]
<zid> It may be, in motorolaland
<zid> If you google it you mainly get.. 68k results
<zid> and presumably people familiar with the 68k talking about it
<Guest9618> yup, its motorolla specific
<zid> people seem to love that cpu but I've never really done anything with it
<sham1> It's a lovely CPU
<zid> see
<sham1> Powered things like the Amiga and for example the Sega MegaDrive
<zid> If you need any HOT TIPS about the cpu in a gameboy though, I am your an
<zid> man
<Guest9618> gotta go. thanks.
Guest9618 has quit [Quit: Client closed]
<pog> geist would probably know about m68k stuff
<zid> too bad, they both died
<zid> the guest and the geist
<pog> noooooooooooooooooooooo
<zid> what did I bastardize your name to yesterday I forget, but I remember liking it
<pog> poggin the gog
<bslsk05> ​memory-alpha.fandom.com: Nog | Memory Alpha | Fandom
<bslsk05> ​twitter: <steveklabnik> did you know rms has seen the "I'd just like to interject for a moment" copypasta and responded in the funniest possible way <gnu.org/gnu/incorrect-… https://t.co/6CNk8RcL6o>
Left_Turn has joined #osdev
Turn_Left has quit [Ping timeout: 245 seconds]
bgs has quit [Remote host closed the connection]
Turn_Left has joined #osdev
slidercrank has joined #osdev
Left_Turn has quit [Ping timeout: 260 seconds]
jimbzy has joined #osdev
<pog> jimbzy: sosig
<jimbzy> :]
<jimbzy> I actually cloned SOSIG the other day and I'm going to do a bit more work on it soon.
<jimbzy> How you doing, pog?
gorgonical has joined #osdev
<gorgonical> I know this is not linuxdev, but can someone please explain to me how to use the fucking IPI subsystem in Linux
<gorgonical> The patchset says "for drivers" to use but then apparently critically important functions are not exported so I can't use them
<zid> linux doesn't have generic IPIs does it?
<gorgonical> it does
<zid> til
<gorgonical> but only mips uses it lol
<zid> smp_call_function?
<gorgonical> irq_send_mask
<zid> CALL_FUNCTION_VECTOR?
<gorgonical> or irq_send_single
<bslsk05> ​github.com: linux/arch/x86/kernel/apic/ipi.c at master · torvalds/linux · GitHub
<zid> x86 has em
<gorgonical> kernel/irq/ipi.c
arminweigl_ has joined #osdev
arminweigl has quit [Ping timeout: 252 seconds]
arminweigl_ is now known as arminweigl
clever has quit [Ping timeout: 250 seconds]
gareppa has quit [Quit: gareppa]
gareppa has joined #osdev
frkzoid has quit [Ping timeout: 260 seconds]
Jari-- has joined #osdev
<Jari--> hi all
<pog> hi
dutch has quit [Quit: WeeChat 3.8]
frkazoid333 has joined #osdev
dutch has joined #osdev
<geist> aww someone wanted to talk 68k
<pog> you're alive!
<pog> zid told me you were dead
<pog> he's a filthy liar clearly
pog has quit [Quit: Konversation terminated!]
nvmd has joined #osdev
<mcrod> hi
zxrom has quit [Ping timeout: 260 seconds]
zxrom has joined #osdev
frkazoid333 has quit [Ping timeout: 240 seconds]
<sham1> geist: it's a very nice CPU
<geist> indeed
<sham1> A 64-bit extension of M64k would be quite nice
gog has joined #osdev
<geist> yah though i never really dealt with it at the time (in the 80s) it is clearly a superior design ISA wise to x86 on a lot of fronts
<geist> alas, probably harder to make a superscalar OOO version
<geist> that much more CISCy work to deal with
gildasio has joined #osdev
frkzoid has joined #osdev
goliath has joined #osdev
doppler has quit [Ping timeout: 240 seconds]
goliath has quit [Ping timeout: 245 seconds]
frkzoid has quit [Ping timeout: 245 seconds]
goliath has joined #osdev
koolazer has joined #osdev
biblio has joined #osdev
gareppa has quit [Quit: gareppa]
rnicholl1 has joined #osdev
GeDaMo has quit [Quit: That's it, you people have stood in my way long enough! I'm going to clown college!]
danilogondolfo has quit [Remote host closed the connection]
tomith has joined #osdev
<gorgonical> Working on other architectures really highlights that Linux as a single kernel is a lie
<gorgonical> There's a single kernel "core" but each architecture has all this stuff bolted onto it and uses different, overlapping subsystems
<zid> They slowly merge together
<zid> but it's easier for development if they just get cracking in their own sandbox
<gorgonical> That's true, but some of the platforms introduce conflicting systems and hiding can be ugly
<gorgonical> Like the contrast between acpi and devicetree
<Bitweasil-> Sure, but they're both doing ~the same thing.
<Bitweasil-> Describing the hardware.
<gorgonical> It's not just the hardware description, though. It's also the facilities used to do so
<gorgonical> Almost all platforms have an IPI mechanism, and now Linux has a "generic" API for this. But afaict only the mips code uses it. Everyone else just directly calls whatever the irqchip implements
<gorgonical> "now" being 2015
rnicholl1 has quit [Quit: My laptop has gone to sleep.]
vdamewood has joined #osdev
SGautam has joined #osdev
<Bitweasil-> *shrug* Yeah. Computers suck.
Bitweasil- is now known as Bitweasil
<gog> computers do suck
<gorgonical> I guess I got used to the simplicity of my kernel and I'm rather used to using IPIs to signal stuff that I was shocked Linux doesn't have a more flexible way to do this
<gorgonical> Relying mostly/entirely on cross-calls and stuff
<zid> I wouldn't wanna try merge acpi and devicetree that's nutty
tomith has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<geist> but yeah i find that linux's arch abstraction to be quite 'high' compared to the BSDs
<geist> ie, it puts more onus on the arch layer to implement the optimal version of things
<geist> for better or worse, really
<sham1> Wouldn't that make it *pessimal*
<Bitweasil> Not really.
<moon-child> implementing a higher-level interface means they have more flexibility in how they do it
<Bitweasil> ^^
<moon-child> vs forcing everything to al owest common denominator
<moon-child> where you may not be able to take advantage of things that aren't available everywhere
<Bitweasil> So, look at page tables. Everything modern does page tables... *somehow.* Some concepts are similar, some simply aren't.
<moon-child> this is always the case. Lower-level interfaces give you more control, but higher-level interfaces can be optimised. Sql is a prominent example
<Bitweasil> If you make too low level of an abstraction, you can't make use of things that some architectures may not support.
<Bitweasil> ARM page tables and x86 page tables are compatible...ish. Except ARMv8 supports 16kb and 64kb granules. And two page table base regions (TTBR0/TTBR1). And different size large pages. Etc.
<Bitweasil> And x86 now has 5 level paging.
<Bitweasil> Make your abstraction very "4kb and 4 layer 64-bit paging," and you can't take easy advantage of the stuff ARM offers.
<Bitweasil> IIRC, Apple uses 16kb granules on most of their stuff.
<moon-child> yeah
<Bitweasil> Though I'm still not sure how to tell the Linux kernel to do that for tasks... I never dug into it very hard, but I so wanted to run 16kb or 64kb granules on ARMv8 just for the funsies.
<Bitweasil> I sort of wimped out and went to Qubes, though. :/
<Bitweasil> The ARM boxes didn't have the resources or sane kernel support for the isolation I increasingly think is sane.
<Bitweasil> (say, "browsers snoofing your localhost to fingerprint your system" being a thing)
<moon-child> I know someone who runs different hardware for each browser tab
<moon-child> cheap arm cores. Open tab -> boot new vm on dedicated computer -> stream video over network
<moon-child> honestly seems rather sane ...
<gorgonical> that kind of reminds me of the hardware multitasking thing I saw on hn a while back
<Bitweasil> moon-child, do you happen to know what software they're using to do that?
<Bitweasil> I've thought pretty hard about it.
<Bitweasil> Qubes gets me at least partway there, in that the browser I use for most stuff is in an ephemeral/disposable VM that only does random web stuff.
<Bitweasil> There was some startup I interviewed for that was doing "browser streaming over video," but they were focused on getting hundreds of tabs going on a low end laptop, and didn't seem to care about the security benefits of it.
<Bitweasil> ... and I don't do oncall anymore.
doppler has joined #osdev
clever has joined #osdev
<gog> :<
<Bitweasil> Hm. BrowserBoxPro is open source, I might mess with that.
<Bitweasil> "Mighty" is a company doing it, but... wasn't too impressed with them, and they don't seem to isolate, it's just "a really powerful remote browser."
vdamewood has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gorgonical> Finally found that project
<bslsk05> ​www.chrisfenton.com: The ZedRipper: Part 1 – chrisfenton.com
rnicholl1 has joined #osdev
awita has quit [Remote host closed the connection]
rnicholl1 has quit [Quit: My laptop has gone to sleep.]
<mjg> where is heat
xenos1984 has quit [Read error: Connection reset by peer]
<mjg> he promised me some windows results
<mjg> i managed to verify on my local install that there is a routine KeZeroSinglePage which uses nt stores
<mjg> but i don'th ave means to verify this is what is being used
goliath has quit [Quit: SIGSEGV]
<moon-child> have you tried gitting gud?
<mjg> yes and decided against it
<gorgonical> why in the goddamn did Linux decide to use the same term, irq, for both the physical vector and the linux irqs?
<gorgonical> It makes it so difficult to understand if a function operates on physical vector numbers or the linux-assigned irq number for an interrupt event
<immibis> because they are the same thing
<gorgonical> they are not at all
<immibis> that's like asking why virtualization software uses "CPU" to refer to both CPUs being virtualized as well as CPUs the virtualization software is running on
<Bitweasil> Eh...
<immibis> why does a pencil factory use "pencil" to refer to the product being made as well as the tools used to track the products being made
<Bitweasil> Most use vCPU to refer to the virtual CPUs.
<gorgonical> your argument is the same as asking why we clarify between virtual and physical addresses because they're both the same addresses
<immibis> did you notice that both of them are called addresses though?
<Bitweasil> And hpa/gpa to refer to host physical vs guest physical.
biblio has quit [Quit: Leaving]
<gorgonical> indeed, and if Linux consistently called them something extra that would be totally fine with me
<immibis> does linux even assign IRQ numbers? I thought
<immibis> that linux just represented the hardware IRQs
<Bitweasil> I'm with gorgonical here. Using the same term for both is needlessly confusing.
<gorgonical> hwirq and kernirq would be acceptable
<gorgonical> but just irq is confusing
Turn_Left has quit [Read error: Connection reset by peer]
<immibis> but with linux-assigned numbers because different chips would have overlapping numbers otherwise
<Bitweasil> Yeah, what's a "hardware IRQ"? :p Anymore, that's not exactly a clear term.
<gorgonical> immibis: on ARM e.g. you have wacky overlapping ranges and such
<immibis> probably what you mean is global and local IRQ numbers
<Bitweasil> Raise your hand if you've tried to figure out wtf a DTB means with regards to how an interrupt is plumbed...
<immibis> i.e. system IRQ 42, vs chip 1 IRQ 10
<Bitweasil> You don't use ARM, do you?
<gorgonical> Yeah but who defines system IRQ 42? That's linux's view of the irq mapping
<Bitweasil> There's some weird plumbing into the GIC and how it reports stuff.
<gorgonical> the gic reports an interrupt number and has its base offsets that tell you what class of interrupt it is, but it's up to you to decide how to number it
<Bitweasil> You can have per-CPU interrupts and global interrupts (roughly, APIC and IOAPIC in x86).
<gorgonical> the manual says 0-15 are ipis, but your controller is not *required* to report them that way
<Bitweasil> And God help you when you get into virtualized stuff.
<gorgonical> yeah the gic is a fucking nightmare sometimes lol
<Bitweasil> I know, I've written a GICv2.
<Bitweasil> Without virt support.
<gorgonical> Eep
<gorgonical> The drivers for a gicv2 aren't that bad at least
<Bitweasil> I dread the day someone needs ARM virtualization support. :/
<Bitweasil> Nah, it's not *that* bad an interrupt controller.
<Bitweasil> Though I'm jealous of the M series guys and their large IVT.
<gorgonical> yeah honestly for my trustzone project the gic3 has been very useful and compatible
[itchyjunk] has joined #osdev
<gorgonical> It just already does all the things
<Bitweasil> I've got the security extensions and such plumbed through.
<Bitweasil> So the whole "FIQ as secure interrupt" thing works.
<Bitweasil> And if it's a secure interrupt, non-secure can't modify it, etc.
<gorgonical> nice. When I read that you can just set NSACR and then you have cross-security domain interrupts I was so relieved lol
xenos1984 has joined #osdev
<gorgonical> I've already mucked around so much in arm TF-A I did not want to implement trap and emulate for that
<Bitweasil> I... can't recall if I implemented that or said "Oh hell... //TODO"
<Bitweasil> Mostly, I'm considering what I can do that's not computers that I can earn a living at. :(
<gorgonical> You could start making leather moccasins
<Bitweasil> I'm well paid for my skillz, but they're all in a domain I more and more hate.
<immibis> gorgonical: linux defines it by concatenating all the chips in some arbitrary order
\Test_User has quit [Ping timeout: 250 seconds]
\Test_User has joined #osdev
<Bitweasil> Alright, I'm out. Need to beat on non-computer stuff for the weekend.
Vercas has quit [Ping timeout: 240 seconds]
<gog> hi
<zid> glorp
vdamewood has joined #osdev
<bl4ckb0ne> bonjour gog
<gog> hi bl4ckb0ne
<gog> how are you
<gog> zid:
<gog> zid
<gog> me_irl
<bl4ckb0ne> good, you?
<gog> it's 23:20 and i'm drinking coffee
<bl4ckb0ne> i went to sleep last night instead of fixing my paging
<gog> good
* vdamewood gives gog a fishy
* gog chomp fishy
<gog> tomorrow is friday
<gog> fri-yay
<bl4ckb0ne> now i understand the weakness of the flesh
<gog> i had another busy week at work and it was good, i killed some bugs and have a new prototype for transaction flow
<zid> I'll me_irl you if you're not careful
<gog> you won't, coward
<bl4ckb0ne> imbetween contracts, all days are sundays here
<gog> nice
<bslsk05> ​preview.redd.it: Reddit - Dive into anything
<zid> me_irl
<gog> it's almsot time to demand more money, i'm approaching my one year mark
<gog> lel
<vdamewood> The one-year mark sounds like a pre-euro German pay increase.
<gog> haaaa
<vdamewood> It's been a year, you get your one-year mark now.
Vercas has joined #osdev
<zid> oh I got it
<gog> hi
<zid> gog I wanna get married
<zid> do they still sell thai brides or is that not allowed anymore
<gog> i'm flattered but i'm--oh
<gog> i don't think so
<zid> You can marry me if you like
<zid> You'd look good in a dog dollar
<bnchs> :o
<gog> heh
<gog> funny story, i actually have a collar i wear sometimes
<zid> do you give blessings?
<gog> it's not that kind of collar
<zid> oh
<vdamewood> Sounds like the kind of collar my friend wears.
<zid> what's that witch girl called
<zid> who is a witch in every movie that needs a witch
<vdamewood> Kiki?
<zid> she has a funny like, iranian name or something
<zid> mofara soukabralka
<zid> Fairuza Balk
<gog> i love her!
<zid> I'm fairly sure she's the reason I think collars are hot
<zid> I can't prove it though
<gog> same
<vdamewood> I've never heard of her.
<zid> you should watch The Craft, vdamewood
<vdamewood> Noted
* vdamewood crafts a watch
<vdamewood> ... oops.
<zid> Matthew Jacobs and Julia Brucculieri of the Huffington Post, writing in 2016, praised The Craft for departing from clichés of the teen movie genre and incorporating darker themes, saying it became "part of the '90s teen canon and a cult classic of its own merit."
nvmd has quit [Quit: WeeChat 3.8]
nvmd has joined #osdev
<zid> gog: If I ever show up in iceland, we should eat pizza and watch the craft
<gog> ok
<gorgonical> I have heard the hotdogs are good too
<zid> idk, they're pretty sexually suggestive when I eat them
<zid> might get gog a little too hot and bothered
<gorgonical> though I reckon a local doesn't eat at that place much
<gorgonical> If it shows up on the tourist lists
<gog> i'll get one every now and then
<gog> this time of year the lines are often long tho
<gorgonical> high tourism season yeah?
<gog> yeah it's pretty busy rn
<gorgonical> when's the eternal day? that's in a few weeks right?
<gog> already passed
<gorgonical> ah
<gog> about a week ago
<gog> still dusk rn, almost midnight
<gog> will be sunrise in 3 hours
<mcrod> hi
<gorgonical> totally wild to me
<mcrod> gogonical
<zid> summer ending here :
<gog> osdev meetup reykjavik 2023
<zid> I get night back in less than a month
<gog> justin trudeau was here the other day
<zid> did you throw anything
<gog> didn't run into him sadly
<zid> I think everybody should just throw things at all politicians, whenever they see them. If you like them throw poutine or whatever, if not throw cake and eggs and stuff
<gog> yes
<bl4ckb0ne> poutine is vgood
<gog> poutine
<gog> i want some
<bl4ckb0ne> theres one with maple syrup ham at a nearby restaurant
<bl4ckb0ne> its the best ive had so far