summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Correctly expose xlocale functions if people include the headers in the wrongtheraven2012-03-289-5/+17
| | | | | | order (as some ports apparently do). Approved by: dim (mentor)
* Honor the net.inet.udp.checksum sysctl when using SCTP/UDP/IPv4tuexen2012-03-281-9/+35
| | | | | | encapsulation. MFCing requires MFCing http://svn.freebsd.org/changeset/base/233554 MFC after: 2 weeks
* Remove unnecessary #if as the software workaround for PCI protocolyongari2012-03-281-8/+5
| | | | | | | | | violation should be activated unless the system is cold-booted after updating EEPROM. The PCI protocol violation happens only when established link is 10Mbps so the workaround should be updated whenever link state change is detected. Previously the workaround was activated only when user checks current media status with ifconfig(8).
* Load entire EEPROM contents in device attach time and verifyyongari2012-03-283-23/+59
| | | | | | | | | | | whether the checksum of EEPROM is valid or not. Because driver heavily relies on EEPROM information when it selectively enables features/workarounds, it would be helpful to know whether driver sees valid EEPROM. While I'm here remove all other EEPROM accesses since the entire EEPROM is loaded at device attach time. MFC after: 2 weeks
* Partially revert r223608 and selectively allow microcode loadingyongari2012-03-282-5/+18
| | | | | | | | | | | | | | | | | | for 82550C. For 82550 controllers this change restores CPUSaver microcode loading. Due to silicon bug on 82550 and 82550C with server extension, these controllers seem to require CPUSaver microcode to receive fragmented UDP datagrams. However the microcode shouldn't be used on client featured 82550C as it locks up the controller. In addition, client featured 82550C does not have the silicon bug. Also clear temporary memory used for microcode loading since the same memory area is used for other commands. While I'm here use 82550C in probe message instead of generic 82550. Reported by: Andreas Longwitz <longwitz <> incore de> Tested by: Andreas Longwitz <longwitz <> incore de> MFC after: 2 weeks
* - Do not clobber softc when psm(4) is reintialized.jkim2012-03-272-154/+131
| | | | | | | | | | | | - Make INITAFTERSUSPEND flag independent of HOOKRESUME flag. - Automatically set INITAFTERSUSPEND flag when ALPS GlidePoint is detected. - Always probe Synaptics Touchpad. Allow MOUSE_SYN_GETHWINFO ioctl and automatically set INITAFTERSUSPEND flag when a supported device is detected, regardless of "hw.psm.synaptics_support" tunable setting. - Update psm(4) to reflect the above changes. - Remove long-time defunct SYNCHACK flag while I am in the neighborhood. MFC after: 1 month
* Restore interrupt state after executing AcpiEnterSleepState().jkim2012-03-271-5/+10
|
* Allow (with a license warning) "options ZFS" to work in static kernels.peter2012-03-2712-4/+156
| | | | | | | | | | | The 'make depend' rules have to use custom -I paths for the special compat includes for the opensolaris/zfs headers. This option will pull in the couple of files that are shared with dtrace, but they appear to correctly use the MODULE_VERSION/MODULE_DEPEND rules so loader should do the right thing, as should kldload. Reviewed by: pjd (glanced at)
* mdoc: add missing El macro.joel2012-03-272-0/+3
|
* Minor indentation and paragraph nits.joel2012-03-271-4/+4
|
* Make ReiserFS MPSAFEdumbbell2012-03-271-3/+11
| | | | | | Most functions seemed to be already fine w.r.t. what's done in msdosfs. MFC after: 1 month
* Only use macros inside a reference block.joel2012-03-271-10/+5
| | | | Discussed with: brueffer
* strip (R) to match manpage and pci_vendorsbschmidt2012-03-271-29/+29
| | | | MFC after: 1 week
* Fix size of PCI softc.jchandra2012-03-271-1/+2
|
* Fix crash on VirtualBox (and probably on some real hardware):gonzo2012-03-272-1/+8
| | | | | | | | - Do not cover error returned by pmc_core_initialize with the result of pmc_uncore_initialize, fail right away. - Give a user something to report instead failing silently Reported by: Alexandr Kovalenko <never@nevermind.kiev.ua>
* Add a list of available devices which matches the names shown by pciconf.bschmidt2012-03-271-7/+25
| | | | | | While here add 2 missing firmware modules. MFC after: 1 week
* Add support for 6150 series devices.bschmidt2012-03-271-0/+2
| | | | | Tested by: Shane Riddle <sh4neriddle at yahoo dot com> MFC after: 1 week
* Remove useless Ta macro.joel2012-03-273-14/+14
|
* Resource allocation for XLP SoC SDHCI slotsjchandra2012-03-272-0/+21
| | | | | | | | The on-chip SD slots do not have PCI BARs corresponding to them, so this has to be handled in the custom SoC memory allocation. Provide memory resource for rids corresponding to BAR 0 and 1 in the custom allocation code.
* Update memory and resource allocation code for SoC devicesjchandra2012-03-279-375/+343
| | | | | | | | | | | | | | | | The XLP on-chip devices have PCI configuration headers, but some of the devices need custom resource allocation code. - devices with no MEM/IO BARs with registers in PCIe extended reg space have to be handled in memory resource allocation - devices without INTPIN/INTLINE in PCI header can be supported by having these faked with a shadow register. - Some devices does not allow 8/16 bit access to the register space, he default bus space cannot be used for these. Subclass pci and override attach and resource allocation methods to take care of this. Remove earlier code which did this partially.
* MFV: r233551jkim2012-03-271-0/+2
| | | | | | Fix two possible memory leaks in error path. Obtained from: ACPICA
* Minor mdoc nit.joel2012-03-271-1/+1
|
* NOR flash driver for XLP.jchandra2012-03-274-0/+93
| | | | | The NOR interface on the SoC appears on the top level PCI bus. Add a simple driver for this.
* MFV: r233550jkim2012-03-274-58/+109
| | | | | | | | Temporarily revert an upstream commit. This change caused regressions for too many laptop users. Especially, automatic repair for broken _BIF caused strange reference counting issues and kernal panics. This reverts: https://github.com/otcshare/acpica/commit/c995fed15ab41f6feae1299876271ea330f5c1c5
* Export the udp_cksum sysctl for upcoming SCTP work. Rather than always,bz2012-03-272-4/+6
| | | | | | | | | | | SCTP will only do IPv4 UDP checksum calculation as defined by the host policy. When tunneling SCTP always calculates the inner checksum already so not doing the outer UDP can save cycles. While here virtualize the variable. Requested by: tuexen MFC after: 2 weeks
* CFI fixes for big endian archs.jchandra2012-03-274-8/+36
| | | | | | | | | | The flash commands and responses are little-endian and have to be byte swapped on big-endian systems. However the raw read of data need not be swapped. Make the cfi_read and cfi_write do the swapping, and provide a cfi_read_raw which does not byte swap for reading data from flash.
* Instead of only iterating over the set of known SDT probes when sdt.ko isrstone2012-03-273-6/+79
| | | | | | | | | | | | | | | | | | | | | | | | loaded and unloaded, also have sdt.ko register callbacks with kern_sdt.c that will be called when a newly loaded KLD module adds more probes or a module with probes is unloaded. This fixes two issues: first, if a module with SDT probes was loaded after sdt.ko was loaded, those new probes would not be available in DTrace. Second, if a module with SDT probes was unloaded while sdt.ko was loaded, the kernel would panic the next time DTrace had cause to try and do anything with the no-longer-existent probes. This makes it possible to create SDT probes in KLD modules, although there are still two caveats: first, any SDT probes in a KLD module must be part of a DTrace provider that is defined in that module. At present DTrace only destroys probes when the provider is destroyed, so you can still panic the system if a KLD module creates new probes in a provider from a different module(including the kernel) and then unload the the first module. Second, the system will panic if you unload a module containing SDT probes while there is an active D script that has enabled those probes. MFC after: 1 month
* XLP UART code udpate.jchandra2012-03-274-27/+35
| | | | | | | Move XLP PCI UART device to sys/mips/nlm/dev/ directory. Other drivers for the XLP SoC devices will be added here as well. Update uart_cpu_xlp.c and uart_pci_xlp.c use macros for uart port, speed and IO frequency.
* Use VM_MEMATTR_UNCACHEABLE instead of VM_MEMATTR_UNCACHED for UC mappings.jhb2012-03-272-2/+2
| | | | | VM_MEMATTR_UNCACHED is actually the x86-specific UC- mode (where a WC MTRR can override the PAT setting).
* Prevent rtld_verify_object_versions() from being called several timeskib2012-03-272-0/+5
| | | | | | | | | | for the same object. This can happen when object is a dependency of the dlopen()ed dso. When called several times, we waste time due to unneeded processing, and memory, because obj->vertab is allocated anew on each iteration. Reviewed by: kan MFC after: 2 weeks
* xlpge : driver for XLP network acceleratorjchandra2012-03-2723-7/+6861
| | | | | | | | | | | | | Features: - network driver for the four 10G interfaces and two management ports on XLP 8xx. - Support 4xx and 3xx variants of the processor. - Source code and firmware building for the 16 mips32r2 micro-code engines in the Network Accelerator. - Basic initialization code for Packet ordering Engine. Submitted by: Prabhath Raman (prabhath at netlogicmicro com) [refactored and fixed up for style by jchandra]
* Fix random deadlock on pmcstat exit:fabient2012-03-271-2/+4
| | | | | | | | | | - Exit the thread when soft shutdown is requested - Wakeup owner thread. Reproduced/tested by looping pmcstat measurement: pmcstat -S instructions -O/tmp/test ls MFC after: 1 week
* Support for EEPROM and CPLD on XLP EVP boards.jchandra2012-03-277-24/+487
| | | | | | | On XLP evaluation platform, the board information is stored in an I2C eeprom and the network block configuration is available from a CPLD connected to the GBU (NOR flash bus). Add support for both of these.
* Opencrypto driver for XLP Security and RSA/ECC blocksjchandra2012-03-2710-0/+3518
| | | | | | | | Support for the Security and RSA blocks on XLP SoC. Even though the XLP supports many more algorithms, only the ones supported in OCF have been added. Submitted by: Venkatesh J. V. (venkatesh at netlogicmicro com)
* I2C support for XLP, add hints for I2C devices and update PCI resourcejchandra2012-03-273-3/+26
| | | | allocation code.
* Driver for OpenCores I2C controller.jchandra2012-03-274-0/+471
| | | | | | | Add a Simple polled driver iicoc for the OpenCores I2C controller. This is used in Netlogic XLP processors. Submitted by: Sreekanth M. S. (kanthms at netlogicmicro com)
* Fix property name, r233537 used mime-type instead of svn:mime-typejchandra2012-03-270-0/+0
|
* Move driver for DS1374 RTC to sys/dev/iicbusjchandra2012-03-273-0/+146
| | | | | | The earlier version of the driver is sys/mips/rmi/dev/iic/ds1374u.c Convert all references to ds1374u to ds1374, and use DEVMETHOD_END. Also update the license header as Netlogic is now Broadcom.
* XLP PCIe code update.jchandra2012-03-273-50/+99
| | | | | | | | | | | | - XLP supports hardware swap for PCIe IO/MEM accesses. Since we are in big-endian mode, enable hardware swap and use the normal bus space. - move some printfs to bootverbose, and remove others. - fix SoC device resource allocation code - Do not use '|' while updating PCIE_BRIDGE_MSI_ADDRL - some style fixes In collaboration with: Venkatesh J. V. (venkatesh at netlogicmicro com)
* Update the L1D cache flush sequence when enabling threads.jchandra2012-03-271-7/+7
| | | | Added more comments to the code.
* Switch to interrupt based message handling for XLP 8xx B0.jchandra2012-03-271-22/+22
| | | | Fixup some style issues in the file as well.
* Support for XLP4xx and XLP 8xx B0 revisionjchandra2012-03-274-54/+159
| | | | | | | - Add 4xx processor IDs, add workaround in CPU detection code. - Update frequency detection code for XLP 8xx. - Add setting device frequency code. - Update processor ID checking code.
* Fixes to the XLP startup code.jchandra2012-03-271-6/+12
| | | | | | Changes are: - Correct the order of calling init functions. - Fix up checking excluding reset area.
* Correct the ordering of tid/crypto ic_name.adrian2012-03-271-1/+1
| | | | | | | | | Because the code lacks all the GNU extensions to printf() format stuff, the compiler doesn't helpfully tell us that I messed up in a previous commit. Pointy hat to: adrian, who likely only cares about this because he's the only one who bothers flipping on net80211 debugging.
* Make sure to call vm_page_dirty() before the pmap lock is released tonwhitehorn2012-03-271-2/+2
| | | | | | prevent a race where another process could conclude the page was clean. Submitted by: alc
* More PMAP concurrency improvements: replace the table lock and (almost) allnwhitehorn2012-03-271-86/+100
| | | | | | | | uses of the page queues mutex with a new rwlock that protects the page table and the PV lists. This reduces system time during a parallel buildworld by 35%. Reviewed by: alc
* - For o32 ABI get arguments from the stackgonzo2012-03-261-0/+28
| | | | | - Clear CPU_DTRACE_FAULT flag in userland backtrace routine. It just means we hit wrong memory region and should stop.
* Handle MIPS .reginfo section as ELF_T_BYTEgonzo2012-03-261-0/+2
|
* Add .reginfo section entrygonzo2012-03-261-0/+1
|
* mdoc: correct .Bd/.Bl arguments.joel2012-03-2610-34/+34
| | | | Reviewed by: brueffer
OpenPOWER on IntegriCloud