summaryrefslogtreecommitdiffstats
path: root/sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix a recommendation about concatenation of stringsguenther2012-07-051-3/+4
| | | | ok matthew@
* Invert the logic for detecting fibre interface media adapters.kettenis2012-07-041-5/+4
| | | | | | | Only the BCM5700-BCM5704 adapters had TBI interfaces for fibre and anyting newer uses the MII interface. From Brad.
* Set the 10_100_ONLY flag for the BCM57791/BCM57795 chipsetskettenis2012-07-041-1/+3
| | | | | | | as they're FastE chipsets. So ifconfig media doesn't list GigE for FastE-only capable PHY. From Brad.
* regenjsg2012-07-032-21/+56
|
* Switch from GT1/GT2 style names to marketing names for recent Inteljsg2012-07-031-10/+17
| | | | | | | Integrated graphics and add some 3rd gen Core i[357] ids. Also change Tigerpoint to NM10 while here. ok kettenis@
* Backout premature optimization and actually commit the diff which had beenmiod2012-07-021-3/+8
| | | | tested to boot multiuser.
* Does not need to pull in "the world" eitherderaadt2012-07-021-1/+3
| | | | ok jsing
* Report immediate deselection from a target upon selection as a `selectionmiod2012-07-021-5/+6
| | | | | | | | | timeout', instead of being stuck with a non-progressing request. This lets the nonexistent LUNs of the Insite Floptical probe (as non-existing) correctly. Step two of Floptical support, now if only the loading mechanism would unjam I could try some real I/O with it...
* Hibernate i/o implementation for ahci(4). This works with an ATI SBx00jmatthew2012-07-021-3/+312
| | | | | controller, but other brands (jmicron and intel have been tested) don't like something in the sleep process so they just lock up.
* Do not try to send a 10 byte MODE_SENSE request to non-ATAPI non-UMASSmiod2012-07-011-1/+10
| | | | | | | | | | | devices which advertize themselves as non-SCSI2-aware, since this command appeared in the SCSI-2 specification. This makes the Insite Floptical work when connected to a controller which correctly handles spontaneous deselection (which happens when a non-zero lun on said floptical device is addressed), such an esp(4) but not wdsc(4). This is step one of getting Floptical devices working on SGI systems. feedback and ok krw@
* Increase default and maximum text, data and stack size limits; this is requiredmiod2012-07-011-6/+6
| | | | | | to build X at -O2 nowadays, as well as an increasing number of ports. Based upon a diff from Brad, with a few values stripped down to fit within the sun4/4c virtual address space limitation. Discussed with deraadt@
* Pass a width value corresponding to one finger for ALPS touchpads when thempi2012-07-011-4/+8
| | | | | | | reported pressure is non-null. Fix the use of ALPS touchpads with recent (>1.6) xf86-input-synaptics drivers, issue reported by janis at cieti lv. Tested by yasuoka@ and janis, ok shadchin@
* Do not define XDC_DIAG if option SMALL_KERNEL; shaves about 14KB, and allowsmiod2012-07-011-1/+3
| | | | sparc floppies to fit again.
* Add support for the Winbond W83627UHG chip.lteo2012-07-012-2/+7
| | | | | | | | | | Ported from a DragonFly BSD commit by Constantine A. Murenin: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/245ec76bc1613b22cf282526fa9931e4c16e4237 Tested on a Lanner FW-7539 appliance. ok mlarkin mikeb haesbaert henning
* Nuke unused _[23]ltol() and _lto[23]l() inline functions. Movekrw2012-07-012-66/+24
| | | | | | _4ltol() and _lto4l() to bha, the only place they were used. ok dlg@
* Further research shows that fp@x,y device path components with x > 0 arekettenis2012-06-301-6/+6
| | | | | used by Solaris for virtual ports (NPIV), and booting from thos is not supported by OBP. Simplify the code accordingly.
* Further standards compliance fixes: export LONG_BIT, WORD_BIT, andguenther2012-06-301-8/+14
| | | | | | | | | | NL_{ARG,LANG,MSG,SET,TEXT}MAX with newer POSIX. Hide {FLT,DBL}_{DIG,MAX,MIN} and {PASS,TMP,NL_N}_MAX with newer XPG. Make _POSIX_NGROUPS_MAX and _POSIX_OPEN_MAX conditional on the POSIX version, like _POSIX_TZNAME_MAX already is. Add some more _POSIX_* and _XOPEN_* 'specified' limits. ok kettenis@
* Fix a number of problems introduced by the link state handling commit:mikeb2012-06-301-18/+64
| | | | | | | | | | | | | 1) demote by 32 on the first bulk update to prevent failovers w/o having a full state table; 2) don't do any demotion adjustments on the link up event and undemote when bulk update finishes (or times out) preventing a race between nodes getting a link state update asynchronously. With phessler; tested by phessler and Kapetanakis Giannis. Thanks! Looked through by henning and dlg. Now the correct version.
* backout rev1.185 as it's not what i have intended to commitmikeb2012-06-301-18/+7
|
* fix obvious panic on resume with AHCI_DEBUG enabledjmatthew2012-06-291-2/+2
| | | | ok dlg@
* match on the 7SERIES_SMBjasper2012-06-291-1/+2
| | | | reminded by jsg@
* add ESN-related bits missed in the previous commitmikeb2012-06-292-9/+13
|
* Add support for the Extended (64-bit) Sequence Number as definedmikeb2012-06-299-86/+237
| | | | | | | | | | | | in RFC4302 and RFC4303. Right now only software crypto engine is capable of doing it. Replay check was rewritten to implement algorithm described in the Appendix A of RFC4303 and the window size was increased to 64. Tested against OpenBSD, Linux (strongswan) and Windows. No objection from the usual suspects.
* regenjasper2012-06-292-2/+87
|
* add a bunch of intel 7 series id's for devices found in the thinkpad x230jasper2012-06-291-1/+18
| | | | ok kettenis@
* Correctly register contiguous memory regions which start within the ARCBiosmiod2012-06-281-3/+12
| | | | | | | | | | | | | reported memory but end beyond it, such as > 1GB DIMMs in bank 0. Also, currently restrict physical memory usage to 1.5GB - there seems to be a bogus 32 bit truncation happening in the IP30 specific codepath, which in turns ends up causing the low memory alias region (and thus, the exception vectors and the NMI handler) to be overwritten, which I can't find from code inspection (does anyone has 2GB of Octane memory to spare?) Both issues reported and fix/workaround tested by Florentijn van Kampen, thanks!
* Fix a number of problems introduced by the link state handling commit:mikeb2012-06-281-7/+18
| | | | | | | | | | | | | 1) demote by 32 on the first bulk update to prevent failovers w/o having a full state table; 2) don't do any demotion adjustments on the link up event and undemote when bulk update finishes (or times out) preventing a race between nodes getting a link state update asynchronously. With phessler; tested by phessler and Kapetanakis Giannis. Thanks! Looked through by henning and dlg.
* regenmikeb2012-06-282-17/+2
|
* Devices with BCM5724 BCM5750 and BCM5750M PCI IDs were never releasedmikeb2012-06-282-10/+3
| | | | to the public; from broadcom/linux via brad
* Fix issues with AMD chipset ahci(4) attach functions.sthen2012-06-281-3/+8
| | | | | | | | | | | | | | | | | | from Brad, ok jmatthew mikeb. - Have the SB700 attach routine properly call the IDE to AHCI function and migrate the ATI_SBX00_SATA_1 PCI id to using the SB700 attach routine. The SB600 routine was being used because it does the proper call. This just makes it so all of the SB700 controllers use the same attach routine, especially incase any other workarounds/errata type things come up or not setting SB600 things for SB700. - Have the Hudson-2 attach routine set the AHCI_F_IPMS_PROBE flag to resolve the issue with Port Multiplier support. The SB700 attachment function was being used because it was setting the flag. This also fixes the other Hudson-2 AHCI controllers so they won't experience the same issue.
* Change sparc64 to match the "fp" boot device path's parameter based onmatthew2012-06-271-2/+2
| | | | | | | | | | | | | | | | | | | the prototype-scsi_link's SDEV_2NDBUS flag rather than against its scsibus field. First, the scsibus field hasn't even been initialized when device_register() is called so it's always 0 anyway; second, the path number is supposed to be locally scoped to a single device whereas the scsibus field is a global scsibus(4) device number. The existing code only happened to work because all of the dual-port fibre-channel adapters we currently support attach as two devices with one scsibus each rather than a single device with two scsibuses, so we would never see anything but "fp@0". Initial investigation and diff by jmatthew after my SCSI cleanups at c2k11 broke sparc64's ability to boot from isp(4); newer version from me based on discussion with krw and kettenis. tested and ok kettenis
* ALPHA_PGSHIFT -> PGSHIFT.deraadt2012-06-261-2/+2
|
* do not assume that sys/param.h is pulling in the world; pull in what isderaadt2012-06-262-2/+4
| | | | needed by hand.
* param.h (like landisk and alpha before) was still trying to include tooderaadt2012-06-261-1/+3
| | | | much of the kernel world when it did not need to
* create new machine/_float.h which is namespace clean. create a newderaadt2012-06-2688-1203/+812
| | | | | | | | | MI float.h which pulls in and defines the values that are needed from there, and repair sys/limits.h so that it defines the values it needs as well (depending on POSIX version, XPG version, etc). guenther has a more exact selection of that coming for limits.h. this also fixes a few mistakes for the vax. reviewed by kettenis and guenther.
* initialize 'reason' variable before passing it to the pflog_packet;mikeb2012-06-261-3/+7
| | | | from david hill; ok henning
* Don't ignore SOCK_CLOEXEC and SOCK_NONBLOCK.pirofti2012-06-262-4/+39
| | | | | | | CAVEATS: Assumes that a new socket can't have any of the FCNTLFLAGS set on it, which _is_ true, currently... (guenther@) Okay guenther@, deraadt@.
* Improve compliance for <arpa/inet.h> and <netinet/in.h> to define/declareguenther2012-06-262-38/+27
| | | | | | | | all the symbols that POSIX says they must and fewer that they can't and, most importantly, to not require a specific ordering of headers. ports testing by naddy@ ok millert@ deraadt@
* Stop the song and dance where alpha param.h tries to include the world.deraadt2012-06-263-16/+10
| | | | "Why is this not commited yet?" says miod
* Turns out this file not need machine/float.h at all, since it definesderaadt2012-06-251-2/+1
| | | | | all the goop it needs by itself ok millert
* Code for the external L2 cache controller on Indy/Indigo2 R4600SC and Indymiod2012-06-243-4/+153
| | | | | | | | | | R5000SC processor modules; these sport an up to 512KB, physically indexed, write-through L2 cache which is not connected to the canonical external cache interface of these processors (hence requiring specific code to drive it). The cache is enabled early and disabled before returning to ARCBios (for very nasty things happen otherwise). Tested on R5000SC, will be tested on R4600SC soon.
* Bring in line with current cache_r{5,10}k.c style, and optimize slightly themiod2012-06-241-9/+12
| | | | handling of a partial last line in IOSyncDCache. No functional change.
* Since the RM7000 cache behaves as a physically-indexed cache due to the setmiod2012-06-241-59/+55
| | | | | | size being not larger than 4KB, use Hit operations on the pa instead of Index operations on the va for each set in the SyncDCachePage routine, when running with such a cache.
* Get the L2 line size from the configuration register instead of hardcoding themiod2012-06-241-19/+44
| | | | | | | | smallest possible size; and on kernels with 16KB pages, where no virtual aliasing happens, use Hit operations on the pa instead of index operations on the va for all sets in the SyncDCachePage routine. Tested by mikeb@ on IP32 and myself on IP27/28/30/35
* Do not output unnecessary semicolons when expanding macros. No functional changemiod2012-06-241-6/+6
|
* Change arc4random_uniform() to calculate ``2**32 % upper_bound'' asmatthew2012-06-241-12/+3
| | | | | | | | | | ``-upper_bound % upper_bound''. Simplifies the code and makes it the same on both ILP32 and LP64 architectures, and also slightly faster on LP64 architectures by using a 32-bit remainder instead of a 64-bit remainder. Pointed out by Jorden Verwer on tech@ ok deraadt; no objections from djm or otto
* Add cache operation functions pointers to struct cpu_info; the variousmiod2012-06-2412-132/+118
| | | | | | | | | cache lines and sizes are already there, after all. The ConfigCache cache routine is responsible for filling these function pointers; cache routine invocation macros are updated to use the cpu_info fields, but may still be overriden in <machine/cpu.h> on platforms where only one set of cache routines is used.
* Replace R5000 and R10000 family assembly cache routines with C equivalents,miod2012-06-235-1424/+1150
| | | | | which will be easier to maintain on the long run. Be sure to rm cache_r*.d in your kernel compile directories after updating.
* Fix ITLBNOPFIX macro definition on RM7000-capable kernels, and use itmiod2012-06-232-4/+10
| | | | in cp0_set_config() for consistency.
* There's no need to check for the last qTD of a list because they arempi2012-06-231-5/+3
| | | | | | NULL-terminated. Part of a larger diff from Gerhard Roth