Page MenuHomeFreeBSD

aokblast (ShengYi Hung)
AoK_Blast

Projects

User Details

User Since
Jun 21 2022, 7:17 PM (196 w, 4 d)

Recent Activity

Thu, Mar 26

aokblast added inline comments to D56021: vmm: Add missing AVX instructions for AVX512 in cpuid stdext.
Thu, Mar 26, 3:15 PM
aokblast retitled D56021: vmm: Add missing AVX instructions for AVX512 in cpuid stdext from vmm: Add more AVX instruction for AVX512 in cpuid stdext2 to vmm: Add missing AVX instructions for AVX512 in cpuid stdext.
Thu, Mar 26, 3:07 PM
aokblast updated the diff for D56021: vmm: Add missing AVX instructions for AVX512 in cpuid stdext.

Fix also in stdext and stdext3

Thu, Mar 26, 3:06 PM

Tue, Mar 24

aokblast added a comment to D56022: libc: Remove redundant code in thread atexit code.
In D56022#1281980, @kib wrote:

No. Perhaps it is simpler to show code than to try to explain it, See D56053.

The example you provided would not work with my patch, it requires increasing the CXA_DTORS_ITERATIONS. Not sure if we want this.

Tue, Mar 24, 11:50 AM

Mon, Mar 23

aokblast added a comment to D56022: libc: Remove redundant code in thread atexit code.
In D56022#1281611, @kib wrote:

I am on edge of proposing to count the number of the list members, and still do the walk_cb_nocall if the number of members does not go to zero after e.g. CXA_DTORS_ITERATIONS times initial list length for dtor removals.

Do you mean something like

Mon, Mar 23, 11:39 AM

Sun, Mar 22

aokblast added a reviewer for D55891: libsys: Implement safe aux vec initialization: dim.
Sun, Mar 22, 7:27 AM
aokblast added reviewers for D56022: libc: Remove redundant code in thread atexit code: kib, markj.
Sun, Mar 22, 5:19 AM
aokblast updated the diff for D56022: libc: Remove redundant code in thread atexit code.

Also remove the define

Sun, Mar 22, 5:17 AM
aokblast requested review of D56022: libc: Remove redundant code in thread atexit code.
Sun, Mar 22, 5:07 AM
aokblast committed rGc25976f0a9a3: libc: Fix cxa_thread_atexit{,nothr} test. (authored by aokblast).
libc: Fix cxa_thread_atexit{,nothr} test.
Sun, Mar 22, 2:49 AM
aokblast closed D55893: libc: Fix cxa_thread_atexit test..
Sun, Mar 22, 2:48 AM
aokblast added inline comments to D55826: libc: Fix dtor order in __cxa_thread_atexit.
Sun, Mar 22, 2:43 AM
aokblast requested review of D56021: vmm: Add missing AVX instructions for AVX512 in cpuid stdext.
Sun, Mar 22, 2:37 AM
aokblast closed D55604: hwpstate_amd: Refactor by brancless version.
Sun, Mar 22, 2:36 AM
aokblast committed rG191f47bcd650: hwpstate_amd: Refactor the cpufreq code by using delegation pattenr (authored by aokblast).
hwpstate_amd: Refactor the cpufreq code by using delegation pattenr
Sun, Mar 22, 2:36 AM

Fri, Mar 20

aokblast added inline comments to D55893: libc: Fix cxa_thread_atexit test..
Fri, Mar 20, 5:23 AM
aokblast updated the diff for D55893: libc: Fix cxa_thread_atexit test..

Rename macro

Fri, Mar 20, 2:58 AM
aokblast added a comment to D55893: libc: Fix cxa_thread_atexit test..

BTW, is it possible to create a test case for commit 9d26b82826d9?

Yes, I think we can have some tests for this. But I think we should do it after re-org the tests. At least for now we can rely on the llvm testcase as I run it biweekly with latest CURRENT.

Fri, Mar 20, 2:57 AM
aokblast updated the diff for D55604: hwpstate_amd: Refactor by brancless version.

Style and commit msg fix

Fri, Mar 20, 2:53 AM
aokblast updated the diff for D55606: hwpstate_amd: Expose node as much as possible.

Return void

Fri, Mar 20, 2:19 AM

Thu, Mar 19

aokblast added a reviewer for D55604: hwpstate_amd: Refactor by brancless version: markj.
Thu, Mar 19, 6:27 AM

Wed, Mar 18

aokblast updated the diff for D55893: libc: Fix cxa_thread_atexit test..

Skip the again test

Wed, Mar 18, 4:21 PM

Tue, Mar 17

aokblast added a comment to D55893: libc: Fix cxa_thread_atexit test..
In D55893#1278882, @kib wrote:
In D55893#1278865, @kib wrote:

