Commit Graph

236888 Commits

Author SHA1 Message Date
dholland 95a8d28c27 Fix assorted 64 -> 32 truncations in lfs. Also, some minor tidyups and
corrections in passing.
2015-08-02 18:08:12 +00:00
dholland e12e41530f Allow superblock accessors that widen 32-bit disk fields to 64-bit
memory values.
2015-08-02 17:57:27 +00:00
dholland af0d133055 Fix bug: for format version 1, the superblock "size" field is measured
in blocks instead of frags, so use lfs_blkstofrags to correct it.

This code was instead multiplying by the block size divided by
DEV_BSIZE to get the number of disk blocks rather than the number of
frags. (I gather that originally these were the same, but they're not
necessarily any more.)
2015-08-02 17:56:24 +00:00
jmcneill df3fcab6a5 When halting a channel, abort the current DMA CB and reset the channel
before stopping DMA.
2015-08-02 16:46:12 +00:00
wiz 282efd00b8 Fix two typos. 2015-08-02 12:19:12 +00:00
mlelstv 0f0a1013e5 count collisions, count and debug print more errors. 2015-08-02 11:55:28 +00:00
mlelstv 6297339c02 use dk_openlock when accessing openmask. 2015-08-02 11:40:41 +00:00
jmcneill bf94bade59 bus_dma_segment_t ds_addr is bus_addr_t not paddr_t (another case of it) 2015-08-02 11:28:01 +00:00
jmcneill c753669c8d bus_dma_segment_t ds_addr is bus_addr_t not paddr_t 2015-08-02 11:26:21 +00:00
jmcneill f9279be4bd install jetsontk1 boot script as boot.scr 2015-08-02 11:11:32 +00:00
jmcneill 799ebb3ae1 Install hdmicecio.h 2015-08-02 11:09:05 +00:00
maxv 9cd6cd69f5 Wrong logic. Here, userland can control the size and the data copied, which
basically means it can overflow kernel memory.

ok martin@ christos@
2015-08-02 07:37:57 +00:00
mlelstv 5ad98aacf2 fix diskerr message, it needs the driver name, not the device unit name. 2015-08-02 07:25:40 +00:00
mlelstv b296682ed1 Be more verbose about error conditions. 2015-08-02 07:14:10 +00:00
mlelstv f89cb33206 correct (the commented out) calculation of bus frequency. 2015-08-02 07:07:02 +00:00
manu 3a71cbe970 Do not VFS_SYNC before VFS_UNMOUNT on force unmount
VFS_SYNC does not consider whether we are performing a force unmount or not,
and therefore it can wait for a while if the filesytstem is misbehaving.
Removing VFS_SYNC before VFS_UNMOUNT on forced unmount fixes the problem.

This should not cause harm as the VFS_SYNC seems just useless.
As noted by Chuck Silvers in
http://mail-index.netbsd.org/tech-kern/2015/07/13/msg019156.html
- Nothing seems to prevent vnodes from getting dirty again after VFS_SYNC call.
- Filesystems do flush data through vflush() in VFS_UNMOUNT anyway.

As a consequence, the VFS_SYNC call in do_unmount() could probably be
completely removed. But since such a change is quite dangerous, we just
remove it in the case of forced unmounts, which are situations where
the risk of data loss is known to the operator.
2015-08-02 03:29:22 +00:00
christos 429d474275 remove reference to SCCS which is not supported anymore.
XXX: pullup-7
2015-08-02 03:19:02 +00:00
jmcneill bfaf326c74 enable eMMC 2015-08-02 00:24:45 +00:00
jmcneill 4c59c4959f return MMC_OCR_HCS bit from host_ocr if the controller supports high-speed mode 2015-08-02 00:24:24 +00:00
jmcneill 57d12b8828 add hdmicec 2015-08-01 21:30:09 +00:00
jmcneill ded9bc704e Enable tegracec and hdmicec 2015-08-01 21:20:46 +00:00
jmcneill ab82ac0e7d Add driver for Tegra HDMI CEC controller. 2015-08-01 21:20:11 +00:00
jmcneill 72fc9317eb Add an API for HDMI CEC devices. HDMI Consumer Electronics Control (CEC) is
a protocol that provides high-level control functions between CEC-capable
connected devices.
2015-08-01 21:19:24 +00:00
skrll 9c4bc51ae1 Re-enable cpus [123] now that bcm2835_intr.c is fixed with rev 1.11/ 2015-08-01 16:18:47 +00:00
skrll 5be1b5ad5a Call the correct ipi handlers for IPI_AST and IPI_KPREEMPT 2015-08-01 14:18:00 +00:00
tsutsui bd35314409 Pull upstream fix to avoid kernel panic on starting X on Intel 855GM machines.
Reported in PR kern/49875, and ok'ed to commit by riastradh@.

