Page MenuHomeFreeBSD

aokblast (ShengYi Hung)
AoK_Blast

Projects

User Details

User Since
Jun 21 2022, 7:17 PM (212 w, 6 d)

Recent Activity

Yesterday

aokblast added inline comments to D58200: hidbus: stop interrupts before finalizing child deactivation.
Mon, Jul 20, 3:52 PM
aokblast committed rGb8f1972d51cf: hexdump: Support octal and hex for -N option (authored by aokblast).
hexdump: Support octal and hex for -N option
Mon, Jul 20, 8:12 AM
aokblast closed D58074: hexdump: Support octal and hex for -N option.
Mon, Jul 20, 8:12 AM
aokblast closed D58301: apei: Fix i386 build.
Mon, Jul 20, 7:35 AM
aokblast committed rG7fc2c9f688ef: apei: Fix i386 build over bus read, write function (authored by aokblast).
apei: Fix i386 build over bus read, write function
Mon, Jul 20, 7:35 AM

Sun, Jul 19

aokblast accepted D58336: hwpstate_intel(4): use CPU_FOREACH instead of an IPI.
Sun, Jul 19, 3:50 PM
aokblast accepted D58335: i386: provide PCPU pc_small_core for amd64 compat.
Sun, Jul 19, 3:49 PM
aokblast added a comment to D58301: apei: Fix i386 build.

bus_read_8 has been replace to bus_space_read series in sys/bus.h.

Not sure what "bus_space_read series" is though, should that not be bus_space_read_8?

Sorry, it should be bus_space_{read,write} series.

But why series? I don't understand. Why not just use the _8 suffix everywhere?

The _8 suffix remains unchanged before and after my patch. The purpose of this change is to replace the original bus_ series with the bus_space_ series.

Ok, I think I now can decipher what you're trying to get at. What you're trying to say, I think, is something like the following?

bus_{read,write}_8 are macro wrappers around the corresponding bus_space functions in sys/bus.h, so implementing bus_{read,write}_8 won't work. Implement the underlying bus_space functions instead.

Yes, sorry about my bad english expression:)

No worries; normally these things are understandable even if they don't read as perfect English, but in this case for whatever reason I couldn't quite follow it :')

Might I suggest you use my interpretation as inspiration for amending your own message? (I mean, you can just copy the whole thing if you want, but you may prefer it to sound more like you!)

Sun, Jul 19, 3:43 PM
aokblast added a comment to D58301: apei: Fix i386 build.

bus_read_8 has been replace to bus_space_read series in sys/bus.h.

Not sure what "bus_space_read series" is though, should that not be bus_space_read_8?

Sorry, it should be bus_space_{read,write} series.

But why series? I don't understand. Why not just use the _8 suffix everywhere?

The _8 suffix remains unchanged before and after my patch. The purpose of this change is to replace the original bus_ series with the bus_space_ series.

Ok, I think I now can decipher what you're trying to get at. What you're trying to say, I think, is something like the following?

bus_{read,write}_8 are macro wrappers around the corresponding bus_space functions in sys/bus.h, so implementing bus_{read,write}_8 won't work. Implement the underlying bus_space functions instead.

Yes, sorry about my bad english expression:)

Sun, Jul 19, 3:06 PM
aokblast added a comment to D58301: apei: Fix i386 build.

bus_read_8 has been replace to bus_space_read series in sys/bus.h.

Not sure what "bus_space_read series" is though, should that not be bus_space_read_8?

Sorry, it should be bus_space_{read,write} series.

But why series? I don't understand. Why not just use the _8 suffix everywhere?

Sun, Jul 19, 2:35 PM
aokblast added inline comments to D58335: i386: provide PCPU pc_small_core for amd64 compat.
Sun, Jul 19, 2:30 PM
aokblast added a comment to D58301: apei: Fix i386 build.

bus_read_8 has been replace to bus_space_read series in sys/bus.h.

Not sure what "bus_space_read series" is though, should that not be bus_space_read_8?

Sorry, it should be bus_space_{read,write} series.

Also should probably be using read/write not just read everywhere in the commit message.

Sun, Jul 19, 2:26 PM
aokblast updated the summary of D58301: apei: Fix i386 build.
Sun, Jul 19, 2:20 PM
aokblast abandoned D58303: i386: Add missing IDT entry for thermal interrupt.

Have some patches upstream.

