summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-02-04rearrange a few fields to reduce internal padding in struct procTed Unangst
2014-02-03Check if the device is being detached when returning from tsleep() andMartin Pieuchot
in such case do not try to cleanup the device since this would make the thread sleep again while keeping a reference to the softc. Fix a panic found by sebastia@, ok pirofti@
2014-02-03Fix a null dereference introduced when converting this driver to useMartin Pieuchot
usbd_is_dying(). Found the hard way by sebastia@
2014-02-03Make sure sched_init_cpu() on the secondary processors is invoked with theMiod Vallat
kernel lock held.
2014-02-03use the same option as isp(4) to build without firmware.Jonathan Matthew
stub out the firmware loading code and don't include the firmware files when ISP_NOFIRMWARE is defined.
2014-02-02Force an fpu context synchronization before halting secondary processors.Miod Vallat
Similar to what other platforms do.
2014-02-02To prevent lock ordering problems with the kernel lock, we need to make sureMark Kettenis
we block all interrupts that can grab the kernel lock. The simplest way to achieve this is to make sure mutexes always raise the ipl to the highest level that has interrupts that grab the kernel lock. This will allow us to have "mpsafe" interrupt handlers at lower priority levels. No change for non-MULTIPROCESSOR kernels. ok miod@
2014-02-02Brainboxes BB16PCI958. Contributed by Eric Huiban, thanks!Miod Vallat
2014-02-02regenMiod Vallat
2014-02-02Brainboxes IS200 BB16PCI958 puc(4)Miod Vallat
2014-02-02drm/i915: flush cursors harderJonathan Gray
From Daniel Vetter ca5667eaca18b0267511728c97e3759d01a348cc in ubuntu 3.8 b2ea8ef559b4d94190009f3651b5b3ab7c05afd3 in mainline linux
2014-02-02sbus(4) glue for qla(4)Mark Kettenis
2014-02-02Add missing DRM_UNLOCK() in error path.Mark Kettenis
2014-02-02carve up qla_attach() into bits we can use to process loop and fabric changesJonathan Matthew
later on.
2014-02-02Rearrange interrupt register processing for 2200s. The mailbox semaphoreJonathan Matthew
seems to be disconnected from the interrupt status register, so we shouldn't wait until the interrupt status is nonzero to check it. This makes onboard FC controllers in Sun systems work better. tested on a blade1k (by kettenis@) and a v880.
2014-02-02drm/i915: Make data/link N value power of twoJonathan Gray
From Ville Syrjala 16f091c6e04b5ac247d7b3b3764c2fbe8683e497 in ubuntu 3.8 a65851af59387146a28a928c3e7bb17dabc5db72 in mainline linux
2014-02-02armv7_start.o needs an explicit dependency on assym.h now; nickMiod Vallat
2014-02-02add min_t and div_u64 which will be used to reduce the diff to linuxJonathan Gray
2014-02-02drm/i915/dp: increase i2c-over-aux retry interval on AUX DEFERJonathan Gray
From Jani Nikula 67c729e64ef03476312fc9fb815046d5e540428a in ubuntu 3.8 8d16f258217f2f583af1fd57c5144aa4bbe73e48 in mainline linux
2014-02-02add a simple version of usleep_range() that DELAYs for the min valueJonathan Gray
2014-02-01Do not include <machine/pmap.h> from .S code, for it brings much too .S-unawareMiod Vallat
headers. Instead, rely upon "assym.h" bringing the defines we need from it. Found the hard way by nick@
2014-02-01Use splipi() instead of splhigh() to protect lazy fpu saving code.Miod Vallat
In MP kernel, replace a TOCTTOU-vulnerable assert with a ``loop until we have achieved our goals'' logic.
2014-02-01On MP kernels, invoke SPINLOCK_SPIN_HOOK in mtx_enter() when it spins.Miod Vallat
2014-02-01Simplify try_lock() to avoid one forward branch in the common case.Miod Vallat
2014-02-01pools aren't mp-safe; since the TLB shootdown code will allocate up to 6 jobMiod Vallat
entries per processor, don't bother using a pool and allocate the job entries statically, and manage a per cpu free entries queue in addition to the in-use queue. This avoids corrupting memory...
2014-02-01Lower IPL_SCHED to IPL_CLOCK where it belongs.Miod Vallat
2014-02-01Use atomic_loadlatch_ulong() to speedup and simplify the ipi dispatcher.Miod Vallat
No functional change.
2014-02-01Allow MP_LOCKDEBUG kernels to get tracebacks from other processors whenMiod Vallat
entering ddb. No change for !MP_LOCKDEBUG kernels.
2014-02-01Reset the hwrpb cpu start address after booting the secondaries, in order toMiod Vallat
give dire kernel panics a better chance to reach the SRM.
2014-02-01drm/i915: Invalidate TLBs for the rings after a resetJonathan Gray
From Chris Wilson 92e199c62a5d698a8e934aea8bcb4fb43968a290 in ubuntu 3.8 884020bf3d2a3787a1cc6df902e98e0eec60330b in mainline linux While the original commit message mentions https://bugs.freedesktop.org/show_bug.cgi?id=64725 which is a problem with hibernate mlarkin@ says it neither helps or hurts in his testing.
2014-02-01Replace the vnode struct vattr cache by VOP_GETATTR() calls.Sylvestre Gallon
ok tedu@
2014-02-01On sparc64, use the WWNs from Open Firmware, as the onboard ISP2200 that canMark Kettenis
be found on some Sun hardware doesn't have an NVRAM. ok jmatthew@
2014-02-01Remove some of the excessive cache and TLB flushing going on duringMike Larkin
hibernate unpack - these were added a while ago when we were fighting different issues that have now been solved. Tested by myself and dcoppa on a variety of machines
2014-02-01Split bge(4)'s feature flags into bge_flags and bge_phy_flags.Brad Smith
ok naddy@
2014-01-31tl(4) already allowed for reception of frames up to MCLBYTES in size soBrad Smith
set IFCAP_VLAN_MTU to allow for VLAN sized frames.
2014-01-31Rewrite the receive filter handling code, reinstate the hash filter and cleanupBrad Smith
the ioctl bits. Tested by brad@
2014-01-31SUNW SUNWGS INT FCBPL can be considered an asym device now we can uniquelyDavid Gwynne
identify them over multiple paths using their wwnn.
2014-01-31if a device doesnt have device ids or serial numbers, try using node_wwn toDavid Gwynne
generate a devid. if its an fc device this is good enough.
2014-01-31Fix a long standing VCPU reset sequence bug on BCM5906. The VCPU (Virtual CPU)Brad Smith
of BCM5906 is used to provide a mechanism to control the bootcode execution and to pick up configuration data stored inside the EEPROM. The bootcode of BCM5906 will check the BGE_VCPU_STATUS_DRV_RESET bit to decide which boot procedure to choose. Datasheet indicates the VCPU of BCM5906 should set BGE_VCPU_STATUS_DRV_RESET bit before VCPU reset or global reset. From FreeBSD ok naddy@
2014-01-31sc_function is set, but never used for anything useful. clean it up...David Gwynne
2014-01-31sc_lladdr is never used, so we can get the space in the sc back.David Gwynne
2014-01-30the option bit for controlling fast posting is in icb_fw_options, notJonathan Matthew
icb_xfwoptions. one of my qla2200 cards seems to have this enabled in its nvram, so it wasn't getting io completions.
2014-01-30don't do a register test mailbox command before resetting the chip.Jonathan Matthew
kettenis@ found that this causes problems on sparc64 machines that boot off isp2200s.
2014-01-30Simplyfy adjtime(2) by keeping track of the adjustment as a number ofMark Kettenis
microsecond in a 64-bit integer. Fixes the issue where ntpd loses sync because the struct timeval currently used to hold the adjustment is not properly normalized after the changes guenther@ made. ok guenther@, millert@
2014-01-30Do not match control interfaces if their associated data interface isMartin Pieuchot
missing or already claimed. This fixes a problem with the Ericsson F3507g embedded in the x200s that has a broken configuration descriptor reporting too few interfaces. Problem reported and fix tested by Harald Hellmuth and florian@
2014-01-30On MULTIPROCESSOR kernels, have SCHED_ASSERT_LOCKED assert both the lock beingMiod Vallat
held and ipl being >= IPL_SCHED.
2014-01-30Abort traceback when a new ra has not been found, instead of looping on itMiod Vallat
and printing the same traceback line several times.
2014-01-30Narrow ci_flags to be able to print ci_mutex_level in the `machine ddbcpu'Miod Vallat
output.
2014-01-30Set port and node WWN in scsi_link structure when we successfully probe aMark Kettenis
target. ok jmatthew@, dlg@
2014-01-30Move declaration of struct vm_page_md from <machine/vmparam.h> toMiod Vallat
<machine/pmap.h> where it belongs, and compensate in <uvm/uvm_extern.h> by including <uvm/uvm_pmap.h> before <uvm/uvm_page.h>. Tested on all MACHINE_ARCH but amd64 and i386 (and hppa64).