Page MenuHomeFreeBSD

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

Projects

User does not belong to any projects.

User Details

User Since
Jul 12 2022, 11:32 AM (185 w, 3 d)

Recent Activity

Thu, Jan 29

obiwac committed rG5a733026088f: touch: Test for -m flag (authored by obiwac).
touch: Test for -m flag
Thu, Jan 29, 3:52 PM
obiwac committed rG578b4ec8f1a4: touch: Test for -a flag (authored by obiwac).
touch: Test for -a flag
Thu, Jan 29, 3:52 PM
obiwac committed rG21efed6cd844: touch: Tests for -h flag (authored by obiwac).
touch: Tests for -h flag
Thu, Jan 29, 3:52 PM
obiwac closed D54853: touch: Test for -m flag.
Thu, Jan 29, 3:52 PM
obiwac closed D54852: touch: Test for -a flag.
Thu, Jan 29, 3:52 PM
obiwac closed D54836: touch: Tests for -h flag.
Thu, Jan 29, 3:52 PM

Mon, Jan 26

obiwac closed D48387: acpi_spmc: Add SPMC (system power management controller) driver.
Mon, Jan 26, 7:25 PM
obiwac accepted D48387: acpi_spmc: Add SPMC (system power management controller) driver.

accepting so I can close this again manually

Mon, Jan 26, 7:25 PM
obiwac updated the diff for D54410: acpi: Implement s2idle loop.

Small style changes.

Mon, Jan 26, 7:04 PM
obiwac updated the diff for D48735: acpi: Call SPMC suspend/resume hooks.

Remove dev/acpica/acpi_pmc_if.m from sys/conf/files

Mon, Jan 26, 6:48 PM
obiwac updated the diff for D48387: acpi_spmc: Add SPMC (system power management controller) driver.

oops, wrong revision

Mon, Jan 26, 6:47 PM
obiwac updated the diff for D48735: acpi: Call SPMC suspend/resume hooks.

Use eventhandler hooks instead of new acpi_pmc interface

Mon, Jan 26, 6:47 PM
obiwac updated the diff for D48387: acpi_spmc: Add SPMC (system power management controller) driver.

Use eventhandler hooks instead of new acpi_pmc interface

Mon, Jan 26, 6:44 PM
obiwac updated the diff for D48721: amdsmu: Sleep entry/exit hints for PMFW.

Use eventhandler hooks instead of acpi_pmc interface.

Mon, Jan 26, 6:43 PM
obiwac committed rG49ec19f1e101: acpi: Add ACPI_SPMC debug layer define (authored by obiwac).
acpi: Add ACPI_SPMC debug layer define
Mon, Jan 26, 5:04 PM
obiwac added a comment to D48387: acpi_spmc: Add SPMC (system power management controller) driver.

thanks for pointing this out. Have a fix, just building with ACPI_DEBUG to make sure everything is fixed...

Mon, Jan 26, 4:58 PM
obiwac added inline comments to D54881: intel/intel_pmc_core: Add Intel PMC Core driver.
Mon, Jan 26, 1:46 PM
obiwac closed D48387: acpi_spmc: Add SPMC (system power management controller) driver.
Mon, Jan 26, 1:43 PM
obiwac committed rGc5daa5a4c32c: acpi_spmc: Add system power management controller driver (authored by obiwac).
acpi_spmc: Add system power management controller driver
Mon, Jan 26, 1:43 PM
obiwac added a comment to D48387: acpi_spmc: Add SPMC (system power management controller) driver.

will fix trailing whitespaces on commit

Mon, Jan 26, 1:34 PM
obiwac added a comment to D54881: intel/intel_pmc_core: Add Intel PMC Core driver.

Cool that someone is working on an intel PMC driver!

Mon, Jan 26, 1:04 PM

Sat, Jan 24

obiwac updated the diff for D48721: amdsmu: Sleep entry/exit hints for PMFW.

Include opt_acpi.h for DEV_ACPI