Sun, Jul 19, 2:06 PM
aokblast committed rG02c440e20404: hwpstate_intel: Minimize ifdef for i386 build (authored by aokblast).
hwpstate_intel: Minimize ifdef for i386 build
Sun, Jul 19, 2:05 PM
aokblast committed rGbdc0f7678257: hwpstate_intel: Fix i386 build (authored by Harry Schmalzb <freebsd@omnilan.de>).
hwpstate_intel: Fix i386 build
Sun, Jul 19, 1:37 PM
aokblast closed D58208: hwpstate_intel: Fix i386 build.
Sun, Jul 19, 1:37 PM

Sat, Jul 18

aokblast added a comment to D58205: acpi: add a driver for ACPI CPPC.

HI, my patch is only the library part. It needs extra work to become a driver.

Sat, Jul 18, 2:13 PM

Fri, Jul 17

aokblast abandoned D58302: kern: Bump static assert for i386.
In D58302#1337163, @kib wrote:

Could f6ee1d20d36813e990691 fixed your issue?

Anyway, the useful tool is gdb' pinfo /o type.

Fri, Jul 17, 3:43 PM
aokblast updated the diff for D55474: acpi_cppc: Add cppc library for parsing ACPI _CPC object..

Reflect comments

Fri, Jul 17, 3:40 PM
aokblast added a comment to D58302: kern: Bump static assert for i386.
In D58302#1337157, @kib wrote:

Why? p_asig and p_tree_refcount are at the end of the struct proc.

Fri, Jul 17, 3:31 PM
aokblast requested review of D58303: i386: Add missing IDT entry for thermal interrupt.
Fri, Jul 17, 2:46 PM
aokblast added a reviewer for D58302: kern: Bump static assert for i386: kib.
Fri, Jul 17, 2:44 PM
aokblast requested review of D58302: kern: Bump static assert for i386.
Fri, Jul 17, 2:44 PM
aokblast added a reviewer for D58301: apei: Fix i386 build: jhb.
Fri, Jul 17, 2:41 PM
aokblast updated the diff for D58301: apei: Fix i386 build.

Remove useless patch

Fri, Jul 17, 2:41 PM
aokblast requested review of D58301: apei: Fix i386 build.
Fri, Jul 17, 2:40 PM
aokblast added inline comments to D58208: hwpstate_intel: Fix i386 build.
Fri, Jul 17, 1:29 PM
aokblast added a comment to D58208: hwpstate_intel: Fix i386 build.

@hs.freebsd_id.omnilan.de I have sent you a mail to ask your desired author and mail few days ago. As others might want to compile on i386, I will use Harry Schmalzb. <freebsd@omnilan.de> and commit tomorrow.

Fri, Jul 17, 1:28 PM

Wed, Jul 15

aokblast added inline comments to D58200: hidbus: stop interrupts before finalizing child deactivation.
Wed, Jul 15, 8:22 AM

Tue, Jul 14

aokblast closed D57885: devel/buildkite_agent: Add logfile.
Tue, Jul 14, 2:26 PM
aokblast committed R11:783a09e70f23: devel/buildkite_agent: Enable logfile for output (authored by aokblast).
devel/buildkite_agent: Enable logfile for output
Tue, Jul 14, 2:26 PM
aokblast added a comment to D57885: devel/buildkite_agent: Add logfile.
In D57885#1335409, @dch wrote:

By default this is the permissions the log file is created with:

-rw-------  1 root wheel  153B Jul 13 23:35 buildkite.log

If this is what you intend to happen then let's commit this as is. If you're expecting it to be created readable by buildkite_account then it would need changing to have a precmd script.

Tue, Jul 14, 2:18 PM

Mon, Jul 13

aokblast added a comment to D58199: hid: u2f: stop interrupts on last-close.

Tested with yubikey.

Mon, Jul 13, 10:24 AM
aokblast accepted D58199: hid: u2f: stop interrupts on last-close.
Mon, Jul 13, 10:23 AM
aokblast added a comment to D51865: libusb: capsicumize libusb.

hi!

So why are a whole lot of functions getting an fd added to them?

Do the FDs change during the runtime of the tool? Or are they something that could be set
once during some init phase (maybe in a new function which would call cap_enter, rather than
the owner having to call it) and then pulled out of some the libusb backend state?

IMO we really shouldn't have libraries entering capablity mode- libusb may be just one of many, and setting a precedence like that where some will insist on entering the sandbox is bound to end up with some really annoying circumstances.

