summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Use .Dq instead of hardcoding `` and ''.delphij2011-06-081-7/+24
| | | | Suggested by: gjb
* - For the case when tl1_align(_trap) is used to call rsf_fatal viamarius2011-06-071-2/+3
| | | | | | | | RSF_FATAL we need to switch to alternate globals for KSTACK_CHECK just like tl1_data_excptn(_trap) does. This is more or less cosmetic because in case RSF_FATAL is called we're already heading south. - Correct an END(). - Read the window state from the correct register for a CATR().
* Silence notice on pool creation, import and access.mm2011-06-071-0/+2
| | | | | | Suggested by: Jeremy Chadwick (freebsd-stable@) Discussed with: pjd MFC after: 1 week
* Set curvnet context in a callout-trigerred code path.zec2011-06-072-0/+6
| | | | MFC after: 3 days
* For the moment document the possible problem introduced with dynamic addressbz2011-06-071-0/+6
| | | | | | | | family detection in world, mostly noticed by ifconfig(8), when running with an old kernel. Reported by: Andrzej Tobola (ato iem.pw.edu.pl) Reported by: gcooper
* Add a special mount option "failok" to indicate that the administrator wantsdelphij2011-06-072-3/+22
| | | | | | | | | the system to proceed to boot without bailing out into single user mode, even when the file system can not be successfully mounted. This option is implemented in mount(8) and not passed into kernel. MFC after: 1 month
* Log the socket address passed as the destination to sendto() and sendmsg()jhb2011-06-071-0/+4
| | | | | | via ktrace. MFC after: 1 week
* Adapt CATR() to r222813. This is somewhat tricky as we can't afford usingmarius2011-06-074-61/+88
| | | | | | | | | more than three temporary register in several places CATR() is used so this code trades instructions in for registers. Actually, this still isn't sufficient and CATR() has the side-effect of clobbering %y. Luckily, with the current uses of CATR() this either doesn't matter or we are able to (save and) restore it. Now that there's only one use of AND() and TEST() left inline these.
* Fix a problem with r222813; given that we may only operate on interruptmarius2011-06-071-9/+11
| | | | globals here but clobber %y save and restore the latter.
* Make automatic hw.snd.default_unit choice a bit more intelligent. Insteadmav2011-06-071-18/+36
| | | | | | | | | | | | of just setting it to the first registered device, reevaluate it for each device registered, trying to choose best candidate, unless one was forced. For now use such preference order: play&rec, play, rec. As side effect, this should workaround the situation when HDMI audio output of the video card, usually not connected to anything, becomes default, that requires manual user intervention to make sound working. If at some point this won't be enough, we can try to fetch some additional priority flags from the device driver.
* Remove a gratuitous newline. This should be a non-functional change.jh2011-06-071-1/+1
| | | | | | PR: bin/153667 Submitted by: Craig Leres MFC after: 1 week
* Fix a bug that prevents tc=xxx from working.hrs2011-06-071-2/+1
|
* Since HAL_PHYERR_* is used in the radar code, always include ah_desc.h.adrian2011-06-071-2/+0
|
* - Use ELM_MALLOC() for struct rainfo.hrs2011-06-071-11/+5
| | | | | | | - Fix a missing back pointer assignment in struct prefix to struct rainfo when addr="" is specified. This caused SIGSEGV. - Insert a prefix element to a tail queue after setting parameters.
* Do not use LCM from stripesize and user specified alignment value.ae2011-06-071-7/+4
| | | | | | | | When user wants have specific alignment - do what user wants. Use stripesize as alignment value in case, when some of gpart's arguments are ommitted for automatic calculation. Suggested by: mav
* - Add myself to calendar.freebsdjlaffaye2011-06-072-0/+4
| | | | | | - Add the forgotten relation to mentors in committers-ports.dot Approved by: bapt@ (mentor)
* Flesh out a new HAL method to fetch the radar PHY error frame information.adrian2011-06-078-0/+84
| | | | | | | | | | | | | | | | | | | | | | | For the AR5211/AR5212, this is apparently a one byte pulse duration counter value. It is only coded up here for the AR5212 as I don't have any AR5211-series hardware to test it on. This information was extracted from the Madwifi DFS branch along with some local additions. Please note - all this does is extract out the radar event duration, it in no way reflects the presence of a radar. Further code is needed to take a set of radar events and filter them to extract out correct radar pulse trains (and ignore other events.) For further information, please see: http://wiki.freebsd.org/dev/ath_hal%284%29/RadarDetection This includes references to the relevant patents which describe what is going on. Obtained from: Madwifi
* etire the cpumask_t type and replace it with cpuset_t usage.attilio2011-06-0788-782/+1374
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is intended to fix the bug where cpu mask objects are capped to 32. MAXCPU, then, can now arbitrarely bumped to whatever value. Anyway, as long as several structures in the kernel are statically allocated and sized as MAXCPU, it is suggested to keep it as low as possible for the time being. Technical notes on this commit itself: - More functions to handle with cpuset_t objects are introduced. The most notable are cpusetobj_ffs() (which calculates a ffs(3) for a cpuset_t object), cpusetobj_strprint() (which prepares a string representing a cpuset_t object) and cpusetobj_strscan() (which creates a valid cpuset_t starting from a string representation). - pc_cpumask and pc_other_cpus are target to be removed soon. With the moving from cpumask_t to cpuset_t they are now inefficient and not really useful. Anyway, for the time being, please note that access to pcpu datas is protected by sched_pin() in order to avoid migrating the CPU while reading more than one (possible) word - Please note that size of cpuset_t objects may differ between kernel and userland. While this is not directly related to the patch itself, it is good to understand that concept and possibly use the patch as a reference on how to deal with cpuset_t objects in userland, when accessing kernland members. - KTR_CPUMASK is changed and now is represented through a string, to be set as the example reported in NOTES. Please additively note that no MAXCPU is bumped in this patch, but private testing has been done until to MAXCPU=128 on a real 8x8x2(htt) machine (amd64). Please note that the FreeBSD version is not yet bumped because of the upcoming pcpu changes. However, note that this patch is not targeted for MFC. People to thank for the time spent on this patch: - sbruno, pluknet and Nicholas Esborn (nick AT desert DOT net) tested several revision of the patches and really helped in improving stability of this work. - marius fixed several bugs in the sparc64 implementation and reviewed patches related to ktr. - jeff and jhb discussed the basic approach followed. - kib and marcel made targeted review on some specific part of the patch. - marius, art, nwhitehorn and andreast reviewed MD specific part of the patch. - marius, andreast, gonzo, nwhitehorn and jceel tested MD specific implementations of the patch. - Other people have made contributions on other patches that have been already committed and have been listed separately. Companies that should be mentioned for having participated at several degrees: - Yahoo! for having offered the machines used for testing on big count of CPUs. - The FreeBSD Foundation for having sponsored my devsummit attendance, which has been instrumental. - Sandvine for having offered offices and infrastructure during development. (I really hope I didn't forget anyone, if it happened I apologize in advance).
| * MFCattilio2011-06-0723-93/+352
| |\ | |/ |/|
* | Fix indentation.ae2011-06-071-4/+4
| |
* | Sync ng_nat with recent (r222806) ipfw_nat changes:ae2011-06-071-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | Make a behaviour of the libalias based in-kernel NAT a bit closer to how natd(8) does work. natd(8) drops packets only when libalias returns PKT_ALIAS_IGNORED and "deny_incoming" option is set, but ipfw_nat always did drop packets that were not aliased, even if they should not be aliased and just are going through. Also add SCTP support: mark response packets to skip firewall processing. MFC after: 1 month
* | Make a behaviour of the libalias based in-kernel NAT a bit closer toae2011-06-071-6/+16
| | | | | | | | | | | | | | | | | | | | | | how natd(8) does work. natd(8) drops packets only when libalias returns PKT_ALIAS_IGNORED and "deny_incoming" option is set, but ipfw_nat always did drop packets that were not aliased, even if they should not be aliased and just are going through. PR: kern/122109, kern/129093, kern/157379 Submitted by: Alexander V. Chernikov (previous version) MFC after: 1 month
* | amdsbwd: update to support SB8xx southbridgesavg2011-06-072-50/+140
| | | | | | | | | | | | | | | | | | | | | | Many thanks to Tino <tinotom@gmail.com> for drawing my attention to this, for doing a lot of testing and providing great feedback. Many thanks to AMD for continuing to release public specifications for their chipsets. PR: kern/157568 Tested by: Tino <tinotom@gmail.com> MFC after: 1 week
* | Set pca.p_bufr to NULL when we haven't allocated a buffer.ken2011-06-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise, p_bufr is set to garbage on the stack, and if that garbage happens to be non-NULL, and the TOLOG or TOCONS flag is set, putbuf() will get called and attempt to fill the non-existent buffer. This is really only relevant for tprintf() (and only when the priority is not -1), but set it in uprintf() and ttyprintf() for completeness. The next step, to avoid log buffer scrambling, would be to add the PRINTF_BUFR_SIZE code to tprintf(), but this should prevent panics. Submitted by: rmacklem Found by: pho
* | Lower WARNS level to 3 to eliminate alignment warnings related tomarcel2011-06-071-0/+1
| | | | | | | | casting inherent in CMSG_DATA().
* | Use p4prio_to_tsprio to calculate TS priority instead of usingdavidxu2011-06-071-1/+1
| | | | | | | | | | | | | | | | p4prio_to_rtpprio which is for RT priority. PR: kern/157657 Submitted by: krivenok.dmitry at gmail dot com MFC after: 3 days
* | Fix making kernel dumps from the debugger by creating a commandmarcel2011-06-073-14/+41
| | | | | | | | | | | | | | | | | | | | for it. Do not not expect a developer to call doadump(). Calling doadump does not necessarily work when it's declared static. Nor does it necessarily do what was intended in the context of text dumps. The dump command always creates a core dump. Move printing of error messages from doadump to the dump command, now that we don't have to worry about being called from DDB.
* | Call set_cputicker() to have the time counter use the ITC register.marcel2011-06-071-0/+2
| | | | | | | | Note that the ITC frequency is fixed.
* | o Bump the EFI loader version to 3.1.marcel2011-06-073-3/+68
| | | | | | | | | | o Add the about, pbvm and reboot commands. o Trim the banner (suppress maker and date).
* | Add ia64_sync_icache() and use it to make the I-cache coherentmarcel2011-06-074-1/+55
| | | | | | | | | | after loading the kernel's text segment. The kernel will do the same for loaded modules, so don't worry about that.
* | Add myself to committers-ports.dotjlaffaye2011-06-061-0/+1
| | | | | | | | Approved by: tabthorpe@ (mentor)
* | Validate INT 15h and 16h vectors more strictly. Traditionally these entryjkim2011-06-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | points are fixed addresses and (U)EFI CSM specification also mandated that. Unfortunately, (U)EFI CSM specification does not specifically mention this is to call service routine via interrupt vector table or to jump directly to the entry point. As a result, some CSM seems to install two routines and acts differently, depending on how it was executed, unfortunately. When INT 15h is used, it calls a function pointer (which is probably a UEFI service function). When it jumps directly to the entry point, it executes a simple and traditional INT 15h service routine. Therefore, actually there are two possible fixes, i. e., this fix or jumping directly to the fixed entry point. However, we chose this fix because a) keyboard typematic support via BIOS is becoming extremely rarer and b) we cannot support random service routine installed by a firmware or a boot loader. This should fix Lenovo X220 laptop, specifically. Reviewed by: delphij MFC after: 3 days
* | Revert r222152. The root cause was analysed and better fix is upcoming.jkim2011-06-063-10/+1
| | | | | | | | Discussed with: delphij
* | Reset clear-stall error counter before setting up the USB control transfers.hselasky2011-06-061-0/+5
| | | | | | | | MFC after: 14 days
* | Unbreak kernels with non-default PCBGROUP included but no WITNESS.bz2011-06-061-0/+1
| | | | | | | | | | | | | | | | Rather than including lock.h in in_pcbgroup.c in right order, fix it for all consumers of in_pcb.h by further header file pollution under #ifdef KERNEL. Reported by: Pan Tsu (inyaoo gmail.com)
* | Improve enumeration of Low- and Full-speed devices connected through ahselasky2011-06-067-8/+133
| | | | | | | | | | | | | | | | | | High-speed USB HUB by resetting the transaction translator (TT) before trying re-enumeration. Also when clear-stall fails multiple times try a re-enumeration. Suggested by: Trevor Blackwell MFC after: 14 days
| * Add an UPDATE entry.attilio2011-06-071-0/+4
| |
| * Bring back the number of CPU to 32.attilio2011-06-071-1/+1
| |
| * MFCattilio2011-06-069-8/+139
| |
| * MFCattilio2011-06-06101-2067/+4484
| |\ | |/ |/|
* | Rework parts of this man page to improve grammar.gavin2011-06-061-37/+37
| | | | | | | | | | | | | | Inspired by, and parts submitted by... PR: docs/157467 Submitted by: Ben Kaduk <kaduk mit.edu> MFC after: 2 weeks
* | Remove redundant assignments to WARNS.ed2011-06-068-13/+0
| | | | | | | | For these directories, WARNS is already implied to be 6.
* | Set WARNS=1 temporarily to unbreak universe.hrs2011-06-061-1/+1
| |
* | Attempt to clear up some confusion in the following example, by statinggjb2011-06-061-0/+6
| | | | | | | | | | | | | | | | | | | | the '-c' argument is passed to the shell, not to su(1), which would indicate the login class. 'su -m <user> -c <command>' Submitted by: Warren Block <wblock@wonkity.com> (followup to 157078) MFC after: 5 days
* | Improve cpu_idle():marcel2011-06-063-18/+47
| | | | | | | | | | | | | | | | | | | | o cpu_idle_hook is expected to be called with interrupts disabled and re-enables interrupts on return. o sync with x86: don't idle when the CPU has runnable tasks o have callers of ia64_call_pal_static() disable interrupts and re-enable interrupts. o add, but compile-out, support for idle mode. This will be enabled at some later time, after proper testing.
* | Fix regex for ptraceopname().dchagin2011-06-061-1/+1
| | | | | | | | | | | | PR: bin/157663 Submitted by: jason wright <jason@thought.net> MFC after: 10 days
* | Allow custom files to be opened and allow sorting by timestamp.ed2011-06-062-18/+60
| | | | | | | | | | | | | | | | While implementing a tool to import lastlog entries into utmpx, I noticed lastlogin doesn't allow custom database files to be opened. Add a -f switch to support this. Also, add -r and -t similar to ls(1), ruptime(1), etc. where you can sort entries by timestamp and reverse them. This allows you to spot active/idle users more easily.
* | Don't clobber the hosts /etc/fstab. $1 is empty at this point.marcel2011-06-061-2/+2
| |
* | Include param.h for CACHE_LINE_SIZE to unbreak the build.bz2011-06-061-1/+2
| |
* | Make a couple of debug printfs DEVPRINTF.imp2011-06-061-4/+4
| |
OpenPOWER on IntegriCloud