Page MenuHomeFreeBSD

aokblast (ShengYi Hung)
AoK_Blast

Projects

User Details

User Since
Jun 21 2022, 7:17 PM (214 w, 5 d)

Recent Activity

Wed, Jul 29

aokblast added a comment to D58027: x86: add AMD RAPL MSR definitions to specialreg.h.

Ok! I would like to confirm something with you before committing:

  1. Author info: Andre Silva <andasilv@amd.com>
  2. Sponsored by: Advanced Micro Devices (AMD)

Are the both desired information you expected?

Yes, they are. Thanks!

Sorry to interfere @aokblast, but I was ready to commit the whole series and just did so.

Wed, Jul 29, 12:27 AM

Tue, Jul 28

aokblast added a comment to D58027: x86: add AMD RAPL MSR definitions to specialreg.h.

Ok! I would like to confirm something with you before committing:

Tue, Jul 28, 4:24 AM

Mon, Jul 27

aokblast committed rGe3e56236bcae: xhci: Fix packet xfer larger than 64kb (authored by aokblast).
xhci: Fix packet xfer larger than 64kb
Mon, Jul 27, 5:31 AM
aokblast closed D58465: xhci: Fix multi links.
Mon, Jul 27, 5:31 AM

Sun, Jul 26

aokblast added a comment to D55035: LinuxKPI: usb: add usb_anchor support.
In D55035#1341099, @bz wrote:
In D55035#1341051, @bz wrote:

Thanks for the comment; I have a way larger branch I think than what is in review. Do you want to have a look at the entire bits? I'd be thrilled if someone will review them :) and more than happy to extract the next days.

Do you mean https://reviews.freebsd.org/D54987? I was typing something while you leave your comment:)

No, I mean more changes to be added to the stack; when I first did this it was a/multiple year(s) ago. I put some of that out earlier this year in order to get the de-coupling of LinuxKPI from the native stack structures out but that got into controversial discussions. In the follow-up I added more stuff for more USB wifi drivers ... which I never uploaded to Phab.

I'll go through what you have and would love to put a new stack up next week, if that's okay?

Sun, Jul 26, 1:27 PM
aokblast requested review of D58465: xhci: Fix multi links.
Sun, Jul 26, 7:24 AM

Sat, Jul 25

aokblast committed rG5f346dba4f7b: libusb: Sync interface for libusb_init_option (authored by aokblast).
libusb: Sync interface for libusb_init_option
Sat, Jul 25, 4:06 PM
aokblast committed rG340c6aff6736: libusb: Add LIBUSB_DT_SUPERSPEED_HUB (authored by aokblast).
libusb: Add LIBUSB_DT_SUPERSPEED_HUB
Sat, Jul 25, 3:42 PM
aokblast committed rG3ebb70fcf91e: stand: Fix build failure due to old EDK2 interface (authored by aokblast).
stand: Fix build failure due to old EDK2 interface
Sat, Jul 25, 3:35 PM
aokblast requested changes to D54987: LinuxKPI: usb: de-couple parts from native USB and update implementation.
Sat, Jul 25, 3:09 PM
aokblast requested changes to D55035: LinuxKPI: usb: add usb_anchor support.
Sat, Jul 25, 3:08 PM
aokblast added a comment to D55035: LinuxKPI: usb: add usb_anchor support.
In D55035#1341051, @bz wrote:

Thanks for the comment; I have a way larger branch I think than what is in review. Do you want to have a look at the entire bits? I'd be thrilled if someone will review them :) and more than happy to extract the next days.

Sat, Jul 25, 3:04 PM
aokblast added inline comments to D54987: LinuxKPI: usb: de-couple parts from native USB and update implementation.
Sat, Jul 25, 3:03 PM
aokblast accepted D57807: netlink: return ENOBUFS on RX overflow.

LGTM. Waiting for the feedback from @glebius :)

Sat, Jul 25, 2:15 PM
aokblast added a comment to D55035: LinuxKPI: usb: add usb_anchor support.

Plus these points, usb_unlink_urb_sub bypass unanchored in not started yet branch. Causing a forever run if the xfer hasn't start yet

Sat, Jul 25, 2:05 PM
aokblast added a comment to D58027: x86: add AMD RAPL MSR definitions to specialreg.h.

hi, it is moved to D57759, right? I can commit that patch for you.