Sat, Jan 24, 9:55 PM
obiwac updated the summary of D48721: amdsmu: Sleep entry/exit hints for PMFW.
Sat, Jan 24, 8:21 PM
obiwac added a reviewer for D48735: acpi: Call SPMC suspend/resume hooks: olce.
Sat, Jan 24, 8:16 PM
obiwac retitled D48735: acpi: Call SPMC suspend/resume hooks from acpi: Call SPMC entry/exit hooks if SPMC device is set to acpi: Call SPMC suspend/resume hooks.
Sat, Jan 24, 8:16 PM
obiwac updated the diff for D48721: amdsmu: Sleep entry/exit hints for PMFW.

Use new acpi_pmc interface (see D48735) instead of new methods on device interface, and generally simplify how this is being called in acpi_EnterSleepState().

Sat, Jan 24, 8:14 PM
obiwac updated the diff for D48735: acpi: Call SPMC suspend/resume hooks.

Add acpi_pmc interface, which acpi_EnterSleepState() calls the suspend and resume methods of during late suspend and early resume.

Sat, Jan 24, 8:09 PM
obiwac planned changes to D48721: amdsmu: Sleep entry/exit hints for PMFW.

once added in D48735, this should use the PMC interface too

Sat, Jan 24, 7:00 PM
obiwac updated the diff for D48387: acpi_spmc: Add SPMC (system power management controller) driver.

Typo in comments

Sat, Jan 24, 5:35 PM
obiwac added inline comments to D54762: acpi: add Darwin OSI quirk for Apple Mac hardware.
Sat, Jan 24, 5:29 PM
obiwac updated the diff for D48387: acpi_spmc: Add SPMC (system power management controller) driver.

Newline after DSM set unexpected enum functions warning messages + fix DSM revision sysctl default values.

Sat, Jan 24, 5:25 PM

Fri, Jan 23

obiwac requested review of D54853: touch: Test for -m flag.
Fri, Jan 23, 11:00 PM
obiwac requested review of D54852: touch: Test for -a flag.
Fri, Jan 23, 10:58 PM
obiwac updated the diff for D48387: acpi_spmc: Add SPMC (system power management controller) driver.

Align declarations.

Fri, Jan 23, 10:40 PM
obiwac updated the diff for D48387: acpi_spmc: Add SPMC (system power management controller) driver.

acpi_spmc_check_dsm_set() function which enables DSM set so long as enum functions DSM is supported (bit 1), but warns if incomplete vs what we expect.

Fri, Jan 23, 10:37 PM
obiwac added inline comments to D48387: acpi_spmc: Add SPMC (system power management controller) driver.
Fri, Jan 23, 10:20 PM
obiwac updated the diff for D48387: acpi_spmc: Add SPMC (system power management controller) driver.
  • Add dsms_needed mask to each DSM set definition to check the result of enum functions (acpi_DSMQuery()) against.
  • Default AMD DSM set revision ID to 2 as my ASL suggests it should be.
  • Add debug.acpi.spmc.amd_dsm_revision sysctl so we can easily test emulating Linux's behaviour of using revision ID 0 (probably won't make a different irl - at least my ASL doesn't ever check for revision ID in DSM implementations).
  • Return 0 in probe instead of BUS_PROBE_DEFAULT.
  • Fix style/comment placement.
Fri, Jan 23, 10:18 PM
obiwac added inline comments to D48387: acpi_spmc: Add SPMC (system power management controller) driver.
Fri, Jan 23, 6:37 PM
obiwac requested review of D54836: touch: Tests for -h flag.
Fri, Jan 23, 6:13 PM

Tue, Jan 20

obiwac added a comment to D54407: sched: Flag to force scheduler to always choose idle thread.

thanks for the review!

Tue, Jan 20, 3:37 PM
obiwac updated the diff for D48387: acpi_spmc: Add SPMC (system power management controller) driver.

Make hw.acpi.spmc.intel_dsm_revision sysctl operate directly on Intel DSM set struct.

