summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make sure %zd treats negative arguments properly on 32-bit platforms.das2009-02-283-5/+8
| | | | | | | Fix harmless but related bugs in %_$zd and %_$tu. PR: 131880 MFC after: 1 week
* Initialize the vblank structures at load time. Previously we did thisrnoland2009-02-2816-20/+44
| | | | | | | | | | | | at irq install/uninstall time, but when we vt switch, we uninstall the irq handler. When the irq handler is reinstalled, the modeset ioctl happens first. The modeset ioctl is supposed to tell us that we can disable vblank interrupts if there are no active consumers. This will fail after a vt switch until another modeset ioctl is called via dpms or xrandr. Leading to cases where either interrupts are on and can't be disabled, or worse, no interrupts at all. MFC after: 2 weeks
* Add a tuneable to allow disabling msi on drm at runtime.rnoland2009-02-271-1/+5
| | | | | | Suggested by: jhb@ MFC after: 2 weeks
* Copy/paste bug fix for previos commit.mav2009-02-271-1/+1
|
* Move to new usb stack that puts the front-end bus attachments with theimp2009-02-271-1/+1
| | | | | | usb stack rather than with the rest of the processor support code. Not sure that's a good idea, as we were moving away from it, but this fixes the build in the mean time so we can have that discussion.
* Change the last references to PRIV_ROOT. /dev/usb used to be world writable sothompsa2009-02-272-3/+3
| | | | | | | further root checks were needed, this isnt the case anymore but just change it to PRIV_DRIVER until it can be investigated later. Spotted by: rwatson
* Remove ic_update_mcast calls that are not implemented.thompsa2009-02-272-16/+0
| | | | | Spotted by: sam Pointy hat: me
* Partial sync to //depot/projects/usbthompsa2009-02-276-69/+358
| | | | | | | | - Reissue the ctrl request on failure - Ensure Tx and ctrl requests are not interleaved - Add promisc callbacks Obtained from: Hans Petter Selasky
* Fix the add stream feature of strm-reset to really work:rrs2009-02-275-49/+133
| | | | | | | | | | | - Fix the copy, we can't do a blind copy but must transfer the data from the old to the new. - Fix the ACK processing so we properly stop retransmitting the thing. - Fix it so if we get a retran we will properly reply with the saved response without doing anything. MFC after: 1 month
* - Hold a reference on the cdev a filesystem is mounted from in the mount.jhb2009-02-275-12/+14
| | | | | | | - Remove the cdev pointers from the denode and instead use the mountpoint's reference to call dev2udev() in getattr(). Reviewed by: kib, julian
* Merge rev. 188615, 188812 changes from old-USB to USB2 driver.mav2009-02-271-20/+17
|
* really enable usb1sam2009-02-271-8/+9
|
* - Update copyright to 2009.davidch2009-02-273-42/+65
| | | | | | | | - Only enable split header operation when ZERO_COPY_SOCKETS is enabled in the kernel. Submitted by: davidch MFC after: 1 week
* o enable PREEMPTIONsam2009-02-272-51/+62
| | | | | | | | o turn off a bunch of stuff that's unlikely to be used o add flash support o use mii instead of miibus to save space o enable tdma support o configure legacy usb as usb2 works only on 2348 w/ 64M configs
* o add -HEAD to avoid build conflictssam2009-02-271-3/+3
| | | | o switch to a more common flash config
* add -HEAD to avoid build conflictssam2009-02-271-1/+1
|
* Make a note about USB /dev changes.thompsa2009-02-271-0/+4
|
* newfs_msdos: allow to work with media that doesn't have any CHS paramsavg2009-02-271-5/+17
| | | | | | | | | | Either use parameters provided by user or make them up. The code for faking CHS params is borrowed from disklabel code. The logic for using user-provided and auto-guessed parameters is not perfect, so to speak. PR: bin/121182 Approved by: jhb (mentor)
* udf_readatoffset: return correct size and data pointer for data in fentryavg2009-02-271-0/+6
| | | | | | | | This should help correct reading of directories with data located in fentry. Submitted by: bde Approved by: jhb (mentor)
* Change USB over to make_dev() for all device nodes, previously it hooked intothompsa2009-02-2725-1941/+643
| | | | | | | | | | | | | | | the devfs clone handler to open the (invisible) devices on the fly. The /dev entries are layed out as follows, /dev/usbctl = master device /dev/usb/0.1.0.5 = usb device, (<bus>.<dev>.<iface>.<endpoint>) /dev/ugen0.1 -> usb/0.1.0.0 = ugen link to ctrl endpoint This also removes the custom permissions model from USB. Bump __FreeBSD_version to 800066. Submitted by: rink (earlier version)
* Remove empty directory structure.ed2009-02-270-0/+0
| | | | Submitted by: Pawel Worach <pawel worach gmail com>
* Fix HID_COMPAT7 handling around the USB_GET_REPORT_DESC ioctl.thompsa2009-02-271-2/+4
| | | | | Submitted by: daichi Pointy hat: me
* For all files including net/vnet.h directly include opt_route.h andbz2009-02-2749-8/+83
| | | | | | | | | | | | | | net/route.h. Remove the hidden include of opt_route.h and net/route.h from net/vnet.h. We need to make sure that both opt_route.h and net/route.h are included before net/vnet.h because of the way MRT figures out the number of FIBs from the kernel option. If we do not, we end up with the default number of 1 when including net/vnet.h and array sizes are wrong. This does not change the list of files which depend on opt_route.h but we can identify them now more easily.
* Move the include of vinet.h further up before the ipfilter includes.bz2009-02-271-3/+3
|
* Remove redundant code in printf() and vprintf().ed2009-02-271-28/+1
| | | | | | | | printf() and vprintf() are exactly the same, except the way arguments are passed. Just like we see in other pieces of code (i.e. libc's printf()), implement printf() using vprintf(). Submitted by: Christoph Mallon <christoph mallon gmx de>
* Shuffle the vimage.h includes or add where missing.bz2009-02-273-2/+5
|
* Revert previous commit to subr_prf.c and make it more tidy.ed2009-02-271-3/+5
| | | | | | | As mentioned by bz and bde, the change I made wasn't the proper way to fix. Inspired by bde's patch, perform some small cleanups to uprintf(). Reviewed by: bz
* Prefer register usage style to be more consistent with the rest of theraj2009-02-271-8/+8
| | | | trap_subr.S code.
* Make Book-E debug register state part of the PCB context.raj2009-02-277-5/+18
| | | | | | | | | | | | | | | | Previously, DBCR0 flags were set "globally", but this leads to problems because Book-E fine grained debug settings work only in conjuction with the debug master enable bit in MSR: in scenarios when the DBCR0 was set with intention to debug one process, but another one with MSR[DE] set got scheduled, the latter would immediately cause debug exceptions to occur upon execution of its own code instructions (and not the one intended for debugging). To avoid such problems and properly handle debugging context, DBCR0 state should be managed individually per process. Submitted by: Grzegorz Bernacki gjb ! semihalf dot com Reviewed by: marcel
* Fix up some ioctl permissions issues long overlooked.rnoland2009-02-273-8/+7
| | | | | Submitted by: jkim@ MFC after: 2 weeks
* fix buildsam2009-02-271-0/+1
|
* fix buildsam2009-02-271-1/+1
|
* Replace clone_setcallback() with a new function clone_setdefcallback()rpaulo2009-02-274-18/+34
| | | | | | | | that selects a callback from an interface prefix name. This allows us to report a meaningful error when the user types 'ifconfig wlan0 create', for example, and also kills some redundant code. Reviewed by: sam (earlier version)
* Rollback rev. 189093.mav2009-02-261-1/+0
| | | | | | | mtx_lock() is not needed there as callout initialized with callout_init_mtx(). Sorry. Submitted by: Ian Dowse
* Unhide IDENTIFY command timeouts when verbose messages enabled.mav2009-02-261-1/+3
| | | | I think it should be suitable for debugging.
* Restore mtx_lock() call on ata_timeout(), dropped (I think accidentally)mav2009-02-261-0/+1
| | | | during commit 3 years ago.
* Rename all symbols in libmp(3) to mp_*, just like Solaris.ed2009-02-2615-229/+255
| | | | | | | | | | | | The function pow() in libmp(3) clashes with pow(3) in libm. We could rename this single function, but we can just take the same approach as the Solaris folks did, which is to prefix all function names with mp_. libmp(3) isn't really popular nowadays. I suspect not a single application in ports depends on it. There's still a chance, so I've increased the SHLIB_MAJOR and __FreeBSD_version. Reviewed by: deischen, rdivacky
* Remove direct ata_completed() call options from ata_finish(), except for themav2009-02-264-17/+10
| | | | | | | | | | kernel dumping case. ata_completed() may initiate ata_reinit() on error, that may lead to drives attach or detach. Attach and detach are sending requests to drives and sleep waiting for results. But ata_finish() can be called directly from interrupt handler where sleeping is prohibited, so we must break this chain somewhere. This place seems to fit best.
* Fix LLVM compiler errors related to K&R declarations with ANSI prototypes.ed2009-02-266-57/+25
| | | | Submitted by: Pawel Worach <pawel.worach@gmail.com>
* Allow the old usb stack to compile by adding the appropriate -I foo, this mustthompsa2009-02-261-1/+5
| | | | | | | | go before the standard -I$S to have the search happen before /sys/. Make this conditional on 'makeoptions WITH_LEGACY=1' in the kernel config. Prodded by: sam
* Use ANSI function declarations in librpcsvc.ed2009-02-265-36/+12
| | | | | | | | | When compiling librpcsvc with LLVM, we get a compiler error, because hexval() uses an ANSI prototype, but a K&R declaration. I could have just changed hexval(), but I'd rather keep this consistent. It's not that much code. Submitted by: Pawel Worach <pawel worach gmail com>
* Add MSI blacklisting support.mav2009-02-261-47/+76
| | | | | | Disable MSI for nVidia MCP51 controller. Enabling MSI there leads to unexpected errors and timeouts, that should not happen even if interrupts are not working completely.
* use mii instead of miibus to not pull in useless phy codesam2009-02-261-1/+1
|
* add updatep[12] that grok the partitioning we use and use gpartsam2009-02-262-0/+116
| | | | instead of boot0cfg to switch the active partition
* udf_readatoffset: read through directory vnode, do not read > MAXBSIZEavg2009-02-263-25/+23
| | | | | | | | | | | | | | | | | | | | | Currently bread()-ing through device vnode with (1) VMIO enabled, (2) bo_bsize != DEV_BSIZE (3) more than 1 block results in data being incorrectly cached. So instead a more common approach of using a vnode belonging to fs is now employed. Also, prevent attempt to bread more than MAXBSIZE bytes because of adjustments made to account for offset that doesn't start on block boundary. Add expanded comments to explain the calculations. Also drop unused inline function while here. PR: kern/120967 PR: kern/129084 Reviewed by: scottl, kib Approved by: jhb (mentor)
* [1] When showing threads, the thread name just appears if the commattilio2009-02-263-11/+37
| | | | | | | | | | | | | | | | | | | label is choosen as last printout (ucomm suffers of this such bug too). That bug is caused by the fact that the fixed size of printout doesn't leave enough space for them to be printed out. Implement ucomm and comm commands with a dynamic size lenght for buffers. [2] On AMD64 architecture pointers don't have enough chars space to be shown (8 chars while they need 16). Fix them by providing a variadic space so that it fits well on both 64 and 32 bits architectures. [3] Check a return value of malloc() that wasn't checked before. PR: bin/128841, bin/128842 Reviewed by: jhb, emaste Sponsored by: Sandvine Incorporated
* Add a missing parameter to ruserpass(). According to C99 6.9.1p7rdivacky2009-02-261-2/+4
| | | | | | | K&R function is not a prototype but this is a bad style. GCC accepts this other compilers warn or reject this. Approved by: kib (mentor)
* Remove unneeded pointer `ndp'.ed2009-02-261-11/+10
| | | | | | | Inside do_execve(), we have a pointer `ndp', which always points to `&nd'. I can imagine a primitive (non-optimizing) compiler to really reserve space for such a pointer, so just remove the variable and use `&nd' directly.
* Remove even more unneeded variable assignments.ed2009-02-269-20/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | kern_time.c: - Unused variable `p'. kern_thr.c: - Variable `error' is always caught immediately, so no reason to initialize it. There is no way that error != 0 at the end of create_thread(). kern_sig.c: - Unused variable `code'. kern_synch.c: - `rval' is always assigned in all different cases. kern_rwlock.c: - `v' is always overwritten with RW_UNLOCKED further on. kern_malloc.c: - `size' is always initialized with the proper value before being used. kern_exit.c: - `error' is always caught and returned immediately. abort2() never returns a non-zero value. kern_exec.c: - `len' is always assigned inside the if-statement right below it. tty_info.c: - `td' is always overwritten by FOREACH_THREAD_IN_PROC(). Found by: LLVM's scan-build
* Don't throw away upper 32-bits of the HT MSI address window. In practicejhb2009-02-261-1/+1
| | | | | | | | this is harmless since the address window for MSI on x86 is in the lower 4 GB. Submitted by: mav MFC after: 1 week
OpenPOWER on IntegriCloud