#
…

2023-09-08

00:35jeisom_ has quit [Quit: Leaving]
00:44jeisom has joined #asahi-dev
01:15completenoob has joined #asahi-dev
01:16completenoob has quit []
01:18ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:27ourdumbfuture has joined #asahi-dev
01:35completenoob has joined #asahi-dev
01:42completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:00gabuscus has quit []
02:01hightower3 has joined #asahi-dev
02:02ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:07ourdumbfuture has joined #asahi-dev
02:08hightower4 has quit [Ping timeout: 480 seconds]
02:21crabbedhaloablut has joined #asahi-dev
02:28iaguis_ has joined #asahi-dev
02:29jeisom has quit [Ping timeout: 480 seconds]
02:32ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:33iaguis__ has joined #asahi-dev
02:33iaguis has quit [Ping timeout: 480 seconds]
02:35gabuscus has joined #asahi-dev
02:36iaguis_ has quit [Ping timeout: 480 seconds]
03:21tristan2_ has joined #asahi-dev
03:23tristan2 has quit [Ping timeout: 480 seconds]
03:30marcaneiln: does it need to be bottom up?
03:30marcanyou can tell the iommu stuff how many bits of address space you have, then it'll restrict itself to that range
03:31marcanpresumably it doesn't matter where in that AS you allocate, right?
03:32marcanand yeah, for ane you're allowed to use the drm_mm stuff if necessary since that's in accel/ which is morally drm, so if it makes sense there I wouldn't worry about it, but for ISP it'd be nice (and probably simplify things quite a bit) to switch back to the regular iova allocator
04:24richyliu2 has joined #asahi-dev
05:24yayu has joined #asahi-dev
05:48Gaelan has quit [Quit: ZNC 1.8.2 - https://znc.in]
05:48Gaelan has joined #asahi-dev
05:59completenoob has joined #asahi-dev
07:28homura has joined #asahi-dev
07:53homura has quit []
07:57completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:00JTL has quit []
08:08JTL has joined #asahi-dev
08:09completenoob has joined #asahi-dev
08:17JTL has quit []
08:18JTL has joined #asahi-dev
08:19JTL has quit []
08:20completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:25completenoob has joined #asahi-dev
08:35completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:51pg12 has quit [Remote host closed the connection]
08:55ellyq has joined #asahi-dev
08:56pg12 has joined #asahi-dev
09:09completenoob has joined #asahi-dev
09:23iaguis__ is now known as iaguis
10:00svendma_set_mask_and_coherent is the thing he's talking about fwiw
10:05chadmed has joined #asahi-dev
10:06_jannau__we added dart dts properties to limit the aperture as well. basicly the same as vm-base, vm-size in the adt
10:07_jannau__not sure if we already use it somewhere
10:28chadmed has quit [Quit: Konversation terminated!]
10:30chadmed has joined #asahi-dev
10:48marcanIIRC I made DCP use that (which fixed a bunch of weird)
10:48marcanand MTP too I think
10:50ellyq_ has joined #asahi-dev
10:54marcansven: turned out that function is useless because by the time the driver probe() is called, the iommu aperture is already initialized
10:54marcanI spent way too long figuring this mess out
10:55ellyq has quit [Read error: Connection reset by peer]
10:56marcanthat's why we now have apple,dma-range = <0x100 0x0 0x10 0x0>;
10:56marcanand there's logic in the DART code that allows address space truncation (which is what the hardware does) as long as the range is smaller than the DART address space and does not straddle natural boundaries
11:07marcanwe need to get rid of the remaining users of apple,asc-dram-mask, I think only t8103 dcp has anything nonzero there and should be changed to dma-range (and then this removes a bunch of code from dcp)
11:09jannauI think we have also a zero apple,asc-dram-mask in the t600x dtsi
11:11givtrah has quit [Quit: leaving]
11:11givtrah has joined #asahi-dev
11:17svenhuh, dma set coherent should work independently of the iommu subsystem I thought
11:19sveniirc dma_set_mask_and_coherent is meant to express "this device can handle n bits of dma address" independently of whatever the iommu does
11:19svenbut then again, dma-ranges is ignored when an iommu is present
11:20jannauit does, I think the issue was to limit dart and iopgtbl to 36 bits / 3 levels
11:21sventhat makes more sense
11:22svenif that 36bit thing indeed is an iommu limitation and not just a limitation of the dma device i guess
11:24svenyeah, from what i can tell dma-iommu.c respects the dma mask set by dma_set_mask_and_coherent
11:26svenso dma_set_mask_and_coherent is for device limits (e.g. this device has only 36 address bits for dma) while the iommu domain aperture is for iommu limits (e.g. only 32bit of the device address lines are actually connected to the iommu)
11:29ourdumbfuture has joined #asahi-dev
11:30ourdumbfuture has quit []
11:31svenlol, my cd3217/8 "new from the factory" chips arrived from china and they are obviously reballed :D
11:31svenso i guess "new from the factory" actually means "stripped from some broken apple mainboard"
11:38mps has quit [Quit: leaving]
11:44ourdumbfuture has joined #asahi-dev
11:55lynndotpy has quit [Quit: bye bye]
11:56lynndotpy has joined #asahi-dev
12:08ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
12:25ourdumbfuture has joined #asahi-dev
12:34jeisom has joined #asahi-dev
12:44dylanchapell has quit [Remote host closed the connection]
12:58cylm has joined #asahi-dev
13:09marcanah yeah maybe that was it, I was trying to use the dma_mask to limit iommu page table levels and failing miserably
13:09marcansven: also dma-ranges is NOT ignored
13:10marcanthere's a stupid 32bit limit that creeps in and was clamping everything to 4GiB, that I remember
13:10marcanwithout dma-ranges
13:10marcanwe had to add this ridiculous hack: dma-ranges = <0 0 0 0 0xffffffff 0xffffc000>;
13:10marcanbecause end=0xffffffffffffffff will actually overflow into 0 in the code
13:10marcanto get it to (mostly) allow 64bit dma
13:11marcansomewhere in the OF/whatever code was defaulting to 32bit range if dma-ranges is not present
13:11svenhrm, maybe I remember it wrong then
13:12sveni thought with an iommu enabled the iommu would fully decide virt/phys mapping instead of dma-ranges which is used without an iommu
13:12svenor maybe that was just a bug that was fixed at some point
13:14marcansven: see of_dma_configure_id
13:14marcanthat is the broken code that runs before the probe() gets called, which means the DMA mask is unset, then defaults to 32bit
13:14marcanif no dma-ranges are specified
13:15ellyq has joined #asahi-dev
13:17svenhm, true. weird.
13:18ellyq_ has quit [Ping timeout: 480 seconds]
13:18ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
13:22mps has joined #asahi-dev
13:27dylanchapell has joined #asahi-dev
13:39commandoline has quit [Quit: Bye!]
13:40commandoline has joined #asahi-dev
13:48commandoline has quit [Quit: Bye!]
13:48ourdumbfuture has joined #asahi-dev
13:49commandoline has joined #asahi-dev
13:50os has quit [Ping timeout: 480 seconds]
13:50completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:54commandoline has quit []
13:54commandoline has joined #asahi-dev
14:38completenoob has joined #asahi-dev
14:41completenoob has quit []
14:44gladiac has joined #asahi-dev
14:49gladiac has quit [Quit: k thx bye]
14:51ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:51axboe has quit [Remote host closed the connection]
14:54axboe has joined #asahi-dev
15:14kevans91noting at a different time of this day, and probably the last time: I have three of the v3.1 central scrutinizer PCBs unpopulated showing up what looks like tomorrow from OSHPark if anyone's interested in them (for just the cost of shipping to you)
15:41compassion1785 has quit [Quit: lounge quit]
15:43cylm has quit [Ping timeout: 480 seconds]
15:54cylm has joined #asahi-dev
15:56compassion1785 has joined #asahi-dev
16:11completenoob has joined #asahi-dev
16:21completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:28mazkevans91: don't throw them away -- if someone asks, we can always direct them to you.
16:30completenoob has joined #asahi-dev
16:39ourdumbfuture has joined #asahi-dev
16:41kevans91maz: oh yeah, sorry, didnt mean to give that impression; I'll store them somewhere safe just in case a need arises, I just won't keep broadcasting it here. that works for me, thanks
16:46mazkevans91: did you get a stencil as well, or just the boards?
16:48sveni wouldn't want to solder some of those chips without a stencil :D
16:52mazsven: I know a few mad people... :D
16:59kevans91I hadn't ordered a stencil for that batch, but I'm not averse to ordering one to throw in and sweeten the pot a bit
17:03completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:18rappet has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
17:18mazI've been secretly thinking of buying a hot-plate to rework the handful of v3 that were butchered by jlcpcb... total nonsense from a cost perspective, but still...
17:20rappet has joined #asahi-dev
17:20cylm has quit [Ping timeout: 480 seconds]
17:24svenhow did they mess them up? unaligned ics?
17:34mazyup. the switches (which are absolutely tiny) are either off by about 1mm, or have some bad bridges. the only change I made in v3.1 was to pick hummer-sized ICs, and it's been pretty solid since.
18:11elvishjerricco has quit [Remote host closed the connection]
18:11elvishjerricco has joined #asahi-dev
18:11kettenis_ has joined #asahi-dev
18:13kettenis has quit [Ping timeout: 480 seconds]
18:18kettenis has joined #asahi-dev
18:20kettenis_ has quit [Ping timeout: 480 seconds]
18:36roxfan has joined #asahi-dev
18:38delroth has quit [Remote host closed the connection]
18:39delroth has joined #asahi-dev
18:46completenoob has joined #asahi-dev
18:56completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:56chadmed has quit [Ping timeout: 480 seconds]
19:29roxfan has quit [Read error: Connection reset by peer]
20:11maximbaz has quit [Quit: bye]
20:11maximbaz has joined #asahi-dev
21:07eiln has quit [Ping timeout: 480 seconds]
21:22crabbedhaloablut has quit []
21:25completenoob has joined #asahi-dev
21:35completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:01nela has quit [Quit: bye!]
22:01nela has joined #asahi-dev
22:05yayu has quit [Read error: Connection reset by peer]
22:08ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
22:11ourdumbfuture has joined #asahi-dev
22:16Cyrinux9474 has quit []
22:16Cyrinux9474 has joined #asahi-dev
22:56ellyq has quit [Ping timeout: 480 seconds]
23:27ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:33ourdumbfuture has joined #asahi-dev
23:45jeisom has quit [Ping timeout: 480 seconds]
23:47darkapex1 has joined #asahi-dev
23:48darkapex has quit [Ping timeout: 480 seconds]
…