summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-04-11Rename i915_gem_chipset_flush() to intel_gtt_chipset_flush()Jonathan Gray
so we can use the inline definition of i915_gem_chipset_flush() that avoids the flush entirely on gen >= 6.
2015-04-10Axe vq_free_entry_lockedStefan Fritsch
A leftover from netbsd
2015-04-10Fix typo in macro nameStefan Fritsch
2015-04-10Don't use pa_to_pvh() if we already have the page. Avoids an unused variableMark Kettenis
for non-DIAGNOSTIC kernels. ok deraadt@
2015-04-10Convert to if_input().Martin Pieuchot
Tested by Daniel Jakots, thanks!
2015-04-10I did quite some changes to this driver, so add copyright.Martin Pieuchot
2015-04-10replace the use of ifqueues for most input queues serviced by netisrDavid Gwynne
with niqueues. this change is so big because there's a lot of code that takes pointers to different input queues (eg, ether_input picks between ipv4, ipv6, pppoe, arp, and mpls input queues) and falls through to code to enqueue packets against the pointer. if i changed only one of the input queues id have to add sepearate code paths, one for ifqueues and one for niqueues in each of these places by flipping all these input queues at once i can keep the currently common code common. testing by mpi@ sthen@ and rafael zalamena ok mpi@ sthen@ claudio@ henning@
2015-04-10Full-speed isochronous transfers support with opportunistic micro-framesMartin Pieuchot
scheduling. More work is required to properly budget and schedule micro-frames, most of it at the HUB level. But this let people use USB1.1 uaudio(4) devices on ehci(4)-only systems. Thanks to all the testers! ok ratchov@, sthen@, naddy@
2015-04-10replace the guts of tdb_hash with SipHash24David Gwynne
tested by (including some statistical measurement) and ok mikeb@
2015-04-10Move irqs_disabled() and in_dbg_master() out of the i386/amd64 ifdef blockJonathan Gray
and change drm_can_sleep() to only use in_atomic() on i386/amd64 as it isn't defined for other archs currently. Unbreaks the sparc64 build. Found the hard way by benoit@
2015-04-10mpi@ introduced a ph_cookie in mbuf packet headers that can be usedDavid Gwynne
by a subsystem to stash some state while the mbuf gets queued. eg, net80211 uses it to keep track of the wireless node associated with a packet before submitting it to a drivers snd queue for transmission. this makes pipex use ph_cookie to keep track of the pipex session associated with a packet before submitting it to the softint queues. this lets us get rid of an mbuf tag type, and avoids the cost of tag allocation. ok yasuoka@
2015-04-10Run detach hook and similar before cleaning up any other resource whenMartin Pieuchot
an interface is destroyed/removed. This way we can ensure pseudo-driver changes done after attaching an interface are undone before detaching it. Note: it is safe to call if_deactivate() multiple times as the interface should not have any attached pseudo-interface after the first call. ok deraadt@, dlg@
2015-04-10Add support for CRC-enabled elantech v3 touchpads.Stefan Sperling
Patch by Fasse <fasse.f2@gmail.com> ok mpi@
2015-04-10Convert remaining USB Ethernet adapter to if_input().Martin Pieuchot
ok dlg@
2015-04-10Use mdelay(x) instead of delay(x * 1000) for drm_msleep() to betterJonathan Gray
deal with long delays.
2015-04-10Make drm_can_sleep() match linux. No change in behaviour as it'sJonathan Gray
only ever used to decide between mdelay and drm_msleep and our drm_msleep delays instead of sleeping.
2015-04-10add irqs_disabled() and in_dbg_master() using cold and db_is_activeJonathan Gray
2015-04-10dont inherit the parent interfaces hardmtu as the vlan interfacesDavid Gwynne
mtu when it gets set up. instead, allow the vlan interfaces mtu to be raised to the parents hardmtu in SIOCSIFMTU handling. pointed out by claudio@
2015-04-09Send lmc(4) and san(4) to the HDLC framed bit bucket in the sky.Theo de Raadt
2015-04-09Make the sparc64 pmap (more) mpsafe by protecting both the pmap itself and theMark Kettenis
pv lists with a mutex. Some minor code adjustments to prevent holding locks too long. This should make pmap_enter(9), pmap_remove(9) and pmap_page_protect(9) safe to use without holding the kernel lock.
2015-04-09Plug a memory leak in pfr_destroy_kentryMike Belopuhov
pfi_kif objects allocated for table entries created by route-to or by specifying weight weren't garbage collected when the table entry was destroyed. Spotted by Alexandr Nedvedicky <alexandr ! nedvedicky at oracle ! com>, thanks! Ok henning, florian
2015-04-09to quote jim smith:David Gwynne
> fix a regression on re chips which have > 7k jumbo support (RL_JUMBO_MTU_7K) as reported by daniel jakots > and emilio perea. the regression was caused because RL_JUMBO_FRAMELEN > was changed to 9k and i missed fixing up the RL_JUMBO_MTU_7K macro. nice of him to fix the thing he broke ;) ok sthen@
2015-04-08add a #define for IEEE80211_ELEMID_CSA, 802.11h-2003 Channel Switch AnnouncementStuart Henderson
ok stsp@
2015-04-08Kill unused function.Martin Pieuchot
2015-04-08Move vmap back to kernel_map/uvm_km_valloc as it's allowed to fail.Jonathan Gray
This should help dlg's dell 2950 that gets stuck during boot with vmap in the trace. ok kettenis@
2015-04-08Table flags are not looked at when a table entry is created.Mike Belopuhov
Spotted by Alexandr Nedvedicky <alexandr ! nedvedicky at oracle ! com>, thanks!
2015-04-08I believe UVM is clean now and no managed pages should be in use anymoreMark Kettenis
when we call pmap_release(). Turn debug code into printf and remove the code that tried to mop up. Override Debugger() such that it inserts a trap instruction directly into the code such that we get useful backtraces. This way I don't need to worry about pmap_release() removing pv entries when making this pmap mpsafe.
2015-04-08Convert to if_input().Martin Pieuchot
ok dlg@
2015-04-08Destination table needs it's own negation flag passed to the pfr_update_stats.Mike Belopuhov
Spotted by Alexandr Nedvedicky <alexandr ! nedvedicky at oracle ! com>, thanks a lot! Ok florian
2015-04-08Check for link status in tsec_start(). Prevent the watchdog from fireingMartin Pieuchot
when no cable is plugged in but the interface is brough up. inputs and ok kettenis@
2015-04-08Convert to if_input().Martin Pieuchot
ok dlg@
2015-04-08don't leak the chip's hardware address during scans when a randomized addressJasper Lievisse Adriaanse
is set by the user. previously the address read from the eeprom would also be used in discovery frames, even if later data frames would contain the spoofed address. ok stsp@
2015-04-08change back to udelay/mdelayJonathan Gray
2015-04-08change back to memcpy_toio/memcpy_fromio/memset_ioJonathan Gray
2015-04-08change back to using min_tJonathan Gray
2015-04-08ttm has it's own version of kmap/kunmap that usesJonathan Gray
kernel_map/uvm_km_valloc and i915 has a version that uses phys_map/uvm_km_valloc_wait as calling code assumes kmap would sleep if no memory is available. Move these and ttm's vmap/vunmap into the linux compat files and make them all use phys_map/uvm_km_valloc_wait. looks good kettenis@
2015-04-07Use m_defrag when mbuf chains get fragmented.Stefan Fritsch
Patch by Kimberley Manning <kmanning at gmx ! com> with some additional tweaks.
2015-04-07Keep in sync with the sparc version: convert to if_input().Martin Pieuchot
2015-04-07Remove a lie, the early boot console does not need any mapping.Martin Pieuchot
In fact we even use the firmware interface for "bsd -c" and "bsd -d". So do the necessary firmware calls before calling initppc() to be able to use printf() really early in the boot sequence.
2015-04-07Convert to if_input().Martin Pieuchot
Tested with simh using a floppy image built by miod@
2015-04-07nothing uses pool_sleep, so get rid of itDavid Gwynne
2015-04-07introduce a garbage collector for (very) idle pool pages.David Gwynne
now that idle pool pages are timestamped we can tell how long theyve been idle. this adds a task that runs every second that iterates over all the pools looking for pages that have been idle for 8 seconds so it can free them. this idea probably came from a conversation with tedu@ months ago. ok tedu@ kettenis@
2015-04-07Do not pass an `ifp' argument to interface input handlers since itMartin Pieuchot
might be overwritten by pseudo-drivers. ok dlg@, henning@
2015-04-07Mark audio interrupt handlers as MPSAFE, they already grab the rightMartin Pieuchot
mutex when necessary. ok kettenis@, ratchov@
2015-04-07Use appropriate memory barriers.Martin Pieuchot
ok kettenis@, miod@
2015-04-06Move almost all of the linux compat from drmP.h to drm_linux.h.Jonathan Gray
The exception being the barrier defines that are implemented in terms of DRM_* defines. ok kettenis@
2015-04-06switch back from roundup2() and roundup() to round_up()Jonathan Gray
2015-04-06switch back from howmany() to DIV_ROUND_UP()Jonathan Gray
2015-04-06move some inline linux compat into the dedicated filesJonathan Gray
2015-04-06drm_calloc -> kcallocJonathan Gray