Page MenuHomeFreeBSD

obiwac (Aymeric Wibo)
Fan-bearer on the Right Side of the King

Projects

User Details

User Since
Jul 12 2022, 11:32 AM (201 w, 6 d)

Recent Activity

Yesterday

obiwac accepted D57232: acpi: Replace mentions of the s2idle with suspend_to_idle.

ope, thanks for catching that. I also forgot to update the acpi(4) manpage and a couple other comments in other files but I can commit a fix for those separately

Mon, May 25, 10:16 AM

Fri, May 22

obiwac added a comment to D56918: zzz: Rewrite to use new power device.

@mhorne just committed f814650aaf788323b3d485d96996fce6cd7b2d7f, does it work with that? I'm surprised it was hanging considering if the suspend stype is unknown it should just not do anything. If it's still suspending I'll send you a patch to try out to exit out of acpi_EnterSleepState() early and see what's going on there.

Fri, May 22, 11:45 AM
obiwac committed rG0b2df683672e: acpi_spmc: Remove useless __DECONSTs (authored by obiwac).
acpi_spmc: Remove useless __DECONSTs
Fri, May 22, 11:28 AM
obiwac committed rGf814650aaf78: power: Fix stype name lengths (authored by obiwac).
power: Fix stype name lengths
Fri, May 22, 10:04 AM
obiwac added a comment to D56918: zzz: Rewrite to use new power device.

Strangely, acpiconf -s 3 succeeds in both cases. I believe this is what I was using before, based on the previous implementation of zzz.

Fri, May 22, 12:21 AM
obiwac updated the diff for D56918: zzz: Rewrite to use new power device.

fix path ordering

Fri, May 22, 12:18 AM
obiwac added inline comments to D56918: zzz: Rewrite to use new power device.
Fri, May 22, 12:15 AM

Wed, May 20

obiwac added a comment to D56918: zzz: Rewrite to use new power device.

I tried it out. The machine didn't suspend, instead it just froze :/

I haven't looked at the pathways for this new power device yet, but I will try to familiarize myself with it. That's all I can report today.

Wed, May 20, 10:23 PM
obiwac updated the diff for D56918: zzz: Rewrite to use new power device.

respond to mhorne@'s suggestions

Wed, May 20, 10:22 PM

Wed, May 13

obiwac committed rGd649825e8348: power: Power device and ioctl for state transitions (authored by obiwac).
power: Power device and ioctl for state transitions
Wed, May 13, 11:57 AM
obiwac closed D55508: power: Power device and ioctl for state transitions.
Wed, May 13, 11:57 AM
obiwac updated the diff for D55508: power: Power device and ioctl for state transitions.

check enum overflow

Wed, May 13, 10:23 AM

Tue, May 12

obiwac added inline comments to D55508: power: Power device and ioctl for state transitions.
Tue, May 12, 9:51 PM
obiwac updated the diff for D55508: power: Power device and ioctl for state transitions.

Respond to olce@'s comments:

