Page MenuHomeFreeBSD

ngie (Enji Cooper)
User

Projects

User Details

User Since
Aug 2 2014, 8:08 AM (606 w, 6 h)

Recent Activity

Yesterday

ngie added a comment to D55649: coreboot: Add coreboot firmware table driver.

This is really awesome -- thank you for doing all of this work on the driver.

Fri, Mar 13, 5:16 PM
ngie added a comment to D55472: appleir: Add Apple IR receiver driver.

Out of curiosity--since I no longer have any Apple IR remotes (my last one went away with my AppleTV back in the late 2010s), have you tried taking off the case and looking at the internal chips for identifying marks on any of the ASICs? I'm curious because it might help you figure out which NEC ASIC may or may not be compatible with this driver.

Fri, Mar 13, 4:51 PM
ngie added a comment to D55472: appleir: Add Apple IR receiver driver.

Does building/installing this driver on all platforms (TARGET/TARGET_ARCH) make sense?

Fri, Mar 13, 4:48 PM
ngie added inline comments to D55472: appleir: Add Apple IR receiver driver.
Fri, Mar 13, 4:44 PM

Mon, Mar 9

ngie accepted D55669: libutil: convert the trimdomain tests to atf-c(3).
Mon, Mar 9, 7:09 AM

Sat, Mar 7

ngie added inline comments to D55669: libutil: convert the trimdomain tests to atf-c(3).
Sat, Mar 7, 11:10 PM
ngie added inline comments to D55669: libutil: convert the trimdomain tests to atf-c(3).
Sat, Mar 7, 11:09 PM

Thu, Mar 5

ngie added a comment to D55472: appleir: Add Apple IR receiver driver.

Out of curiosity, how much of the Linux driver did you use as a reference for this driver? I'm concerned about licensing of the new code.

Thu, Mar 5, 1:24 AM
ngie added a comment to D54441: asmc: add raw SMC key read/write interface.

I think this should actually be behind another build option.

Thu, Mar 5, 1:07 AM

Tue, Mar 3

ngie updated subscribers of D52861: thunderbolt: Support generic USB4 NHIs.
Tue, Mar 3, 9:46 PM
ngie added a comment to D55635: Thunderbolt: add initial Titan Ridge support.

The AR_2C_NHI Ids probably came from https://admin.pci-ids.ucw.cz/read/PC/8086/1575. I never had pre-production hardware.

I assume that TR has an ICM, but if you've removed the ICM code from freebsd then that's moot. I would kinda recommend bringing the ICM code back and supporting TR and ICL controllers with it until you've written a comprehensive HCM. Just stay away from AR host controllers.

Tue, Mar 3, 9:25 PM
ngie added a comment to D52861: thunderbolt: Support generic USB4 NHIs.
Tue, Mar 3, 9:18 PM
ngie added a comment to D55635: Thunderbolt: add initial Titan Ridge support.

One thing I found interesting in this exercise is that the PCI IDs are flip flopped between FreeBSD and Linux: the NHI PCI IDs on FreeBSD are the TB PCIB PCI IDs and vice versa.