Tue, Jan 20, 3:36 PM
obiwac updated the diff for D54407: sched: Flag to force scheduler to always choose idle thread.

Make sched_preempt_locked entirely responsible for releasing thread lock and style change.

Tue, Jan 20, 3:34 PM
obiwac accepted D54762: acpi: add Darwin OSI quirk for Apple Mac hardware.

looks good!

Tue, Jan 20, 11:58 AM
obiwac added inline comments to D48387: acpi_spmc: Add SPMC (system power management controller) driver.
Tue, Jan 20, 10:50 AM
obiwac updated the diff for D48387: acpi_spmc: Add SPMC (system power management controller) driver.

Don't ever use Microsoft DSM UUID for getting constraints, as this isn't supported (checked on Intel acpidump).

Tue, Jan 20, 10:47 AM
obiwac updated the diff for D48387: acpi_spmc: Add SPMC (system power management controller) driver.

Comment about changing sc->constraint_count and more style(9) improvements.

Tue, Jan 20, 10:37 AM
obiwac updated the diff for D48387: acpi_spmc: Add SPMC (system power management controller) driver.

Remove struct acpi_spmc_private and just set DSM set flags directly on softc + style(9) improvements.

Tue, Jan 20, 10:32 AM
obiwac planned changes to D48735: acpi: Call SPMC suspend/resume hooks.

See changes/comments in D48387, but will add an interface for PMC suspend and resume which this will use.

Tue, Jan 20, 10:11 AM

Mon, Jan 19

obiwac added a comment to D54410: acpi: Implement s2idle loop.

Which kind of interrupts do you still see that prevent staying in S0ix? I think you mentioned some IPIs at some point, but which ones? Can we determine their cause?

Mon, Jan 19, 10:50 PM
obiwac updated the diff for D48387: acpi_spmc: Add SPMC (system power management controller) driver.

Remove SPMC callbacks on struct acpi_softc. I will replace them with new pmc_suspend and pmc_resume methods in another revision. This leaves the acpi_spmc_suspend and acpi_spmc_resume (renamed from acpi_spmc_enter/exit) functions unused at the moment. Lmk if this is okay or if you'd rather I add these in a different revision too.

Mon, Jan 19, 4:42 PM
obiwac committed rG4b534b814aa0: acpi: Fix not calling AcpiLeaveSleepState() in S3 path (authored by obiwac).
acpi: Fix not calling AcpiLeaveSleepState() in S3 path
Mon, Jan 19, 4:30 PM
obiwac closed D54777: acpi: Fix not calling AcpiLeaveSleepState() in S3 path.
Mon, Jan 19, 4:30 PM
obiwac requested review of D54777: acpi: Fix not calling AcpiLeaveSleepState() in S3 path.
Mon, Jan 19, 1:30 PM

Sun, Jan 18

obiwac added a comment to D48387: acpi_spmc: Add SPMC (system power management controller) driver.

