vm: remove pa_index from the machine-independent layer
After the demise of vm_page_lock(), the only remaining uses of
pa_index() are in various pmap implementations. In many cases, e.g.,
amd64, the pmap implementations already provided their own definitions,
often identical to the machine-independent one. For those that didn't
provide one, this change adds it.
Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D50823
mac_do(4): Bump .Dd to reflect latest update
MFC with: 94828b338033 ("mac_do(4): Examples: Fix some descriptions and a typo")
Sponsored by: The FreeBSD Foundation
usr.sbin: Gate bhyve/bhyvectl on MK_BHYVE for riscv
When this is false there is no libvmmapi, nor even its headers, for
these to build against.
Reported by: Milan Obuch <freebsd-riscv at dino.sk>
Fixes: 7ab1a32cd43c ("bhyve/riscv: Initial import.")
arm64 pmap: Simplify pmap_demote_l{2,3}c()
Simplify the loop for remaking the mappings in pmap_demote_l{2,3}c().
Since the mappings are invalid, we needn't use an atomic read-modify-
write operation to remake the mappings. The accessed and dirty bits
won't concurrently change.
linuxkpi.4, linuxkpi_wlan.4: connect to build
Fixes: bfaec3e64741 linuxkpi.4, linuxkpi_wlan.4: add short man pages
Sponsored by: The FreeBSD Foundation
rc.d/zpool: change mountcritlocal dep from BEFORE to REQUIRE
In cases where the `/boot` directory is mounted from a different disk,
`/boot/zfs/zpool.cache` will not be found during a `rc.d/zpool`
run. This is because `/etc/fstab` mounts are mounted in
`rc.d/mountcritlocal`, which currently runs AFTER (i.e. `REQUIRE:`)
`rc.d/zpool`.
This change swaps the `rcorder` of `rc.d/zpool`'s dependency on
`mountcritlocal` from `BEFORE:` to `REQUIRE:`. This will ensure that
`/boot` (or even `/etc/` in some configurations) to be visible while
searching for `zpool.cache`.
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1614
Closes: https://github.com/freebsd/freebsd-src/pull/1614
iwlwifi.4: add a note on how to bootstrap firmware files
In case someone ends up without any networking and no firmware files
add short instructions on how firmware can be bootstrapped manually.
This was prompted by PR287393 and D50777 during the 14.3-RELEASE days
after firmware was removed from the stable/14 and only available via
ports/package/fwget.
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: ziaee, pauamma_gundo.com
Differential Revision: https://reviews.freebsd.org/D50791
iwlwifi.4/rtw88.4/rtw89.4: adjust note about loading from loader
Despite being discouraged in the man page already, people are trying
to load the driver(s) from loader. Now that the drivers are on
module_blacklist="" simply state that it is not possible.
If someone wants anyway they can figure out how to remove it from there,
load the driver, and loader the firmware file(s) upfront.
Sponsored by: The FreeBSD Foundation (iwlwifi)
MFC after: 3 days
PR: 287480
Reviewed by: pauamma_gundo.com
Differential Revision: https://reviews.freebsd.org/D50816
linuxkpi.4, linuxkpi_wlan.4: add short man pages
Add brief documentation on LinuxKPI.
Add brief documentation on LinuxKPI 802.11 compat so we can refer to
something about which features are supported.
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: dumbbell, ziaee, pauamma_gundo.com
Differential Revision: https://reviews.freebsd.org/D50790
wlan.4: and add rtw89 and iwx drivers in see also
Sponsored by: The FreBSD Foundation
MFC after: 3 days
X-MFC: no iwx.4 in stable/14 yet
Reviewed by: ziaee
Differential Revision: https://reviews.freebsd.org/D50788
wlan_gcmp.4: add man page
The man page is heavily based on wlan_ccmp.4 with minor modifications
for GCMP.
Add the .Xr to the other wlan*.4 man pages.
Sposnored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: adrian, ziaee
Differential Revision: https://reviews.freebsd.org/D50789
qlnx: fix panic at startup
While attaching the qlnx driver we can end up trying to call ifmedia functions
before those are set up (through ether_ifattach() -> rtnl_handle_ifattach()
-> dump_iface() -> get_operstate_ether() -> ifmedia_ioctl()). Postpone the
ether_ifattach() until after the ifmedia setup.
Reviewed by: markj,zlei
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D50819
kern_time: minor style nits
Typically we spell error values 'error' not 'err'. And fix EINVAL markup
nit.
Suggested by: kib
Fixes: 7b7ba7857ce8
Sponsored by: Netflix
snd_hda: Patch Lenovo T420s
PR: 222636
Tested by: vermaden at interia.pl
Sponsored by: The FreeBSD Foundation
MFC after: 1 day
(cherry picked from commit 84e73074412719ec83143fb514625c09d27f468c)
snd_hda: fix attaching to some AMD Radeon GPUs
HDMI audio did not work on my older Radeon GPU, the error message
during attach was:
hdac0: hdac_get_capabilities: Invalid corb size (0)
This is fixed by calling hdac_reset() before the HDA device
capabilities are retrieved. This solution was proposed by Andriy Gapon
in 2010, but apparently did not solve the problem reported at the time.
Approved by: christos
Differential Revision: https://reviews.freebsd.org/D50737
(cherry picked from commit dab9ef5448682c3c35e34d857b17ac1c23445321)
ng_iface(4): Remove a redundant assignment of if_type
That is unnecessary since change [1], as if_alloc(IFT_PROPVIRTUAL) has
set if_type already.
[1] fc74a9f93a5f Stop embedding struct ifnet at the top of driver softcs
No functional change intended.
MFC after: 1 week
committers-src: add myself
Add myself (vexeduxr@) as a new src committer with imp@ as my mentor.
Approved by: imp (mentor)
Differential Revision: https://reviews.freebsd.org/D50824
stand: lua: add a more productive comment
The global `shift` is a special little hack for shifting everything when
the logo is gone, and we should explain that.
Fixes: 33d3373faf30d ("stand: lua: convert orb to a new format [...]")
stand: lua: convert orb to a new format that allows per-graphic shift
Previously, we had one shift that had to work for both the ASCII version
and the image that we may draw if we have a framebuffer to play with.
That makes it more difficult to get the positioning just right, so split
them out into their own tables for convenience.
While we're here, stop clipping off the bottom of the orb when the
autoboot sequence is interrupted. There's plenty of space for it to
move up a hair, so let's do that..
Reviewed by: imp, tsoome
Differential Revision: https://reviews.freebsd.org/D50801
bsdinstall: fix ps3 regression
b6644f5 introduces FREEBSD_BOOTLABEL="FreeBSD" as default value
but cc42ef5 removed this line, expecting it to be set by update_uefi_bootentry()
But ps3 don't use this function so its broken completely.
So we add this line back.
Signed-off-by: Chattrapat Sangmanee <aomsin27 at hotmail.co.th>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1594
pf.conf.5: additional quoting for ranges in lists
When defining network address ranges in macros that will later be used
as items in list macro, these ranges must be quoted with additiona
simple quotes.
For instance, the following does not work and is rejected as a syntax
error:
usr = "192.168.1.0/24"
srv = "192.168.2.10 - 192.168.29"
nat_ranges = "{" $usr $srv "}"
Defining ranges as the following instead will work:
usr = "'192.168.1.0/24'"
srv = "'192.168.2.10 - 192.168.29'"
MFC after: 3 days
Reviewed by: imp, ziaee
Pull Request: https://github.com/freebsd/freebsd-src/pull/1516
pf.conf.5: use subsections and reword titles
The current manpage has two PARAMETERS top-level sections, which can be
confusing when searching or browsing documentation quickly.
Since the parameters described in these two sections are actually
applicable within the scope of the sections they follow (ETHERNET
FILTERING and PACKET FILTERING respectively), I propose we move them to
subsections.
I also propose we reword the title of one of those subsections to
facilitate quick searching or browsing.
MFC after: 3 days
Reviewed by: imp, ziaee
Pull Request: https://github.com/freebsd/freebsd-src/pull/1516
Closes: https://github.com/freebsd/freebsd-src/pull/1516
jail: add JID, JNAME and JPATH to environment for exec.* commands
Although variable substitution is available in the jail configuration
file, the jail identifier is often not since it is dynamically
attributed at run time.
In order to facilitate scripting of exec.* commands executed on the
system, this change sets the JID, JNAME and JPATH environment variables.
These variables are not added when using exec.clean. Neither are they
for commands executed inside jails, to avoid disclosing information
about the host system.
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1609
Closes: https://github.com/freebsd/freebsd-src/pull/1609
Makefile.inc1: allow real-update-packages to be called independently
To perform an incremental update of a pkgbase repo, you would
call 'make update-packages', which will stage, create, and
incrementally choose newer package versions to sign as part
of a pkg repo. However, this forces you to stage the kernel
and source packages along with the world packages. For a
jail-only installation of FreeBSD, these packages are generally
not required.
This patch separates the 'update-packages' target from the
'real-update-packages' target to allow choosing world, kernel,
and/or source individually at the command line like so:
Jail-only installation:
1. make -j`nproc` buildworld
2. make PKG_VERSION='15.snap<date>' \
stage-packages-world create-packages-world \
real-update-packages
[4 lines not shown]