Page MenuHomeFreeBSD

ashafer (Austin Shafer)
User

Projects

User does not belong to any projects.

User Details

User Since
Aug 2 2019, 3:06 PM (287 w, 5 d)

Recent Activity

Tue, Jan 28

pi renamed ashafer from ashafer_badland.io to ashafer.
Tue, Jan 28, 8:04 AM

Sun, Jan 26

ashafer closed D48694: New committer (ports): Austin Shafer (ashafer).
Sun, Jan 26, 9:48 PM
ashafer committed R9:a52de44df1a6: New committer (ports): Austin Shafer (ashafer) (authored by ashafer).
New committer (ports): Austin Shafer (ashafer)
Sun, Jan 26, 9:48 PM
ashafer committed rGbd0510a4213e: Add myself as ports committer with mentor kbowling (authored by ashafer).
Add myself as ports committer with mentor kbowling
Sun, Jan 26, 9:28 PM
ashafer closed D48695: Add myself as ports committer with mentor kbowling.
Sun, Jan 26, 9:28 PM
ashafer added a reviewer for D48695: Add myself as ports committer with mentor kbowling: kbowling.
Sun, Jan 26, 7:44 PM
ashafer requested review of D48695: Add myself as ports committer with mentor kbowling.
Sun, Jan 26, 7:44 PM
ashafer added a reviewer for D48694: New committer (ports): Austin Shafer (ashafer): kbowling.
Sun, Jan 26, 7:43 PM
ashafer requested review of D48694: New committer (ports): Austin Shafer (ashafer).
Sun, Jan 26, 7:43 PM

Nov 5 2024

ashafer added a comment to D47448: iichid: Fix layout of PNP ids.

So the stock MODULE_PNP_INFOs do handle structures such as that, I guess the problem is we don't use them for ACPI things. from the manpage:

static struct my_pciids {
               uint32_t devid;
               const char *desc;
       } my_ids[] = {
               { 0x12345678, "Foo bar" },
               { 0x9abcdef0, "Baz fizz" },
       };
Nov 5 2024, 6:35 PM
ashafer added a reviewer for D47448: iichid: Fix layout of PNP ids: wulf.

Curious your opinions on this. Maybe I'm misreading the pnp code but it looks like we have been handing it the wrong format and it thinks it's a list of strings when it isn't.

Nov 5 2024, 2:33 AM
ashafer requested review of D47448: iichid: Fix layout of PNP ids.
Nov 5 2024, 2:31 AM

Oct 27 2024

ashafer abandoned D47290: nvidia-drm-kmod: bump distinfo after drm-kmod updates.

No worries, thanks for submitting a fix.

Oct 27 2024, 4:40 PM

Oct 26 2024

ashafer added a reviewer for D47290: nvidia-drm-kmod: bump distinfo after drm-kmod updates: kbowling.
Oct 26 2024, 4:39 AM
ashafer requested review of D47290: nvidia-drm-kmod: bump distinfo after drm-kmod updates.
Oct 26 2024, 4:39 AM

Oct 10 2024

ashafer added a comment to D47006: rtw89: Fix TX panics.

I'm not in the wireless group but I suppose I could be. I also lurk in the kernel/desktop/gaming channels in the freebsd discord if you use that, feel free to ping or email me.

Oct 10 2024, 2:13 PM
ashafer added a comment to D47006: rtw89: Fix TX panics.

Sure, what IMPROVING file are you referring to? I'd be happy to test things, I'm trying to get a modern laptop setup on this lenovo legion laptop I have so it would be good to use rtw89 for that.

Oct 10 2024, 2:04 PM

Oct 8 2024

ashafer added inline comments to D47006: rtw89: Fix TX panics.
Oct 8 2024, 10:16 PM
ashafer added a comment to D47006: rtw89: Fix TX panics.

Huh I think I had seen the long idle disconnect thing earlier today but didn't realize that was what it was.

Oct 8 2024, 5:07 PM
ashafer added a comment to D47006: rtw89: Fix TX panics.

linuxkpi_ieee80211 has a function it calls to zero the next/prev fields called TAILQ_ELEM_INIT, so that it could do this check.

Oct 8 2024, 3:33 PM
ashafer updated the diff for D47006: rtw89: Fix TX panics.

Thanks updated, does this look more clear?

Oct 8 2024, 1:46 PM
ashafer added reviewers for D47006: rtw89: Fix TX panics: bz, adrian.

What's preventing rtw89 from getting enabled in the build? With this fix I could comfortably test youtube, iperf3, ssh. Speed was ~20mbps but stable. I think it could make sense to open this up to more people.