Sat, Jul 25, 1:45 PM
aokblast added inline comments to D54218: Introduce libusb20_dev_open_with_flags for shared vs. exclusive access..
Sat, Jul 25, 1:37 PM · USB
aokblast added a comment to D54218: Introduce libusb20_dev_open_with_flags for shared vs. exclusive access..

usbconfig stopped reporting my webcam and fingerprint reader. Instead I get 'usbconfig: could not open device: Bad file descriptor'. Problem goes away when these changes are reverted. A very strange side note: libusb20_int.h is missing from base.txz for 15.1-RELEASE (but is in src.txz). I think the problem is I'm testing against 15.1-RELEASE which is too far behind current. I need to find some hardware onto which I can run current.

Sat, Jul 25, 1:37 PM · USB
aokblast abandoned D57357: sysutils/edk2: Use clang to build.

I would just abandon it as somebody has much more decent works.

Sat, Jul 25, 1:31 PM
aokblast added inline comments to D58200: hidbus: stop interrupts before finalizing child deactivation.
Sat, Jul 25, 1:29 PM
aokblast accepted D58200: hidbus: stop interrupts before finalizing child deactivation.

LGTM. Sorry that I though it was copy and paste from line 633. It should work. Thanks!

Sat, Jul 25, 1:29 PM
aokblast committed rGb78f8800a7b0: x86/specialreg: Add MSR_AMD_CPUID01 MSR (authored by aokblast).
x86/specialreg: Add MSR_AMD_CPUID01 MSR
Sat, Jul 25, 1:27 PM
aokblast closed D56311: x86/specialreg: Add MSR_AMD_CPUID01 MSR..
Sat, Jul 25, 1:27 PM
aokblast committed rG8f7ea6b7d197: hwpstate_intel: Minimize ifdef for i386 build (authored by aokblast).
hwpstate_intel: Minimize ifdef for i386 build
Sat, Jul 25, 1:17 PM
aokblast committed rG493676d3b271: kvm: Support non-default CPUID leaf (authored by aokblast).
kvm: Support non-default CPUID leaf
Sat, Jul 25, 1:17 PM
aokblast committed rG592bf2412662: hwpstate_intel: Fix i386 build (authored by Harry Schmalzb <freebsd@omnilan.de>).
hwpstate_intel: Fix i386 build
Sat, Jul 25, 1:17 PM
aokblast committed rG1802f2ca7215: stand: Bulk operations on each gfxfb_blt if shadow buffer enabled (authored by aokblast).
stand: Bulk operations on each gfxfb_blt if shadow buffer enabled
Sat, Jul 25, 1:17 PM
aokblast committed rG4a1a1bf3afc7: stand: Fix shadow buffer offset handling (authored by aokblast).
stand: Fix shadow buffer offset handling
Sat, Jul 25, 1:17 PM
aokblast committed rG2cf2d955635a: usb: preserve error when doing request (authored by aokblast).
usb: preserve error when doing request
Sat, Jul 25, 3:17 AM
aokblast closed D52244: usb: preserve error when doing request.
Sat, Jul 25, 3:17 AM
aokblast updated the diff for D51865: libusb: capsicumize libusb.

Reflect @markj's comment

Sat, Jul 25, 2:33 AM
aokblast added a comment to D57807: netlink: return ENOBUFS on RX overflow.

Also, we should use peek flag in native in here.

Sat, Jul 25, 2:19 AM
aokblast accepted D57519: netlink: Add sync path in user-kernel interface.

LGTM with the style change. I can commit this after @glebius accept.

Sat, Jul 25, 2:03 AM
aokblast committed rGe0b235ecd4fa: xhci: Refactor xhci_generic_setup code (authored by aokblast).
xhci: Refactor xhci_generic_setup code
Sat, Jul 25, 1:50 AM
aokblast closed D57130: xhci: Refactor xhci_setup_generic code.
Sat, Jul 25, 1:50 AM

Wed, Jul 22

aokblast added inline comments to D57807: netlink: return ENOBUFS on RX overflow.
Wed, Jul 22, 2:02 PM

Tue, Jul 21

aokblast added inline comments to D57519: netlink: Add sync path in user-kernel interface.
Tue, Jul 21, 2:53 PM
aokblast added inline comments to D57519: netlink: Add sync path in user-kernel interface.
Tue, Jul 21, 2:38 PM

Mon, Jul 20

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