Some of these IDs may be wrong (can't find DEVICE_AR_2C_NHI's 0x1575 in the linux code, and I don't know which hardware @scottl was primarily testing), but which ones are flip-flopped? they mostly seem to match to me.

Tue, Mar 3, 8:46 PM
ngie added inline comments to D52861: thunderbolt: Support generic USB4 NHIs.
Tue, Mar 3, 7:34 PM
ngie added a comment to D55635: Thunderbolt: add initial Titan Ridge support.

One thing I found interesting in this exercise is that the PCI IDs are flip flopped between FreeBSD and Linux: the NHI PCI IDs on FreeBSD are the TB PCIB PCI IDs and vice versa.

Tue, Mar 3, 7:23 PM
ngie updated the summary of D55635: Thunderbolt: add initial Titan Ridge support.
Tue, Mar 3, 6:54 PM
ngie updated the diff for D55635: Thunderbolt: add initial Titan Ridge support.

Fix up the PCI ID for DEVICE_TR_2C_NHI (bad-copy paste on my part)

Tue, Mar 3, 6:50 PM
ngie updated the test plan for D55635: Thunderbolt: add initial Titan Ridge support.
Tue, Mar 3, 6:45 PM
ngie requested review of D55635: Thunderbolt: add initial Titan Ridge support.
Tue, Mar 3, 6:42 PM
ngie created P703 Command-Line Input.
Tue, Mar 3, 6:05 PM
ngie created P702 Command-Line Input.
Tue, Mar 3, 6:02 PM
ngie committed rG912864912b71: Run `make obj` before running `make test-includes` (authored by ngie).
Run `make obj` before running `make test-includes`
Tue, Mar 3, 6:00 AM
ngie closed D55499: Run `make obj` before running `make test-includes`.
Tue, Mar 3, 6:00 AM
ngie abandoned D54062: Explicitly normalize on Unix line-endings with FreeBSD sources.

Abandon: this differential received a lot of non-positive feedback. It's best not to push this forward.

Tue, Mar 3, 5:40 AM
ngie committed rGc47cefba8312: Only build USB-related modules if MK_USB != no (authored by ngie).
Only build USB-related modules if MK_USB != no
Tue, Mar 3, 4:51 AM
ngie closed D55576: Only build USB-related modules if MK_USB != no.
Tue, Mar 3, 4:51 AM
ngie committed rG876d2b8392e6: acpi: build dev/acpi_support/acpi_wmi_if.m on ARM64 (authored by ngie).
acpi: build dev/acpi_support/acpi_wmi_if.m on ARM64
Tue, Mar 3, 4:11 AM
ngie closed D55535: acpi: build dev/acpi_support/acpi_wmi_if.m on ARM64.
Tue, Mar 3, 4:10 AM

Mon, Mar 2

ngie accepted D55608: diff3: Produce correct exit status.
Mon, Mar 2, 2:44 AM

Sun, Mar 1

ngie added inline comments to D55608: diff3: Produce correct exit status.
Sun, Mar 1, 10:04 PM
ngie added inline comments to D55608: diff3: Produce correct exit status.
Sun, Mar 1, 10:03 PM
ngie added inline comments to D55608: diff3: Produce correct exit status.
Sun, Mar 1, 9:42 PM
ngie requested changes to D55608: diff3: Produce correct exit status.

I'm sorry -- it's still too early for my brain to be effective at code reviewing. I'll retract my prior acceptance until we get some clarity on some of the changes (most of the changes going from 1->2 look correct, but I'm not sure about some of the edge cases in skip/readin).

Sun, Mar 1, 8:00 PM
ngie accepted D55608: diff3: Produce correct exit status.

Sorry -- forgot to sign-off in my last submission. An answer shouldn't block this change landing since this change should definitely be made (regardless of how it's expressed) as it makes the code more "functionally correct".

Sun, Mar 1, 7:50 PM
ngie added a comment to D55608: diff3: Produce correct exit status.

Not a huge fan of complexity, but would it make sense to turn these into an enum in a later revision for human readability? I'm game for making the change after you're done if you're busy with other things.

Sun, Mar 1, 7:47 PM
ngie committed rGe81e724358e4: asmc: output the SMC firmware revision on attach (authored by ngie).
asmc: output the SMC firmware revision on attach
Sun, Mar 1, 7:04 PM
ngie closed D55577: asmc: output the SMC revision on attach.
Sun, Mar 1, 7:03 PM
ngie abandoned D55574: asmc: output the SMC revision on attach.

Closing accidental duplicate revision.

Sun, Mar 1, 8:45 AM

Sat, Feb 28

ngie added a comment to D55562: acpi: Don't attach a "wake" sysctl node to devices without the ACPI flags IVAR.