fixed most of the issues highlighted. Will address the allocating-memory-in-probe-function pattern and add an interface for late suspend/early resume (or maybe call this something like pmc_enter and pmc_exit? then again maybe on some platforms the PMC isn't necessarily intended to be called after device suspend) in the future.

Sun, Jan 18, 2:45 PM
obiwac updated the diff for D48387: acpi_spmc: Add SPMC (system power management controller) driver.

Fix issues pointed out by olce@ and apply some suggestions. Main changes:

Sun, Jan 18, 2:39 PM

Fri, Jan 16

obiwac updated the diff for D54410: acpi: Implement s2idle loop.

Remove unused acpi_s2idle_looping

Fri, Jan 16, 2:22 PM
obiwac updated the summary of D54410: acpi: Implement s2idle loop.
Fri, Jan 16, 2:20 PM
obiwac updated the diff for D54410: acpi: Implement s2idle loop.

Don't use new IPI_IDLE/IPI_UNIDLE, but use smp_rendezvous_cpus() calling sched_do_idle() instead.

Fri, Jan 16, 2:20 PM
obiwac abandoned D54409: x86: New (un)idle IPIs for setting idle flag in scheduler.

Can totally use smp_rendezvous_cpus() for this instead of adding 2 new IPIs. I thought I had run into a problem using rendezvous when I first implemented this, but I just tried it again and see no problem doing it this way.

Fri, Jan 16, 1:46 PM

Wed, Jan 14

obiwac planned changes to D54409: x86: New (un)idle IPIs for setting idle flag in scheduler.
Wed, Jan 14, 4:22 PM
obiwac planned changes to D54407: sched: Flag to force scheduler to always choose idle thread.
Wed, Jan 14, 4:21 PM
obiwac committed rG7669cbd0f064: acpi: Suspend-to-idle support (s2idle) (authored by obiwac).
acpi: Suspend-to-idle support (s2idle)
Wed, Jan 14, 12:55 AM
obiwac committed rG38f941deb6fa: x86: Add intr_enable_src() (authored by obiwac).
x86: Add intr_enable_src()
Wed, Jan 14, 12:55 AM
obiwac closed D48734: acpi: Suspend-to-idle support (s2idle).
Wed, Jan 14, 12:54 AM
obiwac updated the diff for D48734: acpi: Suspend-to-idle support (s2idle).

Move comment.

Wed, Jan 14, 12:49 AM
obiwac updated the diff for D48734: acpi: Suspend-to-idle support (s2idle).

Fix more issues pointed out by olce@.

Wed, Jan 14, 12:49 AM
obiwac updated the diff for D48735: acpi: Call SPMC suspend/resume hooks.

style(9)

Wed, Jan 14, 12:49 AM
obiwac updated the diff for D48721: amdsmu: Sleep entry/exit hints for PMFW.

style(9)

Wed, Jan 14, 12:49 AM
obiwac added inline comments to D48387: acpi_spmc: Add SPMC (system power management controller) driver.
Wed, Jan 14, 12:49 AM
obiwac added inline comments to D48734: acpi: Suspend-to-idle support (s2idle).
Wed, Jan 14, 12:49 AM

Fri, Jan 9

obiwac accepted D54624: acpi: Use only AcpiGetSleepTypeData() to determine Sx support.

Tested on my machine (only S5, S4, and S0) and all works

Fri, Jan 9, 7:28 PM
obiwac added a comment to D54627: acpi: New R/O 'hw.acpi.s4bios_supported' sysctl, gate S4BIOS with it.

Should we even allow hw.acpi.s4bios to be set if not supported? feels like it could be confusing to users not super familiar with power management that hw.acpi.s4bios is set but the system is not entering S4BIOS.

Fri, Jan 9, 7:24 PM
obiwac accepted D54626: acpi: 'hw.acpi.s4bios' sysctl: Change type to bool, expand description.

Accepting assuming no one has objections about changing the size of the sysctl

Fri, Jan 9, 7:19 PM
obiwac accepted D54625: acpi: Use AcpiGbl_FACS even on ACPI_REDUCED_HARDWARE.

relevant commit in acpica, for reference: https://github.com/acpica/acpica/commit/79cd933e7b370e8d3fb490bf36ca5d111a12f96a

Fri, Jan 9, 7:12 PM

Thu, Jan 8

obiwac committed rGc0df8f6f0e6a: acpi: Make taskqueue only run on BSP (authored by obiwac).
acpi: Make taskqueue only run on BSP
Thu, Jan 8, 10:45 AM
obiwac closed D54406: acpi: Make taskqueue only run on BSP.
Thu, Jan 8, 10:45 AM

Wed, Jan 7

obiwac retitled D54406: acpi: Make taskqueue only run on BSP from acpi: Make taskqueue only run on CPU0 to acpi: Make taskqueue only run on BSP.
Wed, Jan 7, 1:08 PM
obiwac updated the summary of D54406: acpi: Make taskqueue only run on BSP.
Wed, Jan 7, 1:07 PM
obiwac added inline comments to D54406: acpi: Make taskqueue only run on BSP.
Wed, Jan 7, 1:00 PM
obiwac updated the diff for D54406: acpi: Make taskqueue only run on BSP.

Reorder includes.

Wed, Jan 7, 12:35 PM

Tue, Jan 6

obiwac abandoned D54556: stat(2): Zero stat struct before copyout.

That is a possibility, most other fo_stats seem to follow the bzero before setting fields pattern already.

Including vn_statfile(). I think I agree that for now we should patch dma-buf instead, but in the longer term we perhaps should consolidate the zeroing here.

Tue, Jan 6, 3:39 PM
obiwac added a comment to D54556: stat(2): Zero stat struct before copyout.
In D54556#1246415, @kib wrote:

stat(2) was micro-optimized to the death. Do not introduce second write to the same memory (not to mention that the next two lines write to some fields third time).

Tue, Jan 6, 1:56 PM
obiwac updated the test plan for D54556: stat(2): Zero stat struct before copyout.
Tue, Jan 6, 12:53 PM
obiwac requested review of D54556: stat(2): Zero stat struct before copyout.
Tue, Jan 6, 12:52 PM

Dec 29 2025

obiwac updated the diff for D54406: acpi: Make taskqueue only run on BSP.

Simplify cpuset initialization.

Dec 29 2025, 9:44 PM
obiwac requested review of D54410: acpi: Implement s2idle loop.
Dec 29 2025, 9:03 PM
obiwac added reviewers for D54409: x86: New (un)idle IPIs for setting idle flag in scheduler: olce, markj.
Dec 29 2025, 9:00 PM
obiwac requested review of D54409: x86: New (un)idle IPIs for setting idle flag in scheduler.
Dec 29 2025, 8:59 PM
obiwac updated the summary of D54407: sched: Flag to force scheduler to always choose idle thread.
Dec 29 2025, 8:58 PM
obiwac updated the summary of D54407: sched: Flag to force scheduler to always choose idle thread.
Dec 29 2025, 8:54 PM
obiwac updated the summary of D54407: sched: Flag to force scheduler to always choose idle thread.
Dec 29 2025, 8:54 PM
obiwac requested review of D54407: sched: Flag to force scheduler to always choose idle thread.
Dec 29 2025, 8:54 PM
obiwac requested review of D54406: acpi: Make taskqueue only run on BSP.
Dec 29 2025, 8:46 PM
obiwac updated the diff for D48387: acpi_spmc: Add SPMC (system power management controller) driver.

Remove rev_for_uuid for now and just use revision 0 everywhere.

Dec 29 2025, 7:30 PM
obiwac updated the summary of D48387: acpi_spmc: Add SPMC (system power management controller) driver.
Dec 29 2025, 6:15 PM
obiwac added a comment to D48734: acpi: Suspend-to-idle support (s2idle).

Finally got around to updating this diff @olce :)

Dec 29 2025, 6:09 PM
obiwac updated the diff for D48734: acpi: Suspend-to-idle support (s2idle).

Fix issues pointed out by olce@.

Dec 29 2025, 6:06 PM

Dec 15 2025

obiwac committed rG5bd839792b6a: thunderbolt: Remove PNP info (authored by obiwac).
thunderbolt: Remove PNP info
Dec 15 2025, 11:29 PM
obiwac added a comment to D54158: pcib: Add a new IVAR returning the Thunderbolt generation of a bridge.
In D54158#1237352, @jhb wrote:

I think we just need some sort of IVAR we can test for and this is just as easy as any other. Can you test this to make sure it works? I have only compile tested it as my only FreeBSD box with TB has the older chipsets that don't work.

Dec 15 2025, 10:34 PM

Dec 10 2025

obiwac accepted D54158: pcib: Add a new IVAR returning the Thunderbolt generation of a bridge.

looks good, though I wonder if there is a point in actually passing down tb_gen, considering I don't think we'll be supporting non-TB_GEN_USB4 in a while (and I was gonna remove the existing tb_pcib_identifiers after D52861)

Dec 10 2025, 12:29 PM