summaryrefslogtreecommitdiffstats
path: root/sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Let MP-safe interrupt handlers run without the kernel lock on octeon.visa2015-09-262-8/+19
| | | | ok kettenis@
* Add a spinout check to the mips64 mutex, to aid debugging.visa2015-09-261-3/+25
| | | | ok kettenis@
* Apparently 0 is not a power of 2 (despite <sys/param.h> claiming that it is).kettenis2015-09-251-2/+2
| | | | Fixes inteldrm(4) on the GM45 chipset.
* 3.14 backports of some Broadwell fixes fromjsg2015-09-256-28/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://lists.freedesktop.org/archives/intel-gfx/2014-March/042121.html Ben Widawsky drm/i915/bdw: Restore PPAT on thaw a2319c08bfd849ea32b4f890ce92df86074c5731 Ville Syrjala drm/i915: We implement WaDisableAsyncFlipPerfMode:bdw 8285222c487b61c48b9b955b82598544c3c06050 Ben Widawsky drm/i915/bdw: Use scratch page table for GEN8 PPGTT 8407bb9129da95fc4099b84cdbbc23e6d4f66aee Jani Nikula drm/i915: don't flood the logs about bdw semaphores c923facd535b97972b5bb7d3df4fcafd61a63a5e Ville Syrjala drm/i915: Implement WaDisableSDEUnitClockGating:bdw 4f1ca9e94057de098d65bc7477e8f89dd51609aa Ville Syrjala drm/i915: Don't clobber CHICKEN_PIPESL_1 on BDW c7c656226842679bcd9f39dc24441b4ff398a850 Kenneth Graunke drm/i915: Add a partial instruction shootdown workaround on Broadwell. c8966e1058e1e8ae2eec4211157847032829697a Damien Lespiau drm/i915/bdw: The TLB invalidation mechanism has been removed from INSTPM dc616b89dbc4bb6a99884d214bd1ed1e0eef59a0 Kenneth Graunke drm/i915: Add thread stall DOP clock gating workaround on Broadwell. 1411e6a57a1836ba8a3d4f17c8733b2fbaf0f005 Ville Syrjala drm/i915: Disable semaphore wait event idle message on BDW 295e8bb73a4785b65db6655fbf6ad57c4177b551 Mika Kuoppala drm/i915: Do forcewake reset on gen8 0a089e3355d77f758e46db54a0a81d4b58a28cc3 Mika Kuoppala drm/i915: Fix forcewake counts for gen8 e9dbd2b20201b49b04476d2e5763faa822967913 ok kettenis@
* Disable IPS for now. Identified by jsg@ as the cause for the unsynchedkettenis2015-09-251-2/+2
| | | | | display after waking it from standby or after VT switches. Can't seem to get him to commit this workaround while he his hunting for a proper fix.
* Don't immediately try to checksum the GPT header using the sizekrw2015-09-251-15/+10
| | | | | | | | | | field from the GPT header being checksum'd. First make sure the size is in a valid range. In particular ensure it won't cause crc32() to run off the end of the GPT header being checksum'd. Also check GPT signature and version first. These checks were inadvertantly moved after the checksumming. This should fix the system crash reported by Ze Loff on bugs@.
* Ensure that RTF_LOCAL route entries always stay UP.mpi2015-09-252-3/+9
| | | | | | | | | | | Local route entries, being now attached to their corresponding interface, are susceptible to be brought DOWN when a link state change occurs. When this happens locally configured addresses are no longer reachable. So keep the previous (original) behavior by forcing such route entries to always be UP. ok sthen@, claudio@
* Now that waitqueue_active() actually works, enable the WARN_ON that uses it.kettenis2015-09-251-2/+2
|
* Enable MSIs on hardware that supports it. On the Thinkpad X1, the APIC pinkettenis2015-09-241-7/+8
| | | | | is shared with the disk, which results in noticable latency during heavy disk activity.
* Properly implement waitqueue_active(). Gets rid of spuriouskettenis2015-09-242-4/+15
| | | | | | *ERROR* Hangcheck timer elapsed... xxx ring idle messages.
* buglet: there's no way for req to be STEP in the DETACH case.tedu2015-09-241-3/+3
| | | | also fix the confusing comment. ok guethner.
* Move declaration of readdisksector() to disklabel.h. This makes itkrw2015-09-242-4/+4
| | | | | | | available to other areas of the kernel suffering from an overburden of buf tweaking to read a disk sector. ok mpi@
* It is no longer necessary to include CR_BERR in CR_INT_MASK if CPU_R8000.miod2015-09-241-2/+2
|
* IP26 streaming cache controller bus error interrupts are reported as hardwaremiod2015-09-242-6/+17
| | | | | | level 4 interrupts, just like memory controller bus errors; register the tcc(4) handler with the right cause register bitmask, and teach imc(4) not to claim the interrupt if it did not trigger it.
* regenjsg2015-09-242-5/+75
|
* Add some more Broadwell graphics ids.jsg2015-09-241-3/+17
|
* The devlist awk script didn't pickup the broadwell ids as they arejsg2015-09-241-52/+71
| | | | | | | encoded with shifts. Switch to a file constructed by iterating through i915_drv.c pciidlist so these will be included. ok kettenis@
* add a comment explaining how we serialize when switching trunkproto;mikeb2015-09-241-1/+8
| | | | requested by mpi@
* Avoid a theoretical m_pullup(9) mishandling by delegating the mbufmikeb2015-09-242-6/+11
| | | | | | | | | | | | | | | reclaiming to the PDU and marker input routines. m_pullup may return a pointer to the newly allocated mbuf. In this case m_freem is called by the trunk_input, not by the proto specific code and pointer to the mbuf is not passed by reference. Therefore m_freem will either be called on the middle element of the chain (when the m_pullup call succeeds) or on the stale pointer (when it frees the chain in the failure case). Fortunately we should never hit this case as the receive path uniformly uses contiguous chunks of memory. Verified with and ok blambert, ok mpi
* A couple of missing letoh32() conversions of GPT header fields inkrw2015-09-241-3/+4
| | | | | | gpt_chk_hdr() and gpt_chk_parts(). Spotted when investigating zeloff's GPT bug report.
* Update inteldrm to the code from Linux 3.14.52 (which corresponds tokettenis2015-09-2388-15202/+36346
| | | | | | | | | | | | | | | | | commit 48f8f36a6c8018c2b36ea207aaf68ef5326c5075 on the linux-3.14.y branch of the linux-stable tree). This brings preliminary support for the GPU on Intel's Broadwell CPUs. Don't expect these to work perfectly yet. There are some remaining issues with older hardware as well, but no significant regressions have been uncovered. This also updates some of drm core code. The radeondrm code remains based on Linux 3.8 with some minimal canges to adjust to changes in the core drm APIs. Joint effort with jsg@, who did the initial update of the relevant drm core bits. Committing this early to make sure it gets more testing and make it possible for others to help getting the remaining wrinkles straightened out.
* typosmiod2015-09-232-5/+5
|
* That PICA reference ought to have been removed 20 years ago!miod2015-09-231-2/+2
|
* In tlb_update(), when inserting an entry for a KV1 address, reuse themiod2015-09-231-12/+27
| | | | | | | | | current ASID value rather than using zero, so that we can avoid writing back the ASID on exit (and waste cycles because of expensive coprocessor 0 hazards). While there, use conditional instructions when picking a random TLB set number, in order to waste one branch prediction cache entry.
* Reorder subtractions and branches to shave one cycle per call tomiod2015-09-231-5/+5
| | | | tfp_inval_icache().
* In iwm(4), properly reset the RX ring by clearing RX buffer status memory.stsp2015-09-231-1/+7
| | | | Found by Matthew Dillon (Dragonfly). DMA sync hint from tedu@, ok mpi@
* In iwm(4), while not associated, pass the broadcast ethernet address tostsp2015-09-231-2/+2
| | | | | | the firmware, rather than zeros. Matches what Linux iwlwifi does. Spotted by Adrian Chadd (FreeBSD). ok mpi@
* Output operands of movn and movz in the correct order.miod2015-09-231-4/+6
|
* remove lockmgr_printinfo stubs. from Martin Natanotedu2015-09-235-11/+5
|
* Serialize trunk changes with input handler insertion and removal.mikeb2015-09-231-7/+12
| | | | | | | | | | | | | | | | | | | | | This moves around calls to if_ih_insert and if_ih_remove to ensure that we either have completed port initialization or are going to tear the port configuration down and don't want any input processes to get hold of the port. When trunk_port_destroy is called from the ioctl this would wait for all input processes to finish and release their references to be able to disestablish the input handler and ensure full control of the port. When switching trunkproto it is required for the ioctl context to be able to touch all trunk ports and the protocol (tr_psc). The easiest way do this is to disestablish all input handlers (while making sure they all complete) and then reestablish them after the trunk reconfiguration is completed. This avoids getting trunk a separate locking protocol of its own. ok mpi, suggested by and ok dlg
* Removes locking macros that we've inherited from NetBSD/FreeBSD.mikeb2015-09-231-8/+1
| | | | ok dlg, mpi
* Keep track of an active port in the failover trunk to avoid listmikeb2015-09-231-22/+51
| | | | | | iterations and additional locking protection in the future. Suggested by and ok mpi
* Remove trunk watchdog code since it doesn't do anything usefulmikeb2015-09-232-44/+2
| | | | | | | | | | | | | | and we want to limit the number of different places where we access trunk port pointers. trunk_watchdog should be never called as we don't set up it's if_timer and trunk_port_watchdog just calls the if_watchdog from the underlying interface. It's possible that this is no longer needed due to if_slowtimo/ if_watchdog changes done earlier. ok mpi
* Always increment rt_use inside rtalloc(9) instead of doing it in somempi2015-09-237-20/+11
| | | | | | specific places. ok claudio@, benno@
* Fix white spaces and style.yasuoka2015-09-231-19/+21
|
* Remove -DLINKADDR=. It is for first-stage bootstrap.yasuoka2015-09-231-2/+2
|
* efiboot used 3MB memory below the region for the kernel, but UEFIyasuoka2015-09-232-4/+7
| | | | | | | | | firmware on some machines allocates larger area whose upper part overlaps the kernel region. Let the efiboot use lower area for its heap. Also change its size from 3MB to 1MB and limit it by HEAP_LIMIT. The problem is reported by Toby Slight and Brian Conway.
* Corect a kbind comment to describe the version that was settled on: no oldguenther2015-09-231-4/+4
| | | | data, only new
* Make sure the openbsd.randomdata section is located before the edata symbol.miod2015-09-223-0/+6
|
* Use the radix-tree API instead of function pointers.mpi2015-09-221-11/+9
| | | | ok yasuoka@
* When a connected route is deleted, pass the corresponding priority tompi2015-09-221-1/+4
| | | | | | rtrequest1(9) otherwise the route will remain attached to a stale ifa. Found by matthieu@
* Remove inpt_lastport from struct inpcbtable, use local variablesvgross2015-09-223-31/+29
| | | | | | in in_pcbbind() and in6_pcbsetport() ok claudio@, with input from David Hill
* regenjasper2015-09-222-2/+7
|
* add (unsupported) realtek wireless card as found in rpointel@'s x250, thoughjasper2015-09-221-1/+2
| | | | | | it could be supported by rtwn(4) eventualy ok stsp@
* After reading IRIX header files again, add one more SSNOP to MTC0_HAZARD (andmiod2015-09-211-4/+4
| | | | remove one from constructs based upon it) when building for R8000.
* Drop a misleading XXX about PQ_AOBJ. Clear PQ_ANON unconditionally forvisa2015-09-211-5/+3
| | | | | | consistency with PQ_AOBJ. Input kettenis@, ok beck@
* Pass the correct variable to free(9) and while here add the size.mpi2015-09-211-2/+2
| | | | From David Hill, ok sthen@
* Set the correct priority for connected routes.mpi2015-09-211-1/+4
| | | | | | Found by benno@. ok phessler@, claudio@, benno@
* Fix membar positioning in mtx_enter_try() and (critically!) mtx_leave()kettenis2015-09-211-5/+5
| | | | | Same diff as guenther@ committed for alpha. ok guenther@
* Fix membar positioning in mtx_enter_try() and (critically!) mtx_leave()kettenis2015-09-211-5/+5
| | | | | Same diff as guenther@ committed for alpha. ok guenther@