#
#asahi-dev · 2023-06-18 10:41
sid-linuxHere `dockchannel_irq` is reading from the device
#asahi-dev · 2023-06-18 10:40
sventhat’s not true
#asahi-dev · 2023-06-18 10:40
sid-linuxMy understanding is that we can't do IO in the top half. We can only read from memory. IO could take a really long time
#asahi-dev · 2023-06-18 10:39
svenand isn’t too half the thing that runs in irq context while bottom half is the irq thread anyway? (not that that changes anything afaict)
#asahi-dev · 2023-06-18 10:39
svenwhat do you mean with sleep issues?
#asahi-dev · 2023-06-18 10:35
sid-linuxAlso, I'm wondering how this can be done in a top half interrupt handler? Wont this communication with the device be subject to sleep issues?
#asahi-dev · 2023-06-18 10:35
sid-linuxso here read and write achieve different outcomes in hardware...
#asahi-dev · 2023-06-18 10:34
j`ey_sid-linux: yeah seems to be
#asahi-dev · 2023-06-18 10:33
ChaosPrincessalso need to mask systemd backlight service or it messes things up
#asahi-dev · 2023-06-18 10:33
sid-linuxs/IRQ_FLAG/dcc->irq_base + IRQ_FLAG/
#asahi-dev · 2023-06-18 10:33
ChaosPrincesshttps://paste.bingner.com/paste/6rmgx
#asahi-dev · 2023-06-18 10:32
sid-linuxj`ey and similarly since the IRQ_FLAG doesnt 'store' anything the read can ask the hardware to present it for a bit map of currently asserted IRQs? See `static void dockchannel_irq(struct irq_desc *desc)`
#asahi-dev · 2023-06-18 10:31
ChaosPrincessits probably due to load ordering, but not sure what exactly the problem is
#asahi-dev · 2023-06-18 10:31
ChaosPrincessjannau: sth weird is happening when loading tiny-dfr as a systemd daemon, libinput fails to detect the digitizer device.
#asahi-dev · 2023-06-18 10:29
j`ey_(and it's probably right, since it seems to be true for a lot of hw)
#asahi-dev · 2023-06-18 10:29
svenit’s just this dumb iPhone‘s „you pressed something slightly to the left of i and u is more likely than i in our ML model so I’m just gonna pretend you pressed u instead“ feature *sigh*
#asahi-dev · 2023-06-18 10:28
j`ey_whereas the MASK actually stores what's currently masked
#asahi-dev · 2023-06-18 10:28
j`ey_(assuming what sven said is correct.) the IRQ_FLAG doesn't 'store' anything, the hw just responds to a write of that
#asahi-dev · 2023-06-18 10:27
svenand s/but/bit/
#asahi-dev · 2023-06-18 10:27
svenyes
#asahi-dev · 2023-06-18 10:27
sid-linuxs/HW_FLAG/IRQ_FLAG/ ?
#asahi-dev · 2023-06-18 10:25
sid-linux(thanks for your reply -- can you please write your message with the typos fixed. I don't know where the *IRQ_FLAG and *bit needs to be subsituted)
#asahi-dev · 2023-06-18 10:24
svenand *bit
#asahi-dev · 2023-06-18 10:23
sven*IRQ_FLAG
#asahi-dev · 2023-06-18 10:23
svenjust guessing here because I don’t know the hardware but it looks like HW_FLAG is just „write but N to clear it“
#asahi-dev · 2023-06-18 10:20
sid-linuxare the reads and writes "orthogonal" here because this is iomem?
#asahi-dev · 2023-06-18 10:19
sid-linuxbefore writing out BIT(hwirq) to prevent overwriting other entries ?
#asahi-dev · 2023-06-18 10:19
sid-linuxQuestion: why is there not a `readl_relaxed` to get the current value of dcc->irq_base + IRQ_FLAG
#asahi-dev · 2023-06-18 10:18
sid-linux}
#asahi-dev · 2023-06-18 10:18
sid-linux writel_relaxed(BIT(hwirq), dcc->irq_base + IRQ_FLAG);
#asahi-dev · 2023-06-18 10:18
sid-linux unsigned int hwirq = data->hwirq;
#asahi-dev · 2023-06-18 10:18
sid-linux struct dockchannel_common *dcc = irq_data_get_irq_chip_data(data);
#asahi-dev · 2023-06-18 10:18
sid-linux{
#asahi-dev · 2023-06-18 10:18
sid-linuxstatic void dockchannel_irq_ack(struct irq_data *data)
#asahi-dev · 2023-06-18 10:17
sid-linuxIn function
#asahi-dev · 2023-06-18 10:17
sid-linuxnewbie question. Looking at the dockchannel codebase
#asahi-dev · 2023-06-18 08:19
dsharshakov(not released yet) but better keep a single rate enabled and use released version. let's keep git version mess to minimum :)
#asahi-dev · 2023-06-18 08:15
dsharshakovfyi PW multi-rate rate mismatch bug has been smashed. You probably didn't encounter that, but that was why I warned you about multiple allowed rates
#asahi-dev · 2023-06-18 08:14
dsharshakovTargeting 0.4 branch (master) without hiding nodes (impossible currently without pending changes)
#asahi-dev · 2023-06-18 08:13
chadmedack, ill keep my local repo stale for now
#asahi-dev · 2023-06-18 08:13
dsharshakovThanks for review, will refactor some stuff for upstreaming. Better do a branch backup on your own storage as I'll be force-pushing that branch while refactoring for upstreaming
#asahi-dev · 2023-06-18 08:13
chadmedah yeah that would be more ergonomic
#asahi-dev · 2023-06-18 08:11
dsharshakov`loading JSON from file into WP` <-- essential to have a ton of props like with AutoEq headphone database. This way we'll only load four props into rulesets (device profile, hide device, hide node, attach chain)
#asahi-dev · 2023-06-18 08:10
dsharshakovthen clean .local/state/wireplumber
#asahi-dev · 2023-06-18 08:10
dsharshakovAlso I want to set target node when loading, so that it certainly and immutably attaches to the appropriate node
#asahi-dev · 2023-06-18 08:09
dsharshakovI want to add support for loading JSON from file into WP, so (ideally) you'll use ordinary device and node creation rules to set `wireplumber.hidden` and `wireplumber.filter-chain` or so
#asahi-dev · 2023-06-18 08:09
chadmeddsharshakov: yeah i have killed and restarted all three multiple times, it persists across reboots even
#asahi-dev · 2023-06-18 08:09
millenialhackerI just upgrade from 6.1 rc6 to 6.3
#asahi-dev · 2023-06-18 08:09
mpsmillenialhacker: then ask on #asahi-alt channel
#asahi-dev · 2023-06-18 08:09
millenialhackerbut I use his overlay now

plus ›