Commit Graph

33873 Commits

Author SHA1 Message Date
kiyohara
e741f78902 Add flags SDHC_FLAG_NO_AUTO_STOP and SDHC_FLAG_NO_BUSY_INTR. 2017-01-07 15:05:08 +00:00
kiyohara
322a2dc1e7 Don't access SDHC_HOST_CTL_VERSION, if iosize less than this. 2017-01-07 15:00:38 +00:00
kiyohara
8ad0b04215 Support retry when error. like wd(4). 2017-01-07 14:49:53 +00:00
kiyohara
463bc92121 Support Marvell Dove. Use irq array. Dove's irqs not sequencial.
And remove debug printf().
2017-01-07 14:44:26 +00:00
kiyohara
8f245e3b7f Remove unused function. 2017-01-07 14:36:51 +00:00
kiyohara
f342ff86d4 Fix macro MVXORE_CHAN2BASE(). The XORE has 2 channels per port. 2017-01-07 14:32:32 +00:00
kiyohara
e51c7e73b4 Add tags for AXI_CS[01]. 2017-01-07 14:26:37 +00:00
kiyohara
ba749f27a4 Support Marvell Dove. 2017-01-07 14:24:27 +00:00
kiyohara
89ea2da7c5 Change MVSPI_SIZE to 0x80 instead of 0x50. 2017-01-07 14:19:45 +00:00
pgoyette
d020b0ddde Implement a common spkr_detach() function and call it from the
attachment-specific detach functions.  Returns EBUSY if the
device instance is busy, based on whether or not a sc->sc_inbuf
is allocated.  The buffer is malloc()d at spkropen time, and is
free()d in spkrclose().

Now we can actually implement the MODULE_CMD_FINI command and
unload the driver at will.

Addresses my PR kern/51785
2017-01-06 09:32:08 +00:00
msaitoh
be2192bb96 - Set IPV6EXDIS bit in RFCTL register because of an Errata on 82575 and newer
devices.
- Update comment in wm_init_rss().
2017-01-06 08:05:26 +00:00
mlelstv
65353cac77 Fix memory leak.
Found by maxv@
2017-01-05 16:35:33 +00:00
msaitoh
b8d736fb1d Fix INIT_DEBUGOUT() messages. 2017-01-05 05:53:23 +00:00
christos
dd655a14e8 PR/51776: David Binderman: Remove unused variable. 2017-01-04 15:51:41 +00:00
christos
4778b6dcdc PR/51775: David Binderman: Remove unused variable. 2017-01-04 15:50:34 +00:00
christos
fb87ff0608 PR/51774: David Binderman: Remove unused variable. 2017-01-04 15:49:28 +00:00
knakahara
f1b4006c55 fix typo. pointed out by msaitoh@n.o. 2017-01-04 04:43:08 +00:00
nonaka
08620666eb Export some 802.11 IE manipulate functions. 2017-01-04 03:05:24 +00:00
jakllsch
23d65d6d1d The SiI3124 was implemented at a time when the ATA/ACS2
DATA SET MANAGEMENT/TRIM command did not exist.  As such, the (presumably
immutable) lookup table in the chip does not know that this command
indicates a data write to follow.  Use the PRB Protocol Override
functionality to tell the chip the protocol we need for this command.