Oct 8 2024, 6:19 AM
ashafer requested review of D47006: rtw89: Fix TX panics.
Oct 8 2024, 6:17 AM

May 29 2024

ashafer updated subscribers of D45400: graphics/nvidia-drm-kmod: prepare for 555 update.
May 29 2024, 2:01 PM
ashafer requested review of D45400: graphics/nvidia-drm-kmod: prepare for 555 update.
May 29 2024, 2:00 PM

May 27 2024

ashafer added a comment to D44865: linuxkpi: Allow ida_destroy and idr_destroy to be called multiple times.

Pushed here: https://github.com/amshafer/freebsd/commit/214a96bb38bf5534b59eb149367369a233fa6826

May 27 2024, 8:53 PM

May 13 2024

ashafer added a comment to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

Pushed it here: https://github.com/amshafer/freebsd/tree/this_module

May 13 2024, 7:45 PM
ashafer updated the diff for D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

Added parentheses

May 13 2024, 6:30 PM
ashafer added a comment to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

Yes, thanks. I don't have a committer bit.

May 13 2024, 6:01 PM
ashafer updated the diff for D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

Thanks, updated to just remove the module_get() bits for now.

May 13 2024, 4:51 PM
ashafer updated the diff for D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

Updated with jhb's proposal. Also implemented module_get and module_put by casting to linker_file_t and bumping the refcount. Retested with PRIME offloading to confirm this still fixes the panic. Unlike the previous (similar) version this handles the statically compiled module case.

May 13 2024, 2:04 PM

May 6 2024

ashafer added a comment to D44865: linuxkpi: Allow ida_destroy and idr_destroy to be called multiple times.

Any update on getting this merged?

May 6 2024, 7:52 PM
ashafer added a comment to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

I believe that would work and I agree it would be much simpler. @kib is there something the (b) variant provides that (a) would be missing if we went with @jhb's proposal? It seems like they provide the same functionality?

May 6 2024, 2:13 PM

Apr 28 2024

ashafer added a comment to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

I guess the last question is what linuxkpi macro should actually create the global? I had previously used LKPI_DRIVER_MODULE, but not everywhere uses that. I guess we could make our own DEFINE_THIS_MODULE() macro and then call it from LKPI_DRIVER_MODULE, and add calls elsewhere as needed?

Apr 28 2024, 12:53 AM

Apr 27 2024

ashafer added a comment to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

It seems the way it works is that THIS_MODULE is a NULL pointer during "builtin" (statically building modules into the kernel), and points to the struct module of the dynamically loaded module otherwise. I think we could do something similar where we get the current linuxkpi behavior (THIS_MODULE is null) if we aren't building a dynamically loaded module?

Apr 27 2024, 3:16 PM

Apr 26 2024

ashafer added a comment to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

how would any of proposals handle LKPI modules statically compiled into the kernel?

Apr 26 2024, 2:07 PM

Apr 23 2024

ashafer added a comment to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

Instead, it should be only resolved locally, causing undefined symbol error if attempt is made to reference it from kld without the module symbol (section ?).

Apr 23 2024, 1:34 PM

Apr 22 2024

ashafer added a comment to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

So what is the expected use of THIS_MODULE in Linux? Determine that current module is not that module, or something else?

Apr 22 2024, 5:37 PM
ashafer updated the diff for D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

Updated with KLD_DPF debug statement.

Apr 22 2024, 5:34 PM
ashafer updated the diff for D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

Updated to be generic. I changed the name to __this_linker_file to better represent
what the variable points at. On linux __this_module points at a struct module, so
for us we point at a linker_file_t.

Apr 22 2024, 2:30 PM

Apr 20 2024

ashafer updated the diff for D44865: linuxkpi: Allow ida_destroy and idr_destroy to be called multiple times.

Updated with style, thanks.

Apr 20 2024, 4:04 PM

Apr 19 2024

ashafer updated the diff for D44865: linuxkpi: Allow ida_destroy and idr_destroy to be called multiple times.

There isn't a PR, this has been a longstanding issue with nvidia-drm that I'm
finally getting around to solving.

Apr 19 2024, 6:33 PM
ashafer updated the diff for D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

Thanks for all the suggestions! I've implemented it by doing the special
casing in linker_file_lookup_symbol_internal as suggested. It looks like
this does work, I can see different owner fields populated in nvidia-drm
and drm. Also confirmed multiple usages of THIS_MODULE in drm.ko point to
the same thing.

