#asahi-dev · 2022-11-30 21:35
jannauno, untracked file my tree#asahi-dev · 2022-11-30 21:33
jannauhmm, did I miss hv/trace_tps6598x.py#asahi-dev · 2022-11-30 21:32
jannauit worked to some degree but I wouldn't rule out that got things slightly wrong#asahi-dev · 2022-11-30 21:29
jannausven: do you have an i2c/smbus tracer? I still have a hack directly integrated in hv.py but I can't remember if it was broken or not#asahi-dev · 2022-11-27 22:55
jannaubut I can reply to your mail#asahi-dev · 2022-11-27 22:54
jannaunot really my solution I'll just did a little bit of typing like a monkey#asahi-dev · 2022-11-27 22:41
jannausven: copying dwc->dr_desired_role under dwc->lock and using the stack copy inside __dwc3_set_mode prevents the race. feel free to add my Tested-by:#asahi-dev · 2022-11-27 18:40
jannauhow are those annotated in the ADT? is that aop segment __ETEXT?#asahi-dev · 2022-11-27 18:33
jannauit of course shouldn't hit an infinite loop but it certainly wasn't designed for this#asahi-dev · 2022-11-27 18:31
jannaudon't do that, dart can only handle whole pages for now. how does macos deal with that? does it map with sub-page protection?#asahi-dev · 2022-11-27 11:52
jannaupovik: have you done any fixups for "m1n1.adt: Parse 'segment-ranges' of coprocessor nodes"? it seems to break HV boot due to what appears an adt parse problem for pmgr#asahi-dev · 2022-11-27 09:20
jannausigh, backlight brightness nits to dac mapping looks logarithmic but my fitted logarithm has an oscillating error in both directions#asahi-dev · 2022-11-26 22:22
jannauChaosPrincess: https://www.jannau.net/asahi/spi_keyboard_1.log only the raw SPI commincation and no SIO#asahi-dev · 2022-11-26 21:27
jannauChaosPrincess: looking at old keyboard traces macos seems to do that there as well. I don't think we do that spi_hid#asahi-dev · 2022-11-26 21:18
jannaudoes the devicetree node contains already a reference to the dart iommu?#asahi-dev · 2022-11-26 21:17
jannauChaosPrincess: iirc the keyboard/trackpad starts sending data after power-on#asahi-dev · 2022-11-26 21:16
jannaudo you already have a SIO device/driver stub?#asahi-dev · 2022-11-26 21:11
jannaupovik: maybe "apple,ascwrap-text" and "apple,ascwrap-data"?#asahi-dev · 2022-11-26 21:09
jannauit probably shouldn't be "apple,dcp"#asahi-dev · 2022-11-26 21:08
jannauthis is going change soon but you don't need to care. make apple_dart_setup_resv_locked unconditional and I'll keep it working#asahi-dev · 2022-11-26 21:06
jannauyes, io_pgtable_dart_setup_locked should only be called on locked darts#asahi-dev · 2022-11-26 21:05
jannauthe .compatible is so far not used, no-map is required to prevent u-boot from fsck-ing things up#asahi-dev · 2022-11-26 21:04
jannauyou can call that unconditionally#asahi-dev · 2022-11-26 21:03
jannauyes, see apple_dart_setup_resv_locked(). that is only called on locked dart#asahi-dev · 2022-11-26 21:00
jannaupovik: maybe, it could be that I did that only inside 'if (dart->locked)', let me check#asahi-dev · 2022-11-26 17:57
jannauare you looking for "smartio_debug=0xff"?#asahi-dev · 2022-11-26 12:05
jannauno, that doesn't seem to apply for sio#asahi-dev · 2022-11-26 12:00
jannauphys and device address being equal could signal not to map text via dart#asahi-dev · 2022-11-26 11:44
jannaudcpext can be switched to segment-ranges parsing as soon as the code exists#asahi-dev · 2022-11-26 11:44
jannauthere are two reasons for that with dcp. 1) dart-disp0 needs to be covered as well (no segment-ranges for that) 2) text not mapped via dart through of my first high level segment-ranges parsing attempt#asahi-dev · 2022-11-26 11:41
jannauyes, the physical addresses from the carveout-memory-map are matched with the dart mappings to produce physical address, device address, size#asahi-dev · 2022-11-26 11:39
jannaufeel free to use code or refactor reserved memory region writing of dt_carveout_reserved_regions() as you see fit#asahi-dev · 2022-11-26 11:37
jannauparsing segment-ranges in kboot.c makes more sense than the /chosen/carveout-memory-map handling for dcp#asahi-dev · 2022-11-26 11:33
jannausee dt_device_set_reserved_mem()#asahi-dev · 2022-11-26 11:32
jannauyes, it's through the device. the "iommu-addresses" gets a device phandle too#asahi-dev · 2022-11-26 11:30
jannaulooking at the output of `dtc -I fs -O dts -o - /proc/device-tree` might help#asahi-dev · 2022-11-26 11:29
jannaucreate a memory region in /reserved-memory and link to that region via "memory-region" in the device#asahi-dev · 2022-11-26 11:27
jannaupovik: look what I do with dcp in m1n1, src/kboot.c:dt_carveout_reserved_regions()#asahi-dev · 2022-11-25 23:29
jannauthe problem is deciding when fake fblank events needs to be emitted with adding to the vblank events from fb swaps#asahi-dev · 2022-11-25 23:28
jannauemiting fake fblank events is not the problem, we are that already (on framebuffer swaps and in some error paths)#asahi-dev · 2022-11-25 23:26
jannauI was under the impression drm was already doing it based on the refresh rate#asahi-dev · 2022-11-25 23:08
jannauplasma/x11 is broken though since it appears to require vblank events as well#asahi-dev · 2022-11-25 23:07
jannauX11 works with https://www.jannau.net/asahi/30-modeset.conf in /etc/X11/xorg.conf.d/ - the modesetting driver apparently needs to be told to use /dev/dri/card2 although there are log messages which imply it is probed#asahi-dev · 2022-11-25 22:31
jannaucould be a executable flag#asahi-dev · 2022-11-25 22:30
jannauyes#asahi-dev · 2022-11-25 22:24
jannauthe last 4 segments for dcp have bit(1) set#asahi-dev · 2022-11-25 22:11
jannauah, I think my problem in understanding was that there were just 5 5 ranges mapped in the dart as set up by iboot#asahi-dev · 2022-11-25 22:06
jannauyes, dart-dcp* are still locked#asahi-dev · 2022-11-25 22:06
jannaupovik: dcp has text in segment-names but not in segment-ranges#asahi-dev · 2022-11-25 22:05
jannausven: dcp text seems to be mapped via dart on m2