Jim Harris
08c29873bf
Ensure controller or namespace node name is specified before trying to
...
access it.
While here, also fix the identify usage message to show the -v and -x
parameters.
Sponsored by: Intel
MFC after: 3 days
2013-07-09 21:33:12 +00:00
Jim Harris
9c0871b260
Condense the output for displaying LBA formats.
...
Sponsored by: Intel
MFC after: 3 days
2013-07-09 21:31:58 +00:00
Jim Harris
2528d6a326
Send per-namespace logpage commands to the controller devnode, so they
...
are processed as admin commands, not I/O commands.
As part of this change, pull out the code for parsing a namespace node
string into a separate function, since it is used for both identify and
logpage commands.
Sponsored by: Intel
MFC after: 3 days
2013-07-09 21:31:21 +00:00
Jim Harris
bd6b0ac5be
Add comment explaining why CACHE_LINE_SIZE is defined in nvme_private.h
...
if not already defined elsewhere.
Requested by: attilio
MFC after: 3 days
2013-07-09 21:24:19 +00:00
Jim Harris
e9efbc134f
Update copyright dates.
...
MFC after: 3 days
2013-07-09 21:22:17 +00:00
Jim Harris
1cb022703e
Update nvme(4) and nvd(4) to reflect recent work and upcoming inclusion
...
in 9.2 release.
Sponsored by: Intel
MFC after: 3 days
2013-07-09 21:21:29 +00:00
Jim Harris
fdfa4d2d35
Try to read firmware image before prompting the user to confirm
...
firmware download. This correctly prints an error and exits for
an incorrect firmware image name before prompting the user to
confirm the download.
Sponsored by: Intel
MFC after: 3 days
2013-07-09 21:20:08 +00:00
Jim Harris
821ef73ca6
Incorporate feedback from bde@ based on r252672 changes:
...
* Use 0/1 instead of sysexits. Man pages are confusing on this topic,
but 0/1 is sufficient for nvmecontrol.
* Use err function family where possible instead of fprintf/exit.
* Fix some typing errors.
* Clean up some error message inconsistencies.
Sponsored by: Intel
Submitted by: bde (parts of firmware.c changes)
MFC after: 3 days
2013-07-09 21:14:15 +00:00
Jim Harris
ec526ea90b
Do not retry failed async event requests.
...
Sponsored by: Intel
MFC after: 3 days
2013-07-09 21:03:39 +00:00
Jim Harris
eb32b874f6
Add pci_enable_busmaster() and pci_disable_busmaster() calls in
...
nvme_attach() and nvme_detach() respectively.
Sponsored by: Intel
MFC after: 3 days
2013-07-09 21:02:45 +00:00
Konstantin Belousov
cc3d8c35f5
There are several code sequences like
...
vfs_busy(mp);
vfs_write_suspend(mp);
which are problematic if other thread starts unmount between two
calls. The unmount starts a write, while vfs_write_suspend() drain
writers. On the other hand, unmount drains busy references, causing
the deadlock.
Add a flag argument to vfs_write_suspend and require the callers of it
to specify VS_SKIP_UNMOUNT flag, when the call is performed not in the
mount path, i.e. the covered vnode is not locked. The suspension is
not attempted if VS_SKIP_UNMOUNT is specified and unmount is in
progress.
Reported and tested by: Andreas Longwitz <longwitz@incore.de>
Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks
2013-07-09 20:49:32 +00:00
Michael Tuexen
b71f585303
Fix the handling of SCTP_CURRENT_ASSOC and SCTP_ALL_ASSOC in
...
sctp_opt_info().
MFC after: 3 days
2013-07-09 19:12:47 +00:00
Michael Tuexen
7c9b649294
Fix a bug where SCTP_ENABLE_STREAM_RESET is not handled by
...
sctp_opt_info().
MFC after: 3 days
2013-07-09 19:04:19 +00:00
Warner Losh
5163701c22
Nearly a complete rewrite of elf.h.
...
Start with NetBSD's sys/arch/mips/include/elf_machdep.h 1.18. Remove the NetBSD
specific glue pieces (leaving mostly just relocation types).
Add in FreeBSD specific glue pieces from older versions of this file, and
move to the top of the file:
r237430 | kib | 2012-06-22 00:38:31 -0600 (Fri, 22 Jun 2012) | 5 lines
r232449 | jmallett | 2012-03-03 01:19:18 -0700 (Sat, 03 Mar 2012) | 18 lines
r217097 | kib | 2011-01-07 07:22:34 -0700 (Fri, 07 Jan 2011) | 3 lines
r211412 | kib | 2010-08-17 02:55:45 -0600 (Tue, 17 Aug 2010) | 7 lines
r202908 | gonzo | 2010-01-23 19:59:22 -0700 (Sat, 23 Jan 2010) | 4 lines
r195356 | imp | 2009-07-05 01:00:51 -0600 (Sun, 05 Jul 2009) | 6 lines
r195128 | gonzo | 2009-06-27 17:27:41 -0600 (Sat, 27 Jun 2009) | 4 lines
r197933 | kib | 2009-10-10 09:31:24 -0600 (Sat, 10 Oct 2009) | 9 lines
r189926 | kib | 2009-03-17 06:50:16 -0600 (Tue, 17 Mar 2009) | 9 lines
r186191 | imp | 2008-12-16 13:07:47 -0700 (Tue, 16 Dec 2008) | 7 lines
as closely as I can tell, the projects/mips branch merge was disruptive
to good history.
This should make merges easier in the future from NetBSD and vice versa.
2013-07-09 19:01:38 +00:00
Jung-uk Kim
835fbe0ae7
Remove redundant definitions to appease tinderbox.
2013-07-09 18:15:59 +00:00
Andrey V. Elsukov
9f0f032d10
Correct the size of allocated memory to store array of counters.
2013-07-09 15:20:46 +00:00
Andrey V. Elsukov
9bea6fd6c6
Correct CTASSERT condition.
2013-07-09 15:10:27 +00:00
Michael Tuexen
e5aeb83c42
Use IPSECSTAT_INC() and IPSEC6STAT_INC() macros for ipsec statistics
...
accounting.
X-MFC with: r252026
2013-07-09 14:38:26 +00:00
Pedro F. Giffuni
db20714a87
Reinstate the assertion from r253045.
...
UFS r232732 reverted the change as the real problem was to be fixed
at the syscall level.
Reported by: bde
2013-07-09 14:23:00 +00:00
Konstantin Belousov
56ce850bf8
Fix typo in comment.
...
MFC after: 3 days
2013-07-09 13:22:30 +00:00
Konstantin Belousov
89d02670ab
Use MSI for xhci(4), if supported.
...
Reviewed by: jhb
Tested by: dchagin
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
2013-07-09 12:55:01 +00:00
Joel Dahl
73294b268e
Make mandoc lint happy.
2013-07-09 12:25:44 +00:00
Steven Hartland
7f1c77876f
Added 4K QUIRK for OCZ Vertex 4 SSDs
...
Submitted by: Borja Marcos <borjam@sarenet.es>
MFC after: 2 days
2013-07-09 10:41:17 +00:00
Robert Millan
f19122edbf
Allow assert() to operate correctly when building userland code.
2013-07-09 10:27:26 +00:00
Andrey V. Elsukov
b40e2b6d14
Bump __FreeBSD_version to reflect changes in statistics structures.
2013-07-09 10:20:27 +00:00
Andrey V. Elsukov
db8c087944
Migrate structs ahstat, espstat, ipcompstat, ipipstat, pfkeystat,
...
ipsec4stat, ipsec6stat to PCPU counters.
2013-07-09 10:08:13 +00:00
Andrey V. Elsukov
69edf037d7
Migrate struct carpstats to PCPU counters.
2013-07-09 10:02:51 +00:00
Andrey V. Elsukov
2841260cd6
Migrate structs in6_ifstat and icmp6_ifstat to PCPU counters.
2013-07-09 09:59:46 +00:00
Andrey V. Elsukov
a786f67981
Migrate structs ip6stat, icmp6stat and rip6stat to PCPU counters.
2013-07-09 09:54:54 +00:00
Andrey V. Elsukov
5b7cb97c2b
Migrate structs arpstat, icmpstat, mrtstat, pimstat and udpstat to PCPU
...
counters.
2013-07-09 09:50:15 +00:00
Andrey V. Elsukov
5da0521fce
Use new macros to implement ipstat and tcpstat using PCPU counters.
...
Change interface of kread_counters() similar ot kread() in the netstat(1).
2013-07-09 09:43:03 +00:00
Andrey V. Elsukov
7daad711df
Add several macros to help migrate statistics structures to PCPU counters.
2013-07-09 09:37:21 +00:00
Andrey V. Elsukov
c80211e3cf
Prepare network statistics structures for migration to PCPU counters.
...
Use uint64_t as type for all fields of structures.
Changed structures: ahstat, arpstat, espstat, icmp6_ifstat, icmp6stat,
in6_ifstat, ip6stat, ipcompstat, ipipstat, ipsecstat, mrt6stat, mrtstat,
pfkeystat, pim6stat, pimstat, rip6stat, udpstat.
Discussed with: arch@
2013-07-09 09:32:06 +00:00
Andriy Gapon
37b8b2d4d8
dtrace/fasttrap: install hook functions only after all data is
...
initialized
Sponsored by: HybridCluster
MFC after: 7 days
2013-07-09 09:05:00 +00:00
Andriy Gapon
a01669ea96
audit_proc_coredump: check return value of audit_new
...
audit_new may return NULL if audit is disabled or suspended.
Sponsored by: HybridCluster
MFC after: 7 days
2013-07-09 09:03:01 +00:00
Andriy Gapon
d6fc869ebd
should_yield: protect from td_swvoltick being uninitialized or too stale
...
The distance between ticks and td_swvoltick should be calculated as
an unsigned number. Previously we could end up comparing a negative
number with hogticks in which case should_yield() would give incorrect
answer.
We should probably ensure that td_swvoltick is properly initialized.
Sponsored by: HybridCluster
MFC after: 5 days
2013-07-09 09:01:44 +00:00
Andriy Gapon
9a91031836
rc.d/zfs: pass -v option to zfs mount
...
this should make boot process more informative (and entertaining)
on systems with lots of zfs filesystems.
MFC after: 7 days
2013-07-09 08:59:39 +00:00
Andriy Gapon
4633a4c379
namecache sdt: freebsd doesn't support structured characters yet
...
:-)
MFC after: 7 days
2013-07-09 08:58:34 +00:00
Alexander Motin
122ecf1eca
Add ID for Marvell 88SE9215 AHCI SATA controller.
...
MFC after: 3 days
2013-07-09 08:49:17 +00:00
Andriy Gapon
9c1f50af0a
zfs: try to properly handle i/o errors in mappedread_sf
...
Unconditionally freeing a page is not good, especially if it is the page
that was wired by the caller. The checks are picked up from
kern_sendfile.
MFC after: 3 weeks
2013-07-09 08:47:11 +00:00
Andriy Gapon
2565edc426
amd64: use -mno-omit-leaf-frame-pointer in addition to -fno-omit-frame-pointer
...
... in kernel builds. This is to make behavior of clang consistent with
behavior of gcc.
MFC after: 2 weeks
2013-07-09 08:42:02 +00:00
Andriy Gapon
e4616f7bfb
default loader.conf: there is no need to load zpool.cache now
...
kernel does not need it for importing a root pool.
MFC after: 4 weeks
2013-07-09 08:40:05 +00:00
Andriy Gapon
78ed7a7855
zfs: load zpool.cache after a root fs is mounted
...
MFC after: 3 weeks
2013-07-09 08:37:42 +00:00
Alexander Motin
c4aea6be90
Add one more ID of Marvell SATA controller.
...
Submitted by: marck
MFC after: 3 days
2013-07-09 08:32:17 +00:00
Andriy Gapon
7407491bef
zfsboottest.sh: remove checks for things that are not strictly required
...
MFC after: 10 days
2013-07-09 08:30:31 +00:00
Andriy Gapon
9871c8ab5b
zfsboottest: sync with changes in zfs boot code
...
- spa status can not be called before spa init
- libzfs.h inclusion is now required
- fix alternative code for explicit root dataset lookup
MFC after: 10 days
2013-07-09 08:29:14 +00:00
Hiroki Sato
4e4f91b817
Update references.
2013-07-09 08:23:43 +00:00
Hiroki Sato
6b577129ab
Remove $swapfile and $geli_swap_flags.
2013-07-09 07:57:10 +00:00
Hiroki Sato
a1726af1c5
Document IPv6 support.
2013-07-09 07:55:47 +00:00
Hiroki Sato
33631085f8
- Add missing "static" keywords.
...
- Add a check for ifindex to if_indextoifinfo(). It returns NULL when
if_indextoname() fails.
MFC after: 3 days
2013-07-09 07:08:36 +00:00