No, I mean to keep this test, adjusted.
Create a global static var that is incremented on each again() call, and do not call __cxa_thread_atexit() if the counter greater than some value.
As an additional check, you might assert that the counter indeed counted to the specified value.

In D55893#1278865, @kib wrote:

No, I mean to keep this test, adjusted.
Create a global static var that is incremented on each again() call, and do not call __cxa_thread_atexit() if the counter greater than some value.
As an additional check, you might assert that the counter indeed counted to the specified value.

What about the nothr case? Since there is only one main thread. The dtos will be called after the ATF_TEST_CASE_BODY, which means we are unable to use assert since the main thread is destroyed.

I think that this is the right concern, and the right answer would be to significantly reorg the test. Since we are testing something that checks C runtime behavior outside the scope of normal execution (inside the main) for ATF, we need to create a helper program.
The test should spawn that program and check the effects of it, instead of trying to do everything inline.

Tue, Mar 17, 3:45 PM
aokblast updated the summary of D55893: libc: Fix cxa_thread_atexit test..
Tue, Mar 17, 2:58 PM
aokblast added a comment to D55893: libc: Fix cxa_thread_atexit test..
In D55893#1278865, @kib wrote:

No, I mean to keep this test, adjusted.
Create a global static var that is incremented on each again() call, and do not call __cxa_thread_atexit() if the counter greater than some value.
As an additional check, you might assert that the counter indeed counted to the specified value.

In D55893#1278865, @kib wrote:

No, I mean to keep this test, adjusted.
Create a global static var that is incremented on each again() call, and do not call __cxa_thread_atexit() if the counter greater than some value.
As an additional check, you might assert that the counter indeed counted to the specified value.

What about the nothr case? Since there is only one main thread. The dtos will be called after the ATF_TEST_CASE_BODY, which means we are unable to use assert since the main thread is destroyed.

Tue, Mar 17, 2:57 PM
aokblast updated the diff for D55893: libc: Fix cxa_thread_atexit test..

Formatting

Tue, Mar 17, 2:56 PM
aokblast updated the diff for D55893: libc: Fix cxa_thread_atexit test..

Adjust the testcase insteada of deleting the testcase.

Tue, Mar 17, 2:55 PM
aokblast added a comment to D55893: libc: Fix cxa_thread_atexit test..
In D55893#1278865, @kib wrote:

No, I mean to keep this test, adjusted.
Create a global static var that is incremented on each again() call, and do not call __cxa_thread_atexit() if the counter greater than some value.
As an additional check, you might assert that the counter indeed counted to the specified value.

Tue, Mar 17, 2:48 PM
aokblast added reviewers for D55893: libc: Fix cxa_thread_atexit test.: kib, markj.
Tue, Mar 17, 7:48 AM
aokblast requested review of D55893: libc: Fix cxa_thread_atexit test..
Tue, Mar 17, 7:48 AM
aokblast added a comment to D55891: libsys: Implement safe aux vec initialization.

Reference user: https://github.com/llvm/llvm-project/pull/186961
Raw __elf_aux_vec usage: https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp#L72

Tue, Mar 17, 6:45 AM
aokblast requested review of D55891: libsys: Implement safe aux vec initialization.
Tue, Mar 17, 6:40 AM

Mon, Mar 16

aokblast added a comment to D55826: libc: Fix dtor order in __cxa_thread_atexit.
In D55826#1278383, @kib wrote:

@aokblast this commit breaks the following tests in CI:

lib/libc/stdlib/cxa_thread_atexit_nothr_test:cxx__thread_inf_dtors
lib/libc/stdlib/cxa_thread_atexit_test:cxx__thread_inf_dtors
lib/libc/stdlib/cxa_thread_atexit_test:cxx__thread_local_add_while_calling_dtors
lib/libc/stdlib/cxa_thread_atexit_test:cxx__thread_local_after
lib/libc/stdlib/cxa_thread_atexit_test:cxx__thread_local_before

See https://ci.freebsd.org/view/Test/job/FreeBSD-main-amd64-test/28044/testReport/.

I don't think the test actually make sense with my change.
The following code in the test makes it unables to terminate

static void                                                                                                                                        
again(void *arg)                                                                                                                                   
{                                                                                                                                                  
                                                                                                                                                   
    __cxa_thread_atexit(again, arg, &output);                                                                                                      
}

This makes again(void *) called himself and create a infinite loop. In my opnion, the user of the __cxa_thread_atexit should take the responsibility on the infinite loop instead of setting the hard limit on iteration.

I just take a look at the original commit which add this test and would like to ask @kib and @dim on their opinions.

Should we remove the again function or if there is any suggestions on this?

Indeed this test is perhaps not too useful as is. Might be, it should limit the number of registrations, then it would make some reasonable checks.
I do think that your change that broke the test is right.

Mon, Mar 16, 4:28 PM
aokblast added a comment to D55826: libc: Fix dtor order in __cxa_thread_atexit.