Apr 19 2024, 6:27 PM
ashafer requested review of D44865: linuxkpi: Allow ida_destroy and idr_destroy to be called multiple times.
Apr 19 2024, 2:48 PM

Apr 10 2024

ashafer added a comment to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

It sounds like linux has insmod set up the __this_module variable when a module is loaded. If you're asking about doing something equivalent then I don't have a good estimate for how hard that would be. I don't know the details though.

Apr 10 2024, 2:12 AM

Apr 9 2024

ashafer added a comment to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

That's a promising idea. I wonder if instead of having an unusual inline function we could instead make it part of the build setup. Something like setting KBUILD_MODNAME_HASH to whatever sha1 -s "$KBUILD_MODNAME" returns as part of the Makefile? That seems like it might be a little cleaner and easier to debug. Only downside is we have to update all of the makefiles that use KBUILD_MODNAME, I can't think of a way to automate it off the top of my head.

Apr 9 2024, 9:32 PM

Apr 3 2024

ashafer updated the diff for D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

Bump __FreeBSD_version for drm-kmod

Apr 3 2024, 5:36 PM
ashafer updated the diff for D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

Since there were no comments I've gone ahead with the strategy I
outlined in my last comment: Have drm-kmod create a global variable
during LKPI_DRIVER_MODULE and point THIS_MODULE at it.

Apr 3 2024, 2:52 PM

Mar 19 2024

ashafer added a comment to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

Maybe an interesting solution would be to do something a bit more DRM specific using LKPI_DRIVER_MODULE. Afaict only the DRM drivers will run into the issue that motivated this change. There's no reason we couldn't do something like this in base or just move the bits I mentioned into base.

Mar 19 2024, 6:26 PM
ashafer updated the diff for D44432: x11/nvidia-driver-470: Backport fix for nvidia-modeset panic.

Yes sorry, bumped PORTREVISION

Mar 19 2024, 6:17 PM
ashafer retitled D44432: x11/nvidia-driver-470: Backport fix for nvidia-modeset panic from x11/nvidia-driver/470: Backport fix for nvidia-modeset panic to x11/nvidia-driver-470: Backport fix for nvidia-modeset panic.
Mar 19 2024, 6:17 PM
ashafer added a reviewer for D44432: x11/nvidia-driver-470: Backport fix for nvidia-modeset panic: arrowd.

This has been tested by @grahamperrin

Mar 19 2024, 2:13 PM
ashafer requested review of D44432: x11/nvidia-driver-470: Backport fix for nvidia-modeset panic.
Mar 19 2024, 2:13 PM

Mar 18 2024

ashafer updated the diff for D44308: graphics/nvidia-drm-kmod: fix build depends and linuxkpi registration.

Moved BUILD_DEPENDS to before as suggested.

Mar 18 2024, 3:13 PM
ashafer added a reviewer for D44308: graphics/nvidia-drm-kmod: fix build depends and linuxkpi registration: arrowd.
Mar 18 2024, 2:55 PM

Mar 15 2024

ashafer added inline comments to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.
Mar 15 2024, 8:06 PM
ashafer added inline comments to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.
Mar 15 2024, 6:57 PM

Mar 14 2024

ashafer updated the diff for D44305: graphics/nvidia-drm-510-kmod: Fix compilation with 550.

Updated to handle 13.2 by patching conftest.sh

Mar 14 2024, 6:41 PM

Mar 13 2024

ashafer updated the diff for D44308: graphics/nvidia-drm-kmod: fix build depends and linuxkpi registration.

Updated to add back in RUN_DEPENDS

Mar 13 2024, 3:00 PM

Mar 12 2024

ashafer added inline comments to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.
Mar 12 2024, 3:20 PM
ashafer added a comment to D44305: graphics/nvidia-drm-510-kmod: Fix compilation with 550.

On FreeBSD 13 this results in
../common/inc/nv-mm.h:110:31: error: too many arguments to function call, expected 5, have 8

Mar 12 2024, 3:53 AM

Mar 11 2024

ashafer requested review of D44308: graphics/nvidia-drm-kmod: fix build depends and linuxkpi registration.
Mar 11 2024, 7:18 PM
ashafer added a comment to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

That's for struct class though, right? I'm talking about struct module, and struct file_operations. Here's an example usage from nvidia-drm: https://github.com/amshafer/nvidia-driver/blob/535.98/nvidia/src/nvidia-drm/nvidia-drm-gem.c#L156. Iirc there's a couple similar ones in other drivers in base.

Mar 11 2024, 7:04 PM
ashafer added a comment to D44305: graphics/nvidia-drm-510-kmod: Fix compilation with 550.

