summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* For IP1001 PHY, do not set multi-port device(MASTER). Ideally thisyongari2011-11-221-1/+2
| | | | | | | | | | bit should not affect link establishment process of auto-negotiation if manual configuration is not used, which is true in auto-negotiation. However it seems setting this bit interfere with IP1001 PHY's down-shifting feature such that establishing a 10/100Mbps link failed when 1000baseT link is not available during auto-negotiation process. Tested by: Andrey Smagin <samspeed <> mail dot ru >
* Remove libpam from _prebuild_libs. This should unbreak the -jX build.des2011-11-221-2/+1
| | | | MFC after: 3 weeks
* No need in procfs(5).trociny2011-11-222-25/+1
| | | | MFC after: 2 weeks
* Now kvm_getenvv() and kvm_getargv() don't need procfs(5).trociny2011-11-222-341/+27
| | | | MFC after: 2 weeks
* Add new options, -e and -x, to display process environment variablestrociny2011-11-226-12/+228
| | | | | | and ELF auxiliary vectors. MFC after: 2 weeks
* Announce flow control capability to underlying PHY driver.yongari2011-11-221-4/+11
| | | | | | Pause timer value is initialized to 0xFFFF. Controller allows just 4 different TX pause thresholds. The lowest possible threshold value looks too aggressive so use next available threshold value.
* Retire linprocfs_doargv(). Instead use new functions, proc_getargv()trociny2011-11-221-146/+14
| | | | | | | | | | and proc_getenvv(), which were implemented using linprocfs_doargv() as a reference. Suggested by: kib Reviewed by: kib Approved by: des (linprocfs maintainer) MFC after: 2 weeks
* Rework link establishment and link state detection logic.yongari2011-11-221-18/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove MIIBUS statchg callback and program VGE_DIAGCTL before initiating link establishment. Previously driver used to program VGE_DIAGCTL after getting a link in statchg callback. It seems the VGE_DIAGCTL register works like a kind of MII register such that it requires setting a 'to be' mode in advance rather than relying on resolved speed/duplex of established link. This means the statchg callback is not needed in driver. In addition, if there was no link at the time of media change, this was not called at all. - Introduce vge_ifmedia_upd_locked() to change current media to configured one. Actual media change is performed only after PHY reset and VGE_DIAGCTL setup. - In WOL configuration, make sure to clear forced mode such that controller can rely on auto-negotiation. - Unlike most other drivers that use miibus(4), vge(4) used controller's auto-polling feature for link state tracking via interrupt. This came from controller's inefficient mechanism to access MII registers. On link state change interrupt, vge(4) used to get current link state with series of MII register accesses. Because vge(4) already enabled auto polling, read PHY status register to resolved speed/duplex/flow control parameters. vge(4) still does not drive MII_TICK to reduce number of MII register accesses which in turn means the driver does not know the status of auto-negotiation. This was a one of long standing issue of vge(4). Probably driver may be able to implement a timer that keeps track of auto-negotiation state and restart auto-negotiation when driver couldn't establish a link within a specified period. However the controller does not provide a reliable way to detect auto-negotiation failure so I'm not sure whether it's worth to implement it in driver. Alternatively driver can completely disable MII auto-polling and let miibus(4) poll link state by driving MII_TICK. This may reduce unnecessary overhead of stopping/restarting MII auto-polling of controller. Unfortunately it was known that some variants of controller does not work correctly if MII auto-polling is disabled.
* In procfs_doproccmdline() if arguments are not cashed read them fromtrociny2011-11-221-30/+8
| | | | | | | | | the process stack. Suggested by: kib Reviewed by: kib Tested by: pho MFC after: 2 weeks
* Add new sysctls, KERN_PROC_ENV and KERN_PROC_AUXV, to returntrociny2011-11-223-5/+409
| | | | | | | | | | | | | | | | environment strings and ELF auxiliary vectors from a process stack. Make sysctl_kern_proc_args to read not cached arguments from the process stack. Export proc_getargv() and proc_getenvv() so they can be reused by procfs and linprocfs. Suggested by: kib Reviewed by: kib Discussed with: kib, rwatson, jilles Tested by: pho MFC after: 2 weeks
* Improve logging:glebius2011-11-221-2/+2
| | | | | | - don't hardcode function name - use LOG_DEBUG for such a debug message - print error value
* style(9) nitglebius2011-11-221-1/+2
|
* Fix SIOCDIFADDR semantics: if no address is specified, then delete first one.glebius2011-11-221-1/+1
|
* - Add a DEVMETHOD_END alias for KOBJMETHOD_END so that along with 'driver_t'marius2011-11-222-3/+4
| | | | | | | | | and DEVMETHOD() we can fully hide the explicit mention of kobj(9) from device drivers. - Update the example in driver.9 to use DEVMETHOD_END. Submitted by: jhb MFC after: 3 days
* Always start MII auto polling before accessing any MII registers.yongari2011-11-221-0/+2
|
* Define __FreeBSD_kernel__ macro in sys/param.h.rmh2011-11-221-0/+16
| | | | | | | | | | | | | | | | | __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD, which by definition is always true on FreeBSD. This macro is also defined on other systems that use the kernel of FreeBSD, such as GNU/kFreeBSD. It is tempting to use this macro in userland code when we want to enable kernel-specific routines, and in fact it's fine to do this in code that is part of FreeBSD itself. However, be aware that as presence of this macro is still not widespread (e.g. older FreeBSD versions, 3rd party compilers, etc), it is STRONGLY DISCOURAGED to check for this macro in external applications without also checking for __FreeBSD__ as an alternative. Approved by: kib (mentor) MFC after: 2 weeks
* Append unit number to the WMI status device name to allow attachingjh2011-11-222-6/+6
| | | | | | | multiple acpi_wmi(4) instances. PR: kern/162491 Reviewed by: avg
* Avoid panics from recursive rename operations. Not a perfect patch butivoras2011-11-221-6/+3
| | | | | | | | | good enough for now. PR: kern/159418 Submitted by: Gleb Kurtsou Reviewed by: kib MFC after: 1 month
* Fix a crash when trying to duplicate a locale that contains some implicit C ↵theraven2011-11-221-1/+6
| | | | | | | locale components. Reported by: Michael Butler Approved by: dim (mentor)
* Put all the messages from msdosfs under the MSDOSFS_DEBUG ifdef.kib2011-11-225-1/+24
| | | | | | They are confusing to user, and not informative for general consumption. MFC after: 1 week
* Remove the wrong comment about ufs not being loadable.kib2011-11-221-5/+4
| | | | | | | Note that only root filesystem module needs to be available before root is mounted. MFC after: 1 week
* - Use ppb_assert_locked() rather than using explicit mtx_assert callattilio2011-11-224-34/+12
| | | | | | - Make ppbus code agnostic in regard of INVARIANTS option MFC after: 2 weeks
* - fix some style(9) nits with my last commiteadler2011-11-222-3/+5
| | | | | | | - add a comment explaining why I used '|' instead of '||' Submitted by: danfe@ Approved by: emaste@
* This patch enables the new/default NFS server's use of sharedrmacklem2011-11-221-9/+1
| | | | | | | vnode locking for read, readdir, readlink, getattr and access. It is hoped that this will improve server performance for these operations, since they will no longer be serialized for a given file/vnode.
* - add check for pointer equality prior to performing the O(n) passeadler2011-11-224-18/+28
| | | | | | | | | - while here change 's' to 's1' in strcoll Submitted by: eadler@ Reviewed by: theraven@ Approved by: brooks@ MFC after: 2 weeks
* (Hopefully) Fix the build with clang by removing a typedef that's no longer ↵theraven2011-11-211-2/+0
| | | | | | needed. Approved by: brooks (mentor)
* Use the correct lock when calling msleep().adrian2011-11-211-1/+1
| | | | | | | | | This fixes panics that users have been seeing when operating in station mode, where the interface undergoes a lot more resets then in hostap mode (ie whilst doing channel scanning.) Reported by: arundel, wblock@wonkity.com Sponsored by: Hobnob, Inc.
* The DC calibration result obtained during initialization can't bebschmidt2011-11-212-1/+29
| | | | | | | | | | passed over to the runtime firmware on 6050 devices. Instead let the runtime firmware do the calibration itself. This fixes support for the 6050 series devices. Obtained from: OpenBSD Submitted by: kevlo Tested by: lx, Tz-Huan Huang(earlier version)
* Fix some whitespace pollution.adrian2011-11-211-3/+1
|
* Revert back to revision 227649 because of license uncertainity.mm2011-11-212-1204/+232
| | | | | | Manual pages from OpenSolaris svn_134 are still properly CDDL licensed but I have been informed that the parts from s11ex are uncertain even if they contain a CDDL header.
* Improve the way to calculate available pages in tmpfs:delphij2011-11-211-4/+1
| | | | | | | | | | | | | | - Don't deduct wired pages from total usable counts because it does not make any sense. To make things worse, on systems where swap size is smaller than physical memory and use a lot of wired pages (e.g. ZFS), tmpfs can suddenly have free space of 0 because of this; - Count cached pages as available; [1] - Don't count inactive pages as available, technically we could but that might be too aggressive; [1] [1] Suggested by kib@ MFC after: 1 week
* This check isn't needed now, sanity checking done in the beginning.glebius2011-11-211-2/+1
| | | | Missed it in last commit.
* Correct and expand BSD partitioning scheme description.wblock2011-11-211-7/+9
| | | | | | | | Correct GUID to GPT in RECOVERING section. Reviewed by: ae Approved by: gjb (mentor) MFC after: 1 week
* Do dcache flush on CPU core before enabling threads.jchandra2011-11-211-3/+42
| | | | | | | | | The dcache flush has to be done using the core control registers before splitting the L1D cache by enabling the hardware threads. Also replace .word calls for mfcr/mtcr with a C macro. In collaboration with: prabhath at netlogicmicro com
* Simplify the libpam build by removing the shared modules' dependencydes2011-11-213-27/+7
| | | | | | | on the shared library. The modules are loaded by the library, so we know it'll be there when we need it. MFC after: 3 weeks
* As threatened on -arch, add {SHARED,STATIC}_{C,CXX}FLAGS, which allow ades2011-11-211-4/+10
| | | | | | Makefile to specify different CFLAGS for shared and static libraries. MFC after: 3 weeks
* Clean up some cruft in the NFSv4 client left over from thermacklem2011-11-211-13/+6
| | | | | | | OpenBSD port, so that it is more readable. No logic change is made by this commit. MFC after: 2 weeks
* Fix mismerge in copyright of zpool(8).mm2011-11-211-1/+3
| | | | MFC after: 4 days
* Update zfs(8) and zpool(8) manpages from CDDL-licensed sources [1].mm2011-11-212-234/+1204
| | | | | | | | | | | | | Improved alignment for a maximum width of 80 characters. Mark unsupported parts as such. Reported to vendor: Illumos issue #1801 References: https://www.illumos.org/issues/1801 Obtained from: OpenSolaris CDDL manual pages (snv_134, s11express) [1] MFC after: 4 days
* For now, remove MANFILTER from ZFS manpages (bad effect on html output).mm2011-11-214-8/+0
| | | | MFC after: 4 days
* Add history for setsockopt(2).pluknet2011-11-211-2/+4
| | | | | | PR: docs/162719 Submitted by: Niclas Zeising <niclas at zeising gmail> MFC after: 1 week
* Historically in_control() did not check sockaddrs supplied withglebius2011-11-211-73/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | structs ifreq/in_aliasreq and there've been several panics due to that problem. All these panics were fixed just a couple of lines above the panicing code. Take a more general approach: sanity check sockaddrs supplied with SIOCAIFADDR and SIOCSIF*ADDR at the beggining of the function and drop all checks below. One check is now disabled due to strange code in ifconfig(8) that I've removed recently. I'm going to enable it with next __FreeBSD_version bump. Historically in_ifinit() was able to recover from an error and restore old address. Nowadays this feature isn't working for all error cases, but for some of them. I suppose no software relies on this behavior, so I'd like to remove it, since this simplifies code a lot. Also, move if_scrub() earlier in the in_ifinit(). It is more correct to wipe routes before removing address from local address list, and interface address list. Silence from: bz, brooks, andre, rwatson, 3 weeks
* Be more informative for "unknown hardware address format" message.glebius2011-11-211-2/+4
| | | | Submitted by: Andrzej Tobola <ato iem.pw.edu.pl>
* - Add Pulse-Per-Second timestamping using raw ffcounter and correspondinglstewart2011-11-212-0/+114
| | | | | | | | | | | | | | ffclock time in seconds. - Add IOCTL to retrieve ffclock timestamps from userland. Committed on behalf of Julien Ridoux and Darryl Veitch from the University of Melbourne, Australia, as part of the FreeBSD Foundation funded "Feed-Forward Clock Synchronization Algorithms" project. For more information, see http://www.synclab.org/radclock/ Submitted by: Julien Ridoux (jridoux at unimelb edu au)
* Introduce the same mutex-wise fix in r227758 for sx locks.attilio2011-11-213-68/+68
| | | | | | | | | | | | | | | | | | | | | The functions that offer file and line specifications are: - sx_assert_ - sx_downgrade_ - sx_slock_ - sx_slock_sig_ - sx_sunlock_ - sx_try_slock_ - sx_try_xlock_ - sx_try_upgrade_ - sx_unlock_ - sx_xlock_ - sx_xlock_sig_ - sx_xunlock_ Now vm_map locking is fully converted and can avoid to know specifics about locking procedures. Reviewed by: kib MFC after: 1 month
* Better use pkill(1) in last commit.glebius2011-11-211-1/+1
| | | | Submitted by: pjd
* Remove no more relevant XXXRW comments since accessing the vmspace is nowpluknet2011-11-211-2/+2
| | | | | | properly done with the acquired vmspace reference. Pointed out by: kib
* - Reduce severity for all ARP events, that can be triggered from remoteglebius2011-11-211-12/+13
| | | | | | | machine to LOG_NOTICE. Exception left to "using my IP address". - Fix multicast ARP warning: add newline and also log the bad MAC address. Tested by: Alexander Wittig <wittigal msu.edu>
* Use the acquired reference to the vmspace instead of direct dereferencingpluknet2011-11-211-1/+1
| | | | of p->p_vmspace like it is done in sysctl_kern_proc_vmmap().
* Merge XLP 3XX updates and related rework.jchandra2011-11-2113-1141/+891
| | | | | | | | | | | | | * Update message station (CMS) code, read queue ids from PCI header. * Use interrupts to wakeup message handling threads on 3XX * Update PIC code, read interrupt information from PCI header instead of using fixed values. * Update PCI interrupt handling for the PIC change. * Update code for getting chip frequency, new code support XLP 3XX * Misc style(9) fixes In collaboration with: prabhath at netlogicmicro com (CMS/PIC) venkatesh at netlogicmicro.com (PCI)
OpenPOWER on IntegriCloud