#
✕ nick:jeffmiw
#asahi-dev · 2022-06-04 20:59
jeffmiwmarcan: I will be happy to look at hwmon and get someting going. I need to catch-up on SMC. I suppose the best is to state from bits/110-smc ? any suggestion/direction is more than welcome :)
#asahi-dev · 2022-06-04 20:55
jeffmiw 11:28 <marcan> maybe there should be an official-ish list of "things for folks to pick up" <= I very much like this idea, I think it can really help the project
#asahi-dev · 2022-05-30 20:56
jeffmiwfwiw, I understood which config flag I was missing to get back my framebuffer with asahi-5.18-2 on my mba: CONFIG_BACKLIGHT_GPIO :)
#asahi-dev · 2022-05-30 05:09
jeffmiwjannau: I do not have CONFIG_GPIO_MACSMC in my config, I will dig around this. Thanks.
#asahi-dev · 2022-05-30 05:08
jeffmiwj`ey: thanks for checking. I have tried different kernel config, starting with https://github.com/AsahiLinux/PKGBUILDs/blob/main/linux-asahi/config, and messing up with an old one that has been working.
#asahi-dev · 2022-05-29 21:56
jeffmiwanyone else played with asahi-5.18-2 ?
#asahi-dev · 2022-05-29 21:56
jeffmiwjust played with latest https://github.com/AsahiLinux/linux/commits/asahi (asahi-5.18-2) on my mba, can't get a console on the framebuffer. Did a quick bissect, found that this commit db698c3f44db is the last one with a visible console, and this one the first "not working": 943decef7bf6.
#asahi-dev · 2022-03-26 16:23
jeffmiwok, I'm willing to help upstreaming pending bits, so if someone sees something I can do to help in this area let me know ..
#asahi-dev · 2022-03-26 16:21
jeffmiwyes of course, but is there a way to share the effort for upstreaming ?
#asahi-dev · 2022-03-26 16:19
jeffmiwsven: what will be the best way to help upstreaming pending changes ? running checkpatch on asahi/bits/* branches ? what else ?
#asahi-dev · 2022-02-19 15:25
jeffmiwok, I'll check this. Thanks. I also have a minimal initramfs with busybox.
#asahi-dev · 2022-02-19 15:23
jeffmiwok so probably something else wrong in my setup then. I dig into it if I still see the issue after updating. For testing power off I tried halt or shutdown, how do you so it ?
#asahi-dev · 2022-02-19 15:21
jeffmiwI had all the SPMI/MFD/NVMEM options, I saw some errors on the spmi nodes in the dt, which model are you testing on ? I'm on mba
#asahi-dev · 2022-02-19 15:13
jeffmiwj`ey: I'm with an old macOS 11.5.2 and neither rtc nor shutdown work with latest asahi branch, currently updating my system to latest macOS 12 to re-test
#asahi-dev · 2022-02-18 23:51
jeffmiwj'ey; thanks !
#asahi-dev · 2022-02-18 23:44
jeffmiwdoes the spmi/work branch supposed to compile ? it seems dts files are broken on my side: t8103.dtsi referring to non existent node
#asahi-dev · 2022-02-09 20:00
jeffmiwmarcan: ok. does that help if I try to do a bit re on te SPMI ? or do you see something else I can do to help ?
#asahi-dev · 2022-02-08 21:42
jeffmiwmarcan: trying to catch up here about spmi/rtc, I was planning to clean-up my patches with checkpatch.pl to get them ready to submit but not sure if it still makes sense if you have worked and rewritten a lot. let me know what makes sense to do knowing I may progress slowly because of limited time. thx
#asahi-dev · 2022-02-07 07:10
jeffmiwI just pushed the clean-up I had pending. The key one found yesterday is the removal of the regmap fast_io as it was making the kernel crash on mbp 2020.
#asahi-dev · 2022-02-07 06:53
jeffmiwI'll focus cleaning up what I have for spmi & rtc for now
#asahi-dev · 2022-02-07 06:49
jeffmiwmarcan: no problem at all
#asahi-dev · 2022-02-06 17:45
jeffmiwI'll focus to clean it up based on all the comments so to have it decent enough to submit upsream. I was planning to look at shutdown after but I'm sure marcan will have it ready before I can even think of looking at it :)
#asahi-dev · 2022-02-06 17:43
jeffmiwthe spmi driver in my tree is very minimal, reduced to what is needed to get the rtc stuff working
#asahi-dev · 2022-02-06 09:20
jeffmiwsven: thanks, will look into them, yes I'll run checkpatch.pl
#asahi-dev · 2022-02-06 09:08
jeffmiwok, got it, will try something
#asahi-dev · 2022-02-06 09:08
jeffmiwchamed: about the multiple variables on a single line, I'll clean that too
#asahi-dev · 2022-02-06 09:07
jeffmiwjannau: I'll see how to leverage be64_to_cpu() or swab64(), I'm not familiar with those yet
#asahi-dev · 2022-02-06 09:05
jeffmiwalyssa: about the helper function, do you have an good example somewhere ? just for me to do it as right as I can
#asahi-dev · 2022-02-06 09:05
jeffmiwchamed: yes big endian, I'll add a comment for that
#asahi-dev · 2022-02-06 09:03
jeffmiwalyssa: only reason is myself not thinking at it this way:), thanks for all the suggestions, will take them inot account, I did not like this byte swapping anyway :)
#asahi-dev · 2022-02-06 00:55
jeffmiwkettenis: same here about the time, looking forward for more feedback
#asahi-dev · 2022-02-06 00:55
jeffmiwj'ey: yes, on my todo list as a next step :)
#asahi-dev · 2022-02-06 00:54
jeffmiwkettenis: I will align the naming and take a look at the u-boot dts, no good/eal reason to diverge
#asahi-dev · 2022-02-06 00:47
jeffmiwah yes makes sense to share it among the different configs, thanks
#asahi-dev · 2022-02-06 00:46
jeffmiwyes isn't it what i did ?
#asahi-dev · 2022-02-06 00:45
jeffmiwfeel free to share any views and comments, this would be my first submission upstream, so still learning the details :)
#asahi-dev · 2022-02-06 00:45
jeffmiwI'm looking for feedback before finishing polishing and preparing an RFC to submit upstream
#asahi-dev · 2022-02-06 00:43
jeffmiwI tested it on mba but should work on other, dts is only modified for mba
#asahi-dev · 2022-02-06 00:42
jeffmiwCONFIG_RTC_DRV_APPLE_PMU_SERA=y
#asahi-dev · 2022-02-06 00:42
jeffmiwCONFIG_MFD_APPLE_SPMI_SERA_PMU=y
#asahi-dev · 2022-02-06 00:42
jeffmiwCONFIG_SPMI_APPLE=y
#asahi-dev · 2022-02-06 00:42
jeffmiwyou need to activate those flags in the kernel config:
#asahi-dev · 2022-02-06 00:41
jeffmiwhere is rtc support over spmi: https://github.com/jfbortolotti/linux/tree/spmi_rtc it is a basic version doing the job, spmi driver is very minimal: just enough to read rtc registers
#asahi-dev · 2022-02-01 06:17
jeffmiwwhat are the "/bits/" branches on github/asahi/linux used for ? shall I create one to share my spmi/pmu/rtc drivers ? or shall just create my branch of asahi one ?
#asahi-dev · 2022-01-30 21:18
jeffmiwok thanks, I will do that
#asahi-dev · 2022-01-30 20:55
jeffmiwthis will be my first submission, so I'm sure asahi team feedback will be valuable before submitting :)
#asahi-dev · 2022-01-30 20:55
jeffmiwI have a basic SPMI/PMU/RTC drivers implementation almost ready, what is the best way to proceed ? I create a branch on asahi/linux for reviews and testing (I only have an mba, should work on the other with little or no changes but to be confirmed) before submitting upstream ?
#asahi-dev · 2022-01-13 22:19
jeffmiwnice, thanks for sharing
#asahi-dev · 2022-01-02 22:51
jeffmiwyes, this was just a quick first version, need to enhance it to be more generic/flexible
#asahi-dev · 2022-01-02 22:39
jeffmiwFWIW I just submitted a PR on m1n1 with an SPMI experiment to read the RTC clock: https://github.com/AsahiLinux/m1n1/pull/138

plus ›