Mon, Jul 13, 10:15 AM
aokblast added a comment to D51865: libusb: capsicumize libusb.

hi!

So why are a whole lot of functions getting an fd added to them?

As we need to provide the require file descriptor that need to be opened before cap_enter.

Do the FDs change during the runtime of the tool? Or are they something that could be set
once during some init phase (maybe in a new function which would call cap_enter, rather than
the owner having to call it) and then pulled out of some the libusb backend state?

Mon, Jul 13, 10:13 AM
aokblast added a reviewer for D58208: hwpstate_intel: Fix i386 build: jrtc27.
Mon, Jul 13, 5:31 AM
aokblast added reviewers for D58208: hwpstate_intel: Fix i386 build: olce, adrian, hs.freebsd_id.omnilan.de.
Mon, Jul 13, 5:30 AM
aokblast requested review of D58208: hwpstate_intel: Fix i386 build.
Mon, Jul 13, 5:29 AM

Sun, Jul 12

aokblast added inline comments to D58004: usb_quirk: implement bad remote wakeup and add ASM1074 SS.
Sun, Jul 12, 8:54 AM
aokblast added a reviewer for D58004: usb_quirk: implement bad remote wakeup and add ASM1074 SS: USB.
Sun, Jul 12, 8:51 AM
aokblast added a comment to D57885: devel/buildkite_agent: Add logfile.
In D57885#1334360, @dch wrote:

Sigh, it's already set in L28... but if the file isn't present, it needs to be created with correct permissions, otherwise it won't be set. Can you add that please?

Sun, Jul 12, 7:29 AM
aokblast added a comment to D57885: devel/buildkite_agent: Add logfile.
In D57885#1334350, @dch wrote:
  • needs a PORTREVISION bump
Sun, Jul 12, 7:22 AM
aokblast added a comment to D52166: bhyve: implement single USB device passthrough support.

Hey, any further traction on this? What's left before it can be landed?

Sun, Jul 12, 7:16 AM
aokblast added a comment to D52166: bhyve: implement single USB device passthrough support.

Thanks for your review @bnovkov

Sun, Jul 12, 7:14 AM
aokblast updated the diff for D52166: bhyve: implement single USB device passthrough support.

Reflect bnovkov's review

Sun, Jul 12, 7:14 AM
aokblast added inline comments to D52244: usb: preserve error when doing request.
Sun, Jul 12, 6:10 AM
aokblast accepted D56906: Patch attached to Bug 264125 - usbdump(8) output does not match man page.

LGTM!

Sun, Jul 12, 6:04 AM
aokblast updated the diff for D55474: acpi_cppc: Add cppc library for parsing ACPI _CPC object..

Fixes

Sun, Jul 12, 5:58 AM
aokblast updated the diff for D57825: hwpstate_amd: Detect ACPI _CPC object to enable CPPC.

reflect olce@'s comment

Sun, Jul 12, 5:42 AM
aokblast requested review of D58188: x86: Support ACPI CPPC FFH.
Sun, Jul 12, 5:42 AM
aokblast updated the diff for D55474: acpi_cppc: Add cppc library for parsing ACPI _CPC object..

Reflect olce@'s comment

Sun, Jul 12, 5:39 AM
aokblast added inline comments to D55474: acpi_cppc: Add cppc library for parsing ACPI _CPC object..
Sun, Jul 12, 5:39 AM
aokblast added a comment to D57825: hwpstate_amd: Detect ACPI _CPC object to enable CPPC.

Looks good. One suggestion in an inline comment. Only thing now is the dependency on the CPPC lib, I'll review the other revisions and come back to here.

Sun, Jul 12, 5:28 AM
aokblast abandoned D55505: acpi_perf: Mark readonly when using FFH.
Sun, Jul 12, 5:19 AM
aokblast abandoned D55476: x86: Implement Functional Fixed Hardware in SYS_RES.
Sun, Jul 12, 5:19 AM
aokblast abandoned D55475: acpi: Support Functional Fixed Hardware.
Sun, Jul 12, 5:19 AM
aokblast added a comment to D55474: acpi_cppc: Add cppc library for parsing ACPI _CPC object..

