summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merging of projects/armv6, part 9gonzo2012-08-156-0/+1114
| | | | | | Very basic support for Nvidia Tegra2: timer, interrupts, UART. Submitted by: Damjan Marion <dmarion@freebsd.org>
* Merging of projects/armv6, intermissiongonzo2012-08-153-0/+202
| | | | | | Add configs missed in previous commits: - ARMADA XP - Embedded Artists EA3250
* Merging of projects/armv6, part 8gonzo2012-08-1525-5/+7865
| | | | | | | | | | | | | | | | | | | | r235162: Initial LPC32x0 support. Includes DTS file for Embedded Artists EA3250 board. Peripherals currently supported: - Serial ports - Interrupt controller - Timers - Ethernet - USB host - Framebuffer (in conjunction with SSD1289 LCD controller) - RTC - SPI - GPIO Submitted by: Jakub Wojciech Klama <jceel@freebsd.org>
* Merging of projects/armv6, part 7gonzo2012-08-1520-185/+1675
| | | | | | Add Marvell ARMADA XP support Obtained from: Marvell, Semihalf
* Merging of projects/armv6, part 6gonzo2012-08-152-25/+85
| | | | | | | r229271: Import files needed to build ARMADA XP kernel. Submitted by: Grzegorz Bernacki
* Merging of projects/armv6, part 5gonzo2012-08-159-3/+2319
| | | | | | | - Driver for SMSC LAN95XX and LAN8710A ethernet controllers - Driver for LAN8710A PHY Submitted by: Ben Gray, Damjan Marion, Tim Kientzle
* Merging of projects/armv6, part 4gonzo2012-08-155-49/+70
| | | | | | | | | | | | | | | | | r233822: Remove useless and wrong piece of code in fdt_get_range() which i overwrites passed phandle_t node. Modify debug printf in fdt_reg_to_rl() to be consistent (that is, print start and end *virtual* addresses). r230560: Handle "ranges;" Make fdt_reg_to_rl() responsible for mapping the device memory, instead on just hoping that there's only one simplebus, and using fdt_immr_va as the base VA. r230315 Add a function to get the PA from range, instead of (ab)using fdt_immr_pa, and use it for the UART driver
* Merging of projects/armv6, part 4gonzo2012-08-151-2/+5
| | | | | r232281: Fix byte order.
* Merging of projects/armv6, part 3gonzo2012-08-1520-22/+59
| | | | | | | | | | | | | | | | | | | | | | | | r238211: Support TARGET_ARCH=armv6 and TARGET_ARCH=armv6eb This adds a new TARGET_ARCH for building on ARM processors that support the ARMv6K multiprocessor extensions. In particular, these processors have better support for TLS and mutex operations. This mostly touches a lot of Makefiles to extend existing patterns for inferring CPUARCH from ARCH. It also configures: * GCC to default to arm1176jz-s * GCC to predefine __FreeBSD_ARCH_armv6__ * gas to default to ARM_ARCH_V6K * uname -p to return 'armv6' * make so that MACHINE_ARCH defaults to 'armv6' It also changes a number of headers to use the compiler __ARM_ARCH_XXX__ macros to configure processor-specific support routines. Submitted by: Tim Kientzle <kientzle@freebsd.org>
* Merging of projects/armv6, part 2gonzo2012-08-152-0/+10
| | | | Handle TLS for ARMv6 and ARMv7
* Merging of projects/armv6, part 2gonzo2012-08-151-1/+13
| | | | Handle TLS for ARMv6 and ARMv7
* Merging of projects/armv6, part 2gonzo2012-08-151-1/+14
| | | | Handle TLS for ARMv6 and ARMv7
* Merging projects/armv6, part 1gonzo2012-08-1564-692/+9940
| | | | | | | | | Cummulative patch of changes that are not vendor-specific: - ARMv6 and ARMv7 architecture support - ARM SMP support - VFP/Neon support - ARM Generic Interrupt Controller driver - Simplification of startup code for all platforms
* The size of the buffers in an Ethernet freelist has to be higher than thenp2012-08-151-5/+15
| | | | | | | | | | interface's MTU. Initialize such freelists with correct values. This wasn't a problem for common MTUs (1500 and 9000) as the buffers (2048 and 9216 in size) happened to have enough spare room. I ran into it when playing around with unusual MTUs. MFC after: 2 weeks
* Assume INET, INET6, and TCP_OFFLOAD when the driver is built out of tree andnp2012-08-142-0/+25
| | | | | | KERNBUILDDIR is not set. MFC after: 2 weeks
* Dump out the TX FIFO depth.adrian2012-08-141-2/+3
|
* Break out the TX completion code into a separate function, so it can beadrian2012-08-142-35/+67
| | | | | | | | | re-used by the upcoming EDMA TX completion code. Make ath_stoptxdma() public, again so the EDMA TX code can use it. Don't check for the TXQ bitmap in the ISR when doing EDMA work as it doesn't apply for EDMA.
* Add an assertion to check that the given TXQ is _not_ locked.adrian2012-08-141-1/+4
|
* Rename command defines to match names used in the datasheet, in order togavin2012-08-141-54/+57
| | | | | | | | | | make maintaining this driver from the documentation easier in the future. This is a mostly mechanical change. In uslcom_param(), move the zeroing of the final two fields of the flowctrl structure outside of the "if CRTSCTS" section - not only were they being zeroed in both the clauses, but these two fields have nothing to do with hardware flow control anyway.
* if_iqdrops should include frames truncated within the chip.np2012-08-141-1/+2
| | | | MFC after: 2 weeks
* Convert some fixed parameters to tunables (with reasonable defaultnp2012-08-142-15/+94
| | | | | | | | | | | | values). - cong_drop specifies what to do on congestion: nothing, backpressure, or drop. - fl_pktshift specifies the padding before Ethernet payload. - fl_pad specifies the boundary upto which to pad Ethernet payload. - spg_len controls the length of the status page. MFC after: 2 weeks
* Reserve room for the terminating NUL when setting or getting kerneljh2012-08-141-6/+6
| | | | | environment variables. KENV_MNAMELEN and KENV_MVALLEN doesn't include space for the terminating NUL.
* As discussed on -current, remove the hardcoded default maxswzone.des2012-08-143-27/+20
| | | | MFC after: 3 weeks
* Fix multichannel input signals tracing on some CODECs like ALC260.mav2012-08-141-5/+4
| | | | | Reported and tested by: Slawa Olhovchenkov <slw@zxy.spb.ru> MFC after: 1 month
* Pospone the DF_1_NODELETE processing until object DAG is fully loaded.kan2012-08-141-7/+27
| | | | | | | | | Trying to up the reference from the load loop risks missing dependencies that have not been loaded yet. MFC afer: 1 week Reported by: nox Reviewd by: kib
* Add a hackish debugging facility to provide a bit of information aboutkib2012-08-141-2/+20
| | | | | | | | | | | | | | reason for generated trap. The dump of basic signal information and 8 bytes of the faulting instruction are printed on the controlling terminal of the process, if the machdep.uprintf_signal syscal is enabled. The print is the only practical way to debug traps from a.out processes I am aware of. Because I have to reimplement it each time I debug an issue with a.out support on amd64, commit the hack to main tree. MFC after: 1 week
* Real hardware, as opposed to QEMU, does not allow to have a call gatekib2012-08-142-6/+27
| | | | | | | | | | | | in long mode which transfers control to 32bit code segment. Unbreak the lcall $7,$0 implementation on amd64 by putting the 64bit user code segment' selector into call gate, and execute the 64bit trampoline which converts the return frame into 32bit format and switches back to 32bit mode for executing int $0x80 trampoline. Note that all jumps over the hoops are performed in the user mode. MFC after: 1 week
* For old mmap syscall, when executing on amd64 or ia64, enforce thekib2012-08-141-0/+7
| | | | | | | | | | | | PROT_EXEC if prot is non-zero, process is 32bit and kern.elf32.i386_read_exec syscal is enabled. This workaround is needed for old i386 a.out binaries, where dynamic linker did not specified PROT_EXEC for mapping of the text. The kern.elf32.i386_read_exec MIB name looks weird for a.out binaries, but I reused the existing knob which already has the needed semantic. MFC after: 1 week
* Regenerate.kib2012-08-144-7/+7
|
* Implement the old mmap syscall for compat32, when COMPAT_43 option iskib2012-08-141-1/+2
| | | | | | enabled. The syscall is used by FreeBSD 1.1.5.1 dynamic linker. MFC after: 1 week
* Adjust the r205536, by allowing a non-zero offset for anonymouskib2012-08-141-5/+17
| | | | | | | | mappings for a.out binaries. Apparently, a.out ld.so from FreeBSD 1.1.5.1 can issue such requests. Reported and tested by: Dan Plassche <dplassche@gmail.com> MFC after: 1 week
* Do not leave invalid pages in the object after the short read for akib2012-08-147-14/+28
| | | | | | | | | | | | | | network file systems (not only NFS proper). Short reads cause pages other then the requested one, which were not filled by read response, to stay invalid. Change the vm_page_readahead_finish() interface to not take the error code, but instead to make a decision to free or to (de)activate the page only by its validity. As result, not requested invalid pages are freed even if the read RPC indicated success. Noted and reviewed by: alc MFC after: 1 week
* Fix typo in comment.andreast2012-08-141-1/+1
|
* Add locking to the twe(4) driver and make it MPSAFE:jhb2012-08-134-180/+196
| | | | | | | | | | | | | | | | | | | - Add per-controller configuration (sx) and I/O (mutex) locks. The configuration lock protects the relationship of volumes and drives while the I/O lock protects access to the controller's registers and the main I/O path. - Remove some checks for M_WAITOK malloc()'s failing. - Remove the explicit bus space tag/handle from the softc and use bus_*() rather than bus_space_*(). - Reuse the existing new-bus sysctl context instead of creating a new one. - Remove compat shims for FreeBSD 4.x. - Use pci_enable_busmaster() rather than doing it by hand, and rely on bus_alloc_resource() to enable PCI I/O decoding. Tested by: Mike Tancsa mike sentex net Reviewed by: scottl (partially) MFC after: 1 month
* After r239066, reinitialize v86.ctl and v86.addr for int 13 EDD probingdim2012-08-131-0/+2
| | | | | | in sys/boot/i386/libi386/biosdisk.c. Otherwise, when DISK_DEBUG is enabled, the DEBUG() macros will clobber those fields, and cause the probing to always fail mysteriously when debugging is enabled.
* Reword comment to try to improve clarity, and fix a typo.emaste2012-08-131-5/+8
|
* Remove the deassert INIT IPI from the IPI startup sequence for APs.jhb2012-08-132-32/+2
| | | | | | | | | It is not listed in the boot sequence in the MP specification (1.4), and it is explicitly ignored on modern CPUs. It was only ever required when bootstrapping systems with external APICs (that is, SMP machines with 486s), which FreeBSD has never supported (and never will). While here, tidy some comments and remove some banal ones.
* Fix for missing locks due to recent change.hselasky2012-08-131-1/+11
| | | | | PR: usb/170606 MFC after: 2 weeks
* Add support for streams to LibUSB v2.0.hselasky2012-08-135-14/+43
| | | | MFC after: 2 weeks
* Rename new IOCTL to singular form of the noun "streams".hselasky2012-08-132-6/+6
| | | | MFC after: 2 weeks
* Improve auto-quirks detection for certain Kingston memory sticks.hselasky2012-08-131-1/+41
| | | | MFC after: 2 weeks
* Port the new PV entry allocator from amd64/i386. This allocator has twoalc2012-08-133-223/+436
| | | | | | | | | | | | | advantages. First, PV entries are roughly half the size. Second, this allocator doesn't access the paging queues, and thus it will allow for the removal of the page queues lock from this pmap. Fix a rather serious bug in pmap_remove_write(). After removing write access from the specified page's first mapping, pmap_remove_write() then used the wrong "next" pointer. Consequently, the page's second, third, etc. mappings were not write protected. Tested by: jchandra
* Add a 10 millisecond delay after sending the initial INIT IPI. Thisjhb2012-08-132-2/+4
| | | | | | matches the algorithm in the MP specification (1.4). Previously we were sending out the deassert INIT IPI immediately after the initial INIT IPI was sent.
* Use array notation for consistency.emaste2012-08-131-2/+2
|
* Correct description of minfree to kilobytes rather than blocks.wblock2012-08-131-1/+1
| | | | | | PR: 125921 Submitted by: Andre Albsmeier <Andre.Albsmeier@siemens.com> MFC after: 3 days
* Restore the old behaviour. If requested partition is a BSD slice,ae2012-08-131-3/+11
| | | | | but d_partition isn't explicitly set, then try to open BSD label and its first partition.
* Remove colons from the debug message, device name returned by theae2012-08-131-4/+4
| | | | disk_fmtdev() already has the colons.
* Unbreak booting from the true dedicated disks.ae2012-08-132-3/+14
| | | | | | | When we open the disk, check the type of partition table, that has been detected. If this is BSD label, then we assume this is DD mode. Reported by: dim@
* Build modules along with the XENHVM kernels.cperciva2012-08-132-4/+0
| | | | | No objections from: freebsd-xen mailing list MFC after: 1 week
* Remove extraneous newline.mjacob2012-08-121-1/+1
| | | | MFC after: 1 month
OpenPOWER on IntegriCloud