Commit Graph

32261 Commits

Author SHA1 Message Date
pgoyette 58ba35d88f If module_autoload() returns an error, just return that value instead
of overwriting with ENODEV.

Thanks, christos!
2015-05-05 00:28:25 +00:00
pgoyette ed4e2530a5 If autoload of the subcomponent module fails, don't try to call its
open routine.  Just return an error.

Hopefully this will fix the recently reported issues with atf tests
running on xen guest.
2015-05-04 23:50:36 +00:00
jmcneill 1073e5cac0 For Tegra K1, set IE_RX_TIMEOUT (bit 4) in IER register. RX_TIMEOUT occurs
when data has been sitting in the Rx FIFO for more than 4 character times
without being read because there is not enough data to reach the trigger
level. With this change, enable FIFO usage for Tegra UARTs.
2015-05-04 22:59:36 +00:00
ryo 89eada3bfc PR/49819: Roberto E. Vargas Caballero: Add support for SystemBase SB16C1050 PCI serial card 2015-05-04 21:21:38 +00:00
ryo 51f34f06b3 regen 2015-05-04 21:18:34 +00:00
ryo f950c1d946 add SystemBase SB16C1050 UARTs 2015-05-04 21:18:22 +00:00
macallan 36f9ce90f2 fix pasto, use SET() and CLR()
thanks jmcneill@
2015-05-04 20:25:48 +00:00
ozaki-r fc9ba4a144 Fix configuration offset when MSI is enabled
24 is correct.
2015-05-04 14:08:57 +00:00
ozaki-r 4cc1fb05ea Add NULL check for TAILQ_FIRST 2015-05-04 14:02:13 +00:00
msaitoh 2d647e75c6 For 82576 and newer devices, the PBA register is deleted. Don't write PBA
for those chips. Also change the calculation of RX packet buffer size in
new way.
2015-05-04 10:10:42 +00:00
msaitoh 7e09092336 Modify (E)ITR, TIDV and TADV related code:
- ITR regiser are not documented in 82575 and newer devices'
   manual. The documets say "E"ITR(0) has no alias (to old ITR).
   But in reality, the alias really exists. When EITR(0) is
   written, the old ITR is changed. Before this commit, ITR was
   written after EITR was written. It causes that EITR's value
   (450) was overwritten with old ITR(1500). Set sc_itr first
   and use the value and don't set ITR if a device >= 82575
   (which has MSI-X multi queue function).
 - Older than 82540 devices have no TADV register.
 - 82575 and newer devices have no TIDV and TADV registers.
2015-05-04 08:46:09 +00:00
msaitoh 215bd2a43d Set ICH9 and ICH10's PBA size to 14K if the RX buffer size is
more than 4096. Almost the Same as other OSes
2015-05-04 06:51:08 +00:00
msaitoh e3ceee8fd3 Remove WMREG_TQSA_LO and WMREG_TQSA_HIGH. Those registers
are not described in documents and other OS's drivers don't
access it.
(I have no the first chip(82542)'s document. Those registers
might be described in the document).
2015-05-04 06:44:13 +00:00
pgoyette a53699f70e Teach a couple of i2cbus controllers how to rescan. This enables
{,un}loading and {at,de}taching of the iic(4) driver/module at a
later time. Tested piixpm on QEMU, and ichsmb on my live server.
2015-05-03 22:51:11 +00:00
jmcneill c82d0cfd23 print some useful information at attach time 2015-05-03 22:37:27 +00:00
jmcneill ecb2b6ae4b add COM_TYPE_TEGRA 2015-05-03 17:22:54 +00:00
joerg 432881ad82 Make sure callout is halted, not just stopped, before freeing memory. 2015-05-03 15:07:12 +00:00
hsuenaga 4e3bd6105a add new ethernet driver mvxpe for recent MARVELL's SoC after ARMADA/XP.
this driver supports 'counter mode', and is disabled by default.

ARMADA SoC family has new ethernet controller acceleration mode called
'enhanced mode' or 'counter mode.' it seems that backward compatibility mode
used by if_mvgbe is still working, but the specification of the old mode
is completely disappeared from SoC's reference manual.

I tested the driver using MIRABOX(ARMADA/370).
2015-05-03 14:38:09 +00:00
jmcneill e974ccfaa2 Add SDHC_FLAG_SINGLE_POWER_WRITE flag, that tells the driver to update
the SDHC_POWER_CTL register with a single write rather than in multiple
steps. Required for Tegra K1 SDHC.
2015-05-03 11:46:25 +00:00
msaitoh 560d01237b regen. 2015-05-03 06:29:48 +00:00
msaitoh 38b43c2941 Add some NVIDIA devices. 2015-05-03 06:29:21 +00:00
matt 99f92b6303 Deal with 64-bit BARs 2015-05-03 00:04:06 +00:00
jmcneill 3497e015bb support SDHC 4.0, allow for overriding clk base frequency 2015-05-02 12:10:24 +00:00
mlelstv 5f99165065 Merge dk_intf and dkdriver interfaces.
Merge common disk driver functionality in ld.c with dksubr.c.
Adjust the two previous users of dk_intf (cgd and xbd) to
the changes.

