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
<PublicWiFi> im really struggling with the virtual drives and how to properly abstract away the physical drive from it
eluks has joined #osdev
netbsduser has joined #osdev
netbsduser has quit [Ping timeout: 248 seconds]
c0co has joined #osdev
fedaykin has quit [Quit: leaving]
fedaykin has joined #osdev
edr has quit [Quit: Leaving]
<Mutabah> PublicWiFi: You don't really need "virtual drives". The simplest VFS is the unix unified filesystem model - you mount filesystems at specific paths
marv7000 has quit [Quit: Ping timeout (120 seconds)]
marv7000 has joined #osdev
arminweigl_ has joined #osdev
arminweigl has quit [Ping timeout: 276 seconds]
arminweigl_ is now known as arminweigl
marv7000 has quit [Quit: Ping timeout (120 seconds)]
marv7000 has joined #osdev
agent314 has quit [Quit: WeeChat 4.5.2]
c0co has quit [Ping timeout: 260 seconds]
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
karenw has joined #osdev
terrorjack has joined #osdev
MrBonkers has quit [Remote host closed the connection]
melnary has quit [Remote host closed the connection]
melnary has joined #osdev
karenw has quit [Ping timeout: 252 seconds]
GeDaMo has joined #osdev
MrBonkers has joined #osdev
goliath has joined #osdev
Matt|home has quit [Quit: Matt|home]
dotexe1337 has joined #osdev
Yoofie6464463823 has quit [Read error: Connection reset by peer]
Yoofie6464463823 has joined #osdev
Lucretia has joined #osdev
dotexe1337 has quit []
<kof673> PublicWiFi, drives sounds like something dos or cp/m invented. disk -> partition -> filesystem maybe if you have a disk simulated inside a file like an iso then "virtual disk" maybe, but that is just a "backend"
<kof673> to each their own, just where are you getting this terminology?
<kof673> muddled terminology -> muddled thinking. just find some clear terms for whatever you want to do :D
c0co has joined #osdev
<Ermine> glibc condvars are not great for rt
<Ermine> "its condition variable implementation does not honor priority inheritance" - https://wiki.linuxfoundation.org/realtime/documentation/howto/applications/application_base
<bslsk05> ​wiki.linuxfoundation.org: realtime:documentation:howto:applications:application_base [Wiki]
Left_Turn has joined #osdev
kata has quit [Ping timeout: 265 seconds]
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 248 seconds]
Left_Turn has joined #osdev
kata has joined #osdev
Turn_Left has quit [Ping timeout: 248 seconds]
kata has quit [Quit: ZNC 1.10.1 - https://znc.in]
kata has joined #osdev
netbsduser has joined #osdev
zid` has joined #osdev
zid has quit [Ping timeout: 268 seconds]
<bslsk05> ​'Miroslav Franc, Marcela Mašláňová, Nikolay Gueorguiev: s390x architecture at SUSE' by SUSE Labs
<_Heat> there you go
<nikolar> yeah i've seen taht video actually
<_Heat> ok good
<_Heat> there you don't go then
<nikolar> yeah thanks _Heat
<_Heat> you're welcome _Nikolar
<nikolar> i am not a reserved identifier
<_Heat> you're a typedef?
<_Heat> typedef _Heat heat;
_Heat is now known as heat
<kof673> /* TODO: ugly hack for backwards compatibility, fix later */ #define heat _Heat
<heat> i don't remember that being in C11
c0co_ has joined #osdev
c0co has quit [Killed (NickServ (GHOST command used by c0co_))]
c0co_ is now known as c0co
<nikolar> it wasn't, he's halucinating
<kof673> c11 forbids defines? good thing i stay on c89
<heat> no, that's C++11
<heat> if you say #define in r/cpp you'll be shot on sight
<nikolar> in r slash c preprocessor?
<nikolar> that's odd
<pog> you do with template trickery what we used to do with preprocessor shenanigans
<kof673> i woudln't blame that on typewriters, and comments say not a C issue either, logic error in code, but butterfly effect maybe ;D https://github.com/acheong08/CVE-2025-48384
<bslsk05> ​acheong08/CVE-2025-48384 - Breaking git with a carriage return and cloning RCE (10 forks/16 stargazers)
<kof673> the commentary referred to typewriters though as where it came from lol
<heat> hey that's not good
<heat> this is my experts' opinion on this
<heat> Not Good
<kof673> it was just meant as all language is preprocessed :D just it is taken for granted/etc.
<pog> peeprocess
<nikolar> heat: you're not a git guy so your expert opinion is disregarded
<pog> git gud
<Ellenor> gits u
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 272 seconds]
<heat> oh i'm a git alright
<nikolar> you're alright, git
mrpops2ko has quit [Read error: Connection reset by peer]
mrpops2ko has joined #osdev
<Ellenor> my brain is full of nonsense.
mrpops2ko has quit [Read error: Connection reset by peer]
<Ellenor> I wonder how a DOS programme would, theoretically, detect the presence of a multi-core CPU.
<nikolar> oh i thought that was Ermine
<nikolar> lol
<Ellenor> do we look that alike?
<zid`> a dos program would have to write it itself, I'd guess
<nikolar> your nicks start with capital e and they are the same color in my client
mrpops2ko has joined #osdev
<zid`> unless there's a multicore dos out there somewhere
mrpops2ko has quit [Read error: Connection reset by peer]
<nikolar> i kind of remember hearing about somthing like that existing
<heat> Ermine: cpuid
<nikolar> not sure if i just imagined it
<aaabbb> /6/6
<Ellenor> zid`, yeah, probably
* kof673 points at netware j/k i wonder about older versions though
<nikolar> heat: it's not Ermine kek
<Ellenor> heat, I don't think Ermine wants to know anything.
<heat> nikolar: it's definitely ermine
<kof673> at some point it was dos-based, and at some point it had smp, just not sure if those intersect
<nikolar> heat: is it
<heat> yeah
mrpops2ko has joined #osdev
Ellenor is now known as ELENORO
<ELENORO> This better?
<nikolar> that's a different color now
<ELENORO> Also: Ermine is Russian and probably a guy, I'm Anglo-Canadian and a lady (or something that rounds to one).
<zid`> Up or down?
<ELENORO> nearest-neighbour
<kof673> there were many dos variants, multi-user dos etc. just ms-dos and ibm and maybe dr-dos were possibly the 'big' ones
<aaabbb> tr-dos
<zid`> tr/dos/g
heat is now known as nikolarian
<nikolarian> we ballin
<ELENORO> vucking hell
<ELENORO> is this the #osdev sense of humo(u)r?
<nikolar> oh heat, that's plagiarism
<zid`> for realsies though I wonder how hard it'd be to run like, multiseat dos, one dos per core
<nikolar> or nikolarian rather
<zid`> I bet most biosen are not infact, re-entrant though
<nikolarian> they're not
<zid`> so you'd have to wrap everything in exclusively dos syscalls
<nikolar> they indeed aren't lool
<ELENORO> zid`, i mean how would you like, gate hardware access, ensure that each dos could access hardware in a manner that wouldn't step on each other
<zid`> you sort of wanna do that anyway just for the screen drawing
<zid`> one MASTER DOS on core 0 that does the i/o, the rest get neutered
<aaabbb> trying to make dos smp aware? lol
<ELENORO> no aaabbb, trying to keep dos blissfully unaware of being run next to something
<ELENORO> or not exactly blissfully, but mostly
<goliath> *cough* VM86
<zid`> might be easier to hyperdos
<ELENORO> i mean maybe
nikolarian is now known as heat
<ELENORO> I guess I'd need to write my own EMM implementations to blank out swaths of memory reserved by my nonsense
<ELENORO> assuming that's even, possible
<ELENORO> i don't even know what i'm saying
<ELENORO> i just know that tricking the system will be hard.
<zid`> tricking dos not to use various memory is the easy bit the hard part will be stopping it using the bios :P
<zid`> you're basically just reimplementing half a hypervisor though
<kof673> ^ i just don't want to say it is impossible. in software...question is how much work is needed
<nikolar> i wonder how weechat colors nicks
<nikolar> heat's was the same color as mine when he was nikolarian
<heat> i think they usually run a hash function over the name
<heat> and color based on that
<zid`> 100% a hash yea
<nikolar> ermine and ellenore, and nikolar and nikolarian are suspiciously close in color then
<kof673> ermine means/is spotted, you need to watch more eyes wide shut j/k you walked right into that :D
<ELENORO> zid`, yeah, BIOS functions will need to be overrode
<ELENORO> which will not be easy
<zid`> Piece of piss
<zid`> install your own handler that checks for ax=820, if not, call the original handler
<zid`> easier than doing it on say, windows
<zid`> because you don't have to fuck with relocations
Brnocrist has quit [Ping timeout: 276 seconds]
<Ermine> heat: https://tpaste.us/MYNv
Brnocrist has joined #osdev
<nikolar> oi ermine's back
<heat> nice
<heat> hi ELENORO
<zid`> that program is cool
<zid`> what generated it
<nikolar> yea i wondered that too
<heat> cpuid
<heat> sudo zypper in cpuid
<Ermine> heat: show ur cpuid too
<heat> i don't support any use of other distros during working hours
<zid`> emerge sys-apps/cpuid is probably it if I had to guess
<zid`> ya it was
<ELENORO> hi Ermine
<ELENORO> it would seem people think we are the same person
<zid`> I mean, no we don't
<Ermine> ELENORO: hi
<Ermine> let's act like we are the same person
<Ermine> to confuse everyone
<nikolar> you already did that
<nikolar> we're over it
<bslsk05> ​gist.github.com: cpuid · GitHub
<zid`> I'm under hv so none of mine is correct :'(
<zid`> multiprocessing capable = false
<zid`> rip
edr has joined #osdev
<nikolar> have fun
<Ermine> heat: thx
<heat> i'll do it on my zen5 later
<Ermine> you have AVX512 stuff that I don't have
<Ermine> the and seems like AMD doesn't write model name into the cpu
<Ermine> but the diff is quite large
<zid`> cpuid just forgets to dump it entirely it seems more like
<nikolar> heat you have zen5 too right
<nikolar> i have zen5 but mobile
<heat> i'm on the work laptop now, which is zen4
<nikolar> ah ok
<heat> but yeah i have zen5
<nikolar> my pc is zen4 kek
<nikolar> we're reversed
<zid`> 0x80000002 0x00: eax=0x20444d41 ebx=0x657a7952 ecx=0x2037206e edx=0x30303835
<nikolar> maybe your cpuid is too old to decode it kek
<zid`> DMAerzyR 7 n0085
<zid`> nikolar: it's been this way since the 70s though
<zid`> and I jus freshly installed it
<nikolar> kek
<zid`> Stoat ~ # gcc cpuid.c -masm=intel && ./a.out
<zid`> AMD Ryzen 7 5800
<bslsk05> ​godbolt.org: Compiler Explorer
<zid`> My version better than the one in portage
manawyrm has quit [Quit: Read error: 2.99792458 x 10^8 meters/second (Excessive speed of light)]
adder has quit [Ping timeout: 260 seconds]
adder has joined #osdev
manawyrm has joined #osdev
<nikolar> i think it's missing some characters lol
<zid`> it isn't
<nikolar> in that case, i apparently have `AMD Ryzen AI 5 3`
<zid`> yea, duplicate it
<zid`> and change 8000002 to 8000004
<zid`> but you'll have to find the end yourself and cut the %c spam off
<nikolar> so you are missing chars
<zid`> No, It prints 0..15 perfectly
<zid`> none missing from that set :P
<nikolar> but you're missing the rest :P
<zid`> there are no more things in that set silly
<pog> you can only get 16 characters from that leaf
<pog> so there's no possible way to miss any if you hardcode it for 16
<nikolar> i didn't say he missed chars *from that leaf*
<zid`> It perfectly prints the first 16 characters of your cpuid, none missing
<nikolar> but it certainly isn't printing my cpu's full name
<zid`> no idea why you're complaining
<pog> your CPU should get a better name
<pog> skill issue
<zid`> Mr AMDRyzen AI 5 3
<zid`> Mine is missing its 'X'
<pog> AI AI AI AI
<nikolar> i don't think linux even has drivers for the npu junk
<nikolar> don't think it ever lit up lol
<kof673> ye ye ye ye ye -- m j g, also xena warrior princess
<zid`> butwho cares
manawyrm has quit [Quit: Read error: 2.99792458 x 10^8 meters/second (Excessive speed of light)]
<heat> nikolar: RYZEN AI
<heat> FINALLY
manawyrm has joined #osdev
<zid`> Stoat ~ # gcc cpuid.c -masm=intel && ./a.out
<zid`> X 8-Core Process
<zid`> AMD Ryzen 7 5800
<zid`> or
<zid`> happy now nik?
<bslsk05> ​godbolt.org: Compiler Explorer
<zid`> It should be space padded and not print junk, but there have been cpu errata where that isn't the case
<heat> no, i prefer the RYZEN AI
<pog> like how it's not alwyas nul-terminated but that's easy, just get all the characters and add one more for the nul and then trim
<zid`> nikolar's cpu is AI powered, means it drinks its own piss and gives the wrong answer?
<pog> hey now
<pog> it probably doesn't drink it's own piss
<zid`> its
<zid`> that's how AI works though pog
<pog> and that has nothing to do with giving a wrong answer
<PublicWiFi> kof673: yeah its actual dos or cp/m terminology xD
<PublicWiFi> actually*
<zid`> Drinks its own piss is how they train them
Turn_Left has quit [Read error: Connection reset by peer]
<zid`> pirated content -> AI -> piss -> AI -> piss -> AI -> piss -> AI -> google results
Left_Turn has joined #osdev
<aaabbb> you forgot "heavy misguided censorship" between each one
<nikolar> heat: don't worry about it
<nikolar> it's not AIing at all
<zid`> nikolar: What does new version say?
<zid`> I wana know what model of AI it uses
<nikolar> zid`: AMD Ryzen AI 5 340 w/ Radeon 840M
<zid`> 340 AIs
jcea has joined #osdev
innegatives has quit [Quit: Connection closed for inactivity]
innegatives has joined #osdev
dotexe1337 has joined #osdev
goliath_ has joined #osdev
goliath has quit [Ping timeout: 244 seconds]
goliath_ is now known as goliath
goliath has quit [Quit: SIGSEGV]
jcea has quit [Ping timeout: 245 seconds]
<zid`> nikolar: have you looked at your ai nonsense at all?
<nikolar> nope
<nikolar> which part
<zid`> of your cpu
<nikolar> nada
<nikolar> it's not like i'd use it for anything
<zid`> they bought xilinixnix and added some weird thing to their cpu, apparently
<nikolar> i don't need that many matrix multiplication
<nikolar> zid`: didn't they acquire xilinix forever ago
<nikolar> (and by that i mean in like 2019 or sometihng)
<zid`> so literally yesterday
<nikolar> in tech?
<nikolar> nah
<zid`> My last cpu was from 2011 and it's the exact same shit as my current one
<nikolar> well i wouldn't say that
<zid`> 2019, few years to do some actual design etc
<zid`> makes it at most 2-3 years old
<nikolar> yeah either way, i don't think they've even upstreamed the linux drivers yet
<zid`> linux has support
<zid`> since 2024
<zid`> says wookipedia
<nikolar> what for exactly
<nikolar> since iirc, this chip came out this year kek
<zid`> the xilinx accelerator chip
<zid`> ??
<nikolar> to be honest, i haven't looked into that in a while
<nikolar> apparently, they are calling it AMD XDNA nowadays
<nikolar> let's see what dmesg has to say
<nikolar> [ 3.493372] amdxdna 0000:c2:00.1: enabling device (0000 -> 0002)
<nikolar> [ 3.595150] [drm] Initialized amdxdna_accel_driver 0.0.0 for 0000:c2:00.1 on minor 0
<nikolar> did something
<nikolar> yeah, lspci also shows that it bound a driver
<nikolar> i think last time i checked, i was on an lts kernel and there was no driver
<nikolar> zid`: ^
<zid`> I knew it had support
<zid`> you were the one who thought it was impossible because you only bought your specific laptop recently
<nikolar> because it didn't have a driver on the lts kernel i was running
<zid`> and not you know, support existing before the cpus being available, and cpus other than yours being available
<nikolar> i just never checked after i moved to mainline
<nikolar> i wonder if anything can even use this thing anyway
<zid`> anyway, I wanted to know if you knew anything about it, I wanted to know what the interface was, and what it can actually.. do
<zid`> is it an fpga?
<nikolar> no?
<nikolar> it's an on cpu die thing
<nikolar> like an igpu
<zid`> boring
<zid`> your 300+ cpu has xdna2 apparently
<zid`> third gen chip
<nikolar> yea i've just read that bit
<nikolar> > A microcontroller runs NPU Firmware which is responsible for command processing, XDNA Array partition setup, XDNA Array configuration, workload context management and workload orchestration.
<zid`> just a boring gpu yea
<zid`> they added some tensor units from a graphics card, to the integrated graphics
<nikolar> it's a separate device from the igpu, with its own dma, and control mcu etc
<nikolar> but kind of the same idea, yea
<nikolar> i just can't find any software that can acutally use it kek
<zid`> It's probably internal-only
<zid`> to various slophouses
<zid`> $2000/seat voip software with AI NOISE CANCELLING
<nikolar> i mean they made the effort to make it work on linux
<nikolar> is there anything that can make use of it kek
<zid`> Literally the thing I just said
<nikolar> apparently, there are people implementing support for some slop runners
<zid`> open source doesn't care because open source isn't trying to market themselves by adding slop
<zid`> corporate world is
<nikolar> yeah guess so
<nikolar> though i am sure some people care regardless (not me though=)
<zid`> might be useful to have some support for it for some niche stuff just in terms of free processing power like having an extra core
<nikolar> if i could use it like a opencl target or something, that would be cute
<nikolar> otherwise, meh
<zid`> but it's a lot of work
<zid`> and not very common
<heat> i have stable diffusion installed locally
<nikolar> i guess i can count it as free power savings, because if i was on windows, it would be constantly running the recall model thingy
<heat> have played around with it
<nikolar> heat: does it use the npu
<heat> no, it uses CUDA
<nikolar> so, irrelevant kek
<zid`> yea that's the main thing
<zid`> if you're properly INTO that stuff
<zid`> you're using nvidia cards
<heat> the sad part is that 1) even with 12GB vram i'm still a bit short on it
<zid`> not 'oh well we have a 5% as powerful version on the cpu, write a bunch of code so we can do a graceful fallback on 5% of machines'
<heat> 2) it's all kind of insane and I can't get anything as cool as I'd like
<zid`> feed it more footballers
<bslsk05> ​amd/xdna-driver - (78 forks/429 stargazers/NOASSERTION)
<bslsk05> ​Xilinx/XRT - Run Time for AIE and FPGA based platforms (492 forks/606 stargazers/NOASSERTION)
<nikolar> zid`: well microsoft is pushing the copilot+ pc thing
<heat> at the end of the day i'm just using a lot of energy to crap out mid AI-ey images
<nikolar> so it's not going to be 5% of laptops at least
<zid`> heat's command history: STABLE_DIFFUSIOn.exe "FOOTBALLER WITH VERY SEXY LEGS PLS"
<heat> yes.
<zid`> "NO, SEXIER THAN THAT"
<nikolar> i don't think you can go back and forth with stable diffusion sadly
<zid`> you can't with gpt either, it just appends the strings
<nikolar> he'd need to write "FOOTBALLER WITH EXTREMELY SEXY LEGS THIS TIME PLS"
<zid`> and prepended is a giant thing with all the rules
<nikolar> yeah but there are no strings to appenr
<nikolar> just images
<zid`> you still input a query
<GeDaMo> Some of the image things can take an image as input and modify it
<zid`> it has a database of "tench" -> stolen facebook photo of some fingers
<GeDaMo> I've read something about giving a sketch as input and producing a realistic image from it
<zid`> yea that's content aware fill
<zid`> adobe has it had for 20 years
<bslsk05> ​openart.ai: Sketch to image
<kof673> i haven't used them, but there is some kind of level of meta to be translating "backwards" nowadays, text -> picture :D
<kof673> decompiler maybe
<pog> well a picture is worth 1000 words so do it in at least that
<bslsk05> ​hackaday.com: ChatGPT Patched A BIOS Binary, And It Worked | Hackaday
vai has joined #osdev
vai is now known as Jari--
edr has quit [Ping timeout: 276 seconds]
edr has joined #osdev
edr has quit [Ping timeout: 248 seconds]
Matt|home has joined #osdev
xvmt has quit [Read error: Connection reset by peer]
xvmt has joined #osdev
tuttza has quit [Quit: tuttza]
jcea has joined #osdev
EspressDelivery has joined #osdev
<EspressDelivery> Hello all
<nikolar> hello
EspressDelivery has quit [Ping timeout: 260 seconds]
vdamewood has quit [Quit: Life beckons]
cross has joined #osdev
\Test_User has quit [Ping timeout: 244 seconds]
\Test_User has joined #osdev
dotexe1337 has quit [Ping timeout: 268 seconds]
eluks has quit [Remote host closed the connection]
<Ermine> hello, deliver me espresso plox
<zid`> what'san espress
<zid`> what's an espress
<nikolar> expresso
<zid`> what
<nikolar> what
<zid`> at least we agree on that part
tigerbrother has quit [Quit: Ping timeout (120 seconds)]
tigerbrother has joined #osdev
jcea has quit [Remote host closed the connection]
jcea has joined #osdev
GeDaMo has quit [Quit: 0wt 0f v0w3ls.]
Ermine has quit [Ping timeout: 260 seconds]
Ermine has joined #osdev
c0co_ has joined #osdev
c0co has quit [Killed (NickServ (GHOST command used by c0co_))]
c0co_ is now known as c0co
kfv has joined #osdev
kfv has quit [Remote host closed the connection]
kfv has joined #osdev
c0co_ has joined #osdev
c0co has quit [Killed (NickServ (GHOST command used by c0co_))]
c0co_ is now known as c0co
kfv has quit [Remote host closed the connection]
kfv has joined #osdev
kfv has quit [Remote host closed the connection]
kfv has joined #osdev
Lucretia has quit [Remote host closed the connection]
kfv has quit [Remote host closed the connection]
kfv has joined #osdev
c0co has quit [Ping timeout: 276 seconds]
c0co has joined #osdev
kfv has quit [Remote host closed the connection]
kfv has joined #osdev
c0co_ has joined #osdev
c0co has quit [Killed (NickServ (GHOST command used by c0co_))]
c0co_ is now known as c0co
kfv has quit [Remote host closed the connection]
kfv has joined #osdev
kfv has quit [Client Quit]
netbsduser has quit [Ping timeout: 276 seconds]
itrsea has joined #osdev