Commit Graph

272264 Commits

Author SHA1 Message Date
rin d83f8a8ef1 Belatedly catch up with MI com(4) change in com.c rev. 1.351:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/ic/com.c#rev1.351

XXX
pullup to netbsd-9
2019-12-15 09:38:40 +00:00
tkusumi c3c15a2869 dm: "unsigned" -> "unsigned int" for consistency
Use either one, but not both.
2019-12-15 09:22:28 +00:00
rin 9c8c7bd7d2 Do not mask out LK bit (bit 31) from M_BCTR, which distinguishes
bcctr and bcctrl.

Fix build failure for ibm4xx kernels with GCC8.

XXX
pullup to netbsd-9, -8, and -7
2019-12-15 06:05:00 +00:00
tkusumi 8026110e0c dm: Rename targets' ->status() to ->table() given ->info() exists
Since now that dm targets in NetBSD have ->info() for "status",
->status() should be renamed to ->table() for "table",
given how dm target status was originally designed in Linux kernel.

taken-from: DragonFlyBSD
2019-12-15 05:56:02 +00:00
christos cd7f626ab2 bump date 2019-12-15 04:50:28 +00:00
christos bf48319541 treat empty variables are unset (Steffen Nurpmeso) 2019-12-15 04:17:38 +00:00
christos a7f52e3116 PR/54768: elo: Missing cksum(1) convenience links (and docs) for new sha2
functions.
2019-12-15 03:55:56 +00:00
christos 6d8018ef1c PR/54767: elo: fix incorrect test (mlelstv)
Add symbolic constants and reference to the standard.
2019-12-15 03:38:17 +00:00
manu 74438c9ae2 Fix typo that caused two instructions to be commented out
Oddly, that did not break booting.
2019-12-15 02:58:21 +00:00
manu c99d51c86d Restore multiboot 2 header in amd64 kernel
The header must appear below 32k offset in the kernel file, but we
have to make sure it does not load at low addresses, otherwise we
break BIOS boot.

.text section used to load at 0x200000, we just load multiboot section
there, and have .text loaded just after.
2019-12-15 02:56:40 +00:00
riastradh 540e0470eb Fix typo -- acknowledge interrupts _and_ errors. 2019-12-15 01:16:33 +00:00
mrg ec202c93ab ensure to call drm_mode_config_cleanup() when erroring.
tripped up 'active lock in free' checks, and perhaps
lead to other lock corruption.  (crash with un-init lock
in arpresolve that does not make sense now seems to not
occur either.)
2019-12-15 01:00:58 +00:00
mrg 5036a53a61 rework slightly to avoid stupid gcc warnings.
ok jmcneill.
2019-12-15 00:49:00 +00:00
ad 7121cb9fbf The uvmexp.pdpending change was incorrect - revert for now. 2019-12-14 21:36:00 +00:00
christos b54315f23d PR/54756: germain: Avoid confusion caused by overuse of the word "file" both
as a noun and an argument name.
2019-12-14 20:46:13 +00:00
martin 8b681df095 Pass proper track size when initializing the default alignment - this is
important with sunlabels.
2019-12-14 20:41:58 +00:00
christos ddf3269588 PR/54764: elo: Incorrect '+file' filename completion in mail(1)
Add propel completion stem so that file completion works.
pullup-9
2019-12-14 20:28:02 +00:00
christos 4169a5f39b PR/54765: elo: Minor error in the mail(1) man page (-F description truncated)
pullup-9
2019-12-14 20:23:38 +00:00
christos d13b4aaeef PR/54766: elo: Broken mime-hooks handling in mail(1)
pullup-9.
2019-12-14 20:21:43 +00:00
martin d26d794880 If a fictious label has no RAW_PART assume there is no valid disk label. 2019-12-14 19:26:17 +00:00
ad 83fea69fbb Merge from yamt-pagecache: use radixtree for page lookup.
rbtree page lookup was introduced during the NetBSD 5.0 development cycle to
bypass lock contention problems with the (then) global page hash, and was a
temporary solution to allow us to make progress.radixtree is the intended
replacement.

Ok yamt@.
2019-12-14 17:31:53 +00:00
ad 6857513180 Merge from yamt-pagecache: use radixtree for page lookup.
rbtree page lookup was introduced during the NetBSD 5.0 development cycle to
bypass lock contention problems with the (then) global page hash, and was a
temporary solution to allow us to make progress.  radixtree is the intended
replacement.

Ok yamt@.
2019-12-14 17:28:58 +00:00
riastradh 5b4211c2aa Nix trailing whitespace. 2019-12-14 17:24:43 +00:00
skrll 94041adfe7 revert previous - i was confused about boot files on rpi + aarch64 2019-12-14 17:24:30 +00:00
riastradh bd6c4f7f79 Remove never-used Mersenne twister from libkern. 2019-12-14 17:23:47 +00:00
riastradh 4d17a0f3c2 Omit vestigial unused commented-out experiment. 2019-12-14 17:23:31 +00:00
tkusumi 47e84ce6c8 dm: Don't try to implement "status" as subset of "table"
The way dm_table_status_ioctl() implements "status" and "table" is
not compatible with Linux kernel. Some targets have different outputs
that "status" can't be implemented as subset of "table".

Add ->info() handler to sync with "status" behavior in Linux kernel.
Some targets which currently exist in NetBSD (I think striped)
as well as some minor targets that I plan to port to NetBSD
can/should implement ->info(), but will do that in a different commit.

