2021-09-25
00:18alyssaioreg says a few things; it requires MCU alignment, does not support DCT scaling, and does not support RST logging
00:48yuyichao has joined #asahi
00:48artemist0 has quit [Quit: artemist0]
00:50artemist has joined #asahi
01:00DragoonAethis has quit [Quit: hej-hej!]
01:00DragoonAethis has joined #asahi
01:01fdsdcv has quit []
01:19___nick___ has joined #asahi
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20Emantor has joined #asahi
01:54alyssanow it says bitstream corruption was detected. that sure sounds like it's actually getting at the hardware
01:57robinp has quit [Remote host closed the connection]
01:57robinp has joined #asahi
02:10alyssasome pointers from https://github.com/bazad/AppleJPEGDriver-memleak/blob/master/AppleJPEGDriver-memleak/AppleJPEGDriver-memleak.c
02:12alyssaso the moment of truth... is booting the other partition in the hypervisor and seeing if we get jpeg mmio like we expect
02:14quarkyalice has joined #asahi
02:16quarkyalice_ has quit [Ping timeout: 480 seconds]
02:43PhilippvK has joined #asahi
02:46phiologe has quit [Ping timeout: 480 seconds]
03:12marvin24_ has joined #asahi
03:15marvin24 has quit [Ping timeout: 480 seconds]
03:17yuyichao has quit [Ping timeout: 480 seconds]
04:03yuyichao has joined #asahi
04:12VinDuv_ has joined #asahi
04:12VinDuv has quit [Read error: Connection reset by peer]
04:12VinDuv_ is now known as VinDuv
05:00quarkyalice_ has joined #asahi
05:01quarkyalice_ has quit [Remote host closed the connection]
05:03quarkyalice_ has joined #asahi
05:04quarkyalice has quit [Remote host closed the connection]
06:04everslick has quit [Remote host closed the connection]
06:05everslick has joined #asahi
08:18X-Scale` has joined #asahi
08:20aleasto has joined #asahi
08:24X-Scale has quit [Ping timeout: 480 seconds]
08:35zopieux has quit [Ping timeout: 480 seconds]
08:37zopieux has joined #asahi
08:39nctcf^ has quit [Remote host closed the connection]
09:27chadmedit would be cool if the hardware was able to be generalised for other tasks involving similar math to jpeg compression
09:29svenwould be fun to benchmark and see if software running on the M1 or the HW would be faster :D
09:31chadmedit might exist just to offload jpeg processing such that the main cores dont need to be woken up to process a jpeg (common task on a phone) and thus can either stay asleep and save power or do other things and speed up the overall UX
09:34chadmedprobably saves a ton of processor time when generating thumbnails for Photos.app even on newer iphones
09:37chadmedwell idk why dont cameras just have an AArch64 core to do image DSP then, why bother with fixed function hardware?
09:38chadmedits more energy efficient per operation is the answer. and given that the M1 is at the end of the day essentially just a big A14X then it will have the DNA of Apple's mobile devices in it
09:38chadmeda hw block that can do this without waking up a bigger application core is more desirable in terms of energy use, which is important for mobile devices
09:38svenfwiw, i wouldn't be surprised at all if the JPEG hardware used to be faster/more efficient years ago but is easily beat by software running on the main core these days
09:39chadmeddunno why theyd keep it in the soc if it wasnt helpful though. its not like they need to maintain backwards compatibility with ancient versions of ios and their corresponding apps
09:41sorearby the time you've done a UI interaction to wake up the phone, open the camera, taken a few dozen preview frames, autofocused, run the neural network noise reducer, etc, etc, etc, the final JPEG encode before storing the image is lost in the noise
09:49dottedmagchadmed: Might as well be // TODO: remove later, if it does not take much space on the chip
10:23svenhttps://github.com/AsahiLinux/linux/commits/i2c/v1 i'll probably submit that tomorrow after all the built bots have picked it up. happy about anyone who already wants to catch my dumb mistakes (typos, etc.) in there
10:34j_eysven: there's no issue including i2c-pasemi-core.o twice?, if both CONFIG_I2C_PASEMI and CONFIG_I2C_APPLE are set
10:37sven(there's also this entire algos/ subfolder which i first thought would be the right place. but that one appears to be abandoned and newer drivers which also require the pci/platform split do it similar to what i've done there)
10:39j_eysven: youre using platform_get_resource + devm_ioremap_resource instead of devm_platform_ioremap_resource
10:42j_eysven: I hope pinctrl never fails to initialise in this driver, otherwise there's probably a null pointer deref :P
10:57j_eysven: and what about reordering the last 2 commits? it's very minor, but the 2nd to last commit wont work without it, right?
11:08kettenisbtw, is patchwork supposed to pick up patches automatically? or does this involve a manual step from the relevant maintainers?
11:09mazkettenis: depends on the maintainer's flow. some use PW, some don't, and it depends whether PW is fed from a bot or manually.
11:39chadmed has quit [Remote host closed the connection]
11:39chadmed has joined #asahi
12:24Glanzmann has joined #asahi
12:24Glanzmannalyssa: Do you have a kernel tree and branch that I can use to run a Debian Desktop on a mac mini?
12:26Glanzmannmarcan: I wonder what kind of Internet connection you have in Tokyo? Do they already have fibre to the flat there?
12:50alyssayou'll need to apply https://rosenzweig.io/0001-HACK-enable-ANS-clocks.patch to m1n1 or that kernel will die early in boot (fixing this is on my todo)
12:51alyssaM1N1DEVICE=/dev/ttyACM0 python3 proxyclient/tools/linux.py --bootargs="net.ifnames=0 rw root=/dev/nvme0n1p4 rootwait rootfstype=ext4" ~/drm-misc/arch/arm64/boot/Image.gz ~/drm-misc/arch/arm64/boot/dts/apple/t8103-j274.dtb
12:51svennvme... right. i should try to get that in a shape that actually allows it to be reviewed as well
12:52alyssaGlanzmann: If you need a Debian rootfs, give https://rootfs.debian.net/bookworm-arm64-networking-20210914.tar.gz a try
12:52alyssafor initial boot I guess install that to a USB drive and then set the cmdline option "root=/dev/sda1" instead of nvme
12:53alyssasmashing the above together with https://github.com/AsahiLinux/docs/wiki/Developer-Quickstart should let you replicate my setup
12:54alyssa("How did you actually install to NVMe?" "I installed to USB, booted the USB, and rsync'ed / to /mnt")
12:59nico_32_ is now known as nico_32
13:10Glanzmannalyssa: Thank you for the detailed instructions. I'll try to repdoduce it tomorrow and let you know how it went.
13:25gabuscus_ has quit [Ping timeout: 480 seconds]
13:27Glanzmannalyssa: I see. Previously I hooked up the mac mini with a usb-c cable to my eizo monitor, should that work?
13:30gabuscus has joined #asahi
13:45alyssadoing video over the type-c ports requires a whole bunch of non-DCP work as well because USB is a nightmare
13:47svenmy best guess is that the tipd chip will be able to detect you want to switch to DP-only for the usb-c port and tell the typec_mux to set everything up correctly
13:47svendunno yet if the typec_mux is part of ATC PHY or just calls phy_set_mode or maybe does something else completely
13:59svenalyssa: yeah, it's gonna be complicated and probably requires us to understand how the entire typec mode switching (i.e. usb3, thunderbolt, etc.) is going to work before we can add this in a sane way :(
14:21marcanGlanzmann: yes, it was already wired for symmetric gigabit FTTH, I just had to sign up for the line and ISP
14:26HAL_6900 has joined #asahi
14:26HAL_6900 has left #asahi [#asahi]
14:39X-Scale has joined #asahi
14:43X-Scale` has quit [Ping timeout: 480 seconds]
16:45aleasto has quit [Ping timeout: 480 seconds]
16:52aleasto has joined #asahi
17:11aleasto has quit [Quit: Konversation terminated!]
17:12aleasto has joined #asahi
17:16aleasto has quit []
17:16aleasto has joined #asahi
17:33quarkyalice has joined #asahi
17:34quarkyalice__ has joined #asahi
17:36aleasto has quit [Quit: Konversation terminated!]
17:37quarkyalice_ has quit [Ping timeout: 480 seconds]
17:41quarkyalice has quit [Ping timeout: 480 seconds]
19:22j_eysven: hey, we werent the only ones to notice https://lore.kernel.org/lkml/CAHk-=wgML11x9afCvmg9yhVm9wi5mvnjBvmX+i7OfMA0Vd4FWA@mail.gmail.com/T/#u
19:29suricato_ has joined #asahi
19:31suricato has quit [Ping timeout: 480 seconds]
19:53svenyeah, i can reply tomorrow why that happens and that the only reasonable fix is to just not to the genctr stuff on these apple ssds
19:54j_eyhttps://github.com/AsahiLinux/linux/commit/f9c153e7e874181a78d64179ac4ed654ee31684b if you forgot where the commit was
19:55sveni'll have to figure out how to get those message into my mail client. i do9n't think i've subscribed to linux-kernel or linux-nvme
19:57svenor if anyone else wants to reply: ANS2 is a arm64 coprocessor that emulates the NVMe MMIO and is likely used on the T2 as well. It uses the tag as index to an internal data structure and that index has only 8 bits. if you talk to ANS2 directly it'll just ignore the higher bits and only return the lower ones in the completion queue
20:07j_eystill reply, but note that keith posted the same patch as ^^ https://lore.kernel.org/lkml/CAHk-=wgML11x9afCvmg9yhVm9wi5mvnjBvmX+i7OfMA0Vd4FWA@mail.gmail.com/T/#m8c06a6c106a1ef9fe189b1197eea0ffb8bec2d11
23:48quarkyalice__ has quit [Ping timeout: 480 seconds]
23:50quarkyalice has joined #asahi