Tue, May 12, 9:51 PM
obiwac accepted D56880: acpi_spmc(4): softc: Move supported functions into a DSM info structure.
Tue, May 12, 2:18 PM
obiwac accepted D56756: acpi_spmc(4): Human-readably print supported DSMs and their functions.
Tue, May 12, 2:17 PM
obiwac accepted D56883: acpi_spmc(4): If verbose, print called functions.
Tue, May 12, 2:16 PM
obiwac accepted D56882: acpi_spmc(4): Auto-detect DSM revisions by default.
Tue, May 12, 2:16 PM
obiwac accepted D56879: acpi_spmc(4): Only run DSM functions reported present.
Tue, May 12, 2:16 PM
obiwac accepted D56878: acpi_spmc(4): Factor out testing for present DSMs/functions.
Tue, May 12, 2:15 PM
obiwac accepted D56877: acpi_spmc(4): acpi_spmc_run_dsm(): Rename, rename parameters, constify.
Tue, May 12, 2:14 PM
obiwac accepted D56876: acpi_spmc(4): Be less verbose by default.
Tue, May 12, 2:14 PM
obiwac accepted D56875: acpi_spmc(4): Add a sysctl knob to request verbosity.
Tue, May 12, 2:13 PM
obiwac accepted D56818: acpi_spmc(4): acpi_spmc_probe_dsm(): Remove passing superfluous handle.
Tue, May 12, 2:13 PM
obiwac accepted D56817: acpi_spmc(4): Enable multiple instances.
Tue, May 12, 2:12 PM
obiwac accepted D56816: acpi_spmc(4): Global message on constraints parsing failure.
Tue, May 12, 2:12 PM
obiwac accepted D56815: acpi_spmc(4): Constraint parsing: Clearer error messages.
Tue, May 12, 2:11 PM
obiwac accepted D56814: acpi_spmc(4): In-kernel strdup() cannot fail, remove dead code.
Tue, May 12, 2:10 PM
obiwac accepted D56813: acpi_spmc(4): Gracefully support only the Microsoft DSM.
Tue, May 12, 2:10 PM
obiwac accepted D56812: acpi_spmc(4): INVARIANTS: Do not panic on getting constraints failure.
Tue, May 12, 2:09 PM
obiwac accepted D56811: acpi_spmc(4): Print supported functions after DSMs.
Tue, May 12, 2:09 PM
obiwac accepted D56810: acpi_spmc(4): Check DSMs only on attach, do not return 0 on probe.
Tue, May 12, 2:09 PM
obiwac accepted D56809: acpi_spmc(4): Stop pretending that all constraints are verified.
Tue, May 12, 2:08 PM
obiwac accepted D56808: acpi_spmc(4): Constraints: Clearer message on handle retrieve error.
Tue, May 12, 2:07 PM
obiwac accepted D56807: acpi_spmc(4): Constraints: Simplify some assertions.
Tue, May 12, 2:05 PM
obiwac accepted D56806: acpi_spmc(4): Rename functions parsing constraints.
Tue, May 12, 2:05 PM
obiwac accepted D56805: acpi_spmc(4): Factor out printing DSM call error, delineate function.
Tue, May 12, 2:04 PM
obiwac accepted D56803: acpi_spmc(4): Introduce supports_function().
Tue, May 12, 2:03 PM
obiwac added inline comments to D56882: acpi_spmc(4): Auto-detect DSM revisions by default.
Tue, May 12, 1:00 PM
obiwac added inline comments to D56882: acpi_spmc(4): Auto-detect DSM revisions by default.
Tue, May 12, 12:07 PM
obiwac added a comment to D56957: acpi_spmc: Remove useless __DECONSTs.

(note that we will wait for olce@ to commit his acpi_spmc stack to make things simpler)

Tue, May 12, 11:28 AM
obiwac requested review of D56958: acpi_powerres: Interface for getting D-state of devices from userspace.
Tue, May 12, 10:33 AM
obiwac accepted D56882: acpi_spmc(4): Auto-detect DSM revisions by default.

logic here seems sound

Tue, May 12, 10:27 AM
obiwac requested review of D56957: acpi_spmc: Remove useless __DECONSTs.
Tue, May 12, 10:10 AM
obiwac committed rG6f451c60918f: power: Rename power transition enum (authored by obiwac).
power: Rename power transition enum
Tue, May 12, 9:54 AM
obiwac closed D56953: power: Rename power transition enum.
Tue, May 12, 9:53 AM
obiwac updated the test plan for D56918: zzz: Rewrite to use new power device.
Tue, May 12, 9:45 AM
obiwac added inline comments to D56817: acpi_spmc(4): Enable multiple instances.
Tue, May 12, 9:13 AM
obiwac updated the diff for D55508: power: Power device and ioctl for state transitions.

oops, completely screwed up the diff here!

Tue, May 12, 12:11 AM
obiwac updated the diff for D56953: power: Rename power transition enum.

rebase

Tue, May 12, 12:10 AM

Mon, May 11

obiwac updated the diff for D56918: zzz: Rewrite to use new power device.

rebase

Mon, May 11, 9:29 PM
obiwac updated the diff for D55508: power: Power device and ioctl for state transitions.

rebase to after D56953

Mon, May 11, 9:29 PM
obiwac updated the diff for D56953: power: Rename power transition enum.

rebase to before D55508

Mon, May 11, 9:29 PM
obiwac updated the test plan for D55508: power: Power device and ioctl for state transitions.
Mon, May 11, 9:24 PM
obiwac requested review of D56953: power: Rename power transition enum.
Mon, May 11, 9:15 PM
obiwac committed rG95b4436e989d: power: Rename sleep types (authored by obiwac).
power: Rename sleep types
Mon, May 11, 5:21 PM
obiwac closed D56920: power: Rename sleep types.
Mon, May 11, 5:20 PM
obiwac added a comment to D56879: acpi_spmc(4): Only run DSM functions reported present.

