28288 Commits

Author SHA1 Message Date
bryanv
f9a98c5bdd MFC r273515, r274055, r274063, r274215, r274065, r274502:
Add VirtIO console driver.
2014-11-29 22:48:40 +00:00
hselasky
0bfa661315 MFC r274020:
Reduce boot verbosity.
2014-11-29 05:07:24 +00:00
np
bed3ddc442 MFC r274724:
cxgbe(4): figure out the max payload size and save it for later.
2014-11-26 00:44:48 +00:00
dumbbell
efacd3be3e vt(4): Support syscons' SC_HISTORY_SIZE to configure history size
Therefore, to set histry size to 2000 lines, add the following line to
your kernel configuration file:
    options SC_HISTORY_SIZE=2000

The default history remains at 500 lines.

MFC of:		r274117
2014-11-22 17:47:03 +00:00
dumbbell
2b470c5d75 drm: Take vt(4) default mode from loader tunables
By default, vt(4) gets the "preferred mode" from DRM, when using a DRM
video driver as its backend. The preferred mode is usually the native
screen resolution.

Now, if this mode isn't appropriate, a user can use loader tunables to
select a mode. The tunables are read in the following order:
    1. kern.vt.fb.modes.$connector_name
    2. kern.vt.fb.default_mode

For example, to set a 1024x768 mode, no matter the connector:
    kern.vt.fb.default_mode="1024x768"

To set a 800x600 mode only on the laptop builtin screen:
    kern.vt.fb.modes.LVDS-1="800x600"

Beside r274031, this MFC includes:

r274049:
  drm: When reading connector mode tunables, list connectors

  ... and their associated tunables. This gives a way to know the list of
  available connectors, no matter the driver.

  The problem is that xrandr(1) can list connectors but it uses a
  different naming.

r274050:
  vt(4): Document kern.vt.fb.default_mode and kern.vt.fb.modes.*

  Those tunables are used to set a specific mode in vt(4) instead of using
  the default mode.

  Differential Revision:	https://reviews.freebsd.org/D1098
  Reviewed by:	ak@, emaste@, kwm@

r274051:
  vt(4): Improve the description of kern.vt.fb.modes.$connector

  Differential Revision:	https://reviews.freebsd.org/D1098
  Submitted by:	emaste@

r274053:
  vt(4): Start new sentences on their own lines

  Submitted by:	brueffer@

MFC of:		r274031, r274049, r274050, r274051, r274053
2014-11-22 17:37:51 +00:00
dumbbell
395d6697ce drm: Lower priority of three messages related to invalid EDID
Like in r259717, the prority goes from "error" to "debug" to avoid
spamming logs when the connectors are polled.

PR:		194770
Submitted by:	Larry Rosenman <ler@lerctr.org>
MFC of:		r273962, r274587
2014-11-22 17:19:39 +00:00
dumbbell
53ec9d6c8c vt(4): Fix keyboard allocation when kbdmux(4) isn't used
The problem was that only the kbdmux keyboard index was saved in
vd->vd_keyboard. This index is -1 when kbdmux isn't used. In this
case, the keyboard was correctly allocated, but the returned index was
discarded.

PR:		194718
MFC of:		r273973
2014-11-22 17:10:57 +00:00
dumbbell
67ea82037a vt(4): Adjust the cursor position after changing the window size
A new terminal_set_cursor() is added: it wraps the existing
teken_set_cursor() function.

In vtbuf_grow(), the cursor position is adjusted at the end of the
function. In vt_change_font(), we call terminal_set_cursor() just after
terminal_set_winsize_blank(), while the terminal is mute.

This fixes a bug where, after loading a kernel video driver which
increases the terminal window size, the cursor remains at its old
position, in other words, in the middle of the display content.

PR:		194421
MFC of:		r273932
2014-11-22 16:55:55 +00:00
hselasky
7a8284851c MFC r274227:
Add new USB IDs.
2014-11-19 08:48:59 +00:00
kib
df514ceb8d MFC r274379:
Initial attachment of the agp(4) to Haswell IGP.
2014-11-18 13:05:24 +00:00
kib
1367a6b528 MFC r274378:
Attach agp_i810 to non-VGA display class.
2014-11-18 13:03:18 +00:00
kib
1ce4957ffd MFC r274377:
On 965 and higher, map GTT as write-combining.
2014-11-18 13:01:41 +00:00
np
70603ae477 MFC r274351:
cxgbe(4): adjust PMRX and PMTX parameters.
2014-11-17 07:20:03 +00:00
trasz
93accf3999 MFC r273164:
When removing an iSCSI session, check whether all conditions match,
not if any of them matches.  This fixes "iscsictl -Rn" removing
unrelated sessions.

PR:		194034
Sponsored by:	The FreeBSD Foundation
2014-11-15 05:50:14 +00:00
np
99c3f1d7e4 MFC r271328:
Whitespace nit.
2014-11-12 20:37:23 +00:00
np
2215311d59 MFC r273615:
cxgbe(4): bump up PF4's share of some global resources.

