Commit Graph

237117 Commits

Author SHA1 Message Date
maxv
02aebf5ed4 Remove KMEMSTATS. 2015-08-07 13:53:28 +00:00
ozaki-r
55140c1926 Use time_uptime instead of time_second to avoid time leaps
Some codes in sys/net* use time_second to manage time periods such as
cache expirations. However, time_second doesn't increase monotonically
and can leap by say settimeofday(2) according to time_second(9). We
should use time_uptime instead of it to avoid such time leaps.

This change replaces time_second with time_uptime. Additionally it
converts a time based on time_uptime to a time based on time_second
when the kernel passes the time to userland programs that expect
the latter, and vice versa.

Note that we shouldn't leak time_uptime to other hosts over the
netowrk. My investigation shows there is no such leak:
http://mail-index.netbsd.org/tech-net/2015/08/06/msg005332.html

Discussed on tech-kern and tech-net.
2015-08-07 08:11:33 +00:00
maxv
203a757f50 Remove KMEMSTATS 2015-08-07 07:34:56 +00:00
maxv
d22da207ed Remove the KMEMSTATS option. It no longer exists. 2015-08-07 07:29:33 +00:00
maxv
dbd12c7d3b Remove the malloc debug options. They no longer exist. 2015-08-07 07:14:43 +00:00
uebayasi
d3d021fcc6 o Don't include sys/sched.h. Scheduler-related operation is done by
sleepq(9) via SOBJ_SLEEPQ_SORTED.

o Include sys/lwp.h instead of sys/proc.h.
2015-08-07 06:22:12 +00:00
ozaki-r
17bcc6ffef Check MAC address of ARP caches additionally 2015-08-07 05:32:12 +00:00
ozaki-r
7284c53128 Use rump.ping6 instead of ping6 with rumphijack(3) 2015-08-07 00:50:12 +00:00
ozaki-r
96b5a23030 Add -DCRUNCHOPS
It's required because ping6 is now rump-ified.
2015-08-07 00:37:14 +00:00
ozaki-r
2a4e5e0f61 Introduce rump.ping6
We use ping6 frequently in ATF tests so let's have rump-ified one.
2015-08-06 14:45:54 +00:00
wiz
e272cbeff0 Use date of last distfile for am-utils.info date.
Update doc/3RDPARTY to mention this should be kept up-to-date during
imports.
Addresses PR 50118.
2015-08-06 10:22:34 +00:00
jmcneill
cb3aabba92 don't hold intr_lock while calling sdhc_execute_tuning 2015-08-06 09:30:55 +00:00
ozaki-r
1f31785d33 Add basic tests for IPv6 Address Lifetime Expiry 2015-08-06 08:23:14 +00:00
wiz
2cef9c1b6e Use Dv for NULL, remove dot at end of SEE ALSO 2015-08-06 06:56:00 +00:00
jnemeth
494e3bc90d PR/50125 - Jarle Greipsland -- Incorrect PID in /var/run/mountd.pid
Move call to pidfile() after daemon() so that correct (child) pid is
written to pidfile.
2015-08-05 23:23:47 +00:00
mrg
6bc0c567c3 don't copy the first netbsd32_export_args nexports times, but actually
advance the userland pointer each entry through the loop.  oops.
2015-08-05 23:17:06 +00:00
riastradh
c5389a31f5 KNF (Khange Not Functional) 2015-08-05 16:51:09 +00:00
riastradh
3aafbe4261 Terminate message with newline. 2015-08-05 16:37:27 +00:00
maxv
22674dbcd0 stupid comment, and make sure we are not executing a lib 2015-08-05 15:58:01 +00:00
jmcneill
03f2930ea5 support re-tuning modes 1 and 2 2015-08-05 12:28:47 +00:00
jmcneill
e5ced7d3cc Implement SDHC sampling clock tuning procedure. 2015-08-05 10:30:25 +00:00
jmcneill
a9e7784b4a Add support for sampling clock tuning, required for some UHS modes and
MMC HS200.
2015-08-05 10:29:37 +00:00
mlelstv
1c4105dcf6 lock around interrupt registration.
don't release lock around interrupt handlers, the code cannot
handle an unstable handler list.
2015-08-05 07:34:56 +00:00
mlelstv
b0f98a2aab lock more hardware accesses 2015-08-05 07:31:52 +00:00
mrg
366296f5a8 add a description about what was being attempted to failed writes messages. 2015-08-05 07:10:03 +00:00
mrg
b8ce913648 remove include of <dev/rcons/raster.h>, which is not necessary. 2015-08-05 07:02:20 +00:00
mrg
e2348ed97e allow MPVERBOSE to be set to a value that sets the "mp_verbose" variable. 2015-08-05 07:01:10 +00:00
mrg
cbf81001a0 document pci_intr_evcnt() 2015-08-05 07:00:34 +00:00
mrg
a0e3e3912d rename struct write_info as struct track_info, and the variable name 'wi'
as 'ti', as this info is useful for reading as well.
2015-08-05 06:54:39 +00:00
mrg
e8204d05c3 on QNX, use nbutil.h. 2015-08-05 06:50:44 +00:00
msaitoh
b3f7725cda Add some files. 2015-08-05 04:11:07 +00:00
msaitoh
619731ad48 Sync ixg(4) up to FreeBSD r279805 (or r280181) which include some bugfixes.
TODO:
 - Merge r280182 and newer. It's required to support X55x.
 - MSI/MSI-X support.