Two more things to consider. First, you finally reduce items expected to be read-only to an integer (field value in struct acpi_cppc_rdonly_item), but some of these are dynamic and may change during runtime, in which case we have to keep the full register specification. Second, in the _CPC example I sent you offline for an AMD machine where processors do not report the CPPC extended feature flag, most present items have the PCC access method, so won't be covered by the code here. In the same example, there are only two FFH, for the ReferencePerformanceCounterRegister and DeliveredPerformanceCounterRegister, and the addresses seem to correspond to the MPERF and APERF MSR numbers respectively.

Sun, Jul 12, 5:16 AM
aokblast added a comment to D55474: acpi_cppc: Add cppc library for parsing ACPI _CPC object..

As noted on previous revisions, SYS_RES_FFH should not exist, nor should acpi_ffh_write() and acpi_ffh_read(). So, basically, this needs a full rework.

Sun, Jul 12, 5:15 AM

Sat, Jul 11

aokblast committed rG86691d52a6d3: kvm: Support non-default CPUID leaf (authored by aokblast).
kvm: Support non-default CPUID leaf
Sat, Jul 11, 8:40 AM
aokblast closed D58146: kvm: Extend feature detection.
Sat, Jul 11, 8:40 AM
aokblast committed R11:ab97a054e1ac: devel/bear: Update to 4.1.5 (authored by aokblast).
devel/bear: Update to 4.1.5
Sat, Jul 11, 8:17 AM
aokblast accepted D58078: Status/2026Q2/cppc.adoc: Add report.

LGTM! Thanks.

Sat, Jul 11, 2:53 AM

Fri, Jul 10

aokblast added a comment to D58152: libc: make dl_phdr_iter lock recursive for LSan.
In D58152#1333559, @kib wrote:

You do understand, that the change is only changes something for the statically linked binaries?

We had already implemented a workaround in rtld, _dl_iterate_phdr_locked iirc. I'm not sure offhand why that wasn't sufficient here, I might need to re-check which lsan drop I sent to @aokblast

Yes, I see the comment from your brach and see both glibc and NetBSD (although very strange in their implemetation) has recursive dl_phdr_info_lock lock.

Yes, I think @kib was at least mildly concerned when I raised the thought of doing the same, and we decided it was reasonably fine to just bypass the locks because we do dl_iterate_phdr, rfork (vfork) inside the handler, then ptrace the parent. The thread that holds the relevanr locks is suspended in rfork and safely not racing against what we do in the child.

Fri, Jul 10, 1:45 PM
aokblast added a comment to D58152: libc: make dl_phdr_iter lock recursive for LSan.
In D58152#1333559, @kib wrote:

You do understand, that the change is only changes something for the statically linked binaries?

We had already implemented a workaround in rtld, _dl_iterate_phdr_locked iirc. I'm not sure offhand why that wasn't sufficient here, I might need to re-check which lsan drop I sent to @aokblast

Fri, Jul 10, 1:09 PM
aokblast added a comment to D58152: libc: make dl_phdr_iter lock recursive for LSan.
In D58152#1333559, @kib wrote:

You do understand, that the change is only changes something for the statically linked binaries?

Fri, Jul 10, 1:06 PM
aokblast added reviewers for D58152: libc: make dl_phdr_iter lock recursive for LSan: kib, kevans.
Fri, Jul 10, 12:19 PM
aokblast requested review of D58152: libc: make dl_phdr_iter lock recursive for LSan.
Fri, Jul 10, 12:19 PM
aokblast added a comment to D58146: kvm: Extend feature detection.

This fixes the kvm_clock detection on a guest on KVM on HyperV.

Fri, Jul 10, 9:49 AM
aokblast added a reviewer for D58146: kvm: Extend feature detection: jhb.
Fri, Jul 10, 9:46 AM
aokblast added a reviewer for D58146: kvm: Extend feature detection: markj.
Fri, Jul 10, 9:42 AM
aokblast retitled D58146: kvm: Extend feature detection from kvm: Extend feature detect to kvm: Extend feature detection.
Fri, Jul 10, 9:28 AM
aokblast added a reviewer for D58146: kvm: Extend feature detection: kib.
Fri, Jul 10, 9:27 AM
aokblast requested review of D58146: kvm: Extend feature detection.
Fri, Jul 10, 9:25 AM

Tue, Jul 7

aokblast added a reviewer for D58074: hexdump: Support octal and hex for -N option: imp.
Tue, Jul 7, 4:52 AM
aokblast requested review of D58074: hexdump: Support octal and hex for -N option.
Tue, Jul 7, 4:52 AM

