Page MenuHomeFreeBSD

aokblast (ShengYi Hung)
AoK_Blast

Projects

User Details

User Since
Jun 21 2022, 7:17 PM (193 w, 2 d)

Recent Activity

Yesterday

aokblast added a comment to D52166: bhyve: implement single USB device passthrough support.

Hello, I think I need to at least get a usb 3 hub to test this feature since I haven’t had any super speed device. I will take a look at the candidates hub. However, I am occupied by other stuff recently. Maybe you won’t get any feedback very soon (Maybe a months afterI promise that I will be back ASAP since I would like to finish this feature. Sorry for your inconvenience on helping me test this!

Appreciate the heads up. I'll be on standby.

Hello, I am back and I suspect that https://reviews.freebsd.org/D55289 fixes the problem.
I have rebased the patch to the HEAD.
Could you please check if it actually works?

Welcome back! 👋

And thanks for rebasing too. I upgraded my base for the updated patch and others as well.

Sadly the non-detection problem still persists...

I got question though. Is there a way to passthru with a specific ugen number of the same vendor and product IDs?

I'm using multiple of these adapters and they have the same IDs. Only the earliest ugen device gets passthru'd when I need a later one instead.

I've been out of the loop with this so I'm trying to recall what I've forgotten. 🙂

Thu, Mar 5, 5:39 AM
aokblast closed D55609: acpi_bus: Fix acpi_get_flag error..

jhb@'s patch is much better.

Thu, Mar 5, 5:37 AM

Wed, Mar 4

aokblast added a comment to D52166: bhyve: implement single USB device passthrough support.

Hello, I think I need to at least get a usb 3 hub to test this feature since I haven’t had any super speed device. I will take a look at the candidates hub. However, I am occupied by other stuff recently. Maybe you won’t get any feedback very soon (Maybe a months afterI promise that I will be back ASAP since I would like to finish this feature. Sorry for your inconvenience on helping me test this!

Appreciate the heads up. I'll be on standby.

Wed, Mar 4, 3:40 PM
aokblast updated the diff for D52166: bhyve: implement single USB device passthrough support.

Rebase to main

Wed, Mar 4, 3:31 PM
aokblast committed rG8e61067dab49: ichwd: address unused function warning by marking as __unused (authored by aokblast).
ichwd: address unused function warning by marking as __unused
Wed, Mar 4, 3:09 PM
aokblast committed rGa34f42b083dd: vmm: Support INOUT manual decode. (authored by aokblast).
vmm: Support INOUT manual decode.
Wed, Mar 4, 2:39 PM
aokblast committed rG4bac18002ab4: smp: Use bitwise operation to count cpu number (authored by aokblast).
smp: Use bitwise operation to count cpu number
Wed, Mar 4, 2:22 PM
aokblast committed rGe099cd40ba6c: ichwd: introduce i6300esbwd watch dog driver (authored by aokblast).
ichwd: introduce i6300esbwd watch dog driver
Wed, Mar 4, 2:22 PM
aokblast committed rG241ed8bba288: snd_hda: Add patch for Framework 16 AMD Ryzen AI 300 Series (authored by aokblast).
snd_hda: Add patch for Framework 16 AMD Ryzen AI 300 Series
Wed, Mar 4, 2:22 PM
aokblast committed rG0dd289fe0b80: ipheth(4): Add CDC-NCM support for RX (authored by aokblast).
ipheth(4): Add CDC-NCM support for RX
Wed, Mar 4, 2:22 PM
aokblast committed rGbeccc030b4fb: smp: Use bitwise operation to count cpu number (authored by aokblast).
smp: Use bitwise operation to count cpu number
Wed, Mar 4, 1:59 PM
aokblast committed rG2f2b6480eed2: isa_common: allow multiple device instances (authored by aokblast).
isa_common: allow multiple device instances
Wed, Mar 4, 1:59 PM
aokblast committed rG546d925cb44f: ichwd: Add manual for i6300esb watchdog (authored by aokblast).
ichwd: Add manual for i6300esb watchdog
Wed, Mar 4, 1:52 PM
aokblast closed D54466: ichwd: Add manual for i6300esb watchdog.
Wed, Mar 4, 1:52 PM
aokblast added a comment to D54466: ichwd: Add manual for i6300esb watchdog.

Thanks for all yours review:).

Wed, Mar 4, 1:49 PM
aokblast updated the diff for D54466: ichwd: Add manual for i6300esb watchdog.

Minor fixes.

Wed, Mar 4, 1:49 PM
aokblast added a reviewer for D55628: hwpstate_intel: Use ipi instead of thread_lock + sched_bind: olce.
Wed, Mar 4, 5:51 AM
aokblast added a reviewer for D55629: hwpstate_intel: Use 8bit scale instead of percentage scale: olce.
Wed, Mar 4, 5:51 AM
aokblast added inline comments to D55604: hwpstate_amd: Refactor by brancless version.
Wed, Mar 4, 5:50 AM
aokblast updated the diff for D55604: hwpstate_amd: Refactor by brancless version.

Delete the base commit

Wed, Mar 4, 5:47 AM

Tue, Mar 3

aokblast requested review of D55629: hwpstate_intel: Use 8bit scale instead of percentage scale.
Tue, Mar 3, 10:17 AM
aokblast requested review of D55628: hwpstate_intel: Use ipi instead of thread_lock + sched_bind.
Tue, Mar 3, 10:15 AM

Mon, Mar 2

aokblast added a comment to D55603: amdrapl: Introduce amdrapl driver.

Quick response:

  1. also need to add to sys/modules/Makefile
  2. Do you have a plan to write a short man page?
Mon, Mar 2, 3:23 PM
aokblast updated the summary of D55609: acpi_bus: Fix acpi_get_flag error..
Mon, Mar 2, 3:15 PM
aokblast requested review of D55614: kern_cpu: use per-core cpufreq set.
Mon, Mar 2, 3:11 PM
aokblast updated the diff for D55609: acpi_bus: Fix acpi_get_flag error..

Fix indentation

Mon, Mar 2, 3:09 PM
aokblast updated the diff for D55603: amdrapl: Introduce amdrapl driver.

Fix Makefile and use recursive lock to make witness happy

Mon, Mar 2, 8:34 AM

Sun, Mar 1

aokblast added a reviewer for D55609: acpi_bus: Fix acpi_get_flag error.: obiwac.
Sun, Mar 1, 8:53 PM
aokblast requested review of D55609: acpi_bus: Fix acpi_get_flag error..
Sun, Mar 1, 8:51 PM
aokblast updated the diff for D55606: hwpstate_amd: Expose node as much as possible.

Remove debug print

Sun, Mar 1, 6:31 PM
aokblast requested review of D55606: hwpstate_amd: Expose node as much as possible.
Sun, Mar 1, 4:54 PM
aokblast added a reviewer for D55604: hwpstate_amd: Refactor by brancless version: olce.
Sun, Mar 1, 2:38 PM
aokblast requested review of D55604: hwpstate_amd: Refactor by brancless version.
Sun, Mar 1, 2:28 PM
aokblast updated the diff for D55603: amdrapl: Introduce amdrapl driver.

Support numa node report

Sun, Mar 1, 12:01 PM
aokblast requested review of D55603: amdrapl: Introduce amdrapl driver.
Sun, Mar 1, 11:21 AM

Sat, Feb 28

aokblast updated the diff for D55592: acpi: Add acpi_fan.

Fix sysctl

Sat, Feb 28, 2:31 PM
aokblast requested review of D55592: acpi: Add acpi_fan.
Sat, Feb 28, 2:24 PM

Fri, Feb 27

aokblast abandoned D55557: param: Refactor rounddown.

I did some experiment and you are right, the compiler optimize it above O1.
Also, my assumption is wrong since reminder in aarch64 actually convert into udiv + msub, which is not faster than what we previous have.
Thanks!

Fri, Feb 27, 3:33 PM
aokblast updated the summary of D55557: param: Refactor rounddown.
Fri, Feb 27, 7:17 AM
aokblast requested review of D55557: param: Refactor rounddown.
Fri, Feb 27, 7:17 AM
aokblast updated the diff for D55477: hwpstate_amd: Support writable cpufreq interface in CPPC mode.

Cache and free acpi_cppc_ctx immediately since we only use readonly field.
Also, use roundup to prevent duplicate frequency.

Fri, Feb 27, 7:15 AM
aokblast updated the diff for D55474: acpi_cppc: Add cppc library for parsing ACPI _CPC object..

Use readonly struct to reduce memory consumption

Fri, Feb 27, 7:13 AM
aokblast updated the diff for D55475: acpi: Support Functional Fixed Hardware.

Use uint64_t instead of platform dependent register_t

Fri, Feb 27, 7:12 AM
aokblast updated the diff for D55476: x86: Implement Functional Fixed Hardware in SYS_RES.

Don't implement FFH in generic bus driver since it is not widely used.

Fri, Feb 27, 7:11 AM
aokblast added a comment to D55477: hwpstate_amd: Support writable cpufreq interface in CPPC mode.

I tried this on 3 EPYC generations at Netflix. The most recent (AMD EPYC 8434P, AMD EPYC 9535) behaved as expected. There was an dev.hwpstate_amd. node for each CPU, and a lot more freqs were exposed (from 3 to roughly a dozen).
On the oldest EPYC we have is EPYC 7502P, where it didn't change anything. We still only have 3 frequencies exposed. On this machine, we see just a single node from dev.hwpstate:
dev.hwpstate_amd.0.freq_settings: 2500/2750 2200/2200 1500/1350
dev.hwpstate_amd.0.%iommu:
dev.hwpstate_amd.0.%parent: cpu0
dev.hwpstate_amd.0.%pnpinfo:
dev.hwpstate_amd.0.%location:
dev.hwpstate_amd.0.%driver: hwpstate_amd
dev.hwpstate_amd.0.%desc: Cool`n'Quiet 2.0
dev.hwpstate_amd.%parent:

That contrasts to the other machines were we see something like this:

dev.hwpstate_amd.0.freq_settings: 400/-1 522/-1 644/-1 766/-1 888/-1 1010/-1 1132/-1 1255/-1 1377/-1 1499/-1 1621/-1 1743/-1 1865/-1 1987/-1 2110/-1 2232/-1 2354/-1 2476/-1 2598/-1 2720/-1 2843/-1 2965/-1 3087/-1
dev.hwpstate_amd.0.desired_performance: 33
dev.hwpstate_amd.0.maximum_performance: 255
dev.hwpstate_amd.0.minimum_performance: 33
dev.hwpstate_amd.0.epp: 0
dev.hwpstate_amd.0.%iommu:
dev.hwpstate_amd.0.%parent: cpu0
dev.hwpstate_amd.0.%pnpinfo:
dev.hwpstate_amd.0.%location:
dev.hwpstate_amd.0.%driver: hwpstate_amd
dev.hwpstate_amd.0.%desc: AMD Collaborative Processor Performance Control (CPPC)

I'm assuming its a BIOS setting to enable hwpstate, but I don't see it anywhere..

Fri, Feb 27, 6:50 AM

Thu, Feb 26

aokblast added a reviewer for D55527: hwpstate_amd: Fix autonomous mode: olce.
Thu, Feb 26, 7:14 AM
aokblast requested review of D55527: hwpstate_amd: Fix autonomous mode.
Thu, Feb 26, 7:14 AM
aokblast updated the diff for D55474: acpi_cppc: Add cppc library for parsing ACPI _CPC object..

Fix GENERIC build

Thu, Feb 26, 7:00 AM
aokblast added inline comments to D55253: hwpstate_amd(4): CPPC: Switch the default to maximum performance.
Thu, Feb 26, 6:50 AM
aokblast updated the diff for D55477: hwpstate_amd: Support writable cpufreq interface in CPPC mode.

Return EOPNOTSUPP instead of ENOSUPP

Thu, Feb 26, 4:51 AM
aokblast added a comment to D55477: hwpstate_amd: Support writable cpufreq interface in CPPC mode.

Have rebased to main. Thanks!

Thu, Feb 26, 1:31 AM
aokblast updated the diff for D55477: hwpstate_amd: Support writable cpufreq interface in CPPC mode.

Rebase to main

Thu, Feb 26, 1:30 AM

Wed, Feb 25

aokblast added a reviewer for D55505: acpi_perf: Mark readonly when using FFH: olce.
Wed, Feb 25, 10:45 AM
aokblast requested review of D55505: acpi_perf: Mark readonly when using FFH.
Wed, Feb 25, 10:44 AM
aokblast updated the diff for D55475: acpi: Support Functional Fixed Hardware.

Mark FFH resource as 1 byte to prevent resource overlap

Wed, Feb 25, 10:43 AM
aokblast updated the diff for D55477: hwpstate_amd: Support writable cpufreq interface in CPPC mode.

Set min max when something bad happens

Wed, Feb 25, 10:39 AM

Tue, Feb 24

aokblast added a reviewer for D55475: acpi: Support Functional Fixed Hardware: olce.
Tue, Feb 24, 7:32 AM
aokblast added a reviewer for D55476: x86: Implement Functional Fixed Hardware in SYS_RES: olce.
Tue, Feb 24, 7:32 AM
aokblast added a reviewer for D55474: acpi_cppc: Add cppc library for parsing ACPI _CPC object.: olce.
Tue, Feb 24, 7:31 AM
aokblast added a reviewer for D55477: hwpstate_amd: Support writable cpufreq interface in CPPC mode: olce.
Tue, Feb 24, 7:31 AM
aokblast updated the diff for D55477: hwpstate_amd: Support writable cpufreq interface in CPPC mode.

Don't free when not possible

Tue, Feb 24, 7:30 AM
aokblast requested review of D55477: hwpstate_amd: Support writable cpufreq interface in CPPC mode.
Tue, Feb 24, 7:27 AM
aokblast requested review of D55476: x86: Implement Functional Fixed Hardware in SYS_RES.
Tue, Feb 24, 7:27 AM
aokblast requested review of D55475: acpi: Support Functional Fixed Hardware.
Tue, Feb 24, 7:25 AM
aokblast requested review of D55474: acpi_cppc: Add cppc library for parsing ACPI _CPC object..
Tue, Feb 24, 7:25 AM

Sat, Feb 21

aokblast closed D55401: devel/bear: Upgrade to 4.0.3.
Sat, Feb 21, 1:40 AM
aokblast committed R11:014126f409f8: devel/bear: Upgrade to 4.0.3 (authored by aokblast).
devel/bear: Upgrade to 4.0.3
Sat, Feb 21, 1:40 AM
aokblast abandoned D54859: devel/bear: Upgrade to 4.0.2.

Abandon since we have 4.0.3 port.

Sat, Feb 21, 1:40 AM

Fri, Feb 20

aokblast requested review of D55401: devel/bear: Upgrade to 4.0.3.
Fri, Feb 20, 4:13 PM

Wed, Feb 18

aokblast closed D54474: smp: Use bitwise operation to count cpu number.
Wed, Feb 18, 9:42 AM
aokblast committed rGe387d9438ba0: smp: Use bitwise operation to count cpu number (authored by aokblast).
smp: Use bitwise operation to count cpu number
Wed, Feb 18, 9:42 AM

Sun, Feb 8

aokblast accepted D55007: hwpstate_amd(4): Sane defaults for min/max perf on insane capabilities.
Sun, Feb 8, 1:50 AM
aokblast added inline comments to D55008: hwpstate_amd(4): Factor out setting the CPPC_REQUEST register.
Sun, Feb 8, 1:39 AM

Sat, Feb 7

aokblast accepted D55010: hwpstate_amd(4): Add knobs to get/set all fields of CPPC_REQUEST.
Sat, Feb 7, 3:13 AM
aokblast added inline comments to D55007: hwpstate_amd(4): Sane defaults for min/max perf on insane capabilities.
Sat, Feb 7, 3:06 AM
aokblast accepted D55009: hwpstate_amd(4): 'epp' sysctl leaf to operate on real EPP hardware values.

LGTM for me but I think we should merge the intel's one at the same time.

Sat, Feb 7, 3:06 AM
aokblast accepted D55005: hwpstate_amd(4): Register dump: Fine-grained error reporting.

Ok I see it is reused in other patch

Sat, Feb 7, 2:52 AM
aokblast accepted D55006: hwpstate_amd(4): attach(): More diagnostic on CPPC enable.
Sat, Feb 7, 2:51 AM
aokblast added inline comments to D55005: hwpstate_amd(4): Register dump: Fine-grained error reporting.
Sat, Feb 7, 2:49 AM
aokblast accepted D55008: hwpstate_amd(4): Factor out setting the CPPC_REQUEST register.

LGTM with a comment.

Sat, Feb 7, 2:45 AM

Feb 1 2026

aokblast accepted D55004: hwpstate_amd(4): Revamp the softc.
Feb 1 2026, 8:04 AM
aokblast accepted D55002: hwpstate_amd(4): Rename EPP handler, convert to unsigned int.
Feb 1 2026, 8:02 AM
aokblast added inline comments to D55001: hwpstate_amd(4): Assert PSTATE_CPPC is on in corresponding sysctl handlers.
Feb 1 2026, 8:01 AM
aokblast accepted D55003: hwpstate_amd(4): attach(): Fix style.
Feb 1 2026, 7:59 AM
aokblast accepted D55000: hwpstate_amd(4): Rename register dump sysctl handler.
Feb 1 2026, 7:59 AM
aokblast added inline comments to D54999: hwpstate_amd(4): Factor out printing CPPC registers, fix CPPC_REQUEST's.
Feb 1 2026, 7:57 AM
aokblast accepted D54998: hwpstate_amd(4): Rename CPPC register macros.
Feb 1 2026, 7:56 AM
aokblast accepted D54997: hwpstate_amd(4): Fix BITS_WITH_VALUE()/SET_BITS_VALUE() to obey the mask.
Feb 1 2026, 7:53 AM

Jan 24 2026

aokblast added a reviewer for D54859: devel/bear: Upgrade to 4.0.2: lwhsu.
Jan 24 2026, 2:51 PM
aokblast requested review of D54859: devel/bear: Upgrade to 4.0.2.
Jan 24 2026, 2:50 PM
aokblast closed D54755: devel/bear: Upgrade to 4.0.1.
Jan 24 2026, 2:30 PM
aokblast committed R11:7d7e0facd995: devel/bear: Upgrade to 4.0.1 (authored by aokblast).
devel/bear: Upgrade to 4.0.1
Jan 24 2026, 2:30 PM

Jan 18 2026

aokblast updated the diff for D54757: depend-cleanup.sh: Move pwd to a safer place.

Delete content instead of removing the whole directory

Jan 18 2026, 5:32 AM
aokblast added inline comments to D54757: depend-cleanup.sh: Move pwd to a safer place.
Jan 18 2026, 2:38 AM
aokblast added a comment to D54757: depend-cleanup.sh: Move pwd to a safer place.

I don’t understand, other than it sounding like bear is broken

Sorry, the commit message is not clear. I try to explain with more detail. Please tell me if you need anymore information.

When

pwd == $OBJTOP

, and after

run rm -rf "$OBJTOP"

getcwd(3) will return with error since the directory is deleted.

Under this condition:

When shell is executing:

mkdir -p "$OBJTOP"

bear intercepts the libc exec(3) function call and call getcwd in here. As a result, it causes an error.

So... bear makes assumptions that are false and breaks perfectly fine build system code

Jan 18 2026, 2:37 AM

Jan 17 2026

aokblast added a comment to D54757: depend-cleanup.sh: Move pwd to a safer place.

I don’t understand, other than it sounding like bear is broken

Jan 17 2026, 2:47 PM
aokblast updated the summary of D54757: depend-cleanup.sh: Move pwd to a safer place.
Jan 17 2026, 1:33 PM
aokblast updated the summary of D54757: depend-cleanup.sh: Move pwd to a safer place.
Jan 17 2026, 1:33 PM
aokblast updated the summary of D54757: depend-cleanup.sh: Move pwd to a safer place.
Jan 17 2026, 1:28 PM
aokblast requested review of D54757: depend-cleanup.sh: Move pwd to a safer place.
Jan 17 2026, 1:26 PM