2015-08-05 04:08:44 +00:00
msaitoh
0d97816049 Fix error path in ixgbe_attach() and ixgbe_detatch() to prevent panic. 2015-08-05 03:42:11 +00:00
maxv
b36a7fd23d Some changes, to reduce a bit my tech-kern@ patch:
- move the P_PAX_ flags out of #ifdef PAX_ASLR in pax.h
 - add a generic pax_flags_active() function
 - fix a comment in exec_elf.c; interp is not static
 - KNF for return
 - rename pax_aslr() to pax_aslr_mmap()
 - rename pax_segvguard_cb() to pax_segvguard_cleanup_cb()
2015-08-04 18:28:09 +00:00
maxv
8a3764c147 Remove uvm_extern.h and exec.h (unused). 2015-08-04 12:44:04 +00:00
maxv
bc1457cb8c Small changes:
- remove the per-page stuff. It has been disabled for 10 years, and it is
   not implemented properly.
 - typo in comment
 - use KASSERT
2015-08-04 11:42:08 +00:00
dholland
ba69475758 Remove CreationDate from the header of output postscript. Also, feed -n
to gzip when compressing so it doesn't store the timestamp in the file
header. For MKREPRO, but unconditional as the information omitted isn't
particularly useful. PR 50116.
2015-08-04 08:36:14 +00:00
ozaki-r
2179c9b76f Check the output of ndp -d strictly 2015-08-04 07:43:25 +00:00
jmcneill
199ff6c06a Enable UHS-I support 2015-08-04 01:23:07 +00:00
jmcneill
8fd9a25d42 ODROID-C1 has a bug where the card is not power-cycled when the board is
reset. If you had previously switched to 1.8V signaling level, upon reboot
the card will still be in 1.8V mode and you cannot detect it with an S18R
request.

A card in 1.8V mode will report UHS modes though, so if the card reports
SDR50, DDR50, or SDR104 capabilities, and the previous S18R request failed
to switch, use this as an opportunity to re-enable UHS support in the
subsystem and host controller drivers.
2015-08-04 01:21:55 +00:00
jmcneill
45dc1de2bf instead of trying to handle cards already in 1.8V mode, request host controller to switch to 3.3V signaling before starting the init sequence 2015-08-04 00:32:05 +00:00
jmcneill
7494b158da Handle cards that are already in low voltage (1.8V) mode. Test correct
bit when determining the best SD transfer mode.
2015-08-03 19:17:35 +00:00
dholland
6ad7a6672a Simplify some leftover code and remove some old assertions.
Last year when I killed off some evil dirop-related macros, I added
these assertions because if the things they asserted weren't true we'd
be leaking vnodes. Well, it seems that the code at the time did leak
vnodes, so certain failure cases (e.g. mkdir with disk full) would
assert. Nobody apparently tripped on this in the past fourteen months,
until I broke balloc so it always failed (unrelatedly) while working
on some LFS64 changes.

However, the vnode leak has since been removed by hannken@ as part of
the vnode cache changes, so the assertions are now superfluous;
instead, just make sure *vpp gets nulled on failure, and don't worry
about whether or not VU_DIROP is set as it shouldn't matter any more.

XXX: there's still a lot of gratuitous pointer aliasing in here that
should be tidied away.
2015-08-03 17:33:54 +00:00
jmcneill
fa305bc80c set SDHC_FLAG_POLL_CARD_DET when we have a card detect pin 2015-08-03 12:11:52 +00:00
jmcneill
7adf6ea00e Add SDHC_FLAG_POLL_CARD_DET flag which lets the bus glue request polling
instead of standard SDHC card insert / detach events.
2015-08-03 12:11:36 +00:00
jmcneill
192a77dde3 clear SMF_UHS_MODE flag before enabling card 2015-08-03 12:10:29 +00:00
jmcneill
748dbb5104 fix SDMMC_DEBUG build 2015-08-03 11:24:17 +00:00
jmcneill
6fec206d1e DDR50 and SDR104 don't seem to be stable here, so disable them 2015-08-03 10:27:32 +00:00
jmcneill
4c1760c2b4 Print the selected transfer mode if known. 2015-08-03 10:09:08 +00:00
jmcneill
9350eba507 Add support for DDR50 transfer modes. 2015-08-03 10:08:51 +00:00