I don't think so? The 550 build has been broken because of this so no actual version has been "released" for nvidia-drm-510-kmod with 550, so it doesn't seem like bumping the revision would do anything? I can if needed though

Mar 11 2024, 6:03 PM
ashafer added a comment to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

I'm open to other suggestions about how we can do this. We definitely want THIS_MODULE to be non-zero, but having it be an opaque pointer that isn't a struct module isn't that great. Barring fully implementing module in linuxkpi I think something like this could make sense to allow emulated code to check if devices/dmabufs/etc come from the same module?

Mar 11 2024, 5:57 PM
ashafer requested review of D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.
Mar 11 2024, 5:55 PM
ashafer added a reviewer for D44305: graphics/nvidia-drm-510-kmod: Fix compilation with 550: arrowd.
Mar 11 2024, 5:55 PM
ashafer requested review of D44305: graphics/nvidia-drm-510-kmod: Fix compilation with 550.
Mar 11 2024, 5:54 PM

Feb 26 2024

ashafer added a comment to D44073: nvidia-drm-kmod: Update to 550.54.14.

I think you need to update to a more recent CURRENT, that was added at the end of december I think.

Feb 26 2024, 7:50 PM
ashafer updated the diff for D44073: nvidia-drm-kmod: Update to 550.54.14.

Odd I hadn't seen that warning. I removed the PORTVERSIONS and also reset PORTREVISION.

Feb 26 2024, 7:03 PM
ashafer updated the diff for D44073: nvidia-drm-kmod: Update to 550.54.14.

Update to add a pkg-message warning about the new modesetting sysctl

Feb 26 2024, 6:48 PM
ashafer added inline comments to D44073: nvidia-drm-kmod: Update to 550.54.14.
Feb 26 2024, 6:17 PM
ashafer updated the diff for D44073: nvidia-drm-kmod: Update to 550.54.14.

Rebase on latest main

Feb 26 2024, 4:06 PM

Feb 24 2024

ashafer added a reviewer for D44073: nvidia-drm-kmod: Update to 550.54.14: arrowd.

Note that this shouldn't be merged until after PR 277028

Feb 24 2024, 10:34 PM
ashafer requested review of D44073: nvidia-drm-kmod: Update to 550.54.14.
Feb 24 2024, 10:33 PM

Feb 20 2024

ashafer added a reviewer for D43987: graphics/nvidia-drm-61-kmod: new port: arrowd.

Motivated by reports such as: https://github.com/amshafer/nvidia-driver/issues/21

Feb 20 2024, 3:57 PM
ashafer requested review of D43987: graphics/nvidia-drm-61-kmod: new port.
Feb 20 2024, 3:55 PM

Dec 29 2023

ashafer added a comment to D43234: nvidia-drm-515-kmod: Fix build on CURRENT with iosys-map.h.

It doesn't build, I got notified of this by a failing build: https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/p384f6f077a9c_s1ff41cad71/logs/nvidia-drm-515-kmod-535.104.05_2.log

Dec 29 2023, 7:25 PM
ashafer added reviewers for D43234: nvidia-drm-515-kmod: Fix build on CURRENT with iosys-map.h: manu, arrowd.

I know there's a lot of updates to the DRM infrastructure (terrific btw!) happening so feel free to ping me if there's anything you think might break nvidia-drm and you want me to test. I've verified 6.1-lts builds with nvidia-drm fine and I plan on testing that on my machines at some point soon.

Dec 29 2023, 7:20 PM
ashafer requested review of D43234: nvidia-drm-515-kmod: Fix build on CURRENT with iosys-map.h.
Dec 29 2023, 7:15 PM

Nov 6 2023

ashafer added a reviewer for D42484: graphics/nvidia-drm-515-kmod: Remove dependency on linuxkpi_gplv2.ko: arrowd.
Nov 6 2023, 8:00 PM
ashafer requested review of D42484: graphics/nvidia-drm-515-kmod: Remove dependency on linuxkpi_gplv2.ko.
Nov 6 2023, 7:59 PM

Oct 17 2023

ashafer added a reviewer for D42267: nvidia-drm: update checksum for drm-kmod 5.15.118: arrowd.

This should fix recent package build failures. Tested building locally.

Oct 17 2023, 3:46 PM
ashafer requested review of D42267: nvidia-drm: update checksum for drm-kmod 5.15.118.
Oct 17 2023, 3:46 PM

Sep 6 2023

ashafer added a comment to D41574: linuxkpi: Fix iteration in __sg_alloc_table_from_pages again.