Should be pulled up to netbsd-7.
2015-08-01 13:42:32 +00:00
jmcneill c33ccff2e1 use a larger (64KB) block size, this helps SD card performance 2015-08-01 10:05:51 +00:00
jmcneill 54fb23f641 mount root partition with noatime 2015-08-01 10:04:50 +00:00
jmcneill e3283cc16e Align partitions to 64MB for the benefit of SD cards > 32GB 2015-08-01 10:04:06 +00:00
jmcneill 70b7b04013 extract physical address from HDMI VDSB and make it available as the "physical-address" device property 2015-07-31 23:07:14 +00:00
jmcneill cd42d5bc1f Simplify sdhc(4) locking 2015-07-31 15:00:07 +00:00
kamil 0c4bdb7434 Do as POSIX says, define the timespec structure in <signal.h>
Extract struct timespec from <sys/time.h> and put into a separate header.

This solution is minimally invasive.
2015-07-31 12:51:32 +00:00
ozaki-r 25711fd317 Return 0 explicitly to avoid unexpected failures when $DEBUG=false 2015-07-31 10:16:36 +00:00
maxv cbb6f393d8 Small changes:
- rename pax_aslr_init() to pax_aslr_init_vm()
 - remove the PAX_ flags (unused)
 - fix a comment in pax.h
2015-07-31 07:37:17 +00:00
ozaki-r 14e1104e9a Reduce abuse of global variables 2015-07-31 04:02:40 +00:00
ozaki-r 6abe86b9fd Add tests of cache overwriting 2015-07-31 02:39:12 +00:00
ozaki-r bf665d2f84 Add tests for temp option 2015-07-31 02:35:09 +00:00
ozaki-r 5d6a850962 Remove remaining debug code 2015-07-31 00:23:54 +00:00
ozaki-r 5e8861aca5 Fix cleanup; halt all running rump_servers 2015-07-31 00:22:44 +00:00
christos e139f8ac36 from bitrieg:
Substitution commands might contain a newline in the replacement pattern
(escaped with a backslash before it), causing patch's understanding of
the state the ed child process is in to diverge from reality. This can
lead to patch unwillingly feeding '!' (execute shell command) lines to
ed. Finding out how to do this is left as an exercise to the reader.

XXX: pullup-7
2015-07-30 21:47:51 +00:00
kamil e7c28288e4 Remove unneeded comment about <stdbool.h> in the user-land
Suggested by <christos>
2015-07-30 21:38:53 +00:00
kamil 23bf431f92 Deduplicate stdbool.h definitions
Reviewed by <christos>
2015-07-30 21:31:15 +00:00
tsutsui f2142f537b Revert untested and unnecessary change in previous rev 1.36.
Our autobuild doesn't always reflect the latest fixes.
2015-07-30 15:29:52 +00:00
maxv c0b150f033 Revamp PaX:
- don't confuse between ELF flags and proc flags. Introduce the proc-
   specific P_PAX_ASLR, P_PAX_MPROTECT and P_PAX_GUARD flags.
 - introduce pax_setup_elf_flags(), which takes as argument the PaX flag
   of the ELF PaX note section, and which sets the proc flag as
   appropriate. Also introduce a couple of other functions used for that
   purpose.
 - modify pax_aslr_active(), and all the other similar pieces of code, so
   that it checks the proc flag directly, without extra ELF computation

In addition to making PaX clearer, the combination of these changes fixes
the following bug: if a non-PaX'ed process is launched, and then someone
sets security.pax.{aslr,mprotect,segvguard}.global=1, the process becomes
PaX'ed while its address space hasn't been randomized, which is not likely
to be a good idea.

Now, only the proc flag is checked at runtime, which means the process's
PaX status won't be altered during the execution.

Also:
 - declare PAX_DPRINTF, makes it more readable
 - fix a typo in exec_elf.h
2015-07-30 15:28:18 +00:00
jmcneill 9f711c8f1a print "platform DMA" instead of "SDMA" when using external DMA engine 2015-07-30 15:03:14 +00:00
christos 02379201cd Add VMSWAP 2015-07-30 10:26:14 +00:00
christos 6fc0455eae include decls for _MODULE 2015-07-30 10:25:49 +00:00
maxv 70f013c0c3 Lock before calling uvm_swap_stats(). Otherwise a race condition could
corrupt memory.
2015-07-30 09:55:57 +00:00
ozaki-r 7a175f4063 Add tests for arp -a option 2015-07-30 08:41:18 +00:00
maxv 3478485fe5 Don't forget to unlock the LWP.
ok rmind@
2015-07-30 08:11:44 +00:00