taken-from: DragonFlyBSD
2019-12-14 17:15:54 +00:00
skrll ddbcef3d72 Allow RPI firmware boots to work again 2019-12-14 17:04:02 +00:00
riastradh 08c4e556e6 Just use KASSERTMSG and panic. No need for custom wrappers. 2019-12-14 16:58:38 +00:00
riastradh f239e801cc Remove charade dancing around now-dead RCU patent. 2019-12-14 16:58:25 +00:00
christos 9ce64bc4a4 new acpica 2019-12-14 16:57:48 +00:00
christos 1c66306845 merge conflicts 2019-12-14 16:56:32 +00:00
christos 32aedd46ba ----------------------------------------
13 December 2019. Summary of changes for version 20191213:


1) ACPICA kernel-resident subsystem:

Return a Buffer object for all fields created via the CreateField operator. Previously, an Integer would be returned if the size of the field was less than or equal to the current size of an Integer. Although this goes against the ACPI specification, it provides compatibility with other ACPI implementations. Also updated the ASLTS test suite to reflect this new behavior.

2) iASL Compiler/Disassembler and ACPICA tools:

iASL: Implemented detection of (and throw an error for) duplicate values for Case statements within a single Switch statement. Duplicate Integers, Strings, and Buffers are supported.

iASL: Fix error logging issue during multiple file compilation -- Switch to the correct input file during error node creation.

iASL: For duplicate named object creation, now emit an error instead of a warning - since this will cause a runtime error.

AcpiSrc: Add unix line-ending support for non-Windows builds.

iASL: Add an error condition for an attempt to create a NameString with > 255 NameSegs (the max allowable via the AML definition).


----------------------------------------
18 October 2019. Summary of changes for version 20191018:


1) ACPICA kernel-resident subsystem:

Debugger: added a new command: ?Fields [address space ID]?. This command
dumps the contents of all field units that are defined within the
namespace with a particular address space ID.

Modified the external interface AcpiLoadTable() to return a table index.
This table index can be used for unloading a table for debugging.
    ACPI_STATUS
    AcpiLoadTable (
        ACPI_TABLE_HEADER       *Table,
        UINT32                  *TableIndex))

Implemented a new external interface: AcpiUnloadTable() This new function
takes a table index as an argument and unloads the table. Useful for
debugging only.
    ACPI_STATUS
    AcpiUnloadTable (
        UINT32                  TableIndex))

Ported the AcpiNames utility to use the new table initialization
sequence. The utility was broken before this change. Also, it was
required to include most of the AML interpreter into the utility in order
to process table initialization (module-level code execution.)

Update for results from running Clang V8.0.1. This fixes all "dead
assignment" warnings. There are still several "Dereference of NULL
pointer" warnings, but these have been found to be false positive
warnings.


2) iASL Compiler/Disassembler and ACPICA tools:

iASL: numerous table compiler changes to ensure that the usage of
yacc/bison syntax is POSIX-compliant.

iASL/disassembler: several simple bug fixes in the data table
disassembler.

Acpiexec: expanded the initialization file (the -fi option) to initialize
strings, buffers, packages, and field units.
2019-12-14 16:33:12 +00:00
maya 3029dd4875 Don't assume mii is not null here. Some drivers like urndis don't use
mii, so they always have mii == NULL.

ok riastradh. fixes PR kern/54762
2019-12-14 15:40:43 +00:00
ad 8faaa814a5 Use MPSAFE callouts. 2019-12-14 15:36:08 +00:00
ad bed9f20585 Update uvmexp.nswget with atomics. 2019-12-14 15:34:18 +00:00
ad 0c2afd2995 Include radixtree in the kernel. 2019-12-14 15:30:37 +00:00
riastradh 18438dc6d3 Skip npf_config_sync if nothing to do.
Saves an unnecessary pserialize_perform every second.
2019-12-14 15:21:51 +00:00
ad be0cdb0537 Don't call uvm_pagedequeue() while holding pg->interlock. 2019-12-14 15:08:45 +00:00
ad 6c10122b55 Adjust pdpending in uvm_pageout_start() and uvm_pageout_done() to avoid
the value going temporarily negative.
2019-12-14 15:04:47 +00:00
ad b41bcd98f2 Use pageq.list instead of listq.list. 2019-12-14 14:46:11 +00:00
tkusumi aa6dca195e dm: Make dm_dbg_print_flags() take uint32_t flag
which comes from prop_dictionary_get_uint32() result.
taken-from: DragonFlyBSD
2019-12-14 14:43:38 +00:00
skrll 747a7a036d Fix build... wire_count probably doesn't need atomics 2019-12-14 13:48:09 +00:00
sevan 40db275b26 PCBC 2019-12-14 13:36:14 +00:00
tkusumi d3d26a328b autofs: Make /dev/autofs cdevsw functions static
Also less confusing since autofs vnops also has autofs_{open,close} in NetBSD.
2019-12-14 12:01:13 +00:00
martin 015df285a2 Adapt MD parts to changes in get_fs_part_type (pass partition type). 2019-12-14 12:00:40 +00:00
tkusumi 5449798710 dm: Move extern declaration of global variables to dm.h 2019-12-14 11:20:51 +00:00
mrg 74b9b609f1 switch powerpc to GCC 8. 2019-12-14 10:59:25 +00:00
tkusumi d9c59a056c dm: Remove void casts of function calls
Use of void casts in dm is not consistent, just get rid of them.
2019-12-14 10:49:30 +00:00
tkusumi 0d0a6d2316 dm: Remove unconditional debug prints in targets' ->strategy()
Having debug prints in ->strategy() by default just to tell ->strategy()
is called is overkill.
taken-from: DragonFlyBSD
2019-12-14 10:02:35 +00:00