summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2012-08-29The low-level guts to support MTP (Multi-Threaded Processing) on theMark Kettenis
Fujitsu SPARC64-VI and SPARC64-VII CPUs. Since the two threads on each core share the TLBs of the core we cannot enter different mappings for the same virtual address. Instead we use a scratch register to store the per-cpu pointer. This is very similar to what we do on sun4v. For now we still only attach the first thread of each SPARC64-VI/VII core since we currently don't handle the VMT (Vertical Multi-Threading) of the SPARC64-VI very well.
2012-08-29Make sure the interrupt stack for the boot processor is properly aligned toMark Kettenis
a 64K boundary. This means we don't have to worry about virtual cache aliasing anymore since SPARC V9 CPUs have at most a 16K aliasing.
2012-08-29Change "struct reg" to include a few more registers. We now use the sameMark Kettenis
layout as NetBSD.
2012-08-29Handle T_IPROT traps from userland by call vm_fault() instead of doing anMark Kettenis
unconditional SIGSEGV. Fixes random SIGSEGVs during single-stepping. ok miod@
2012-08-29Get rid of all NOPIE and NOPIE_FLAGS in amd64/stand and use -fno-pie and -nopiePascal Stumpf
directly instead. This will be the approach taken by every other arch too in the near future. It is easier than relying on bsd.own.mk to set these correctly. discussed with and ok deraadt@
2012-08-29Implement pci_min_powerstate().Mark Kettenis
2012-08-29Implement pci_min_powerstate().Mark Kettenis
2012-08-28Add -nopie to LINKFLAGS on ELF architectures. Note that this needs anPascal Stumpf
updated gcc and ld to understand the new -nopie flag. ok deraadt@
2012-08-28Do not add SLAAC or privacy addresses when a static address in the same prefixsperreault
already exists. 5.1 and older did the right thing. 5.2 did not (mea culpa). Now we're back to doing the right thing. spotted by naddy. ok stsp.
2012-08-28Implement pci_min_powerstate().Mark Kettenis
2012-08-28Implement pci_min_powerstate().Mark Kettenis
2012-08-28oops. a bit of debugging code has sneaked inMike Belopuhov
2012-08-28Add __guard_local as a hidden symbol to ld.so, kernel, and everyMatthew Dempsky
executable and DSO (via crtbegin.c/crtbeginS.c). Not used yet, but needed before GCC can start emitting -fstack-protector code that uses them instead of __guard.
2012-08-28Get rid of several ill-defined concepts and use more informationMike Belopuhov
provided by the IOC. Cleanup scatter-gather code and add more comments. Tested by a "make build" and bonnie++ torturing on a SAS2004 with an IR firmware.
2012-08-26htole64 works as good as htole32 twice for dma virtual addresses.David Gwynne
2012-08-25Another missed PIC -> __PIC__ conversion.Mark Kettenis
ok deraadt@
2012-08-25Better detection of the st16650 v1 (with the broken fifo). Gets rid ofMark Kettenis
false positives like the DUART on the MPC8347 as found on socppc. ok deraadt@
2012-08-25Turns out the v445 isn't happy at all if we touch the registers that dealMark Kettenis
with sleep mode. So skip the wakeup code as well if we are a serial console. The port on the v445 almost certainly isn't a real st16650 and probably doesn't implement sleep mode (perhaps someone cut the soft core down a bit too much?). But it is indistinguishable from it, so we have to deal with it. ok deraadt@
2012-08-25Add support for power saving in Host AP mode.Mark Kettenis
ok stsp@, deraadt@
2012-08-25Set up ni_savedq for the initial BSS node such that it can actually be usedMark Kettenis
to store multicast frames when one of the associated stations is in power saving mode. ok stsp@
2012-08-25Make sure we disable interrupts on attachment before re-enabling.Christiano F. Haesbaert
ok dlg@.
2012-08-25Small cleanup.Christiano F. Haesbaert
ok dlg@.
2012-08-25some endian fixes.David Gwynne
2012-08-24ansiJonathan Gray
2012-08-24don't read past the end of an array when dumping the stack.Jonathan Gray
same problem/fix as sparc.
2012-08-24Synchronize CR4 and CPUID portions of <machine/specialreg.h> for i386 and amd64Philip Guenthe
Add display of more feature bits: DTES64 PCID DEADLINE F16C RDRAND Add display of "Structured Extended Feature Flags Parameters": FSGSBASE SMEP EREP INVPCID ok mikeb@
2012-08-23missed NOPIE_FLAGS, noticed by Brian CallahanPascal Stumpf
ok deraadt@
2012-08-23cleanup calculations in iocfacts a bit: number of reply frames doesn'tMike Belopuhov
have to be not multiple of 16, recalculate request credit and number of replies if their sum exceeds MaxReplyDescriptorPostQueueDepth. tested on SAS2004 with bonnie++.
2012-08-23missing ${NOPIE_FLAGS}; ok pascalTheo de Raadt
2012-08-23whitespace cleanup; no functional changeMike Belopuhov
2012-08-23use BUS_DMA_ZEROMike Belopuhov
2012-08-23the chain_offset in mfii requests are in 16 byte units, not 4 likeDavid Gwynne
mpii. this stops the chip from freaking out on me when doing chained sgls. found by alex wilson who wins prizes.
2012-08-23Fix a race in rt2661 Tx interrupt processing which can cause Tx processingStefan Sperling
to get stuck with OACTIVE set, requiring 'ifconfig ral0 down up' to unwedge. Make space in the Tx queue from the rt2661_tx_dma_intr() handler, rather than waiting until rt2661_tx_intr() is run. The latter function now collects AMRR statistics only. AMRR node allocation is now separated from ieee80211_node allocation to make this possible. This commit also brings back the separation of OACTIVE flags for management and data Tx queues which I reverted in the previous commit. Inspired by ral commits by sephe@dragonflybsd and patch submission to misc@ by Roland Dreier http://marc.info/?l=openbsd-misc&m=125895269930106&w=2 Tested by myself, edd, jsg, Tobias Ulmer, Pieter Verberne, Tim van der Molen.
2012-08-23turns out - is not commutative.David Gwynne
correctly determine the number of segments in the next chain, and also figure out the correct offset for the chain element at the end of the request frame.
2012-08-23syncTheo de Raadt
2012-08-23kill nnpfs deadTheo de Raadt
2012-08-23stupid code bug.David Gwynne
instead of initting the ccbs sgl dma virtual address, i was assigning it to the sense memories dva. this means we wouldnt be getting sense data where we thought it was, and passing NULL (does NULL mean anything over a pci bus?) to the hardware when we have long sgl chains. hopefully this fixes the NMIs ive been getting.
2012-08-23To protect assumptions inside systrace, don't let systrace fds bePhilip Guenthe
shared between processes. ok djm@
2012-08-22Split out the bar functions required to attach drm(4) to share themMartin Pieuchot
with macppc's vgafb(4) and maybe later on sparc64 drivers too. suggested by and ok kettenis@
2012-08-22Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure ccPascal Stumpf
invocations. This allows us to use the compiler builtin define __PIC__ to check for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot. ok matthew@, conceptually ok kurt@
2012-08-22cleanup mpii_alloc_queues, use caddr_t for kva plus a bit of cleanupMike Belopuhov
2012-08-22Build the kernel with -fno-pie. Just getting Ms out of my tree; this will bePascal Stumpf
cleaned up later. ok deraadt@
2012-08-22remove last remnants of mpii_[e]cfg_header and mpii_[e]cfg_pageMike Belopuhov
2012-08-22for device pages of the fixed size there's no need to query theirMike Belopuhov
lengths nor to allocate the storage dynamically so place them on the stack and initialize the header by hand.
2012-08-22minor style nits for the function prototypesMike Belopuhov
2012-08-22Unbreak drm when DRM_NO_AGP is defined.Martin Pieuchot
ok miod@
2012-08-22kill several unused or useless defines; no functional changeMike Belopuhov
2012-08-22use static inline instead of inline so this will be compatible withJonathan Gray
compilers defaulting to c99 inline instead of the old gnu style. ok guenther@ miod@ deraadt@
2012-08-22sigpid should be of type pid_t (only visable with DEBUG).Okan Demirmen
ok miod@ (who found others to fix as well)
2012-08-22Add memory barriers for powerpc.Martin Pieuchot
ok kettenis@, miod@