00:36
sirn has quit [Server closed connection]
00:37
sirn has joined #asahi-dev
00:45
yuyichao has quit [Ping timeout: 480 seconds]
00:53
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:59
user982492 has joined #asahi-dev
00:59
user982492 has quit []
01:14
Dcow[m] has quit [Server closed connection]
01:14
Dcow[m]1 has joined #asahi-dev
01:14
ianlienfa[m] has quit [Server closed connection]
01:14
ianlienfa[m] has joined #asahi-dev
01:15
jeh[m] has quit [Server closed connection]
01:15
jeh[m] has joined #asahi-dev
01:18
SocioProphet[m] has quit [Server closed connection]
01:18
SocioProphet[m] has joined #asahi-dev
01:48
yuyichao has joined #asahi-dev
01:50
IvanMaksimovic[m] has quit [Server closed connection]
01:50
IvanMaksimovic[m] has joined #asahi-dev
01:52
user982492 has joined #asahi-dev
02:20
Emantor has joined #asahi-dev
03:35
phiologe has joined #asahi-dev
03:38
PhilippvK has quit [Ping timeout: 480 seconds]
03:51
drwhax[m]1 has quit [Server closed connection]
03:51
drwhax[m]1 has joined #asahi-dev
03:53
l3k[m] has quit [Server closed connection]
03:53
l3k[m] has joined #asahi-dev
03:57
RianSouzaSantos[m] has quit [Server closed connection]
03:57
RianSouzaSantos[m] has joined #asahi-dev
04:02
kov has quit [Quit: Coyote finally caught me]
04:02
kov has joined #asahi-dev
04:04
mini has quit [Server closed connection]
04:04
mini has joined #asahi-dev
04:25
ybk[m] has quit [Server closed connection]
04:26
ybk[m] has joined #asahi-dev
04:31
josipknezovic[m] has quit [Server closed connection]
04:31
josipknezovic[m] has joined #asahi-dev
04:46
NotHere[m] has quit [Server closed connection]
04:46
NotHere[m] has joined #asahi-dev
04:48
rethematrix[m] has quit [Server closed connection]
04:48
rethematrix[m] has joined #asahi-dev
04:50
Rhys[m]12 has quit [Server closed connection]
04:50
Rhys[m]12 has joined #asahi-dev
05:07
blasty has quit [Server closed connection]
05:07
blasty has joined #asahi-dev
05:16
chengsun_ has quit [Server closed connection]
05:16
chengsun has joined #asahi-dev
05:23
kit_ty_kate has quit [Server closed connection]
05:23
kit_ty_kate has joined #asahi-dev
05:36
akemin_dayo has quit [Server closed connection]
05:36
akemin_dayo has joined #asahi-dev
05:42
M0x8FF[m] has quit [Server closed connection]
05:42
M0x8FF[m] has joined #asahi-dev
05:57
DarkShadow44 has quit [Server closed connection]
05:57
DarkShadow44 has joined #asahi-dev
05:58
krirogn[m] has quit [Server closed connection]
05:58
krirogn[m] has joined #asahi-dev
06:08
NightsOnly[m] has quit [Server closed connection]
06:08
NightsOnly[m] has joined #asahi-dev
06:50
kenzie35 has quit []
06:56
vup has quit [Server closed connection]
06:56
c10l3 has quit [Server closed connection]
06:57
c10l3 has joined #asahi-dev
07:05
kenzie35 has joined #asahi-dev
07:08
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:53
dhewg has quit [Server closed connection]
07:53
dhewg has joined #asahi-dev
08:13
milek7_ has joined #asahi-dev
08:13
milek7 has quit [Server closed connection]
08:27
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:16
the_lanetly_052 has quit [Ping timeout: 480 seconds]
10:06
perigoso[m] has quit [Server closed connection]
10:06
perigoso[m] has joined #asahi-dev
11:00
DanielHuisman[m] has quit [Server closed connection]
11:00
DanielHuisman[m] has joined #asahi-dev
11:01
Liam[m] has quit [Server closed connection]
11:01
Liam[m] has joined #asahi-dev
11:01
Ferluci[m] has quit [Server closed connection]
11:01
Ferluci[m] has joined #asahi-dev
11:02
DanStrong[m] has quit [Server closed connection]
11:02
DanStrong[m] has joined #asahi-dev
11:02
pulpy_orange2[m] has quit [Server closed connection]
11:02
pulpy_orange2[m] has joined #asahi-dev
11:03
retonlage[m] has quit [Server closed connection]
11:03
retonlage[m] has joined #asahi-dev
11:04
YichaoYu[m] has quit [Server closed connection]
11:04
YichaoYu[m] has joined #asahi-dev
11:47
mtjzh has joined #asahi-dev
12:29
CDFH has quit [Server closed connection]
12:48
mtjzh has quit [Remote host closed the connection]
13:04
<
jannau >
marcan: have you already thought about how to interact with arch linux? I'm wondering what I shall do about the broken rust package with 16k page size
13:05
<
marcan >
there's going to be a bunch of breakage due to 16K pages, yes; my plan is to not care for the first release so we can gather up everything that's broken :-)
13:05
mtjzh has joined #asahi-dev
13:05
<
jannau >
issue is that the x86 PKGBUILD uses jemalloc and jemalloc seems to assume that the build page size is the page size on the target
13:05
<
marcan >
yeah, jemalloc again...
13:08
<
jannau >
it has config option to specify a page size (as far as I understand it still works if the actual page size is smaller)
13:08
<
marcan >
yeah, makes sense
13:08
<
j`ey >
jannau: the iommu patch seems to be tested relatively well, why not just use that
13:08
<
marcan >
tbh we can probably just get ALARM to override that for us
13:10
<
jannau >
I could ceate a pull request for alarm's PKGBUILD repo but I was wondering if they already know that there will be an influx of users with a CPU with 16k page size
13:11
<
marcan >
I have talked with them, but I don't remember if I emphasized the 16K issue
13:11
<
marcan >
need to check my mail again :)
13:11
<
marcan >
I can follow up though
13:13
<
alyssa >
what happened to sven's 4k patches
13:13
mtjzh has quit [Ping timeout: 480 seconds]
13:13
<
j`ey >
to be revived at some point
13:14
<
jannau >
j`ey: I fear if we start that way it will be hard to convince people that packages should be fixed for 16k
13:14
<
sven >
they work fine but need some work to be accepted upstream and i've kinda abandoned them because nvme was more interesting
13:14
<
kettenis >
alyssa: you stopped kicking sven ;)
13:14
<
sven >
yeah, or that :D
13:15
<
jannau >
marcan: thanks
13:15
<
j`ey >
jannau: I suppose
13:15
<
alyssa >
jannau: fair enough tbh
13:23
<
sven >
in other news, the regs inside the phy-atc nodes in the ADT are a big mess. they have some entries that are e.g. 0xa4 byes long :/
13:26
<
kettenis >
so now sven ahs abandoned nvme because atc is more interesting ;)
13:26
<
j`ey >
Ad infinitum
13:26
<
sven >
i'm just waiting for marcan to confirm that the rtkit library is in a good shape and for axboe (he's one of the nvme maintainers) to look into sharing tags across both queues to submit it
13:39
mtjzh has joined #asahi-dev
13:46
ChaosPrincess has quit [Quit: WeeChat 3.4]
13:47
ChaosPrincess has joined #asahi-dev
13:47
mtjzh has quit [Ping timeout: 480 seconds]
13:47
vup has joined #asahi-dev
13:58
mtjzh has joined #asahi-dev
14:06
mtjzh has quit [Ping timeout: 480 seconds]
14:31
mtjzh has joined #asahi-dev
14:39
mtjzh has quit [Ping timeout: 480 seconds]
14:58
mtjzh has joined #asahi-dev
15:06
mtjzh has quit [Ping timeout: 480 seconds]
15:15
mtjzh has joined #asahi-dev
16:22
mtjzh has quit [Ping timeout: 480 seconds]
16:30
mtjzh has joined #asahi-dev
16:39
mtjzh has quit [Ping timeout: 480 seconds]
17:00
bisko has joined #asahi-dev
17:03
mtjzh has joined #asahi-dev
17:58
axboe has joined #asahi-dev
17:58
<
axboe >
starting to look at adding a cpufreq driver
17:59
<
axboe >
all I got so far is the m1n1 cpufreq entry, does anything else exist describing the pstate values?
18:00
<
j`ey >
but I know that marcan wanted to rewrite it for some reason
18:00
<
axboe >
ah shoot, didn't find anything
18:00
<
axboe >
thanks, that's very useful
18:01
user982492 has joined #asahi-dev
18:06
<
axboe >
looks like it, yes
18:11
mtjzh has quit [Ping timeout: 480 seconds]
18:12
axboe has quit [Quit: leaving]
18:17
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:21
mtjzh has joined #asahi-dev
18:28
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:29
user982492 has joined #asahi-dev
18:29
mtjzh has quit [Ping timeout: 480 seconds]
18:30
user982492 has quit []
18:30
user982492 has joined #asahi-dev
18:33
user982492 has quit []
18:35
user982492 has joined #asahi-dev
18:35
user982492 has quit []
18:48
axboe has joined #asahi-dev
18:48
<
axboe >
well that failed miserably, lol
18:49
eragon has joined #asahi-dev
18:49
<
axboe >
will take a look later today when I've got some more time to fiddle with this
18:53
mtjzh has joined #asahi-dev
19:27
<
jannau >
axboe: seems to work if you yank the mcc
19:28
<
jannau >
axboe: your disabled cpu core might cause troubles
19:32
mtjzh has quit [Remote host closed the connection]
19:32
mtjzh has joined #asahi-dev
19:38
<
axboe >
jannau: was considering that it might be because p7..p8 aren't here
19:39
<
axboe >
jannau: will give that a shot!
19:40
axboe has quit [Quit: brb]
19:40
<
jannau >
maybe not system was not really stable
19:43
axboe has joined #asahi-dev
19:43
<
axboe >
jannau: yep booted with that, let's see...
19:44
mtjzh has quit [Remote host closed the connection]
19:45
<
axboe >
anyone noticed that irq/101-0-003a ends up in D state after charger has been plugged/unplugged?
19:45
<
axboe >
oot@m1:~# cat /proc/462/stack
19:45
<
axboe >
[<0>] pasemi_smb_waitready+0x40/0xe0
19:45
<
axboe >
[<0>] __i2c_transfer+0x164/0x7a0
19:45
<
axboe >
[<0>] msleep+0x2c/0x3c
19:45
<
axboe >
[<0>] pasemi_i2c_xfer+0x134/0x1c0
19:45
<
axboe >
[<0>] i2c_transfer+0x5c/0xf4
19:45
<
axboe >
[<0>] regmap_i2c_read+0x58/0xa0
19:45
<
axboe >
[<0>] _regmap_raw_read+0xdc/0x2cc
19:45
<
axboe >
[<0>] regmap_raw_read+0x190/0x27c
19:45
<
axboe >
[<0>] tps6598x_block_read+0x44/0xc0 [tps6598x]
19:45
<
axboe >
[<0>] cd321x_interrupt+0x40/0x250 [tps6598x]
19:45
<
axboe >
[<0>] irq_thread_fn+0x28/0x94
19:45
<
axboe >
[<0>] irq_thread+0x150/0x27c
19:45
<
axboe >
[<0>] kthread+0x108/0x110
19:46
<
axboe >
[<0>] ret_from_fork+0x10/0x20
19:46
<
axboe >
(scaling does seem to work fine now, fwiw)
19:46
mtjzh has joined #asahi-dev
19:47
<
axboe >
this should certainly help the battery time, was running fully clocked up before
19:57
axboe has quit [Quit: brb]
19:58
<
sven >
that interrupt comes from the usb pd controller
19:58
axboe has joined #asahi-dev
19:58
<
jannau >
my instalility with mcc was apparently caused by using "apple,num-channels = <8>;" for the m1 max
19:59
<
jannau >
powertop is not made for 10 cores with 16 pstates
20:02
<
axboe >
jannau: heh indeed
20:03
<
jannau >
still not stable, might be related to "nvme-apple 393cc0000.nvme: I/O 32(aq:0) timeout: completion polled"
20:03
user982492 has joined #asahi-dev
20:04
mtjzh has quit [Remote host closed the connection]
20:04
<
jannau >
seen 4 times with I/O 8(aq:0), I/O 24(aq:0) and I/O 32(aq:0)
20:04
<
axboe >
missed interrypt
20:04
<
axboe >
I haven't seen that here
20:15
<
jannau >
axboe: are you using the magsafe connector for charging? I can't reproduce it here
20:18
<
axboe >
jannau: nope, usb-c
20:20
<
axboe >
jannau: happens here every time, fwiw
20:20
mtjzh has joined #asahi-dev
20:23
<
jannau >
ack, reproduced with usb-c
20:23
<
jannau >
doesn't happen with the magsafe charger
20:24
<
axboe >
(usb-c is more convenient for me, as other laptops in the house can use it too...)
20:25
<
axboe >
haven't even tried the included charger yet :)
20:28
mtjzh has quit [Ping timeout: 480 seconds]
20:45
<
sven >
does it get stuck in that D state? it's waiting for an i2c transaction to finish there
20:45
<
sven >
or does the interrupt just keep firing?
20:46
<
axboe >
sven: it does
20:47
<
axboe >
I can try and debug it, only visible thing is that it sits in D all the time
20:47
<
axboe >
but it's doing 1 msec sleeps there and timing out after 10 tries, so retries must be coming from elsewhere
20:49
<
sven >
my first guess was that we don't ack the interrupt in cd321x_interrupt correctly but I don't see how yet
20:50
<
sven >
cd321x is that usb pd chip and there should be a "plug event" firing
20:50
<
sven >
but we handle that one correctly
20:53
<
jannau >
it appears to be a read and not a write. maybe the same problem as in m1n1 with not using Repeat-Start
20:55
<
sven >
i don't think the i2c transaction it the problem. it should timeout and complain if it was
20:56
<
sven >
huh, m1n1 has #define CD3218B12_IRQ_WIDTH 9 but the kernel driver effectively only considers 8 bytes
20:57
<
sven >
hrm, but that shouldn't matter since we hand over to linux with all irqs in that chip disabled
20:57
<
jannau >
I was thinking of that as well, I think the data sheet has only 8 bytes and apple's variant
20:58
<
jannau >
has one additional one
20:58
<
jannau >
don't we restore the state anymore?
20:58
<
sven >
i think only when running something in the hypervisor
21:01
<
sven >
looks like i can't easily convinced my mac mini to "charge" from a usb-c port :D
21:02
<
sven >
and just plugging in a normal cable doesn't seem to trigger that here
21:03
<
jannau >
we don't disable the tps irqs for the direct payload boot as we do not init usb at all
21:03
<
sven >
can anyone of you boot with tps6598 trace events enabled?
21:03
<
sven >
something like tp_printk trace_event=tps6598:* in the bootargs should work
21:10
bpye4 has joined #asahi-dev
21:16
bpye has quit [Ping timeout: 480 seconds]
21:16
bpye4 is now known as bpye
21:24
<
axboe >
sven: sure, I can try that
21:25
<
jannau >
sven: full of empty "cd321x_irq: event="
21:25
<
axboe >
sven: I enabled ftrace, so I can just do it from there
21:25
<
axboe >
looks like jannau beat me to it
21:26
<
jannau >
it is 'trace_event=tps6598x:*'
21:26
<
axboe >
cd321x_irq filter tps6598x_irq tps6598x_status
21:26
<
axboe >
enable tps6598x_data_status tps6598x_power_status
21:26
<
axboe >
which ones do you want?
21:26
<
sven >
alright. unhandled interrupt then
21:27
<
sven >
I was looking for the cd321x_irq
21:28
<
axboe >
so we're not really stuck, we just keep doing that read path and needing at least one loop
21:29
<
axboe >
hence I see it in msleep() all the time
21:30
<
sven >
and it doesn’t trigger the spurious irq detection because i2c is just too slow
21:31
mtjzh has joined #asahi-dev
21:31
<
axboe >
if event == 0, should we still clear ints?
21:31
amw has quit [Ping timeout: 480 seconds]
21:31
<
sven >
the public data sheet claims the irq will only trigger when event is not zero
21:32
<
axboe >
I'll give it a spin...
21:32
<
sven >
this irq is also shared across all tps chips. But I think we have them all declared in the device tree
21:32
<
sven >
yeah, it can’t hurt to try..
21:33
axboe has quit [Quit: rebooting]
21:34
axboe has joined #asahi-dev
21:34
<
axboe >
ok let's try
21:34
<
axboe >
irq/101-0-003a-378 [005] ..... 68.054988: cd321x_irq: event=
21:34
<
axboe >
tons of these, like jannau saw too
21:35
<
axboe >
every 0.012s
21:35
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:36
<
axboe >
does it need the status reg read too? I should find the documentation :)
21:38
amw has joined #asahi-dev
21:39
mtjzh has quit [Ping timeout: 480 seconds]
21:39
axboe has joined #asahi-dev
21:39
<
sven >
the interrupts are changed in the apple-variant but many other things are the same
21:39
<
axboe >
no difference
21:39
<
sven >
wait… why does only one interrupt thread do that?
21:40
<
sven >
there should be a few that all trigger in the same interrupt
21:47
mtjzh has joined #asahi-dev
21:48
user982492 has joined #asahi-dev
21:55
mtjzh has quit [Ping timeout: 480 seconds]
22:05
<
sven >
okay, shot in the dark: do your USB ports work more than once? is the dwc3 controller running dual mode?
22:06
<
axboe >
sven: haven't used usb yet...
22:06
<
axboe >
how do I check the dwc3?
22:06
<
jannau >
the problem seems to be that interrupts for the other ports are disabled
22:07
<
axboe >
dmesg | grep -i dwc 0.003s
22:07
<
axboe >
[ 1.828663] dwc3 702280000.usb: Adding to iommu group 2
22:07
<
axboe >
[ 1.828728] dwc3 702280000.usb: Configuration mismatch. dr_mode forced to host
22:07
<
axboe >
[ 1.875628] dwc3 b02280000.usb: Adding to iommu group 3
22:07
<
axboe >
[ 1.875752] dwc3 b02280000.usb: Configuration mismatch. dr_mode forced to host
22:07
<
axboe >
[ 1.913059] dwc3 f02280000.usb: Adding to iommu group 4
22:07
<
axboe >
[ 1.913114] dwc3 f02280000.usb: Configuration mismatch. dr_mode forced to host
22:07
<
sven >
okay, I wonder if the cd321x chips probe correctly if the dwc3 is in host mode only
22:07
<
jannau >
if I comment the type-c connectors in the dts all four cd321x have interrupts enabled
22:10
<
sven >
that explains the “empty” irq status
22:10
<
sven >
the other tps gets that “plug event” and pulls the irq line low but the kernel only checks the MagSafe tps one and doesn’t see any interrupts there
22:11
<
sven >
I wonder why they are disabled though
22:12
mtjzh has joined #asahi-dev
22:12
<
sven >
the probe function writes the irq mask pretty early and has lots of failure paths that don’t clean it up afterwards
22:17
<
axboe >
sven: that's it
22:20
mtjzh has quit [Ping timeout: 480 seconds]
22:20
<
axboe >
sven: ^^ fixes it
22:22
<
jannau >
fwnode_usb_role_switch_get() fails
22:22
<
axboe >
alternatively, enable mask could be moved
22:22
<
axboe >
but proves your theory at least
22:25
<
sven >
jannau: probably because the dwc3 controller was forced to host mode which will also break usb hot plug with the current workaround
22:28
<
sven >
jannau: actually, usb/role.h has a stub for that function when !IS_ENABLED(CONFIG_USB_ROLE_SWITCH)
22:29
<
sven >
hrm, but that would always fail then
22:29
<
jannau >
fails with -EPROBE_DEFER
22:29
kenzie35 has quit []
22:29
<
sven >
that's fine the first time if it probed dwc3 before the cd321x
22:30
<
sven >
either way, axboe's interrupt mask fix is a good idea anyway
22:31
kenzie35 has joined #asahi-dev
22:31
<
jannau >
yes, not a problem in mainline due to the missing usb nodes
22:32
<
jannau >
it returns -EPROBE_DEFER 7 times after dwc3 is probed, once before
22:45
mtjzh has joined #asahi-dev
22:53
mtjzh has quit [Ping timeout: 480 seconds]
23:04
mtjzh has joined #asahi-dev
23:29
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]