This increases the size of the per-port RSS slice and also allows the
driver to use a larger number of tx and rx queues.

S2curity:
2014-11-12 20:24:14 +00:00
np
575489dd36 MFC r273280:
cxgb(4): reset the PHY if it generates an interrupt for no apparent reason.
2014-11-12 20:07:43 +00:00
np
21e5b9212b MFC r272190:
cxgbe(4): explicitly set various if_hw_tso* values.
2014-11-12 19:53:35 +00:00
mav
e4a81f9ddf MFC r272936:
Update isp_tgt_map and send new arrival notification if target that departed
earlier has returned.  Previously that code worked only once, confusing CTL.
2014-11-11 17:13:03 +00:00
jfv
33ec143df3 MFC Intel I40E drivers: r274205,r274218, and r274228
The MFC was pushed early as it fixes a panic in the
	exiting driver of 10.1 that Intel discovered in validation.
2014-11-10 23:56:06 +00:00
markj
0413ac300f MFC r273236:
Use pmc_destroy_pmc_descriptor() to actually free the pmc, which is
consistent with pmc_destroy_owner_descriptor(). Also be sure to destroy
PMCs if a process exits or execs without explicitly releasing them.
2014-11-06 01:30:13 +00:00
hselasky
fa183f0174 MFC r271946 and r272595:
Improve transmit sending offload, TSO, algorithm in general. This
change allows all HCAs from Mellanox Technologies to function properly
when TSO is enabled. See r271946 and r272595 for more details about
this commit.

Sponsored by:	Mellanox Technologies
2014-11-03 12:38:29 +00:00
kib
2a026f5937 MFC r273728:
Add a method to iicbus to request IIC_M_NOSTOP behaviour for multibyte
transfers to be default.
2014-11-03 10:33:01 +00:00
rpaulo
ce9598bb33 MFC 273598 273602 273607 273613 273647:
Userland HPET support.
2014-11-03 03:17:58 +00:00
rpaulo
4ca13eed64 MFC r273551:
puc(4): add an entry for the Oxford Semiconductor OXPCIe952 1S1P
  card.

  Submitted by:	Alex Burlyga <alex.burlyga.ietf at gmail.com>
2014-11-01 05:45:05 +00:00
dumbbell
272ad10c66 vt(4): Add PIO_VFONT_DEFAULT ioctl to restore the default builtin font
To restore the default font using vidcontrol(1), use the "-f" flag
without an argument:
    vidcontrol -f < /dev/ttyv0

PR:		193910
Differential Revision:	https://reviews.freebsd.org/D971
Submitted by:	Marcin Cieslak <saper@saper.info>
Reviewed by:	ray@, emaste@
Approved by:	ray@
MFC of:		r273544
2014-10-31 23:10:58 +00:00
hselasky
a916deff5e MFC 258028:
Unbreak build of RSU module.
Use the real product name for Edimax rsu(4) id.
2014-10-31 10:07:56 +00:00
hselasky
67fc427da2 MFC r264801, r264802, r264934, r273181, r273216 and r273252:
Add more USB IDs.
2014-10-31 07:55:42 +00:00
hselasky
6154f3f498 MFC r269575, r269576 and r269578:
- Add a second Huawei SCSI eject command as USB mode switch config files
sometimes use one or the other. Maybe newer Huawei modems switched.
- Return USB_ERR_INVAL if the eject method is not known.

PR:		145319
2014-10-31 07:51:05 +00:00
hselasky
5c349cb3d1 MFC r264923:
Remove device type from the uftdi_devs table, enhance the jtag-skip feature.
2014-10-31 07:41:28 +00:00
hselasky
8118b15cf0 MFC r269569:
Remove unused defines.
Fix some device_printf's that were missing '\n' at the end or had
spelling errors.

PR:		145319
2014-10-31 07:38:49 +00:00
hselasky
07b5c0c04d MFC r271159, r271168 and r271680:
Add USB LED driver for the Dream Cheeky WebMail Notifier.
2014-10-31 07:33:56 +00:00
hselasky
1d17f744c7 MFC r273733, r273740 and r273773:
The SYSCTL data pointers can come from userspace and must not be
directly accessed. Although this will work on some platforms, it can
throw an exception if the pointer is invalid and then panic the kernel.

Add a missing SYSCTL_IN() of "SCTP_BASE_STATS" structure.

Sponsored by:	Mellanox Technologies
2014-10-30 08:04:48 +00:00
yongari
5b786ca5f9 MFC r273359:
It seems multicast filtering of RTL8168F does not work.  Workaround
  the silicon bug by accepting any multicast packets.

  PR:	193488
2014-10-28 00:43:00 +00:00
hselasky
1f41d295fb MFC r263710, r273377, r273378, r273423 and r273455:
- De-vnet hash sizes and hash masks.
- Fix multiple issues related to arguments passed to SYSCTL macros.

