2022-01-23
00:07thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
00:10aleasto has quit [Remote host closed the connection]
00:16KDDLB has quit [Server closed connection]
00:16KDDLB has joined #asahi-dev
00:19user982492 has joined #asahi-dev
00:27tbodt_ has quit [Server closed connection]
00:27tbodt has joined #asahi-dev
00:31thevar1able has joined #asahi-dev
00:44thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
00:49thevar1able has joined #asahi-dev
01:07thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
01:17user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:27thevar1able has joined #asahi-dev
02:00yamii has quit [Quit: WeeChat 3.3]
02:02aead has quit [Server closed connection]
02:03aead has joined #asahi-dev
02:12user982492 has joined #asahi-dev
02:20thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
02:28jbowen has quit [Quit: leaving]
02:30Method has quit [Server closed connection]
02:31Method has joined #asahi-dev
02:34skipwich has quit [Server closed connection]
02:34skipwich has joined #asahi-dev
02:37emptynine has quit [Server closed connection]
02:37emptynine has joined #asahi-dev
02:42nafod has quit [Server closed connection]
02:42nafod has joined #asahi-dev
02:43user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:47thevar1able has joined #asahi-dev
02:57user982492 has joined #asahi-dev
03:04krbtgt has quit [Server closed connection]
03:04krbtgt has joined #asahi-dev
03:05tmlind has quit [Server closed connection]
03:05tmlind has joined #asahi-dev
03:20opticron has quit [Server closed connection]
03:20opticron has joined #asahi-dev
03:23PhilippvK has joined #asahi-dev
03:26phiologe has quit [Ping timeout: 480 seconds]
03:59kov has quit [Quit: Coyote finally caught me]
03:59kov has joined #asahi-dev
04:01rbenua has quit [Server closed connection]
04:01rbenua has joined #asahi-dev
04:09gruetzkopf has quit [Server closed connection]
04:09gruetzkopf has joined #asahi-dev
04:24balrog has quit [Server closed connection]
04:26balrog has joined #asahi-dev
05:01user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:11thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
06:00TheFirst has quit [Server closed connection]
06:00TheFirst has joined #asahi-dev
06:07jeffmiw has quit [Remote host closed the connection]
06:08jeffmiw has joined #asahi-dev
06:17linuxgemini has quit [Server closed connection]
06:17linuxgemini has joined #asahi-dev
06:23akemin_dayo has quit [Ping timeout: 480 seconds]
07:24Chinese_soup has joined #asahi-dev
09:29jannauthe dcp crashlog buffer is in one of the carveout-memory-map regions. I don't see a mapping of carveout regions to devices in the ADT
09:29thevar1able has joined #asahi-dev
09:55esden has joined #asahi-dev
09:56thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
10:28aleasto has joined #asahi-dev
10:42jannauugh, I just looked at the carveouts at the top of the memory. the crashlog buffer is in a 3 megabyte carveout so that would be fine if the ADT would tell to which device nodes a carveout belongs
10:44austriancoder has joined #asahi-dev
10:45svenI’d also get rid of flags competely and just have some is_iomem variable as part of the shmem struct
10:46gabuscus has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
10:46gabuscus has joined #asahi-dev
11:06pFalken has joined #asahi-dev
11:38Ariadne has quit [Server closed connection]
11:39Ariadne has joined #asahi-dev
11:47jannausven: ah, firmware might change behavior, BUG_ON not really appropiate then. I only considered the new RTKit using driver case
11:49svenlooks good, is_iomem should be set from the driver though. DCP never needs it but SMC always needs
11:57akemin_dayo has joined #asahi-dev
11:59svenDCP has the crashlog buffer as owned by rtkit but the rest owned by Linux but both are normal RAM
12:00jannauI currently use ioremap_wc for the dcp crashlog, mostly since I'm drowned in noise when looking how to map carveout memory
12:28philpax_ has quit [Server closed connection]
12:28philpax_ has joined #asahi-dev
12:36jabashque_ has quit [Server closed connection]
12:36jabashque_ has joined #asahi-dev
12:42tardyp has quit [Server closed connection]
12:42tardyp has joined #asahi-dev
12:53svenjannau: I’d have to double check but the frame buffer is the only thing that’s special iirc
13:00kettenisif you get it wrong, you might not immediately see what the other side writes into the buffer
13:02jannauI don't think we will ever see it in this case as we should read the crashlog buffer only once (at most) and never write
13:02psykose has quit [Remote host closed the connection]
13:07psykose has joined #asahi-dev
13:15marcanthe framebuffer has to be mapped non-cacheable because while the SoC is cache-coherent, apparently that coherency does not come with realtime guarantees
13:16marcanso on t6000 the memory controller throws a hissy fit if you end up with framebuffer cache lines in CPU cache (even though it still works)
13:16marcanI imagine the GPU will have some way to blast out framebuffers as write-through so that doesn't happen there
13:26thevar1able has joined #asahi-dev
13:33gladiac has quit [Read error: Connection reset by peer]
13:35gladiac has joined #asahi-dev
13:37yamii has joined #asahi-dev
13:45thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
13:50thevar1able has joined #asahi-dev
13:59thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
14:08nathanchance has quit [Server closed connection]
14:08nathanchance has joined #asahi-dev
14:22thevar1able has joined #asahi-dev
14:25MajorBiscuit has joined #asahi-dev
14:26MajorBiscuit has quit []
14:34thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
14:37StupidYui has joined #asahi-dev
14:53thevar1able has joined #asahi-dev
15:03skoobasteeve_ has quit [Server closed connection]
15:03skoobasteeve has joined #asahi-dev
15:23JTL has quit [Server closed connection]
15:23JTL has joined #asahi-dev
16:00jkkm has quit [Server closed connection]
16:00jkkm has joined #asahi-dev
16:16akemin_dayo has quit [Ping timeout: 480 seconds]
16:21___nick___ has joined #asahi-dev
16:21___nick___ has quit []
16:22___nick___ has joined #asahi-dev
16:23ids1024 has quit [Server closed connection]
16:23ids1024 has joined #asahi-dev
16:27thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
16:32user982492 has joined #asahi-dev
16:39jabashque_ is now known as jabashque
16:45pbc has joined #asahi-dev
16:47thevar1able has joined #asahi-dev
17:14akemin_dayo has joined #asahi-dev
17:30NekomimiScience has quit [Server closed connection]
17:30NekomimiScience has joined #asahi-dev
17:31nkaretnikov has quit [Server closed connection]
17:31nkaretnikov has joined #asahi-dev
17:37thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
17:40cptcobalt has quit [Server closed connection]
17:40cptcobalt has joined #asahi-dev
17:53weems_ has quit [Server closed connection]
17:53weems_ has joined #asahi-dev
18:17alyssamarcan: generally you want framebuffer mapped write-combine, I assume that works here no?
18:17alyssaGPU allocated memory can be either write-combine or not, it's a flag the AGX kernel driver (or IOGPU kext) takes
18:31blueriseWhen I looked into the LX2K amdgpu(4) issue I think Linux is using normal uncached for write-combine on arm64.
18:32snek has quit [Server closed connection]
18:32snek has joined #asahi-dev
18:33user982492 has quit [Remote host closed the connection]
18:33user982492 has joined #asahi-dev
18:38DarkShadow4444 has quit [Quit: ZNC - https://znc.in]
18:38DarkShadow44 has joined #asahi-dev
18:52amarioguy has joined #asahi-dev
18:56user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:04amarioguy has quit [Ping timeout: 480 seconds]
19:11sjg1 has quit [Server closed connection]
19:11sjg1 has joined #asahi-dev
19:29amarioguy has joined #asahi-dev
19:32arnd_ has quit [Server closed connection]
19:32arnd_ has joined #asahi-dev
19:55aleasto has quit [Remote host closed the connection]
20:40robher has quit [Server closed connection]
20:40robher has joined #asahi-dev
20:47aleasto has joined #asahi-dev
20:56aleasto has quit [Remote host closed the connection]
20:58aleasto has joined #asahi-dev
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:31amarioguy has quit [Remote host closed the connection]
21:49roxfan2 has quit [Ping timeout: 480 seconds]
22:04tpw_rules has joined #asahi-dev
22:31boardwalk has quit [Server closed connection]
22:31boardwalk has joined #asahi-dev
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:01yrlf has joined #asahi-dev
23:04aleasto has quit [Quit: Konversation terminated!]
23:12unrelentingtechbluerise: hmm. in FreeBSD/arm64 we define write combining as equal to write through https://github.com/freebsd/freebsd-src/blob/f72926eab00ccd956298e44831b519daa704a868/sys/arm64/include/vm.h#L48
23:14unrelentingtechand all I did for amdgpu was make `ioremap_nocache`, `ioremap_wt` and `ioremap` all map as device-nGnRnE.. (which, yeah, probably wt shouldn't be, but whatever)