Ok. But after having read some AML, I'm leaning towards the opposite thinking at the moment. E.g., if vendors would deactivate some function for a particular model (because the base firmware is shared between models, and that specific model does not support it or something doesn't work or is not relevant), they would do it primarily through the enum function, but would not necessarily remove the actual code. Testing the series on an AMD Framework Laptop is important to confirm (or infirm) all this.

Mon, May 11, 4:58 PM
obiwac added inline comments to D56817: acpi_spmc(4): Enable multiple instances.
Mon, May 11, 4:53 PM
obiwac added a comment to D56877: acpi_spmc(4): acpi_spmc_run_dsm(): Rename, rename parameters, constify.

i mean from my pov I agree with you, but if I was new to this code and was reading it for the first time I feel like this might confuse me

Yes, I was thinking also about that in the meantime. I'll add a comment before acpi_spmc_run(), that should be enough.

Mon, May 11, 4:03 PM
obiwac added a comment to D56879: acpi_spmc(4): Only run DSM functions reported present.

Oh yes? Do you remember some details about that? Was it specifically linked with the revision used? In that latter case, perhaps D56882 fixes that.

Mon, May 11, 3:26 PM
obiwac added a comment to D56877: acpi_spmc(4): acpi_spmc_run_dsm(): Rename, rename parameters, constify.

I do not have strong feelings, it's just that I find acpi_spmc_run() much simpler and not really ambiguous in that context (what could acpi_spmc(4) run except a DSM function?).

Mon, May 11, 1:22 PM
obiwac added inline comments to D56876: acpi_spmc(4): Be less verbose by default.
Mon, May 11, 1:20 PM
obiwac added inline comments to D56876: acpi_spmc(4): Be less verbose by default.
Mon, May 11, 12:37 PM
obiwac added inline comments to D56920: power: Rename sleep types.
Mon, May 11, 11:33 AM
obiwac added a comment to D56807: acpi_spmc(4): Constraints: Simplify some assertions.

Are there any guidelines w.r.t. capitalization here? I couldn't find anything in style(9), and it seems to me like the prevailing convention in the code is to not capitalize these

AFAIK, there are none, and it's more or less up to authors. So that's my preference. :-)

But I really do not understand why some people insist on not capitalizing (which is not the same as, they don't do it because they are mimicking things they have seen or because of lazyness or because they simply don't care). Capitalizing helps delineating messages/sentences quickly, even after, e.g., panic:. Maybe the drawback for some is that they find it catching too much attention? I don't know.

Mon, May 11, 11:32 AM
obiwac added inline comments to D56756: acpi_spmc(4): Human-readably print supported DSMs and their functions.
Mon, May 11, 11:29 AM
obiwac accepted D56806: acpi_spmc(4): Rename functions parsing constraints.

I mean, technically these functions aren't just parsing the constraints, they're also getting them... I don't know if I agree with this change

Maybe it's a question of words, but these functions do not "get" them in the sense they query the firmware, that is done only at start of acpi_spmc_get_constraints(), they just interpret/parse the result, building our own internal structures.

Mon, May 11, 11:27 AM
obiwac added inline comments to D56756: acpi_spmc(4): Human-readably print supported DSMs and their functions.
Mon, May 11, 9:39 AM
obiwac accepted D56883: acpi_spmc(4): If verbose, print called functions.
Mon, May 11, 9:35 AM
obiwac accepted D56881: acpi_spmc(4): Minor simplification in detach function.
Mon, May 11, 9:34 AM
obiwac accepted D56880: acpi_spmc(4): softc: Move supported functions into a DSM info structure.
Mon, May 11, 9:33 AM
obiwac accepted D56879: acpi_spmc(4): Only run DSM functions reported present.

fine with this conceptually, but just bear in mind that there are some situations where enum functions report the wrong functions, and Linux just ignores this (have seen this with the AMD DSMs e.g.). So this might cause problems on some machines.

Mon, May 11, 9:33 AM
obiwac accepted D56878: acpi_spmc(4): Factor out testing for present DSMs/functions.