bump kernel version to 7.99.14
2015-05-02 08:00:08 +00:00
mlelstv af081b6f30 correctly return -1 on error in dk_size 2015-05-01 12:30:28 +00:00
msaitoh 38c1b17ca1 Add some workaround code for BGE_ASICREV_BCM5784 from Linux. 2015-05-01 03:42:15 +00:00
msaitoh 988569ba91 Remove PCI_PRODUCT_BROADCOM_BCM5724 and PCI_PRODUCT_BROADCOM_BCM5750M.
These devices have not released to public. Same as OpenBSD and Linux.
2015-05-01 03:26:43 +00:00
nat 68235452a4 Forgot RCS ID header. 2015-05-01 02:35:16 +00:00
nat 05dec8ff13 Include splash with genfb.
splash.o is only included with options SPLASHSCREEN.
splash_image.o target moved to Makefile.kern.inc.

This commit was approved by matt@
2015-05-01 02:00:41 +00:00
msaitoh 36903b682e Use another firmware command in bge_asf_driver_up(). Same as Linux.
This change fixes a bug that watchdog timeout occurs every 25-30 minutes
on HP ML110 G6 reported enami@ in PR#49657.
2015-04-30 16:09:06 +00:00
christos 087f193c39 Fix more memory leaks by changing the transmit routines to always free the
mbuf to send.
2015-04-30 16:01:51 +00:00
msaitoh 4f1ae97bea - BGE_CHIPID_BCM5784_A1 is not 0x5784100 but 0x5784001. Only dmesg output
is affected.
- Add BGE_CHIPREV_5784_AX and BGE_CHIPID_BCM5784_B0.
2015-04-30 15:48:46 +00:00
nat 65a1cf7fa9 Added a new option for embedding a splash screen into kernel.
Add: options SPLASHSCREEN
     makeoptions SPLASHSCREEN_IMAGE="path/to/image"
to your config file.  So far it will work on amd64 and RPI/RPI2.

This commit was with ideas, help, and OK from jmcneill@.
2015-04-30 13:46:47 +00:00
nonaka 242c5369e5 Added control debugging output via sysctl. 2015-04-29 03:35:09 +00:00
pgoyette 9de73f0bfc At suggestion from riastradh@ ...
Remove auto_configure(9) goop from sysmon device.  It does make things
a bit cleaner, and also reduces source code by about 10%.

Tested via QEMU with no obvious side-effects.
2015-04-29 03:27:27 +00:00
nonaka b789114cab Use MSI instead of legacy INTx, if available.
should fix PR/49663.
2015-04-28 15:38:02 +00:00
martin 7bd37d6abf sysmon_task_queue_sched needs to RUN_ONCE(tq_preinit) as well, it can
be called from sysmon_envsys_register() early.
2015-04-28 11:58:49 +00:00
christos f7924c012b fix mbuf leak on failure (Brainy) 2015-04-27 17:38:01 +00:00
christos 6ff99d8719 free mbuf on failure (Brainy) 2015-04-27 17:36:41 +00:00
pgoyette 1f3e12e9e0 Replace a home-grown run-once implementation with the real RUN_ONCE() 2015-04-27 07:51:28 +00:00
knakahara 8ec1d9400a add x86 MD MSI/MSI-X support code. 2015-04-27 07:03:57 +00:00
mrg aaabec45f9 two changes to radeon drm firmware:
- only install it by default on x86, set new MKRADEONFIRMWARE variable
- install in /libdata, so that separate /usr systems work

(this still doesn't solve PR#49811, which possibly could be handled by
having them being a kernel module loaded by /boot.)
2015-04-26 21:37:22 +00:00
mlelstv 6f00c789e1 Use C99-style initializers for struct dkdriver. 2015-04-26 15:15:19 +00:00
maxv b3625a90bc Not to add even more confusion in an already overcomplicated subsystem,
remove the FreeBSD code. This code is likely to be outdated, and Veriexec
is in all cases not available on FreeBSD.
2015-04-26 09:45:40 +00:00
maxv a8a116a51a KNF 2015-04-26 09:38:01 +00:00
pgoyette 9d05de2fd5 Remove another debug printf() that snuck in. 2015-04-25 23:55:23 +00:00
pgoyette eb659e1350 Handle early initialization requirements - thanks martin@ and others 2015-04-25 23:40:09 +00:00
pgoyette 66a3d0a3c8 Correctly check return status when registering with pmf 2015-04-25 23:40:08 +00:00
pgoyette cdddf9f1e9 Fix typo - thanks, riz@ 2015-04-25 23:16:37 +00:00
pgoyette 768d9729b5 Register the sysmon pseudo-device with power management framework so we
can properly suspend the system.

Thanks, mrg, for pointing this out.
2015-04-25 22:46:31 +00:00