Commit Graph

273219 Commits

Author SHA1 Message Date
thorpej 7988dd027a Note removal of Token Ring support. 2020-01-19 20:01:49 +00:00
thorpej ed469c22d6 Remove Token Ring support. 2020-01-19 20:00:35 +00:00
riastradh e3921a1b91 Tweak makefile for USE_FILEMON=dev, from sjg. 2020-01-19 19:50:54 +00:00
riastradh bea0f8c176 Per sjg's suggestion, split filemon API into separate back ends.
By default we use the ktrace back end, but the /dev/filemon back end
is available as a compile-time option, by setting USE_FILEMON=dev in
make.  sjg raised concerns about ktrace performance and would like to
continue using /dev/filemon on FreeBSD (which has seen more
maintenance kernel-side) without forking make.
2020-01-19 19:49:36 +00:00
riastradh 1378959eea Reimplement make(1) meta mode without filemon(4). 2020-01-19 19:42:32 +00:00
ad 959bf297b4 Tidy rwlocks a bit, no functional change intended. Mainly:
- rw_downgrade(): do it in a for () loop like all the others.
- Explicitly carry around RW_NODEBUG - don't be lazy.
- Remove pointless macros.
- Don't make assertions conditional on LOCKDEBUG, there's no reason.
- Make space for a new flag bit (not added yet).
2020-01-19 18:34:24 +00:00
thorpej f27711b7eb Note removal of the de(4) driver. 2020-01-19 17:54:19 +00:00
thorpej 332fd700ea Remove the de(4) driver, which has long since been supplanted by the
tlp(4) driver, which supports more chips and more board variants.
2020-01-19 17:53:14 +00:00
christos d6c17dbb31 Fix static linking (sun2) 2020-01-19 17:36:57 +00:00
thorpej 59e1653913 Remove commented out "de* at pci? ..." (this is the only kernel config
in the tree with any reference to that driver).
2020-01-19 17:26:57 +00:00
thorpej 6d2f94e573 HIPPI has been removed. 2020-01-19 16:58:22 +00:00
skrll c35eb2f42a ci_core_id isn't setup early enough after recent arm_cpu_topology
changes, so use ci_mpidr as a stop gap fix for cpuid
2020-01-19 16:53:20 +00:00
skrll d7d355d70d Replace the two copies of the ADDR macro with a centralised adrl macro.
The adrl name matches the one used by armasm.
2020-01-19 16:12:56 +00:00
jmcneill a964f69d26 Pull in drm_os_netbsd.h for CONFIG_<arch> defines 2020-01-19 16:12:00 +00:00
skrll db1c1a9455 Fix build on aarch64 by including uvm_object.h.
OK from Riastradh
2020-01-19 15:31:56 +00:00
skrll 86ce5979c3 Style. NFCI 2020-01-19 15:08:43 +00:00
jmcneill 0bd01ff292 Disable the use of WC memory on Arm and Arm64. From Linux:
* The DRM driver stack is designed to work with cache coherent devices
 * only, but permits an optimization to be enabled in some cases, where
 * for some buffers, both the CPU and the GPU use uncached mappings,
 * removing the need for DMA snooping and allocation in the CPU caches.
 *
 * The use of uncached GPU mappings relies on the correct implementation
 * of the PCIe NoSnoop TLP attribute by the platform, otherwise the GPU
 * will use cached mappings nonetheless. On x86 platforms, this does not
 * seem to matter, as uncached CPU mappings will snoop the caches in any
 * case. However, on ARM and arm64, enabling this optimization on a
 * platform where NoSnoop is ignored results in loss of coherency, which
 * breaks correct operation of the device. Since we have no way of
 * detecting whether NoSnoop works or not, just disable this
 * optimization entirely for ARM and arm64.
