Commit Graph

275064 Commits

Author SHA1 Message Date
christos
aa3d6ec155 revert the 0x% -> %# change for fixed width formats pointed out by uwe. 2020-03-14 02:35:33 +00:00
christos
9fcd6132aa more changes from sc.dying in PR/55068 2020-03-14 02:22:16 +00:00
rillig
cf957f51cb t_glob.c: clean up test code
In struct vfs_file, using an int as a boolean is an anachronism and has
been replaced with a single-character file type, like in ls(1).

Some other redundant test code has been removed as well since it was
either unreachable or existed only for performance reasons.
2020-03-13 23:27:54 +00:00
rillig
afe826aa59 t_glob.c: add test cases for hidden directory and file
The existing test code was geared towards every little bit of
performance. It even duplicated the file definitions in vfs_stat in order
to avoid a few strcmp calls. This made the test code fragile. Therefore,
vfs_stat has been rewritten completely to not duplicate any information
from the vfs.

In vfs_stat, the returned st_mode is now more realistic. It had been 0
before. The file mode is only logged when it makes sense. In the ENOENT
case it is not logged anymore.

The debug logging for opendir/closedir now logs the same pointer, so that
the corresponding calls can be matched easily. Failed vfs_opendir calls
are logged as well, to get a more complete picture of which callbacks are
called.
2020-03-13 22:58:31 +00:00
rillig
518b6dae2f t_glob.c: use distinct names for test structures
Before, the structures and functions defined by the test used the same
prefix as the code to be tested. This made it difficult to draw a line
between these parts.
2020-03-13 21:44:25 +00:00
rillig
7bf961318e t_glob.c: move expected globbing result directly into the test cases
This makes the tests more self-contained. The example directory tree that
is common to all the tests is still defined elsewhere, but in the same
file. Setting up the example directory structure in each test would make
the tests even more independent and read.
2020-03-13 20:48:33 +00:00
martin
4c92faedaf Fix printf format 2020-03-13 19:17:27 +00:00
msaitoh
79d9ef08e7 Fix a bug that atphy(4) doesn't work with Attansic L2 rev. 1.
Reported by Rocky Hotas.

- On ASUS M2N-MX SE Plus (NVIDIA MCP61 with Attansic L2 rev. 1), changing
  debug port 0x29's value makes the next PHY read fail with error.  Read any
  register to ignore this problem if the PHY is Attansic L2 revision 1.
  I don't know if this problem is from L2 rev. 1 itself or from the
  combination because I have only one machine which has L2 rev. "1".
  At least, ASUS eee pc 900 (Attansic L2 rev. "2") has no this problem.
- Add comment. AR8021 document has no description about the power saving
  control register(debug port 0x29).
- Add comment. AR8031 document says the lower 14 bits are reserved and the
  default value is 0x36d0. Shouldn't we clear those bits?
- I have no document neither L1(F1) nor L2(F2), so I don't know whether the
  debug port access is correct or not.

Tested with the following machines:
- ASUS P5B SE,         L1 rev. 5,            age(4)
- ASUS K50IJ,          L1 rev. 9,            ale(4)
- ASUS eee pc 900,     L2 rev. 2,            lii(4)
- ASUS M2N-MX SE Plus, L2 rev. 1,            nfe(4)
- Intel DP55WB,        82578(AR8021 rev. 2), wm(4)
- Dell inspiron 14z,   AR0835 rev. 9,        alc(4)
2020-03-13 18:57:49 +00:00
christos
d3dde16c1a PR/55068: sc.dying: Fix printf formats:
- no %s/%p for kernel log
- 0x% -> %#
- always %j for kernel log
2020-03-13 18:17:40 +00:00
christos
94703ef0ad Re-enable the routing perm check now that the kernel has been fixed to return
valid information.
2020-03-13 16:38:45 +00:00
christos
8aaa9ad4fd Use the socket credentials that are established during the socket creation
instead of the current process credentials (which can change via
set{e,}{u,g}id(2)) and by passing the fd to a different process. This makes
the routing socket behave like other file descriptors. Proposed in tech-kern.
2020-03-13 16:37:12 +00:00
skrll
1031e0e133 Enhance the DIAGNOSTICs around pmap_grow_map 2020-03-13 16:25:19 +00:00
skrll
8789293567 Re-indent a function call. NFCI. 2020-03-13 16:16:29 +00:00
skrll
4adc09176c Oops... remove a stray <space> 2020-03-13 16:14:18 +00:00
skrll
5a3b242ac9 Fixup some comments 2020-03-13 16:12:06 +00:00
roy
733ddd3272 Note terminfo change 2020-03-13 15:21:32 +00:00
roy
aadfdb111b terminfo: promote numeric parameters from short to int
POSIX mandates implementations must support upto a short but may exceed it.
When NetBSD terminfo was implemented, no terminfo description used over
a short, but because ncurses has supported ints for some time, some now do.

Infact, such a terminfo description was imported where colour pairs for
screen-256color went up to 65536 which exposed a bug in the existing
implementation where it set to zero. Because the number might mean
something more than a range, we need to be able to store it accurately.

This requires a version bump because whilst the API hasn't changed thanks
to C int promotion, the ABI has. Also the underlying database structure
has changed as well - we now store the numeric paramter inside a uint32_t
field rather than a uint16_t one.
Whilst this change can still read the old style database, the old one
cannot read the new one and thus we now maintain the database as
terminfo2.cdb, leaving the old library and database alone so old programs
still work fine.

