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
<heat> does the quantum computer check your research grant?
<heat> your 30 day evaluation period of quantumzip has ended, please enter your research grant
<zid`> it calculates the quantum wave function of it
<zid`> and it has to not collapse to 0
<zid`> if it collapses to 0, all the terms of the expansion have a 0 coefficient and disappear
<zid`> and don't get included in the final sum
leon has quit [Ping timeout: 244 seconds]
leon has joined #osdev
Mutabah has quit [Ping timeout: 276 seconds]
housemate has quit [Ping timeout: 248 seconds]
fedaykin has quit [Quit: leaving]
fedaykin has joined #osdev
<bslsk05> ​www.reddit.com <no title>
<heat> yotld
<heat> in 2025 onyx will take away the entire piechart btw
<nikolar> let's go
<nikolar> the year of the linux desktop is the next year (perpetually)
Mutabah[ucc] has joined #osdev
<cloudowind> metal collars coming
housemate has joined #osdev
bliminse has quit [Ping timeout: 244 seconds]
bliminse has joined #osdev
housemate has quit [Read error: Connection reset by peer]
<klys> looking around it appears that recent amdgpu hardware has a cbranch instruction. this is perhaps capable of inferring a conditional branch. is anyone aware of efforts to port gcc to amdgpu?
<heat> llvm does $stuff related to amd and nvidia gpus
<heat> definitely no gcc effort because FSF copyright assignment and GPL and companies get spooked
<klys> can clang be used to compile C into amdgpu instructions?
<heat> yesish i think
<heat> there's a backend for amdgpu instructions of sorts, i dont know what that entails
<geist> try it on godbolt
<klys> how can llvm be compiled to enable that
<geist> it's probably in the existing default list of targets
<bslsk05> ​godbolt.org: Compiler Explorer
<childlikempress> conditional branches are 'sort of' a thing since forever
<childlikempress> however amd has weak progress guarantees (or at least used to)
<geist> add `-print-targets` to the clang command line to get the list
<klys> amdgcn ?
<heat> yeah that
ring0_starr has quit [Remote host closed the connection]
zijjgfs has joined #osdev
<geist> though i'm not sure that's the current AMD stuff, since they switched off GCN to the new stuff last decade
<geist> RDNA now
<geist> which isn't in the list
<klys> so back to llvm
pabs3 has quit [Quit: Don't rest until all the world is paved in moss and greenery.]
<heat> yeah but is that a different ISA though?
<bslsk05> ​chipsandcheese.com: Examining AMD’s RDNA 4 Changes in LLVM - by Chester Lam
<geist> looks like it according to wikipedia i think
<geist> well i guess it doesn't explicitly say it, but i'm guessing it does
<bslsk05> ​llvm.org: User Guide for AMDGPU Backend — LLVM 20.0.0git documentation
<klys> and even that page covers rdna 1, 2, and 3.5
<geist> oh cool. so yeah there you go
<geist> RDNA is close enough to GCN that it's covered with the same arch
<geist> makes sense, GCN is when they switched away from VLIW stuff
<klys> when I try to specify -mcpu=gfx12-generic or gfx11-generic then it gives me a version error at godbolt
<klys> ...is only available on code object version 6 or better
<heat> >-mcumode
<heat> yep enough internet for today
<geist> NO STAY WITH US
<geist> write russsssst
<heat> ROST
<heat> CARGOOOOOOOOOOOOOOOOOOOOOOO
<geist> CAAAARRRGO
<heat> klys, -mcode-object-version=6
<heat> it's on the page i linked
<bslsk05> ​godbolt.org: Compiler Explorer
<klys> erm
pabs3 has joined #osdev
<bslsk05> ​godbolt.org: Compiler Explorer
<klys> where the objecgt is to write complex enough code to where it cwapitulates to the desire for a conditional branch
<klys> either that or put one in the inline assembly asm(...)
<klys> in any case where is that syscall
<heat> what syscall
<klys> is my stdlib an empty function
<heat> what
<klys> I put a printf(...) in there
<heat> you're returning early
<heat> gotta delete that line
<klys> oic
<bslsk05> ​godbolt.org: Compiler Explorer
<klys> s_cbranch_execz on line 51
<Mutabah[ucc]> No return value? that can break codegen (I have no idea of the issue here)
<klys> okok
<heat> clang the type of compiler to call a hitman on you if you forget a return
xenos1984 has quit [Read error: Connection reset by peer]
<bslsk05> ​godbolt.org: Compiler Explorer
heat has quit [Ping timeout: 248 seconds]
<CompanionCube> iirc gcc *had* a gcn backend at some point, didn't it?
<CompanionCube> https://gcc.gnu.org/onlinedocs/gcc/AMD-GCN-Options.html seems to still have one
<bslsk05> ​gcc.gnu.org: AMD GCN Options (Using the GNU Compiler Collection (GCC))
<klys> you'd need gfx1100 or gfx1103 there
<klys> then look for something like this: 49 s_cbranch_execz .LBB0_4
edr has quit [Quit: Leaving]
msv has joined #osdev
xenos1984 has joined #osdev
<geist> yah gfx1100 is basically current gen 7000 series stuff
<geist> RDNA 3
<geist> guess that's where that came along huh
Matt|home has quit [Quit: Matt|home]
Arthuria has joined #osdev
<klys> > MESA RADV Vulkan Driver Gets AMD’s RDNA 4 “GFX12” GPU Support, Fueled By Valve’s Engineers - 16may2024
<klys> mesa-vulkan-drivers for the deb
eluks has quit [Remote host closed the connection]
eluks has joined #osdev
x64S has quit [Quit: Leaving]
janemba has joined #osdev
Arthuria has quit [Ping timeout: 245 seconds]
Mutabah[ucc] has quit [Ping timeout: 252 seconds]
goliath has joined #osdev
heat has joined #osdev
GeDaMo has joined #osdev
Mutabah[ucc] has joined #osdev
pabs3 has quit [Ping timeout: 252 seconds]
Mutabah has joined #osdev
ZipCPU_ has joined #osdev
ZipCPU has quit [Ping timeout: 248 seconds]
ZipCPU_ is now known as ZipCPU
Mutabah has quit [Remote host closed the connection]
Mutabah has joined #osdev
tjf has quit [Quit: l8r]
tjf has joined #osdev
spareproject has joined #osdev
pabs3 has joined #osdev
SophiaNya has quit [Remote host closed the connection]
ptrc has quit [Remote host closed the connection]
SophiaNya has joined #osdev
ptrc has joined #osdev
Etabeta1 has quit [Ping timeout: 252 seconds]
leon has quit [Ping timeout: 244 seconds]
leon_ has joined #osdev
leon_ is now known as leon
heat_ has joined #osdev
heat has quit [Read error: Connection reset by peer]
cloudowind has quit [Ping timeout: 276 seconds]
cloudowind has joined #osdev
heat has joined #osdev
heat_ has quit [Ping timeout: 272 seconds]
Mutabah[ucc] has quit [Remote host closed the connection]
vdamewood has joined #osdev
heat has quit [Read error: Connection reset by peer]
heat has joined #osdev
xenos1984 has quit [Ping timeout: 252 seconds]
heat has quit [Ping timeout: 248 seconds]
heat has joined #osdev
<nikolar> where can you even find more info on the gpu isas and stuff
<zid`> open directories on nvidia's developer portal was the normal method
<zid`> (not a joke)
<GeDaMo> AMD has some docs, I don't know how comprehensive they are
<nikolar> > geist | makes sense, GCN is when they switched away from VLIW stuff
<nikolar> like i want to know more about this vliw stuff
<nikolar> but i guess the docs are almost unobtainum
<heat> hello nikolar welcome to the year 2000
<nikolar> yes
<GeDaMo> https://www.amd.com/en/search/documentation/hub.html#sortCriteria=%40amd_release_date%20descending&f-amd_document_type=Instruction%20Set%20Architectures&f-amd_product_type=Graphics
<Ermine> there are some docs on ati rage 128. Their register reference manual doesn't mention LVDS registers
<nikolar> oh cool
<nikolar> thanks
<heat> gpu docs dont mention things??? shocking
<nikolar> kek
<heat> gotta look at the autogenerated/windows-style 200 line width code in linux then
<nikolar> autogenerated?
<heat> yeo
<heat> yep
<Ermine> heat: I've realised that those registers exist after looking at xf86-video-r128 headers
<heat> lots of amdgpu is just autogenerated gunk from register descriptions, etc
<heat> which is why it has a quadrillion lines of code
<Ermine> (and that was the moment when I've really got what do you mean by "documentation is lacking")
<nikolar> heat: interesting
<nikolar> and we don't have access to those register descriptions, etc
<heat> ofc not
<heat> wtf do you think this is
<heat> you'll take the linux drm dump and you'll be grateful
<nikolar> kek
<heat> #define SDMA_PKT_COPY_TILED_TILED_ADDR_HI_TILED_ADDR_63_32(x) (((x) & SDMA_PKT_COPY_TILED_TILED_ADDR_HI_tiled_addr_63_32_mask) << SDMA_PKT_COPY_TILED_TILED_ADDR_HI_tiled_addr_63_32_shift)
<heat> this is a real amdgpu line
<nikolar> lol
<Ermine> radeon looks kinda the same
<Ermine> sadge
<heat> not really sadge
<Ermine> y
<heat> this shit is real complicated
<heat> several orders of magnitude more complicated than a fuckin nvme drive or something
<Ermine> yes
<heat> they need to share drivers between platforms, share drivers between different GPU generations, etc
<Ermine> true
<heat> we should be somewhat grateful that amd doesn't roll their own graphics stack with blackjack and hookers
<Ermine> but... people somehow get engaged with drm development
<heat> they get employed or they're autistically dedicated to fix some weird thing in a weird driver or something
<heat> i would bet that the number of people engaged with drm dev as a hobby rounds down to 0%
<Ermine> well, i guess so
<Ermine> but even then some of them are from collabora
<heat> collabora people usually have the knowhow and contacts
<Ermine> is it possible that collabora has an agreement with amd to get actual docs?
<Ermine> well, I guess so, seems like people in the org that was behind xfree86 had the access under nda
<Ermine> anyway
<heat> dunno what amd publishes online
<heat> it's possible they publish $stuff and its incomplete, or hard to grasp without knowledge
<Ermine> it's sadge that hobbyist drm dev is basically a lost cause
<heat> gpus are just really really complicated co-computers
<heat> with their own OS and firmware and co-processors and a shit ton of cores, for which you need a compiler for a special ISA, etc etc
<heat> literally full-stack driver development but you're not messing around with react and node.js this time around
<heat> conversely an NVMe driver is just "haha requests go brrrrrrrrr"
<heat> though, interestingly, i've read that some new fancy NICs natively support eBPF programs
<Ermine> (and no way I can get hired by collabora, because... reasons...)
<heat> just be a good russian boy and move to georgia
<heat> intel does gpu stuff in finland i think, arm does gpu stuff in norway
<heat> amd *might* do gpu stuff in germany
<bslsk05> ​careers.amd.com: Working Student GPU Software Development Engineer in Munich, Germany | Advanced Micro Devices, Inc
<Ermine> hm
stolen has joined #osdev
guideX_ has joined #osdev
guideX has quit [Ping timeout: 248 seconds]
<bslsk05> ​github.com: linux/init/init_task.c at master · torvalds/linux · GitHub
guideX_ is now known as guideX
<heat> this is proof linux processes only have 2MB of memory and everything extra is a lie
<nikolar> 640kb ought to be enough for anyone after all
<heat> 0.01 does mention 640KB as the limit
<nikolar> kek
edr has joined #osdev
bauen1 has quit [Ping timeout: 244 seconds]
heat has quit [Remote host closed the connection]
heat has joined #osdev
brennz has joined #osdev
MiningMarsh has quit [Quit: ZNC 1.9.1 - https://znc.in]
MiningMarsh has joined #osdev
vdamewood has quit [Quit: Life beckons]
bauen1 has joined #osdev
MiningMarsh has quit [Quit: ZNC 1.9.1 - https://znc.in]
hwpplayer1 has joined #osdev
MiningMarsh has joined #osdev
xenos1984 has joined #osdev
hwpplayer1 has quit [Read error: Connection reset by peer]
hwpplayer1 has joined #osdev
MiningMarsh has quit [Quit: ZNC 1.9.1 - https://znc.in]
MiningMarsh has joined #osdev
asarandi has quit [Ping timeout: 252 seconds]
svm has joined #osdev
msv has quit [Ping timeout: 265 seconds]
msv has joined #osdev
svm has quit [Ping timeout: 272 seconds]
MiningMarsh has quit [Quit: ZNC 1.9.1 - https://znc.in]
MiningMarsh has joined #osdev
Left_Turn has joined #osdev
_ngn has quit [Remote host closed the connection]
_ngn has joined #osdev
asarandi has joined #osdev
stolen has quit [Quit: Connection closed for inactivity]
GreaseMonkey has quit [Ping timeout: 260 seconds]
hwpplayer1 has quit [Remote host closed the connection]
bauen1 has quit [Ping timeout: 248 seconds]
bauen1 has joined #osdev
dude12312414 has joined #osdev
dude12312414 has quit [Remote host closed the connection]
stolen has joined #osdev
hwpplayer1 has joined #osdev
spareproject has quit [Remote host closed the connection]
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 265 seconds]
zijjgfs has quit [Ping timeout: 276 seconds]
Arthuria has joined #osdev
goliath has quit [Quit: SIGSEGV]
Arthuria has quit [Ping timeout: 260 seconds]
sbalmos has quit [Quit: WeeChat 4.4.3]
[Kalisto] has quit [Quit: No' vemo']
[Kalisto] has joined #osdev
sbalmos has joined #osdev
<geist> nikolar: i think if you run that godbolt stuff with arch=r600 you might get the previous gen
<geist> looks like llvm has support for pre-GCN
hwpplayer1 has quit [Ping timeout: 244 seconds]
goliath has joined #osdev
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #osdev
<heat> just updated my openssl
<heat> im no lnger vulnerable to 500 CVEs
<heat> (just the 400 in the kernel)
<Ermine> (you get another 100 CVEs over time)
zijjgfs has joined #osdev
<heat> thats how software works innit
vdamewood has joined #osdev
hwpplayer1 has joined #osdev
<Ermine> you get higher rates with openssl
<heat> no actually you get higher rates with linux
<bslsk05> ​lists.openwall.net: linux-cve-announce mailing list
<AmyMalik> oh no, my computer grew case morphology
npc has joined #osdev
<Ermine> you know what i'll say when we're talking about kernel security
<zid`> what's a kernel
<Ermine> kernal
<nikolar> kurnol
stolen has quit [Quit: Connection closed for inactivity]
<heat> kornhub.com
jjuran has quit [Ping timeout: 244 seconds]
jjuran has joined #osdev
GreaseMonkey has joined #osdev
goliath has quit [Quit: SIGSEGV]
benlyn has joined #osdev
benlyn has quit [Ping timeout: 244 seconds]
benlyn has joined #osdev
karenw has joined #osdev
cloudowind has quit [Ping timeout: 252 seconds]
cloudowind has joined #osdev
npc has quit [Remote host closed the connection]
GeDaMo has quit [Quit: 0wt 0f v0w3ls.]
hwpplayer1 has quit [Ping timeout: 272 seconds]
brennz has quit [Remote host closed the connection]
<nikolar> geist: oh cool thanks
hwpplayer1 has joined #osdev
bauen1 has quit [Ping timeout: 260 seconds]
bauen1 has joined #osdev
Yoofie646 has quit [Read error: Connection reset by peer]
bauen1 has quit [Ping timeout: 252 seconds]
Yoofie6464 has joined #osdev
netbsduser has joined #osdev
<cloudowind> how lucky i feel , got this helix 2 from ebay , its got intel m5y71 8g 256gb and ive paid only $50 including delivery , came with pro keybord attached and so clean and the both batteries still have %90 life , goodays osdev people
<nikolar> the heck is a helix 2
<heat> 2 helices
mahk has quit [Ping timeout: 252 seconds]
<nikolar> ah makes sense
hwpplayer1 has quit [Remote host closed the connection]
bauen1 has joined #osdev
remexre has quit [Remote host closed the connection]
karenw has quit [Ping timeout: 248 seconds]
craigo has joined #osdev
Turn_Left has quit [Read error: Connection reset by peer]
netbsduser has quit [Ping timeout: 276 seconds]