Michael Tuexen
2566e071ec
Honor sysctl for TTL.
...
MFC after: 3 days
2012-06-02 21:22:26 +00:00
Michael Tuexen
962cef4089
Don't request data from the IPv6 layer, which is not used.
...
MFC after: 3 days
2012-06-02 20:53:23 +00:00
Marius Strobl
ae5d8757bf
Add missing prototypes. While at it, sort them alphabetically.
...
MFC after: 3 days
2012-06-02 20:47:00 +00:00
Marius Strobl
f3a4392048
Remove nitems() now that it lives in <sys/param.h> since r236486.
2012-06-02 20:00:52 +00:00
Marius Strobl
47f4a4dc9a
Take advantage of nitems().
...
MFC after: 3 days
2012-06-02 19:41:28 +00:00
Konstantin Belousov
d1b07fd498
Fix typo [1]. Use commas to separate flag printouts, in style with
...
other parts of function.
Submitted by: bf [1]
MFC after: 1 week
2012-06-02 19:39:12 +00:00
Marius Strobl
cbb000304c
Add nitems(), a macro for determining the number of elements in a
...
statically-allocated array.
Obtained from: OpenBSD (in principle)
MFC after: 3 days
2012-06-02 19:30:49 +00:00
Konstantin Belousov
705de7c19e
Update the print mask for decoding b_flags. Add print masks for
...
b_vflags and b_xflags_t and print them as well.
MFC after: 1 week
2012-06-02 18:44:40 +00:00
Konstantin Belousov
fa9f322df9
Use plain store for atomic_store_rel on x86, instead of implicitly
...
locked xchg instruction. IA32 memory model guarantees that store has
release semantic, since stores cannot pass loads or stores.
Reviewed by: bde, jhb
Tested by: pho
MFC after: 2 weeks
2012-06-02 18:10:16 +00:00
Michael Tuexen
021416fb85
Remove an unused parameter.
...
MFC after: 3 days
2012-06-02 13:13:38 +00:00
Hans Petter Selasky
bb57146269
Add appropriate checks for ic_bsschan being set to IEEE80211_CHAN_ANYC in
...
some of the USB WLAN drivers. This fixes a panic when using monitor mode.
MFC after: 1 week
Submitted by: PseudoCylon
2012-06-02 09:10:51 +00:00
Alexander Motin
b9c473b2ed
Rewrite enabling NCQ for SATA devices in a way more alike to SCSI TCQ.
...
This allows to control it with `camcontrol negotiate adaX -T (en|dis)able`
on the fly, same as for SCSI devices.
Sponsored by: iXsystems, Inc.
2012-06-02 08:29:07 +00:00
Matt Jacob
e2873b76a6
Clean up and complete the incomplete deferred enable code.
...
Make the default role NONE if target mode is selected. This
allows ctl(8) to switch to/from target mode via knob settings.
If we default to role 'none', this causes a reset of the
24XX f/w which then causes initiators to wake up and notice
when we come online.
Reviewed by: kdm
MFC after: 2 weeks
Sponsored by: Spectralogic
2012-06-01 23:29:48 +00:00
Matt Jacob
5a1ae35dd1
Print FC PortID as a hex number. This makes it easy to
...
figure out domain, etc..
Zero ATIO and INOTify allocations. It makes for much
less guesswork when looking at the structure and
seeing 'deadc0de' present.
Reviewed by: kdm
MFC after: 2 weeks
Sponsored by: Spectralogic
2012-06-01 23:24:56 +00:00
Jung-uk Kim
9ad569771a
Consistently use ACPI_SUCCESS() and ACPI_FAILURE() macros wherever possible.
2012-06-01 21:33:33 +00:00
Jung-uk Kim
db08ae007d
Tidy up code clutter in SMP case a bit. No functional change.
2012-06-01 19:19:04 +00:00
Eitan Adler
0a4a2b8e62
Revert r236380
...
PR: kern/166780
Requested by: many
Approved by: cperciva (implicit)
2012-06-01 18:58:50 +00:00
Jung-uk Kim
108705d043
Call AcpiSetFirmwareWakingVector() with interrupt disabled for consistency.
2012-06-01 18:18:48 +00:00
Jung-uk Kim
d3638dc4de
Improve style(9) in the previous commit.
2012-06-01 17:07:52 +00:00
Jung-uk Kim
4d46ef51dd
Execute AcpiLeaveSleepStatePrep() for S1 and reduce code duplication.
...
MFC after: 3 days
2012-06-01 17:00:33 +00:00
Hans Petter Selasky
d9073c1e6a
Improve support for detaching kernel drivers on a per interface basis.
...
MFC after: 1 week
2012-06-01 16:30:54 +00:00
John Baldwin
03b0ca8b28
Commit a portion of 233708 I missed earlier and don't include the
...
definition of igb_start() and igb_start_locked() (nor set if_start in
the ifnet) when igb(4) uses if_transmit.
2012-06-01 15:52:41 +00:00
John Baldwin
370b70dc03
Remove unnecessary initializations. The BSS of boot2 is in fact
...
zero'd when boot2 begins execution by the _start() routine in btxcsu.S.
MFC after: 1 week
2012-06-01 15:48:24 +00:00
John Baldwin
b871e6613b
Extend VERBOSE_SYSINIT to also print out the name of variables passed
...
to SYSINIT routines if they can be resolved via symbol look up in DDB.
To avoid false positives, only honor a name if the symbol resolves
exactly to the pointer value (no offset).
MFC after: 1 week
2012-06-01 15:42:37 +00:00
Mitsuru IWASAKI
f0a101b7e2
Call AcpiLeaveSleepStatePrep() in interrupt disabled context
...
(described in ACPICA source code).
- Move intr_disable() and intr_restore() from acpi_wakeup.c to acpi.c
and call AcpiLeaveSleepStatePrep() in interrupt disabled context.
- Add acpi_wakeup_machdep() to execute wakeup MD procedures and call
it twice in interrupt disabled/enabled context (ia64 version is
just dummy).
- Rename wakeup_cpus variable in acpi_sleep_machdep() to suspcpus in
order to be shared by acpi_sleep_machdep() and acpi_wakeup_machdep().
- Move identity mapping related code to acpi_install_wakeup_handler()
(i386 version) for preparation of x86/acpica/acpi_wakeup.c
(MFC candidate).
Reviewed by: jkim@
MFC after: 2 days
2012-06-01 15:26:32 +00:00
Bjoern A. Zeeb
5fa2656e55
Make TCP LRO work properly with VIMAGE kernels rather than just panicing.
...
There's no VIMAGE context set there yet as this is before if_ethersubr.c.
MFC after: 3 days
X-MFC with: r235981
2012-06-01 11:42:50 +00:00
Alexander Motin
581b2e78cf
Use AC_GETDEV_CHANGED async to notify ada driver about DMA and NCQ status
...
change. Now that allows switching between PIO and DMA modes on the fly.
2012-06-01 09:32:37 +00:00
Michael Tuexen
11ef11db47
Small cleanups. No functional change.
...
MFC after: 3 days
2012-06-01 08:26:50 +00:00
Adrian Chadd
81c2214dda
Add a missing #include, required for IEEE80211_DEBUG.
2012-06-01 06:20:39 +00:00
Eitan Adler
71ee98c97c
Add sysctl to query amount of swap space free
...
PR: kern/166780
Submitted by: Radim Kolar <hsn@sendmail.cz>
Approved by: cperciva
MFC after: 1 week
2012-06-01 04:42:52 +00:00
Eitan Adler
d45ce511db
Adding missing dependancies for loading hptiop(4), hptmv(4) and isp(4) as modules.
...
PR: kern/166239
Submitted by: Pavel Timofeev <timp87@gmail.com>
Discussed on: -stable, -scsi
Reviewed by: scottl
No objection from: mjacob
Approved by: cperciva
MFC after: 3 days
2012-06-01 04:34:49 +00:00
Alan Cox
d85fbe8a91
Eliminate code duplication in free_pv_entry() and pmap_remove_pages() by
...
introducing free_pv_chunk().
2012-06-01 04:26:50 +00:00
Eitan Adler
829ac2c3e0
Fix warning generated by clang;
...
warning: equality comparison with extraneous parentheses
[-Wparentheses-equality]
Reported by: arundel
Reviewed by: gnn
Approved by: cperciva
MFC after: 3 days
2012-06-01 04:23:20 +00:00
Eitan Adler
b9f0348640
Add characters mapping for codepages used in Germany.
...
(not verified by me to be accurate)
PR: bin/163847
Submitted by: Gabor Fischer <Gabor.Fischer@gmx.net>
Reviewed by: bp
Approved by: cperciva
MFC after: 3 weeks
2012-06-01 03:59:08 +00:00
Alan Cox
2865094134
pmap_alloc_vhpt() doesn't need the pages that it allocates to be mapped
...
into the kernel map, so vm_page_alloc_contig() can be used in place of
contigmalloc().
Reviewed by: marcel
2012-06-01 03:56:12 +00:00
Warner Losh
b33fdab5e0
Revert debug and other immature code accidentally committed in r236372.
2012-06-01 03:00:36 +00:00
Warner Losh
b8b0747b3c
Initialize the clocks before we call cninit() so that the serial
...
console so initialized will work upon return from cninit. While this
is the very next line, other platforms setup all this stuff before
calling cninit. Also, initialize the SDRAM base register in the inner
block in at91_ramsize().
2012-06-01 02:55:42 +00:00
Pyun YongHyeon
198b3ad636
Remove unnecessary device_printfs.
...
Pointed out by: marius
2012-05-31 23:56:10 +00:00
Ermal Luçi
0ad5ef9c8f
Correct table counter functionality to not panic.
...
This was caused by not proper initialization of necessary parameters.
PR: 168200
Reviewed by: bz@, glebius@
MFC after: 1 week
2012-05-31 20:10:05 +00:00
Pawel Jakub Dawidek
5edfa04b94
Regenerate after r236361.
...
MFC after: 3 days
2012-05-31 19:34:53 +00:00
Pawel Jakub Dawidek
6ba7e8178a
Add missing system calls.
...
MFC after: 3 days
2012-05-31 19:32:37 +00:00
Pawel Jakub Dawidek
243f67938e
There is no rmdirat system call. Weird, I know.
...
MFC after: 3 days
2012-05-31 19:31:28 +00:00
Warner Losh
a241707e7a
Unlock in the error path to prevent a lock leak.
...
PR: 162174
Submitted by: Ian Lepore
MFC after: 2 weeks
2012-05-31 17:27:05 +00:00
Michael Tuexen
a6cff10f2a
Seperate SCTP checksum offloading for IPv4 and IPv6.
...
While there: remove some trainling whitespaces.
MFC after: 3 days
X-MFC with: 236170
2012-05-30 20:56:07 +00:00
Marius Strobl
749a52693c
Try to finally get the point in time at which bge_add_sysctls() is called
...
right; it needs to be called before bge_can_use_msi() but in turn requires
bge_flags to be properly set.
Submitted by: yongari
MFC after: 3 days
2012-05-30 20:04:07 +00:00
Maksim Yevmenkin
c784f9e5eb
When we return deprecated addresses, we need to reference them.
...
Reviewed by: bz, scottl
MFC after: 3 days
2012-05-30 20:02:39 +00:00
Rafal Jaworowski
691df1a1f8
Panic openly if we cannot retrieve memory information from the device tree.
...
This is a critical condition and can lead to all sorts of misterious hangs if
not handled.
Obtained from: Semihalf
Also reported by: thompsa
2012-05-30 18:05:48 +00:00
Rafal Jaworowski
aa6bc7dc29
Extract vendor specific Book-E pieces into separate files and have a common
...
skeleton (maybe we should kobj-tize this one day).
Note the PPC4xx bit is not connected to the build yet.
Obtained from: AppliedMicro, Semihalf.
2012-05-30 17:34:40 +00:00
Sean Bruno
87e7271687
Cosmetic nit. If a configured volume has no label, don't emit an empty
...
string for the name during probe. Simply indicate that it has no label.
Submitted by: bhaga@
MFC after: 3 days
2012-05-30 17:07:50 +00:00
Konstantin Belousov
b569050a78
Enable vn_io_fault() lock avoidance for UFS.
...
Tested by: pho
MFC after: 2 months
2012-05-30 16:45:41 +00:00