Mon, Jul 6

aokblast added a comment to D58048: kldstat: Add ldd feature.

@imp Any suggestion? This is for your request:).

Mon, Jul 6, 5:06 PM
aokblast added a reviewer for D58048: kldstat: Add ldd feature: imp.
Mon, Jul 6, 5:05 PM
aokblast updated the diff for D58048: kldstat: Add ldd feature.

Add manual

Mon, Jul 6, 5:04 PM

Sun, Jul 5

aokblast requested review of D58048: kldstat: Add ldd feature.
Sun, Jul 5, 9:00 PM

Sat, Jul 4

aokblast added reviewers for D58028: hwpmc: add RAPL energy-counter class (AMD + Intel): aokblast, bnovkov.
Sat, Jul 4, 6:47 PM

Fri, Jul 3

aokblast added a comment to D57357: sysutils/edk2: Use clang to build.

Is there anything else barring us from merging this?

Fri, Jul 3, 9:18 PM
aokblast added a comment to D57885: devel/buildkite_agent: Add logfile.

@dch ping!

Fri, Jul 3, 8:11 PM

Wed, Jul 1

aokblast updated the diff for D57130: xhci: Refactor xhci_setup_generic code.
  • AI fixed
  • AI fix: 2
  • fixup! xhci: Refactor xhci_generic_setup code
Wed, Jul 1, 4:18 AM

Tue, Jun 30

aokblast updated subscribers of D57978: amd64/pmap: Return la57 in amd nested page.

@kib I don't have the machine now so it needs test from the user.

Tue, Jun 30, 9:15 PM
aokblast requested review of D57978: amd64/pmap: Return la57 in amd nested page.
Tue, Jun 30, 9:14 PM
aokblast committed rG76aa776b5f47: stand: Fix shadow buffer offset handling (authored by aokblast).
stand: Fix shadow buffer offset handling
Tue, Jun 30, 7:53 PM
aokblast closed D57821: stand: Fix display offset.
Tue, Jun 30, 7:53 PM

Mon, Jun 29

aokblast added a comment to D57130: xhci: Refactor xhci_setup_generic code.

@adrian If you don't have any concern, I will merge this patch tomorrow.

Mon, Jun 29, 6:24 PM

Sat, Jun 27

aokblast added a comment to D51045: mk: Add compiler features for asan and msan.
In D51045#1182411, @jhb wrote:

For the cross-build error, it seems like clang isn't honoring --sysroot when looking for the libraries. This can be correct in some cases (it would be correct for the LLVM port cross-building a binary as the port should use the sanitizer libs shipped as part of the port). We may want a local patch for the version of LLVM in the base system to honor --sysroot for the sanitizer runtimes though. Perhaps @dim has thoughts?

Sat, Jun 27, 4:14 PM

Fri, Jun 26

aokblast accepted D57886: iichid(4): Always release interrupt resource.

LGTM! irq_res = bus_alloc_resource_any is not guarded with IICHID_SAMPLING. It should be paired.

Fri, Jun 26, 6:49 PM
aokblast added a reviewer for D57885: devel/buildkite_agent: Add logfile: dch.
Fri, Jun 26, 2:20 PM
aokblast requested review of D57885: devel/buildkite_agent: Add logfile.
Fri, Jun 26, 2:17 PM

Thu, Jun 25

aokblast committed rG240330a85e5f: libusb: don't treat EINVAL from USB_FS_COMPLETE as device detach (authored by aokblast).
libusb: don't treat EINVAL from USB_FS_COMPLETE as device detach
Thu, Jun 25, 11:05 PM
aokblast closed D57542: libusb: don't treat EINVAL from USB_FS_COMPLETE as device detach.
Thu, Jun 25, 11:05 PM
aokblast updated the diff for D57825: hwpstate_amd: Detect ACPI _CPC object to enable CPPC.

Minor fixes

Thu, Jun 25, 1:29 PM
aokblast updated the diff for D57825: hwpstate_amd: Detect ACPI _CPC object to enable CPPC.

Enable FFH

Thu, Jun 25, 1:22 PM
aokblast updated the diff for D55505: acpi_perf: Mark readonly when using FFH.

Minor fixes

Thu, Jun 25, 1:21 PM
aokblast updated the diff for D55476: x86: Implement Functional Fixed Hardware in SYS_RES.

Minor fixes

Thu, Jun 25, 1:18 PM