Commit Graph

213969 Commits

Author SHA1 Message Date
riastradh
8db30059ca No, we can't elide the fs-wide rename lock for same-directory rename.
rename("a/b", "a/c") and rename("a/c/x", "a/b/y") will deadlock.

Darn.
2012-10-19 02:07:22 +00:00
para
fc7d559bb7 bring comment up to reality
kmem_map => kmem_arena
2012-10-18 19:33:38 +00:00
msaitoh
eeea54cd91 Update device list 2012-10-18 17:27:36 +00:00
apb
22c6226401 Print the value of MAKECONF. 2012-10-18 16:15:29 +00:00
riastradh
4797828821 Back out accidental commit of errno kludge for rmdir(".") &c.
Solaris returns EEXIST, whereas we want to return ENOTEMPTY (POSIX
allows both), but this got included in an unrelated commit and should
be separated into a common commit for other related error code fixes.
2012-10-18 14:29:44 +00:00
riastradh
2111fc7126 Take a first whack at making zfs permissions work.
zfs_access uses secpolicy_vnode_access, so it makes no sense for the
latter to call VOP_ACCESS!

Everything seems to return EACCES instead of EPERM, probably because
that's what kauth returns.  This should be fixed, but that may
require some nontrivial surgery to zfs's calls to secpolicy_*, which
is where kauth gets involved.

This commit imports some code from illumos to implement the routine
secpolicy_vnode_setattr.  This shouldn't be outside dist/, but for
now it is expedient to do so.  We ought to fix that, along with all
the other CDDL code outside dist/, when we next import a newer
version of zfs.
2012-10-18 14:22:57 +00:00
msaitoh
b57799371b - Indent.
- Fix some product names or device names.
2012-10-18 10:41:44 +00:00
msaitoh
5fae10faa1 Add some deivces. 2012-10-18 09:41:24 +00:00
apb
3ba5a7a66d tzcode2012g and tzdata202g have been released. We have updated
to tzdata2012g.

Also fix the upstream Maintainer; Paul Eggert has been doing this
job for several months.
2012-10-18 08:59:00 +00:00
apb
010fc2e85f zoneinfo: Import tzdata2012g. [apb 20121018] 2012-10-18 08:57:26 +00:00
apb
9335fb9deb Merge tzdata2012g from ftp://ftp.iana.org/tz/releases/tzdata2012g.tar.gz
Changes from tzdata2012f to tzdata2012g:

    Samoa fall 2012 and later.  (Thanks to Nicholas Pereira
    and Robert Elz.)

    Palestine fall 2012.  (Thanks to Steffen Thorsen.)
2012-10-18 08:50:32 +00:00
apb
f9685b5d74 Import tzdata2012g from ftp://ftp.iana.org/tz/releases/tzdata2012g.tar.gz
Changes from tzdata2012f to tzdata2012g:

    Samoa fall 2012 and later.  (Thanks to Nicholas Pereira
    and Robert Elz.)

    Palestine fall 2012.  (Thanks to Steffen Thorsen.)