Sponsored by:	Mellanox Technologies
2014-10-27 14:38:00 +00:00
hselasky
14fa4d63cd MFC r272733, r272807 and r272822:
Add support for disabling USB enumeration or USB port power
in general or on selected USB HUBs.
2014-10-27 09:07:30 +00:00
mav
9fbf4aa76f MFC r273328: Add another PCI ID for JMB368 PATA controller. 2014-10-27 07:20:39 +00:00
ian
d16952c51d MFC r273282: Fail to probe on simplebus nodes that lack a "ranges" property. 2014-10-26 04:10:17 +00:00
ian
81b5013966 MFC r272334, r273004:
Return the actual baud rate programmed in the hardware rather than 115200.
  This allows the "3wire" entry in /etc/ttys (with no speed specified) to work.

  Use the FIFOs in the imx5/imx6 uart hardware instead of interrupting on
  each byte sent or received.
2014-10-26 04:08:34 +00:00
ian
8526d66c63 MFC r272109, r272181:
Replace multiple nearly-identical copies of code to walk through an FDT
  node's interrupts=<...> property creating resource list entries with a
  single common implementation.  This change makes ofw_bus_intr_to_rl() the
  one true copy of that code and removes the copies of it from other places.

  This also adds handling of the interrupts-extended property.
2014-10-26 04:01:57 +00:00
ian
dfd00b89e1 MFC 271546:
Create an interface and support routines for drivers that handle IO pin
  multiplexing and configuration based on FDT data.
2014-10-26 03:41:27 +00:00
ian
d41355d9bf MFC r270957, r270959:
Create an interface for drivers to enable or disable their clocks as listed
  in the clocks=<...> properties of their FDT data.
2014-10-26 02:19:03 +00:00
ian
af8e847649 MFC r270953, r270958, r270960, r271190, r271199, r271202:
Create a mechanism for looking up a device_t associated with an ofw/fdt
  xref handle, and for registering that association.  Also use the same data
  for faster translations between node and xref handles.

  Add OF_xref_from_device() so that there's no need to have an intermediate
  call to ofw_bus_get_node() to lookup info that's already in the xreflist.

  When registering an association between a device and an xref phandle, create
  an entry in the xref list if one doesn't already exist for the given handle.
2014-10-26 01:58:18 +00:00
ian
1c8cde378e MFC r270945:
Rename OF_xref_phandle() to OF_node_from_xref() and add a new function
that provides the inverse translation, OF_xref_from_node().
2014-10-26 01:30:46 +00:00
ian
682138b2b9 MFC r268633, r271046:
Fixes and enhancements for the if_cgem driver...

  - miibus fixes as suggested by Yonghyeon Pyun.
  - enable VLAN MTU support.
  - fix a few WITNESS complaints in cgem_attach().
  - have cgem_attach() properly init the ifnet struct before calling
    mii_attach() to fix panic when using e1000phy.
  - fix ethernet address changing.
  - fix transmit queue overflow handling.
  - tweak receive queue handling to reduce receive overflows.
  - bring out MAC statistic counters to sysctls.
  - add e1000phy to config file.
  - implement receive hang work-around described in reference guide.
  - change device name from if_cgem to cgem to be consistent with other
    interfaces.

  Fix the Zedboard/Zynq ethernet driver to handle media speed changes so
  that it can connect to switches at speeds other than 1gb.
2014-10-25 20:34:10 +00:00
kevlo
0817d1234e MFC r273448:
Fix the kernel panic in hostap mode.
rvp->beacon_mbuf was NULL in run_update_beacon().

PR:	189405
Submitted by:	Gabor Simon <gabor.simon75 at gmail.com>
2014-10-25 15:06:09 +00:00
delphij
2455e6b607 MFC r273577:
Return BUS_PROBE_DEFAULT instead of BUS_PROBE_VENDOR or 0 for in-tree
driver.  This change was verified by Microsoft.

Instant MFC approved by:	re (kib)
2014-10-24 07:06:01 +00:00
dumbbell
5cd9154e6b vt(4): Refuse to load a font if hw.vga.textmode is selected
Before, the font was loaded and the window size recalculated, giving an
unusable terminal, even if the actual font didn't change.

Reported by:	beeessdee@ruggedinbox.com
MFC of:		r273330
2014-10-23 13:32:01 +00:00
gjb
9ec3090c92 MFC r273402:
Fix an issue where a FreeBSD virtual machine provisioned in
  the Microsoft Azure service does not recognize the second
  attached disk on the system.

PR:		194376
Insta-MFC OK:	re (rodrigc)
Sponsored by:	The FreeBSD Foundation
2014-10-21 21:27:13 +00:00
brueffer
7fce188e08 MFC: r273034
Add one more AMD Kaveri APU device ID.

Submitted by:	Remy Nonnenmacher <remy.nonnenmacher@activnetworks.com>
2014-10-21 13:07:36 +00:00