Also, thanks for your remind:). @siva

Mon, Mar 16, 3:53 PM
aokblast updated subscribers of D55826: libc: Fix dtor order in __cxa_thread_atexit.

@aokblast this commit breaks the following tests in CI:

lib/libc/stdlib/cxa_thread_atexit_nothr_test:cxx__thread_inf_dtors
lib/libc/stdlib/cxa_thread_atexit_test:cxx__thread_inf_dtors
lib/libc/stdlib/cxa_thread_atexit_test:cxx__thread_local_add_while_calling_dtors
lib/libc/stdlib/cxa_thread_atexit_test:cxx__thread_local_after
lib/libc/stdlib/cxa_thread_atexit_test:cxx__thread_local_before

See https://ci.freebsd.org/view/Test/job/FreeBSD-main-amd64-test/28044/testReport/.

Mon, Mar 16, 3:53 PM

Sat, Mar 14

aokblast committed rG9d26b82826d9: libc: Fix dtor order in __cxa_thread_atexit (authored by aokblast).
libc: Fix dtor order in __cxa_thread_atexit
Sat, Mar 14, 4:32 AM
aokblast committed rG728ae49a6b81: kern_time: Honor the precise option when counting diff (authored by aokblast).
kern_time: Honor the precise option when counting diff
Sat, Mar 14, 4:32 AM
aokblast closed D55826: libc: Fix dtor order in __cxa_thread_atexit.
Sat, Mar 14, 4:31 AM
aokblast closed D55824: kern_time: Honor the precise option when counting diff.
Sat, Mar 14, 4:31 AM

Fri, Mar 13

aokblast added a reviewer for D55826: libc: Fix dtor order in __cxa_thread_atexit: lwhsu.
Fri, Mar 13, 10:31 AM
aokblast added a reviewer for D55824: kern_time: Honor the precise option when counting diff: lwhsu.
Fri, Mar 13, 10:31 AM

Thu, Mar 12

aokblast updated the diff for D55606: hwpstate_amd: Expose node as much as possible.

Minor fixes

Thu, Mar 12, 3:42 PM
aokblast added a comment to D55826: libc: Fix dtor order in __cxa_thread_atexit.

I think we need to refactor these stuff to dynamic array. It makes no sense to use linked_list if we only need to push and pop from the top.

Thu, Mar 12, 3:07 PM
aokblast updated the diff for D55826: libc: Fix dtor order in __cxa_thread_atexit.

Style fix

Thu, Mar 12, 2:50 PM
aokblast added a comment to D55826: libc: Fix dtor order in __cxa_thread_atexit.

Test case in here.
https://github.com/llvm/llvm-project/blob/5eaf19a151296f770a1a2bd8514a76530234d933/libcxxabi/test/thread_local_destruction_order.pass.cpp

Thu, Mar 12, 2:41 PM
aokblast added reviewers for D55826: libc: Fix dtor order in __cxa_thread_atexit: kib, markj, imp.
Thu, Mar 12, 2:40 PM
aokblast requested review of D55826: libc: Fix dtor order in __cxa_thread_atexit.
Thu, Mar 12, 2:39 PM
aokblast added a comment to D55687: libusb: make hotplug callback handle an int.

this one in particular I would love to get a review, this is the first time I plan with symbol version compatibility

Thu, Mar 12, 2:08 PM
aokblast added a reviewer for D55824: kern_time: Honor the precise option when counting diff: imp.
Thu, Mar 12, 1:58 PM
aokblast updated the diff for D55824: kern_time: Honor the precise option when counting diff.

Formatting

Thu, Mar 12, 9:26 AM
aokblast added a comment to D55824: kern_time: Honor the precise option when counting diff.

The test is in here, which failed originally since the time is not >= 500ms.

Thu, Mar 12, 9:25 AM
aokblast added reviewers for D55824: kern_time: Honor the precise option when counting diff: kib, markj.
Thu, Mar 12, 9:24 AM
aokblast requested review of D55824: kern_time: Honor the precise option when counting diff.
Thu, Mar 12, 9:23 AM

Tue, Mar 10

aokblast abandoned D55796: pthread: Include pthread_np to comply with other platform..
Tue, Mar 10, 1:45 PM
aokblast added a comment to D55796: pthread: Include pthread_np to comply with other platform..

Emm, it fails to compile on many places. I have to take a look at this.

Tue, Mar 10, 1:39 PM
aokblast added reviewers for D55796: pthread: Include pthread_np to comply with other platform.: imp, jhb.
Tue, Mar 10, 1:31 PM
aokblast requested review of D55796: pthread: Include pthread_np to comply with other platform..
Tue, Mar 10, 1:28 PM

Mon, Mar 9

aokblast updated the diff for D55604: hwpstate_amd: Refactor by brancless version.

Minor fixes

Mon, Mar 9, 3:53 PM

Thu, Mar 5

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