yeah, this logic is much better

Mon, May 11, 9:29 AM
obiwac added a comment to D56877: acpi_spmc(4): acpi_spmc_run_dsm(): Rename, rename parameters, constify.

not sure I like how generic the function name acpi_spmc_run() is. Technically it is actually running a DSM, just with a bunch of other options so the AML interpreter knows how to dispatch the function. How about acpI_spmc_run_dsm_fn() or something like that?

Mon, May 11, 9:23 AM
obiwac added inline comments to D56876: acpi_spmc(4): Be less verbose by default.
Mon, May 11, 9:21 AM
obiwac accepted D56875: acpi_spmc(4): Add a sysctl knob to request verbosity.
Mon, May 11, 9:20 AM
obiwac accepted D56818: acpi_spmc(4): acpi_spmc_probe_dsm(): Remove passing superfluous handle.

could we just roll this change into D56756?

Mon, May 11, 9:19 AM
obiwac added inline comments to D56756: acpi_spmc(4): Human-readably print supported DSMs and their functions.
Mon, May 11, 9:18 AM
obiwac accepted D56817: acpi_spmc(4): Enable multiple instances.
Mon, May 11, 9:07 AM
obiwac added inline comments to D56813: acpi_spmc(4): Gracefully support only the Microsoft DSM.
Mon, May 11, 9:03 AM
obiwac accepted D56816: acpi_spmc(4): Global message on constraints parsing failure.
Mon, May 11, 9:02 AM
obiwac accepted D56815: acpi_spmc(4): Constraint parsing: Clearer error messages.
Mon, May 11, 9:01 AM
obiwac accepted D56814: acpi_spmc(4): In-kernel strdup() cannot fail, remove dead code.
Mon, May 11, 9:00 AM
obiwac accepted D56813: acpi_spmc(4): Gracefully support only the Microsoft DSM.
Mon, May 11, 8:59 AM
obiwac accepted D56812: acpi_spmc(4): INVARIANTS: Do not panic on getting constraints failure.
Mon, May 11, 8:53 AM

Sun, May 10

obiwac accepted D56811: acpi_spmc(4): Print supported functions after DSMs.
Sun, May 10, 1:18 PM
obiwac accepted D56810: acpi_spmc(4): Check DSMs only on attach, do not return 0 on probe.
Sun, May 10, 1:16 PM
obiwac accepted D56809: acpi_spmc(4): Stop pretending that all constraints are verified.
Sun, May 10, 1:12 PM
obiwac accepted D56808: acpi_spmc(4): Constraints: Clearer message on handle retrieve error.
Sun, May 10, 1:11 PM
obiwac added a comment to D56807: acpi_spmc(4): Constraints: Simplify some assertions.

Are there any guidelines w.r.t. capitalization here? I couldn't find anything in style(9), and it seems to me like the prevailing convention in the code is to not capitalize these

Sun, May 10, 1:08 PM
obiwac added a comment to D56806: acpi_spmc(4): Rename functions parsing constraints.

I mean, technically these functions aren't just parsing the constraints, they're also getting them... I don't know if I agree with this change

Sun, May 10, 1:06 PM
obiwac added a comment to D56756: acpi_spmc(4): Human-readably print supported DSMs and their functions.

i haven't entirely finished reviewing this, but here's a few comments already. Overall I do really like these changes; makes things a bit saner

Sun, May 10, 1:04 PM
obiwac updated the diff for D49452: USB4 host reset (& writing to router config space).

respond to review comments

Sun, May 10, 12:32 PM · drivers, USB
obiwac added inline comments to D56918: zzz: Rewrite to use new power device.
Sun, May 10, 12:29 PM
obiwac updated the diff for D55508: power: Power device and ioctl for state transitions.

Rebase onto D56920

Sun, May 10, 12:27 PM
obiwac updated the diff for D56920: power: Rename sleep types.

Forgot to change this in all the places it's used

Sun, May 10, 12:26 PM
obiwac requested review of D56920: power: Rename sleep types.
Sun, May 10, 12:21 PM
obiwac updated the summary of D56918: zzz: Rewrite to use new power device.
Sun, May 10, 8:59 AM
obiwac added a comment to D56918: zzz: Rewrite to use new power device.

also, TODO, update manpage

Sun, May 10, 8:56 AM