Off the top of my head I thought I tested with GENERIC but because that KASSERT didn't fire I'm assuming I had GENERIC-NODEBUG installed, which I normally do on half my machines.

Sep 6 2023, 1:38 PM

Aug 25 2023

ashafer added a comment to D41591: nvidia-drm-kmod: Update with fix for PRIME.

haha that certainly looks a bit more complicated :)

Aug 25 2023, 3:45 PM
ashafer added a comment to D41591: nvidia-drm-kmod: Update with fix for PRIME.

Using PKGNAME lets me include the PORTREVISION in addition to the previous fields. That way it will look for tags such as nvidia-drm-515-kmod-535.98_1 instead of nvidia-drm-515-kmod-535.98. This seemed like the easiest way to do this.

Aug 25 2023, 1:19 PM
ashafer updated the diff for D41574: linuxkpi: Fix iteration in __sg_alloc_table_from_pages again.

Fixed styling

Aug 25 2023, 1:17 PM

Aug 24 2023

ashafer updated subscribers of D41591: nvidia-drm-kmod: Update with fix for PRIME.
Aug 24 2023, 8:16 PM
ashafer requested review of D41591: nvidia-drm-kmod: Update with fix for PRIME.
Aug 24 2023, 8:16 PM
ashafer added a comment to D41574: linuxkpi: Fix iteration in __sg_alloc_table_from_pages again.

This is part of a fix for https://github.com/amshafer/nvidia-driver/issues/20

Aug 24 2023, 1:52 PM
ashafer requested review of D41574: linuxkpi: Fix iteration in __sg_alloc_table_from_pages again.
Aug 24 2023, 1:51 PM

Aug 18 2023

ashafer added a comment to D41497: Add nvidia-drm-kmod port.

The code is still NVIDIA code, I've just modified it for compatability. The nvidia-drm-kmod port's Makefile is mine though, is that what you're referring to? I think the license of nvidia-drm-kmod should match the child ports to avoid anyone getting confused and thinking nvidia-drm.ko is BSD licensed.

Aug 18 2023, 5:12 PM
ashafer added a comment to D41497: Add nvidia-drm-kmod port.

Setting LICENSE_FILE= ${WRKSRC}/nvidia/doc/license.txt in Makefile.common should be fine for the child ports, but for the metaport I'm not sure the best way to include that? For nvidia-drm-kmod should I just copy that license file in the directory and reference that in LICENSE_FILE?

Aug 18 2023, 3:04 PM
ashafer added a comment to D41497: Add nvidia-drm-kmod port.

It's documented here: https://github.com/amshafer/nvidia-driver/blob/535.86.05/UPDATING.md

Aug 18 2023, 2:17 PM

Aug 17 2023

ashafer added a comment to D41497: Add nvidia-drm-kmod port.

One thing of interest to reviewers here: how should we (meaning me) best coordinate matching updates of nvidia-drm-kmod with updates to nvidia-driver? nvidia-drm-kmod isn't as simple as bumping a version number since I have to populate a driver branch in github for a particular version.

Aug 17 2023, 9:50 PM
ashafer updated the diff for D41497: Add nvidia-drm-kmod port.

Fixed 515 to actually be 515, reworked RUN_DEPENDS, I think I got the pre/post.mk stuff you recommended correct but let me know if not.

Aug 17 2023, 9:43 PM
ashafer requested review of D41497: Add nvidia-drm-kmod port.
Aug 17 2023, 9:16 PM

Aug 16 2023

ashafer added a comment to D40168: x11/nvidia-driver: Add Makefile.version and patch for nvidia-drm.

I originally added NVIDIA_DISTVERSION since we will need to have multiple nvidia-drm-kmod ports which match the different versions of drm-kmod. For now basically nvidia-drm-510-kmod and nvidia-drm-515-kmod. It seemed easiest to have one Makefile.version in nvidia-driver which defines the version number to avoid having to update it by hand in all the ports that depend on nvidia-drm, instead you'd only have to update the distinfos. I added something similar to drm-kmod a bit ago. My goal was make one common nvidia-drm-kmod Makefile.common which uses NVIDIA_DISTVERSION, NVIDIA_GH_TAGNAME, and DRM_KMOD_GH_TAGNAME to select the versions of everything, and each nvidia-drm-*-kmod port imports the Makefile.versions it wants to reference.

Aug 16 2023, 7:03 PM

Aug 13 2023

ashafer updated the diff for D40168: x11/nvidia-driver: Add Makefile.version and patch for nvidia-drm.

Bump version to 535.86.05

Aug 13 2023, 9:26 PM