libcurses, libfrom, libmenu and libpanel have also been bumped to
accomoate this change.
2020-03-13 15:19:24 +00:00
is
ca70afd1bf Provide the (small) miniroot uncompressed, so that it can be used from
an AmigaOS without additional software to install NetBSD.
Closes PR port-amiga/45443
2020-03-13 10:01:07 +00:00
nisimura
d1ec24aa2f regen. 2020-03-13 07:43:14 +00:00
nisimura
e867896763 add ASMedia Technology 2020-03-13 07:42:26 +00:00
knakahara
ddd7ead0f8 Fix kern/55066. Pointed out and fixed by Chuck Zmudzinski, thanks.
ok'ed by ozaki-r@n.o
2020-03-13 06:55:35 +00:00
yamaguchi
075ba4b6a0 Use I40E_PFINT_ITRN registers to enable ITR for MSI-X interrupts 2020-03-13 05:49:52 +00:00
yamaguchi
644c397a80 Fix locking against myself at ixl_link_state_update()
called by ixl_get_link_status()

Though the timing to call the function is change,
there is no order to get link status at initialization.
2020-03-13 05:40:20 +00:00
msaitoh
96ad258de0 Improve error check:
- We check PHY register read error correctly (timeout and NFE_PHY_ERROR), so
  don't check NFE_PHY_DATA register's value with 0xffffffff or 0. At least,
  some registers may have 0.
- Check NFE_PHY_ERROR bit in nfe_miibus_writereg().
- Improve debug printf
2020-03-13 05:10:39 +00:00
msaitoh
20ab1f8621 Regen. 2020-03-13 04:44:58 +00:00
msaitoh
b556be9077 0x001374 is non-bitreversed value of Attansic OUI(0x00c82e).
Attansic/Atheros correctly uses ID1 and ID2 register, so delete all 0x001374
related entries.
2020-03-13 04:44:34 +00:00
msaitoh
ab00d4f830 - Add Quake Technologies and Aeluros' OUI
- Add Teranetics TN1010 10GBase-T PHY
2020-03-13 04:43:03 +00:00
thorpej
059d14e26e Use BUS_ADDR_{LO,HI}32(). 2020-03-13 04:08:07 +00:00
thorpej
444b282dc1 Allow len == 0 in bus_dmamap_sync().
XXX pullup-9
2020-03-13 03:49:39 +00:00
thorpej
2ea03700f0 Support MBUFTRACE. 2020-03-13 03:45:58 +00:00
roy
66ae8b28c2 curses: wrap the erase logic in a macro
Easier to use, it's in one place and now hopefully everyone is happy.

X
2020-03-13 02:57:26 +00:00
knakahara
e8a0215c37 reduce unnecessary reqid of NAT-T ipsecif(4), suggested by ohishi@IIJ. 2020-03-13 02:43:31 +00:00
rin
4f7c8158b1 Fix build without kbd at zstty, simplify. 2020-03-13 01:48:16 +00:00
thorpej
3393f6f7af Adjust the logic for enabling the 64-bit data path when a 64-bit slot
is detected:
- If DATA64_EN isn't set in CFG after a reset, don't use 64-bit data path
  at all (it's been disabled by an EEPROM setting).
- Provide a hook for force-disabling the 64-bit data path.
- Otherwise, perform the "known 64-bit cards" check as done previously
  (because dodgy-vendor-EEPROM-settings still applies).
2020-03-13 00:45:59 +00:00
thorpej
24e08f1874 - Add the D-Link products, identified by subsystem ID.
- On some variations, the internal PHY is ghosted at #0 and #1.  Work
  around this by ignoring PHY #0 accesses unless we don't find one, and
  then look for one there as a fall-back if we don't detect anything else.
- Fix access width when setting the TxDMAUrgentThresh register.
- Support MBUFTRACE.
2020-03-13 00:41:24 +00:00
jdolecek
87683a007c xbd backend not supporting cache flush is not an autoconfiguration error 2020-03-13 00:32:05 +00:00
thorpej
9d7b661e11 pmap_tlb_miss_lock needs to be globally visible. 2020-03-12 23:10:27 +00:00
thorpej
96893318bf If we're going to consult the MULTIPROCESSOR option, we should pull in
"opt_multiprocessor.h".
2020-03-12 23:09:59 +00:00
snj
a23fcf164a regen for xkeyboard-config 2.29 2020-03-12 21:55:31 +00:00
christos
7351464dcb Disable routing perms check for now. 2020-03-12 19:47:32 +00:00
christos
e3f8cbd510 move debugging code after the NULL check. 2020-03-12 19:36:33 +00:00
christos
86a9e77961 Handle fds that are pointing to routing sockets. If the fd has access to
make changes via the routing socket, grant full permission to make filter
changes.
2020-03-12 19:35:11 +00:00
martin
0c2085b2fd Fix typo 2020-03-12 18:08:54 +00:00
kamil
6a8b9e4b54 Reduce diff with upstream
Remove local no longer needed modifications.
2020-03-12 15:56:44 +00:00
roy
8a456320fe curses: use perror rather than err in initscr
libhack lacks err and perror is more portable.
2020-03-12 15:50:11 +00:00
pgoyette
e135ca8390 Add new netbsd32 quota modules to sets lists 2020-03-12 15:04:13 +00:00
pgoyette
1f582b1772 regen 2020-03-12 15:03:15 +00:00
pgoyette
4b5fc12da6 Split out the quota code from the rest of compat_netbsd32 module. This
allows loading of compat_netbsd32 on kernels that don't have ``options
QUOTA'' enabled.
2020-03-12 15:02:29 +00:00
roy
62c320f6cd terminfo: truncate numeric parameters to a short
Because that is what our API demands.
We should probably change to int when we next bump the API.
2020-03-12 14:52:04 +00:00
martin
77fd0cba8e bsize_torture: skip bigger page size tests if space in the database
directory is limited (numbers pulled out of thin air).
2020-03-12 14:10:59 +00:00