For PR kern/51756.
2017-01-03 01:30:15 +00:00
alnsn
8cbe6fd080 Replace numeric block sizes with symbolic names,
No functional change. Requested by mrg a couple of months ago.
2017-01-02 14:28:29 +00:00
nat
e1b0b40711 Audio passes the atf test again. 2017-01-02 00:16:45 +00:00
leot
5fd90284d7 Do not access `sc' directly via the CSR_{READ,WRITE}_[124] macros.
Patch provided by Amol via PR kern/51708.

ok <Riastradh>
2016-12-29 19:22:51 +00:00
nat
3cf9d4208d Add slinear encoding. Tested by flxd@
Addresses PR kern/51703: audio fails to attach if hardware can't do CD
quality.

Autoconfiguration of hw paramaters to be done later.  For now it is
possibile to set 8 bits precision 8000 Hz 1 channel via sysctls.
2016-12-28 10:04:53 +00:00
msaitoh
60a932db74 Fix a bug that hw.ixgN.wol_enable=0 doesn't work correctly. Clear the WUC
and WUFC register if wol_enable is 0. ixgbe_setup_low_power_mode() calls
ixgbe_stop() and it resets the chip. The reset change WUC and WUFC registers to
the default, so clearing WUC and WUFC should be done after ixgbe_stop().
2016-12-28 09:29:35 +00:00
ozaki-r
bf5ce79b5b Protect ec_multi* with mutex
The data can be accessed from sysctl, ioctl, interface watchdog
(if_slowtimo) and interrupt handlers. We need to protect the data against
parallel accesses from them.

Currently the mutex is applied to some drivers, we need to apply it to all
drivers in the future.

Note that the mutex is adaptive one for ease of implementation but some
drivers access the data in interrupt context so we cannot apply the mutex
to every drivers as is. We have two options: one is to replace the mutex
with a spin one, which requires some additional works (see
ether_multicast_sysctl), and the other is to modify the drivers to access
the data not in interrupt context somehow.
2016-12-28 07:32:16 +00:00
msaitoh
7d8e034047 Allow 0 as the defalut of hw.ixgN.advertise_speed sysctl. 2016-12-28 07:05:11 +00:00
msaitoh
7af0b522f1 The Power Controller Control bit (PCIE_SLCSR_PCC) in the Slot Control & Status
Register is 0 on power on. Print "Power <on|off>" instead of "<on|off>".
2016-12-28 06:57:27 +00:00
nat
dbf402601d Audio device won't fail if one cannot set the common/hw format.
Audio won't be able to be opened though unless a common format is
configured properly.

This would alow the user to change the common format via sysctls
until hardware is configured.

Simplification of several functions.
2016-12-28 02:44:59 +00:00
msaitoh
ff7969646e Regen. 2016-12-27 14:10:26 +00:00
msaitoh
7388a4a98a Add some Radeon devices. Mainly taken from OpenBSD. 2016-12-27 14:09:57 +00:00
msaitoh
abbeecd1e6 Fix DEBUGFUNC() output in ixgbe_disable_rx_x550(). 2016-12-27 11:17:51 +00:00
msaitoh
de7d43c176 Fix flow control setting sysctl. I don't know why disabling autonego when
the flow control parameter is changed. Now the ixgN.fc sysctl works as
expected.
2016-12-27 10:01:39 +00:00
msaitoh
a60e71cc66 Fix PASID Control Register. 2016-12-27 03:51:55 +00:00
msaitoh
416fb8dc73 0x10cb is not 82801H but 82801I. No functional change (The macro name
was changed but the vaule is the same).
2016-12-26 07:55:00 +00:00
msaitoh
0ff895f1bd Regen. 2016-12-26 07:53:31 +00:00
msaitoh
ec914f9d81 0x10cb is not 82801H(ICH8) but 82801I(ICH9). 2016-12-26 07:53:03 +00:00
nat
160e0571ac Add mulaw to audio device for auconv_set_converter.
This should address PR kern/51707.
2016-12-25 23:23:46 +00:00
nat
b0396bf5c6 Fix suspend/resume logic. 2016-12-25 22:44:24 +00:00
mlelstv
015f574c37 Lock correctly around CV calls.
Fix handling of session termination.
Enable MPSAFE processing for scsipi.
2016-12-25 06:55:28 +00:00
mlelstv
3ecac0ea7c add missing mutex/cv cleanup to error paths. 2016-12-24 16:39:55 +00:00
skrll
eeb9bdf31e Call cv_broadcast with interlock held as per condvar(9) 2016-12-24 11:51:33 +00:00
macallan
a8b2582939 avoid accessing condition variables which belong to a scsibus before actually
attaching the scsibus
now my SS20 boots again
2016-12-24 06:04:50 +00:00
nat
264caa09e9 Simplify. Handle draining of vc[0] differently.
Addresses PR kern/51710 audio playback works only once.
2016-12-23 21:01:00 +00:00
kamil
b837326c3b The cgd(4) module requires des and blowfish symbols
This has been exposed with the MODULAR kernel.

kobj_checksyms, 979: [cgd]: linker error: symbol `BF_set_key' not found
kobj_checksyms, 979: [cgd]: linker error: symbol `des_key_sched' not found
kobj_checksyms, 979: [cgd]: linker error: symbol `des_ede3_cbc_encrypt' not found
WARNING: module error: unable to affix module `cgd', error 8

Reviewed by <riastradh>
2016-12-22 20:57:33 +00:00
mlelstv
8a03ce05bd Fix race condition in dksubr, where a dk_start from another thread
or interrupt was ignored while the queue was processed.

Bump kernel revision for changed dk_softc.
2016-12-22 13:42:14 +00:00
mlelstv
b4b1e3daf4 fix comment. request_sense is called unlocked. 2016-12-22 11:19:21 +00:00
mlelstv
6081459242 really keep request queued after resource shortage 2016-12-21 21:28:30 +00:00
maya
8d575a4325 Less magic. 0x00000c00 is equal to PCIE_LCAP_ASPM. 2016-12-21 11:56:55 +00:00
mlelstv
b17cec7cbc cdrestart takes a softc parameter, not a periph. 2016-12-21 00:56:30 +00:00
skrll
fe0abb10ef KNF
No functional change.
2016-12-18 15:32:36 +00:00