Hmm... atopcase(4) still panicked with a similar issue (once I figured out that I needed to add ig4 to my KERNCONF). This may have also occurred because my Mac had low battery and the hardware sends out events on other platforms to suspend the host (there's always a chance that this is a bug with atopcase(4)).

Sat, Feb 28, 12:47 AM

Fri, Feb 27

ngie added inline comments to D55573: amd64: complete thunderbolt KERNCONF integration.
Fri, Feb 27, 11:07 PM
ngie updated the diff for D55576: Only build USB-related modules if MK_USB != no.
  • Re-add drivers that got accidentally removed in the earlier diff.
  • Put ufshci back: I mistakingly though the driver was related to USB, but it's not.
Fri, Feb 27, 10:47 PM
ngie requested review of D55577: asmc: output the SMC revision on attach.
Fri, Feb 27, 9:29 PM
ngie updated subscribers of D55576: Only build USB-related modules if MK_USB != no.
Fri, Feb 27, 9:04 PM
ngie added a reviewer for D55576: Only build USB-related modules if MK_USB != no: imp.
Fri, Feb 27, 9:04 PM
ngie added inline comments to D55576: Only build USB-related modules if MK_USB != no.
Fri, Feb 27, 9:04 PM
ngie requested review of D55576: Only build USB-related modules if MK_USB != no.
Fri, Feb 27, 9:02 PM
ngie added a comment to D55535: acpi: build dev/acpi_support/acpi_wmi_if.m on ARM64.

I want to give @jkim some time to look at this since the acpi_wmi part of the diff might be unnecessary.

Fri, Feb 27, 8:55 PM
ngie updated subscribers of D55535: acpi: build dev/acpi_support/acpi_wmi_if.m on ARM64.
Fri, Feb 27, 8:53 PM
ngie requested review of D55575: thunderbolt: make code -Wunused clean.
Fri, Feb 27, 8:52 PM
ngie retitled D55573: amd64: complete thunderbolt KERNCONF integration from Complete thunderbolt KERNCONF integration to amd64: complete thunderbolt KERNCONF integration.
Fri, Feb 27, 8:50 PM
ngie requested review of D55574: asmc: output the SMC revision on attach.
Fri, Feb 27, 8:50 PM
ngie requested review of D55573: amd64: complete thunderbolt KERNCONF integration.
Fri, Feb 27, 8:46 PM
ngie added a comment to D55562: acpi: Don't attach a "wake" sysctl node to devices without the ACPI flags IVAR.
In D55562#1271486, @pho wrote:

My MacBookPro13,1 no longer panics when I run sysctl dev.pci..

@pho : would it make sense to make this a regression test?

There is already a "sysctl -a" scenario that triggers the panic:

root@mercat1:~ # cd /usr/src/tools/test/stress2/misc
root@mercat1:/usr/src/tools/test/stress2/misc # ./sysctl2.sh
panic: acpi_get_flags failed for pci8 on bus pcib8, error = 2

This change fixes the panic for me.

Fri, Feb 27, 8:39 PM
ngie added a comment to D55556: ARM64: add thunderbolt to `std.apple`.

Where is the thunderbolt device defined? I don't see it in main.

Fri, Feb 27, 8:02 PM
ngie updated the diff for D55535: acpi: build dev/acpi_support/acpi_wmi_if.m on ARM64.

Build the .m when acpi/acpi_wmi are explicitly requested. Don't make it
part of the standard kernel.

Fri, Feb 27, 8:00 PM
ngie added inline comments to D55535: acpi: build dev/acpi_support/acpi_wmi_if.m on ARM64.
Fri, Feb 27, 7:53 PM
ngie accepted D55561: acpi: Treat ACPI_IVAR_FLAGS as a global IVAR.

LGTM. This helped get my MBP13,1 back into a state where it no longer panicked running sysctl dev.pci.

Fri, Feb 27, 7:51 PM
ngie committed rG1f2f5eba24aa: asmc(4): pull 32-bit support for the driver (authored by ngie).
asmc(4): pull 32-bit support for the driver
Fri, Feb 27, 7:44 PM
ngie closed D55544: asmc(4): pull 32-bit support for the driver.
Fri, Feb 27, 7:44 PM
ngie added a comment to D55562: acpi: Don't attach a "wake" sysctl node to devices without the ACPI flags IVAR.

Oddly enough, this may have also fixed some of the sysctl issues with asmc(4) on my MBP13,1 as asmc(4) is an acpi(4) consumer. It was previously complaining about bogus duplicate OIDs, but I figured that was something that I did on the branch, not an issue with acpi(4).
I'll check on my MBP16,1 as well and report back.
CC: @guest-seuros

Fri, Feb 27, 7:27 PM
ngie updated subscribers of D55562: acpi: Don't attach a "wake" sysctl node to devices without the ACPI flags IVAR.
Fri, Feb 27, 7:24 PM
ngie added a comment to D55562: acpi: Don't attach a "wake" sysctl node to devices without the ACPI flags IVAR.

Oddly enough, this may have also fixed asmc(4) on my MBP13,1 as asmc(4) is an acpi(4) consumer. I'll check on my MBP16,1 as well and report back.

Fri, Feb 27, 7:24 PM
ngie updated subscribers of D55562: acpi: Don't attach a "wake" sysctl node to devices without the ACPI flags IVAR.
Fri, Feb 27, 7:02 PM
ngie accepted D55562: acpi: Don't attach a "wake" sysctl node to devices without the ACPI flags IVAR.

My MacBookPro13,1 no longer panics when I run sysctl dev.pci..

Fri, Feb 27, 6:57 PM
ngie added a comment to D55562: acpi: Don't attach a "wake" sysctl node to devices without the ACPI flags IVAR.

Oof! I'll give this diff a shot on my MBP!

Fri, Feb 27, 6:45 PM
ngie committed rGafbfc2a617ee: gre: unbreak LINT-NOINET (authored by ngie).
gre: unbreak LINT-NOINET
Fri, Feb 27, 6:44 PM
ngie closed D55546: gre: unbreak LINT-NOINET.
Fri, Feb 27, 6:43 PM
ngie updated the diff for D55544: asmc(4): pull 32-bit support for the driver.

Remove superfluous line added to sys/conf/files.amd64 by accident

Fri, Feb 27, 7:04 AM
ngie requested review of D55556: ARM64: add thunderbolt to `std.apple`.
Fri, Feb 27, 6:09 AM
ngie added inline comments to D55544: asmc(4): pull 32-bit support for the driver.
Fri, Feb 27, 6:02 AM
ngie updated the diff for D55546: gre: unbreak LINT-NOINET.

Remove the superfluous diff to build netinet/ip_gre.c when INET6 is enabled

Fri, Feb 27, 5:59 AM
ngie retitled D55546: gre: unbreak LINT-NOINET from if_gre: unbreak LINT-NOINET to gre: unbreak LINT-NOINET.
Fri, Feb 27, 5:44 AM
ngie committed rGbd758ebac327: divert: unbreak the LINT-NOIP build (authored by ngie).
divert: unbreak the LINT-NOIP build
Fri, Feb 27, 4:51 AM
ngie closed D55548: divert: unbreak the LINT-NOIP build.
Fri, Feb 27, 4:51 AM
ngie updated the test plan for D55548: divert: unbreak the LINT-NOIP build.
Fri, Feb 27, 4:48 AM
ngie updated the diff for D55546: gre: unbreak LINT-NOINET.

Incorporate more touchups to make LINT-NOINET compile/link with gre(4)

Fri, Feb 27, 4:37 AM

Thu, Feb 26

ngie updated the test plan for D55548: divert: unbreak the LINT-NOIP build.
Thu, Feb 26, 11:09 PM
ngie requested review of D55548: divert: unbreak the LINT-NOIP build.
Thu, Feb 26, 11:08 PM
ngie updated the summary of D55544: asmc(4): pull 32-bit support for the driver.
Thu, Feb 26, 9:57 PM
ngie added a reviewer for D55544: asmc(4): pull 32-bit support for the driver: olce.
Thu, Feb 26, 9:55 PM
ngie requested review of D55546: gre: unbreak LINT-NOINET.
Thu, Feb 26, 9:50 PM
ngie updated the test plan for D55544: asmc(4): pull 32-bit support for the driver.
Thu, Feb 26, 9:25 PM
ngie requested review of D55544: asmc(4): pull 32-bit support for the driver.
Thu, Feb 26, 9:24 PM
ngie added inline comments to D55535: acpi: build dev/acpi_support/acpi_wmi_if.m on ARM64.
Thu, Feb 26, 9:12 PM
ngie updated the test plan for D55535: acpi: build dev/acpi_support/acpi_wmi_if.m on ARM64.
Thu, Feb 26, 6:13 PM
ngie requested review of D55535: acpi: build dev/acpi_support/acpi_wmi_if.m on ARM64.
Thu, Feb 26, 6:11 PM
ngie committed rGdb5344a7445f: lib/libnetbsd: bring in `__type_m{ax,in}*` macro family (authored by ngie).
lib/libnetbsd: bring in `__type_m{ax,in}*` macro family
Thu, Feb 26, 7:42 AM
ngie closed D55414: chore: replace {0, 0} with {DEV,KOBJ}METHOD_END where appropriate.
Thu, Feb 26, 2:10 AM

Wed, Feb 25

ngie committed rG2a6c2d9c38dc: libnetbsd: add math.h and sys/time.h (authored by ngie).
libnetbsd: add math.h and sys/time.h
Wed, Feb 25, 11:35 PM
ngie committed rG3023bb49e115: asmc: introduce the concept of generic models (authored by ngie).
asmc: introduce the concept of generic models
Wed, Feb 25, 6:43 AM
ngie closed D55395: asmc: introduce the concept of generic models.
Wed, Feb 25, 6:42 AM
ngie committed rG94db365042d3: asmc: add Wake-on-LAN control via sysctl (authored by guest-seuros).
asmc: add Wake-on-LAN control via sysctl
Wed, Feb 25, 6:39 AM
ngie closed D54439: asmc: add Wake-on-LAN control via sysctl.
Wed, Feb 25, 6:39 AM
ngie accepted D54439: asmc: add Wake-on-LAN control via sysctl.
Wed, Feb 25, 6:37 AM
ngie updated the test plan for D55499: Run `make obj` before running `make test-includes`.
Wed, Feb 25, 6:16 AM
ngie requested review of D55499: Run `make obj` before running `make test-includes`.
Wed, Feb 25, 6:13 AM
ngie committed rG0fc6c3f731a2: chore: replace {0, 0} with {DEV,KOBJ}METHOD_END (authored by ngie).
chore: replace {0, 0} with {DEV,KOBJ}METHOD_END
Wed, Feb 25, 6:00 AM
ngie updated the summary of D55450: release.sh: add chroot cleanup routine.
Wed, Feb 25, 5:58 AM
ngie updated subscribers of D55451: release.sh: quote paths that might contain spaces.
Wed, Feb 25, 5:58 AM

Tue, Feb 24

ngie abandoned D55290: fs/tmpfs/t_times.sh: remove local modification.
Tue, Feb 24, 9:36 PM