In addition to those changes, the tzdata distribution now includes
a copy of the Makefile from the tzcode distribution.  NetBSD's
src/share/zoneinfo/Makefile is completely different from the Makefile
that is now included in the tzdata distribution.
2012-10-18 08:47:25 +00:00
msaitoh
8ac15b216d Style fix. No functional change. 2012-10-18 08:22:37 +00:00
matt
f791be4d83 Rearrange some code. 2012-10-18 02:36:37 +00:00
matt
fb28547815 Make an ASSERT more "flexible". 2012-10-18 02:34:34 +00:00
matt
ef2ef30bcc Fix an errant define. 2012-10-17 23:40:42 +00:00
dyoung
818ff29c73 Quiet down autoconfiguration by changing some printf() calls to
aprint_normal() calls.
2012-10-17 21:35:38 +00:00
matt
61f99d32b1 Add a missing mutex exit. 2012-10-17 20:45:49 +00:00
skrll
035e5d28e8 Fix two off-by-one loops. Saves a whole two pages. 2012-10-17 20:44:48 +00:00
matt
7b7cfaa723 Make sure the L2 cache is enabled
Restrict the PCIe interface to negotiate at Gen1 speeds.
2012-10-17 20:22:23 +00:00
drochner
16e95cd0dc avoid dummy structure definition, include a system header instead,
looks just cleaner
2012-10-17 20:22:15 +00:00
matt
4ef99a678e Add PMAP_NEEDS_ALLOC_POOLPAGE 2012-10-17 20:21:26 +00:00
matt
a79730286b If there is more than 256MB of ram, add the first 256MB into a separate
VM freelist and specifiy that PMAP_ALLOC_POOLPAGE allocate using that freelist.
2012-10-17 20:20:54 +00:00
drochner
035939be53 put binary compatibility support for the old AMD-only CPU microcode
update API inside COMPAT_60
2012-10-17 20:19:55 +00:00
matt
07e4706e38 Add a coherent bus dma tag which marks the first 256MB as having coherent
dma (but only for PCIe and ethernet).  Make the ethernet and PCIe attachments
use this tag instead of the default non-coherent one.
2012-10-17 20:18:55 +00:00
matt
463cf12d17 Add per-segment and per-ragne flag (to store _BUS_DMAMAP_COHERENT).
Use the per-range flag to set the per-segment flag.
This allows bus_dma to skip flushing for known coherent memory regions.
2012-10-17 20:17:18 +00:00
drochner
bd4999fa18 defopt COMPAT_60, it is already being used 2012-10-17 20:16:59 +00:00
matt
3dda49cbd6 Add PMAP_MAP_POOLPAGE / PMAP_UNMAP_POOLPAGE if PMAP_NEED_ALLOC_POOLPAGE is
defined.
2012-10-17 20:15:41 +00:00
matt
cf7ccb1e86 Add a few more DSBs before flushing cache lines. 2012-10-17 18:55:43 +00:00
matt
f88bd6b7b9 Change the semantics of the boot_physmem array to select a freelist to use
with uvm_page_physload.  Reduces duplication of work.
2012-10-17 18:53:45 +00:00
matt
60064e74d2 Add a PMAP_NEEDS_ALLOC_POOLPAGE / PMAP_ALLOC_POOLPAGE hook so systems can
allocate pool pages from a specific VM freelist.
2012-10-17 18:52:15 +00:00
jnemeth
c8dac53719 note NetBSD 6.0 release 2012-10-17 18:30:33 +00:00
matt
742e8c1b10 Need to set pmap_needs_pte_sync before calling PTE_SYNC 2012-10-17 18:29:10 +00:00
msaitoh
e8d66652c1 Fix a bug that kernel panics when the system get a packet while calling
mvgbe_stop (via ifconfig down).
2012-10-17 18:12:59 +00:00
dyoung
a433f1351e Correct spelling: entrie -> entry. 2012-10-17 17:48:48 +00:00
mlelstv
f50847fa5b Don't rely on TS_BUSY to determine wether there is a buffer
available. Instead handle a possible buffer shortage.
Also aquire lock when modifying t_state.
2012-10-17 17:05:15 +00:00
matt
0464864ace When setting pmap_needs_pte_sync to 1 be sure to sync pte that caused
the issue.
2012-10-17 16:16:23 +00:00
drochner
513c97eaed recognize the P1GB and RDTSCP which were AMD-only on Intel HW too 2012-10-17 16:13:01 +00:00
drochner
e61202360d fix trivial typo in warning msg 2012-10-17 16:09:03 +00:00
apb
5c7419e70f Add commented out "#options COMPAT_60" to all kernel configuration files
that already had commented out "#options COMPAT_50".
2012-10-17 14:49:40 +00:00
apb
4ebc1e1ca3 Add "no options COMPAT_60" to all kernel configuration files
that already had "no options COMPAT_50".
2012-10-17 14:48:41 +00:00
apb
f3929b106b Add "options COMPAT_60" to all kernel configuration files
that already had "options COMPAT_50".
2012-10-17 14:48:07 +00:00
msaitoh
1bf68f95d9 Add code to modify interrupt coalescing with sysctl.
- both TX side an RX side.
 - different setting for each port
 - TX side is hw.mvgbe.mvgbe*.ipginttx
 - RX side is hw.mvgbe.mvgbe*.ipgintrx
 - The default value is 768.
 - The lowest value is 0
 - For highest value, 0x3777 is used for V1, and 0xffff is used for V2.
2012-10-16 19:49:41 +00:00
msaitoh
31b7118873 Change to uintmax_t again. 2012-10-16 19:40:59 +00:00
msaitoh
618eddcf83 Return value of __BIT() and __BITS() is not uint32_t but uint64_t. 2012-10-16 17:39:35 +00:00
pooka
f78e8a8efa * avoid problems if the platform calls readlink() from dlsym()
* alias __read_chk() to read() on Linux (technically, though,
  it should call host __read_chk() instead of read())
2012-10-16 12:56:10 +00:00
rkujawa
d4d45f67fd Fix fallout from recent ed driver replacement. Makes amigappc build again. 2012-10-16 12:31:57 +00:00
apb
5adbdf645c Make i386/ramdisks/common/list.ramdisk identical to
amd64/ramdisks/common/list.ramdisk.

Previously, the amd64 list.ramdisk used the small version of gzip from
distrib/utils/x_gzip, while the i386 list.ramdisk used the full version
of gzip built from usr.bin/gzip, and also used extra libraries needed to
make that work.  Now, they both use the small version.

The only other difference was in the order of some PROG lines.
2012-10-16 08:28:13 +00:00
apb
5d76c7eb78 In distrib/*/ramdisks/common/Makefile.ramdisk, allow the caller to
pre-define the LISTS variable if they do not want it to include
${.CURDIR}/lists.  This opens the possibility of making some of the
many distrib/*/ramdisks/*/lists files shared in the future.

XXX: Some of the differences between these files seem to be unnecessary.
2012-10-16 08:23:20 +00:00
apb
8d127e2f7d Add distrib/common/Makefile.minirootkmod. Apart from comments and the
conversion of some constants to variables, this is identical to the code
that was previously present in both distrib/amd64/kmod/Makefile and
distrib/i386/kmod/Makefile.

Change distrib/amd64/kmod/Makefile and distrib/i386/kmod/Makefile to just
set some variables and .include "../../common/Makefile.minirootkmod".
2012-10-16 08:19:36 +00:00