#
#asahi · 2025-03-07 09:12
pitustkernel::drm::gem::shmem::Object::new
#asahi · 2025-03-07 09:03
j`eypitust: which function?
#asahi · 2025-03-07 08:52
pitustjannau: comparing to other drivers is a way of showing that the function return an error pointer :P
#asahi · 2025-03-07 07:14
jannauno need to compare what other drivers do. the function returns an error pointer so that has to be handled
#asahi · 2025-03-07 00:45
j`eyhttps://github.com/AsahiLinux/linux/blob/asahi-wip/rust/kernel/drm/gem/shmem.rs#L183 or something else?
#asahi · 2025-03-07 00:38
bgtlover[mds]pitust: what's the difference?
#asahi · 2025-03-07 00:35
pitustyou can see that non-rust drm drivers check the ERR_PTR correctly
#asahi · 2025-03-07 00:34
pitustthe specific error that it fails with is -ENOSPC
#asahi · 2025-03-07 00:34
pitustjannau: yes, i did, by writing broken code using vulkan
#asahi · 2025-03-07 00:34
pitustbgtlover[mds]: it oopses, not crashes
#asahi · 2025-03-06 20:40
fl0_idbgtlover[mds] maybe wait for actual info first...
#asahi · 2025-03-06 20:36
bgtlover[mds]<pitust> "There seems to be a null deref..." <- oops, that sounds like a possibility for instant crashing, or worse
#asahi · 2025-03-06 20:06
jannaupitust: did you ran into this?
#asahi · 2025-03-06 19:58
jannaupitust: I suppose we are currently upstream and downstream
#asahi · 2025-03-06 19:43
pitustThere seems to be a null deref bug in the implementation of kernel::drm::gem::shmem::Object::new (rust/kernel/drm/drv.rs, seems to be downstream and i have *no idea* which upstream it comes from) due to a missing ERR_PTR check
#asahi · 2025-03-06 16:05
leioneeds to figure out what M4 air config to get
#asahi · 2025-03-06 16:01
fl0_idsry for linking to so much HN
#asahi · 2025-03-06 16:01
fl0_idmonthebiff also on MST https://news.ycombinator.com/item?id=25853208
#asahi · 2025-03-06 15:45
monthebiffthanks for that link fl10_id ill read
#asahi · 2025-03-06 15:44
monthebiffbut im backpacking, and its one of the largest heaviest things im carrying
#asahi · 2025-03-06 15:44
monthebiffit is i really like it
#asahi · 2025-03-06 15:36
fl0_idchaos_princess same haha. before this I was running a t450s for rly long
#asahi · 2025-03-06 15:36
fl0_idmonthebiff https://news.ycombinator.com/item?id=38079261
#asahi · 2025-03-06 15:36
chaos_princessok, maybe it is related that all my previous computers were driven way past their expected lifetime, but the m1pro is imo an absolutely great machine
#asahi · 2025-03-06 15:35
chaos_princesshah
#asahi · 2025-03-06 15:35
monthebiffthe m2air doesnt look like a good move though from the m1pro :(
#asahi · 2025-03-06 15:34
monthebiffwas looking at potential airs to switch to if i was to get rid of my mbpro... but i don't wanna not run asahi :P
#asahi · 2025-03-06 15:32
fl0_idwhen I read it, it didn't really say if it was hardware or software limitation
#asahi · 2025-03-06 15:32
fl0_idchaos_princess thanks. yeah sorry for mixing this up
#asahi · 2025-03-06 15:31
chaos_princessfl0_id: the thing you are talking about is "DP MST" and this is also a hardware limitation
#asahi · 2025-03-06 15:30
chaos_princessbut that is just one exception
#asahi · 2025-03-06 15:30
fl0_idleio some parts of it might be supported. but f.e. I know that I cannot daisy chain two monitors. For that I would need a tb4 docking station for like 300-400 from what I know. Supposedly if all of dp-altmode was supported, daisy chaining should work
#asahi · 2025-03-06 15:30
chaos_princessyea, there is one specific model where they have both outputs on the crossbar, but macos does not support driving two external monitors if internal is off
#asahi · 2025-03-06 15:29
leiothere was one case where there's the hardware but not firmware support iirc on an Air?
#asahi · 2025-03-06 15:29
monthebiffcheers chaos_princess - was hoping it was like an apple marketing thing that didn't apply to asahi :P
#asahi · 2025-03-06 15:29
chaos_princessthe display controllers are physical silicon structures, and you can't really drive two screens if you only have one controller
#asahi · 2025-03-06 15:28
chaos_princessmonthebiff: display limitations are hardware
#asahi · 2025-03-06 15:28
monthebiffm3 air does 2 with the lid closed
#asahi · 2025-03-06 15:28
fl0_idthings are not always striclty logical in business
#asahi · 2025-03-06 15:28
leioare you saying in general dp-alt mode is not supposed on macos or on m2 air?
#asahi · 2025-03-06 15:27
fl0_idmonthebiff well but a lower spec chip
#asahi · 2025-03-06 15:27
fl0_idlike some tb things, like f.e. dp-alt mode is not even supported on macos, but that's probably a driver thing.
#asahi · 2025-03-06 15:27
monthebiffwhere has the m2 air supports 1 external display, and is thunderbolt 3/ usb 4, despite being the next generation of chip
#asahi · 2025-03-06 15:25
fl0_idpretty sure that includes hdmi
#asahi · 2025-03-06 15:25
fl0_id> Up to three external displays with up to 6K resolution and one external display with up to 4K resolution at 60Hz at over a billion colors (M1 Max)
#asahi · 2025-03-06 15:24
monthebiff3 thunderbolt ports and the hdmi
#asahi · 2025-03-06 15:23
monthebiffaccording to https://support.apple.com/en-gb/111902 my mbpro (m1, 2021) can support up to 4 external displays depending on resolution
#asahi · 2025-03-06 15:22
fl0_idmonthebiff might have als read it on asahi-dev somewhere
#asahi · 2025-03-06 15:21
monthebiffyeh i've read bits here and there as well - and i've seen LTT talking about it in videos.
#asahi · 2025-03-06 15:20
fl0_id(I cannot find a link where I read this right now... sry)

plus ›