2020-01-19 12:03:27 +00:00
leot e6e28afa3c Fix a typo 2020-01-19 11:29:42 +00:00
jmcneill 838f05a087 Fix loading TAHITI VCE firmware. 2020-01-19 11:07:00 +00:00
skrll 0f4208eb57 Fix non-ARM_MMU_EXTENDED buildx 2020-01-19 10:59:56 +00:00
martin 51bed8e97e Fix set lists after HIPPI removal 2020-01-19 10:50:25 +00:00
jmcneill 6c8891e8fa Build ati driver on evbarm. 2020-01-19 10:45:49 +00:00
martin bc7415aa33 Fix conditional in previous 2020-01-19 10:44:51 +00:00
thorpej a15abb2881 Note removal of HIPPI support. 2020-01-19 06:57:39 +00:00
thorpej 85654ec7a9 Remove HIPPI support and the esh(4) driver that uses it. There have not
been any users of HIPPI for some time, and it is unlikely to be resurrected.
2020-01-19 06:55:21 +00:00
maya 9cfa6b201b Note removal of uyurex 2020-01-19 06:40:09 +00:00
thorpej 2ad9c18235 Stop including strip.h (it's no longer generated). 2020-01-19 05:07:22 +00:00
thorpej 9c489280d6 Document removal of strip(4). 2020-01-19 01:38:26 +00:00
thorpej c1d9ec8d89 Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
2020-01-19 01:25:03 +00:00
jmcneill c91ab881ac Build radeon and nouveau drivers on evbarm. 2020-01-19 00:58:13 +00:00
jmcneill 8f8fe2de40 Install nouveau and radeon firmware on aarch64 2020-01-19 00:57:18 +00:00
kre a550fa2998 test ! -n "$foo" is just a quaint way of saying test -z "$foo"
and test ! -z "$foo" is really just test -n "$foo"  so let's just
use the simple (and more obvious) forms.

NFCI.
2020-01-19 00:57:00 +00:00
kre 11f716dcce The idiom
set $whatever
	while [ $# - gt 10 ]; do shift 10; done
	eval echo \$$#

fails when $# turns out to be 10 (or any multiple), it would need
to be instead

	while [ $# -ge 10 ]; do shift 9; done

but there hasn't been a shell that cannot handle ${10} (etc) correctly
in a very long time, so let's just use that instead (properly quoted,
in case IFS happens to contain a digit for some bizarre reason).

We should also "set -f" / "set +f" (or better, restore the prev setting of -f)
around the "set $whatever" part, but if that was ever going to cause a problem
here, it would have already, so leave that for now.
2020-01-19 00:50:25 +00:00
thorpej 99c42a7910 Fix several problems with pci_configure_bus():
- Track the 64-bit range capability of prefetchable and non-prefetchable
  memory separately.  Probe the extent maps provided by the caller to
  initialize these values.  Without this, we never get 64-bit range
  capablity on the root bus, and thus are never able to forward it along
  to downstream busses.
- Always prefer allocating space for a 64-bit memory BAR > 4GB.  We will
  fall back on a 32-bit range if no space above 4GB is available.
- Constrain allocation of 32-bit memory BARs (including expansion ROM BARs)
  to be below 4GB, even if the window has a larger range available.
- When allocating non-prefetchable memory space for a PCI-PCI bridge, ensure
  it falls below 4GB, since a bridge cannot forward a 64-bit non-prefetchable
  range.
- Account for expansion ROMs as non-prefetchable memory rather than
  prefetchable memory; expansion ROMs have 32-bit BARs, and if a device
  with an expansion ROM is downstream of a brige, a 32-bit prefetchable
  range might not be available.

Tested by jmcneill@ on an Arm Neoverse N1 SDP, where the previous
code failed to configure all devices correctly.
2020-01-18 22:17:34 +00:00
tsutsui 566e6833b5 Fix panic on sun3 when any key is typed when kbd is not console. PR/54873
Should be pulled up to netbsd-9.
2020-01-18 21:08:42 +00:00
tsutsui cac5f77ef1 Fix "modload nfsserver" failure on sun3. PR/54869
sun3 port has two definitions for different pmaps for sun3 (pmap3.h)
and sun3x (pmap3x.h) and they are selected by _SUN3_ or _SUN3X_ macro,
but neither of them is defined on module builds so common exported
definitions required by module(7) should be in a common header,
i.e. pmap.h.

Should be pulled up to netbsd-9.
2020-01-18 20:47:15 +00:00
nonaka 214d5a7a24 x86 efiboot: Fixed the problem that /EFI/NetBSD/boot.cfg could not be loaded. 2020-01-18 19:25:58 +00:00
nonaka 900e0e61b5 fix indent. 2020-01-18 19:20:23 +00:00
martin 4b10af5a64 PR install/54872: fix printf argument order, sectors and heads were
swapped in the bios geometry display.
2020-01-18 18:39:55 +00:00
kre 657e82114e Move recently added .debug files from tests/mi to debug/mi (with all the
others) and while so doing, give them the "debug" attribute.

While here, sort.
2020-01-18 17:18:41 +00:00
ad f778098a59 Track page dirtyness for ZFS (yamt-pagecache). I had forgotten that it had
its own cache.  Thanks to hannken@ for the repro.
2020-01-18 15:21:32 +00:00
christos 63fc2f472b not require .d files for the build. 2020-01-18 15:16:47 +00:00
skrll 170f9641df Use 4K pages on ARM_MMU_EXTENDED platforms (all armv[67] except RPI) by
creating a new pool l1ttpl for the userland L1 translation table which
needs to be 8KB and 8KB aligned.

Limit the pool to maxproc and add hooks to allow the sysctl changing of
maxproc to adjust the pool.

This comes at a 5% performance penalty for build.sh -j8 kernel on a
Tegra TK1.
2020-01-18 14:40:03 +00:00
pgoyette 8903567a14 Regen generated files _after_ committing changes to the source file.
This gets the "Generated from" comments to use the new version number.

No functional change.
2020-01-18 14:07:31 +00:00
ad 024332fd3d Mark the cdev MPSAFE too. 2020-01-18 14:02:18 +00:00
ryoon 968f5fa0dc Fix build. Three list.h files are required to generate .d files 2020-01-18 13:56:53 +00:00
ad e4b63a3e95 sched_bestcpu(): break out of the loop earlier. 2020-01-18 13:53:50 +00:00
jmcneill 7dd6b0d4ad Ignore PCI boot config unless the _DSM for ignoring PCI boot config is
explicitly set to 0.
2020-01-18 12:32:57 +00:00
jmcneill 07452c5e97 Make sure we have at least one of playback or capture streams setup before
attaching the audio layer.
2020-01-18 12:00:33 +00:00
simonb 0361294bbb Add new AHCI_QUIRK_BADNCQ quick for controllers that have issues with
NCQ on (some) drives.  Enable this quirk for ATI (AMD) SB600/SB700
controllers.  Alternate fix for kern/54790 and kern/54855.

ok jdolecek@, tested on my SB700 chipset and tsutsui's SB600 chipset.
2020-01-18 11:26:11 +00:00