summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2011-05-30Enable MSI on selected hardware. For now this means all Intel, AMD and NVIDIAMark Kettenis
chipsets. All of those that support 64-bit CPUs should support MSI as well. Explicitly disable MSI on chipsets that connect to the CPU over HyperTransport. Enabling MSI on those systems is handled by the HyperTransport support code in our PCI subsystem.
2011-05-30Enable MSI on selected hardware. For now this means:Mark Kettenis
- Intel chipset supporting Pentium 4 or later. - Any AMD chipset made in this century. - Any NVIDIA chipset that has PCIe. Explicitly disable MSI on chipsets that connect to the CPU over HyperTransport. Enabling MSI on those systems is handled by the HyperTransport support code in our PCI subsystem.
2011-05-30Enable MSI for HyperTransport devices that have MSI remapping enabled.Mark Kettenis
2011-05-30Kthread_create is a kernel function so use kprintf format attribute instead.Martynas Venckus
OK millert@.
2011-05-29Add MSI support.Mark Kettenis
ok dlg@, oga@
2011-05-29regenMark Kettenis
2011-05-29Shorten a couple of old Intel chip names for consistency. Should save a fewMark Kettenis
bytes as a bonus.
2011-05-29Replace the lower bound PAGE_SIZE with VMMAP_MIN_ADDR.Ariane van der Steldt
This makes writing a diff that makes 64-bit unclean applications explode a one-line diff. ok deraadt
2011-05-29regenMark Kettenis
2011-05-29Add a few missing ATI chipset entries (and fix one since we prefer the chipMark Kettenis
names used in the documentation over marketing names).
2011-05-29Fix parameter range clamping in vmmap routines.Ariane van der Steldt
The old VM_MAP_RANGE_CHECK macro was wrong and caused code to be unreadable (argument altering macros are harmful). Each function now treats the memory range outside the map as it would treat free memory: if it would error on being given free memory, it'll error in a similar fashion when the start,end parameters fall outside the map. If it would accept free memory in its argument range, it'll silently accept the outside-map memory too. Confirmed to help ports build machines.
2011-05-29syncTheo de Raadt
2011-05-29Use k1x cpu scaling on all families 0x10 and above (the trend is likely toTheo de Raadt
continue); makes the AMD E-350 speed adjust (from slow to way slower). discussion with jsg.
2011-05-29pcidevs.hTheo de Raadt
2011-05-29two ATI bridges found in the x201Theo de Raadt
2011-05-29Move the source address selection for multicast destinations thatClaudio Jeker
specify the outgoing interface with a multicast option up. Doing this before the route lookup allows multicast traffic to work even when the default 224/4 reject route is installed. Raw IP and IPv6 already had this behaviour. Based on work by Christiano F. Haesbaert. OK sthen@
2011-05-29Let this compile on kernels without acpicpu.Claudio Jeker
Problem found by Nathanael Rensen (nathanael at polymorpheus dot com)
2011-05-29regenMark Kettenis
2011-05-29Intels calls this the 5400 chipset series instead of the E5400 chipset seriesMark Kettenis
(the latter is the name of the associated Xeon processors).
2011-05-29Don't attempt to use MSI if we're not running in APIC mode.Mark Kettenis
2011-05-29regenMark Kettenis
2011-05-29Fix typo in previous commit.Mark Kettenis
2011-05-29Ignore errors from the UCMS method. Some newer (really crappy, stayTheo de Raadt
away from them) thinkpads are returning garbage for the return value. We never did anything special about the return value except spit out some noise, so silence it. ok mlarkin
2011-05-28regenMark Kettenis
2011-05-28Add AMD Family 14h devices.Mark Kettenis
2011-05-28Remove out of data XXX comment.Mark Kettenis
2011-05-28Do not leak memory if ufs_open() fails; reported by and ok martynas@Miod Vallat
2011-05-28Add support for AMD SB800, where the SMBus control registers have been hiddenMark Kettenis
away. Based on a diff from Bryan Steele. ok deraadt@
2011-05-28Do not allow traffic to be sent with a destination address in 0/8;Paul de Weerd
this is not allowed according to Stevens and RFCs 5735 and 1122. Suggestion to use ENETUNREACH from claudio. OK phessler@, claudio@
2011-05-28Sync MCR0_BROADCAST register naming from FreeBSD now that itsKevin Lo
known the register is to disable broadcast instead of enabling broadcast packets. From Brad
2011-05-28age_newbuf is called from the interrupt context so it can't sleep.Kevin Lo
From Brad. Tested by Thomas Pfaff
2011-05-27Thou shall not use uninitialized TAILQsMiod Vallat
2011-05-27Fix the return values from pipe_kqfilter - kqfilters should return anNicholas Marriott
errno not 0/1. ok guenther
2011-05-27Whitespace nits; from BradKevin Lo
2011-05-26The check for the mcp98243 sdtemp(4) device was too strict. Relax it.Theo de Raadt
Tested by Joe Gidi
2011-05-25Also enclose variable names with external linkage in __BEGIN_DECLS.Martynas Venckus
Doesn't matter much since C++ ABI used by GCC doesn't mangle variable names; however technically is required by Section 7.5 of the C++ spec. Discussed with/OK guenther@, matthew@.
2011-05-25Set UX and SX in the system register early in boot. While not necessary onMiod Vallat
the real hardware, some emulators (such as those which name start with `qe' and end in `mu' and are four letters long) expect the cpu behaviour to honour the value of these bits. This is not worth doing but it's cheap.
2011-05-25Add the second serial port, might be the console device on 2E systems.Miod Vallat
2011-05-25Do not dereference ri_devcmap[] twice; found the hard way by Gilbert FernandesMiod Vallat
(firstname dot lastname at orange dot frogland).
2011-05-25Add dfs(4), a driver to support the Dynamic Frequency Switching featureMartin Pieuchot
found on some G4 PowerBook. Tested by many, thanks. ok sthen@, kettenis@, miod@
2011-05-25Don't do last minute changes to diffs. Revert the argument change toClaudio Jeker
pf_scrub in the rule (no-state) case. Since the action (a) may be NULL for e.g. the implicit pass rule. Should fix the panics seen by other people.
2011-05-25wdc.c doesn't use NATAPISCSI, so no point in including atapiscsi.h.Matthew Dempsky
It's the last file referencing atapiscsi.h too, so might as well get rid of the need-flags in files.atapiscsi.
2011-05-25- For AR8132 fast ethernet controller, do not report 1000baseTKevin Lo
capability to mii(4). - Limit DMA burst size to be less than or equal to 1024 bytes. Controller does not seem to support more than 1024 bytes DMA burst. - Do not touch CMB TX threshold register when CMB is not used. From FreeBSD via Brad - Properly initialize sc_product and alc_rev early enough in alc_attach() with the PCI product id and PCI revision. - Further sync if_alcvar.h changes from FreeBSD for L2C/L1D addition commit which in OpenBSD has been merged into if_alcreg.h From Brad; tested by Gabriel Linder and edd@.
2011-05-25try to map an msi style interrupt. if that doesnt work then try to map aDavid Gwynne
normal intx style interrupt. tested on a box with three mpii(4) controllers: mpii0 at pci5 dev 0 function 0 "Symbios Logic SAS2008" rev 0x03: msi mpii1 at pci8 dev 0 function 0 "Symbios Logic SAS2008" rev 0x03: msi mpii2 at pci14 dev 0 function 0 "Symbios Logic SAS2008" rev 0x03: apic 2 int 8 no functional change, ie, everything still works. it is ok to do this in mpii(4) since it is only enabled on i386 and amd64, which are the only archs to get msi code so far. discussed with and ok kettenis@
2011-05-24Move wdc_cd from ata/ata_wdc.c to ic/wdc.c so that you can compile aMatthew Dempsky
kernel without the former. Also, eliminate two dead stores in wdcattach(). ok dlg@
2011-05-24On OpenBSD, we've always attached scsibus(4) to umass(4), even forMatthew Dempsky
ATAPI devices. atapiscsi(4) is only for handling ATAPI devices on an ATA bus, so umass(4) shouldn't care about it. ok krw@, dlg@; no objections from deraadt@
2011-05-24syncTheo de Raadt
2011-05-24a few more devicesTheo de Raadt
2011-05-24Reimplement uvm/uvm_map.Ariane van der Steldt
vmmap is designed to perform address space randomized allocations, without letting fragmentation of the address space go through the roof. Some highlights: - kernel address space randomization - proper implementation of guardpages - roughly 10% system time reduction during kernel build Tested by alot of people on tech@ and developers. Theo's machines are still happy.
2011-05-24Merge pf_scrub_ip() and pf_scrub_ip6() into a single function. CallClaudio Jeker
pf_scrub with the right arugments in the rule case so that match rules will work as expected. As a benefit allow setting the tos on IPv6 packets as well. OK henning@