summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Remove non-FreeBSD related code.rpaulo2013-06-2565-16548/+0
| |
* | Set ic_cryptocaps to make sure wpa_supplicant works with WEP.rpaulo2013-07-047-0/+42
| |
* | On-the-fly changes to the interrupt coalescing timer should apply to thenp2013-07-041-0/+12
| | | | | | | | | | | | TOE rx queues too. MFC after: 1 day
* | Add support for ePWM submodule of PWMSSgonzo2013-07-041-4/+145
| | | | | | | | | | | | | | | | | | ePWM is controlled by sysctl nodes dev.am335x_pwm.N.period, dev.am335x_pwm.N.dutyA and dev.am335x_pwm.N.dutyB that controls PWM period and duty cycles for channels A and B respectively. Period and duty cycle are measured in clock ticks. Default clock frequency for AM335x PWM subsystem is 100MHz
* | Implement $probe_only for the media access modules. sysinstall(8) wasdteske2013-07-049-20/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | allowed to ignore the probe_only argument of its member functions solely because in the C language, the file accessor methods open and return a file descriptor and reading of the data is optional. In shell, the file accessor methods return data on stdout and that data should not be ignored (large files could block execution). So, we must adhere to the probe_only flags and in some cases (in the case of FTP, for example) change the `get' strategy to simply test existence and return an appropriate status. This was required because the up-coming package management stuff makes heavy use of the probe_only argument to try different package suffixes. Every media access module must implement $probe_only for the `get' accessor.
* | Pull in r185594 from llvm trunk:dim2013-07-045-26/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add MachineBasicBlock::addLiveIn(). This function adds a live-in physical register to an MBB and ensures that it is copied to a virtual register immediately. Pull in r185615 from llvm trunk: Live-in copies go *after* EH_LABELs. This will soon be tested by exception handling working at all. Pull in r185617 from llvm trunk: Simplify landing pad lowering. Stop using the ISD::EXCEPTIONADDR and ISD::EHSELECTION when lowering landing pad arguments. These nodes were previously legalized into CopyFromReg nodes, but that never worked properly because the CopyFromReg node weren't guaranteed to be scheduled at the top of the basic block. This meant the exception pointer and selector registers could be clobbered before being copied to a virtual register. This patch copies the two physical registers to virtual registers at the beginning of the basic block, and lowers the landingpad instruction directly to two CopyFromReg nodes reading the *virtual* registers. This is safe because virtual registers don't get clobbered. A future patch will remove the ISD::EXCEPTIONADDR and ISD::EHSELECTION nodes. Together, these changes fix llvm PR 16038 ('qt4 webcore file results in "Bad machine code: Using an undefined physical register"'), and should make it possible again to compile the www/qt4-webkit port again on the i386 arch, without using a CPUTYPE=i686 or higher setting.
* | Add nodes for PWMSS1 and PWMSS2gonzo2013-07-041-1/+29
| |
* | When processing an incoming ABORT, SHUTDOWN_COMPLETE or ERROR (NAT related)tuexen2013-07-041-2/+4
| | | | | | | | | | | | | | chunk, take always the T-bit into account, when checking the verification tag. MFC after: 3 days
* | Enable the station-side power management flag.adrian2013-07-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's not enabled by default in net80211 so this is a no-op unless if you enable it (ifconfig wlan0 powersave). Tested: * iwn0: <Intel WiFi Link 5100> mem 0xf4300000-0xf4301fff irq 17 at device 0.0 on pci3 TODO: * .. test on all the other NICs * See if I have to disable it during scan and such * Make it configurable live, rather than only after it's done its initial receive calibration.
* | Pay attention to TCP_NODELAY when it's set/unset after the connectionnp2013-07-041-0/+26
| | | | | | | | | | | | is established. MFC after: 1 day
* | Ring the egress queue's doorbell as soon as there are 8 or morenp2013-07-041-3/+3
| | | | | | | | | | | | descriptors ready to be processed. MFC after: 1 day
* | The tvp vnode on rename is usually unlinked. Drop the cached nullkib2013-07-041-1/+6
| | | | | | | | | | | | | | | | | | vnode for tvp to allow the free of the lower vnode, if needed. PR: kern/180236 Tested by: smh Sponsored by: The FreeBSD Foundation MFC after: 1 week
* | Whitespace fixes: remove tabs on blank links, spaces following content,wblock2013-07-041-8/+8
| | | | | | | | | | | | | | tabs after spaces. Reviewed by: gjb MFC after: 1 week
* | The T5 allows the driver to specify the ISS. Do so; use the ISS pickednp2013-07-043-8/+34
| | | | | | | | | | | | by the kernel. MFC after: 1 day
* | In r227207, to fix the issue with possible NULL inp_socket pointertrociny2013-07-045-20/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dereferencing, when checking for SO_REUSEPORT option (and SO_REUSEADDR for multicast), INP_REUSEPORT flag was introduced to cache the socket option. It was decided then that one flag would be enough to cache both SO_REUSEPORT and SO_REUSEADDR: when processing SO_REUSEADDR setsockopt(2), it was checked if it was called for a multicast address and INP_REUSEPORT was set accordingly. Unfortunately that approach does not work when setsockopt(2) is called before binding to a multicast address: the multicast check fails and INP_REUSEPORT is not set. Fix this by adding INP_REUSEADDR flag to unconditionally cache SO_REUSEADDR. PR: 179901 Submitted by: Michael Gmelin freebsd grem.de (initial version) Reviewed by: rwatson MFC after: 1 week
* | Merge virtio_scsi change from projects/virtiobryanv2013-07-041-10/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r252680: Fix SIM lock not owned panic The CAM locking requirements of registering an async callback has changed so the SIM lock must be held. Remove code that explicitly dropped the lock around the register. Also return CAM_SEL_TIMEOUT instead of CAM_TID_INVALID for bad targets to avoid a lot console spam during bus scans. MFC after: 1 month
* | Merge virtio_pci changes from projects/virtiobryanv2013-07-043-201/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is primarily a significant cleanup to the interrupt allocation code that had gotten a bit jumbled from having to support per-vq MSIX, shared MSIX, MSI, and legacy style interrupts. Contains projects/virtio commits: r246064: virtio_pci: Rewrite allocation of interrupts r246065: virtio_pci: Remove spaces before a tab r246066: virtio_pci: Dynamically allocate the virtqueue array r246304: virtio_pci: Clean up after failed virtqueue alloc attempt r246305: virtio_pci: Move no interrupt check into the PCI interrupt handlers r246308: virtio_pci: Remove unused variable MFC after: 1 month
* | Merge virtio changes from projects/virtiobryanv2013-07-0418-55/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Contains projects/virtio commits: r245738: virtio: Minor man page tweaks r246060: virtio: Cleanup feature description printing r246306: virtio: Remove old debugging flag r247238: virtio: Remove PRIx64 macros from format strings r247239: virtio: Constify some fields r247240: virtio: Minor code simplifications r249962: virtio: Update to my freebsd.org email address MFC after: 1 month
* | Merge vtnet changes from projects/virtiobryanv2013-07-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Minor changes to the network driver. A multiqueue driver that is a significant rewrite will be in merged shortly. Contains projects/virtio commits: r246058: vtnet: Move an mbuf ASSERT to the calling function r246059: vtnet: Tweak ASSERT message MFC after: 1 month
* | - Read all TP parameters in one place.np2013-07-049-66/+205
| | | | | | | | | | | | | | - Read the filter mode, calculate various shifts, and use them properly during active open (in select_ntuple). MFC after: 1 day
* | Merge virtio_balloon changes from projects/virtiobryanv2013-07-041-23/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Contains projects/virtio commits: r245717: virtio_balloon: Make the softc lock a regular mutex r245718: virtio_balloon: Remove two unuseful ASSERTs r245719: virtio_balloon: More verbose ASSERT messages r245720: virtio_balloon: Simplify lowmem handling in vtballoon_inflate() r252530: virtio_balloon: Use just a kthread instead of dedciated kproc r252568: virtio_balloon: Need to use kthread_exit() after r252530 MFC after: 1 month
* | Merge several virtio_blk changes from projects/virtiobryanv2013-07-043-30/+266
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The notable changes of this commit are support for disk resizing and chases updates to the spec regarding write caching. Contains projects/virtio commits: r245713: virtio_blk: Replace __FUNCTION__ with __func__ r245714: virtio_blk: Use more consistent mutex name r245715: virtio_blk: Print device name too if failed to reinit during dump r245716: virtio_blk: Remove an unuseful ASSERT r245723: virtio_blk: Record the vendor and device information r245724: virtio_blk: Add resize support r245726: virtio_blk: More verbose ASSERT messages r245730: virtio_blk: Tweak resize announcement message r246061: virtio_blk: Do not always read entire config r246062: virtio_blk: Use topology to set the stripe size/offset r246307: virtio_blk: Correct stripe offset calculation r246063: virtio_blk: Add support for write cache enable feature r246303: virtio_blk: Expand a comment r252529: virtio_blk: Improve write cache handling r252681: virtio_blk: Remove unneeded curly braces MFC after: 1 month
* | Convert VirtIO to use ithreads instead of taskqueuesbryanv2013-07-0410-275/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Contains projects/virtio commits: r245709: Each VirtIO device was scheduling its own taskqueue(9) to do the off-level interrupt handling. ithreads(9) is the more nature way to do this. The primary motivation for this work to better support network multiqueue. r245710: virtio: Change virtqueue intr handlers to return void r245711: virtio_blk: Remove interrupt taskqueue r245721: vtnet: Remove interrupt taskqueue r245722: virtio_scsi: Remove interrupt taskqueue r245747: vtnet: Remove taskqueue fields missed in r245721 MFC after: 1 month
* | Style fix noted by bde@ache2013-07-041-4/+8
| |
* | Fix dhclient for interfaces that are down. The discover_interfaces() functionpjd2013-07-041-5/+5
| | | | | | | | | | | | | | | | that looks for interface skips interfaces that are not UP. We need to call dhclient-script PREINIT before we call discover_interfaces(), so the script has a chance to bring the interface UP. Reported by: alfred
* | Put the power modes in a list to make them easier to find.wblock2013-07-041-17/+33
| | | | | | | | | | Reviewed by: joel MFC after: 1 week
* | Remove redundant clearing of the PGA_WRITEABLE flag ingber2013-07-041-1/+0
| | | | | | | | | | | | | | | | | | pmap_remove_all() This flag should already be cleared by pmap_nuke_pv() Submitted by: Zbigniew Bodek <zbb@semihalf.com> Sponsored by: The FreeBSD Foundation, Semihalf
* | Fix modified bit emulation for ARMv6/v7gber2013-07-041-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When doing pmap_enter_locked(), enable write permission only when access type indicates attempt to write. Otherwise, leave the page read only but mark it writable in pv_flags. This will result in: 1. Marking page writable during pmap_enter() but only when ensured that it will be written right away so that we will not get redundant permissions fault on write attempt. 2. Keeping page read only when it is permitted to be written but there was no actual write attempt. Hence, we will get permissions fault on write access and mark page writable in pmap_fault_fixup() what will indicate modification status. Submitted by: Zbigniew Bodek <zbb@semihalf.com> Sponsored by: The FreeBSD Foundation, Semihalf
* | Oops - fix bad hint numbering for the ART section.adrian2013-07-041-5/+5
| |
* | Add in a configuration file and hints for the Engenius ENH-200.adrian2013-07-042-0/+168
| | | | | | | | | | | | | | | | | | | | | | | | This is an AR7240 based device with an AR9285 on-board. I've tested the initial boot and wifi support; however at the moment the ethernet switch driver doesn't seem to be picking up carrier on the active ethernet port. Basic flood pinging works however, so I think we're on the right track. Thank you to Adrian Woodley <adrian@diskworld.com.au> for purchasing me one of these devices to bootstrap FreeBSD-HEAD on.
* | Add the missing link back to the EEPROM firmware name.adrian2013-07-041-0/+3
| |
* | Fall back to sha512 if passwd_format is not set.des2013-07-041-1/+1
| | | | | | | | MFC after: 3 days
* | wpa_supplicant should be able to reassociate when resuming, so remove arpaulo2013-07-041-4/+0
| | | | | | | | comment saying it can't.
* | Make it little bit more C++ friendly. This explicit casting fixes somejkim2013-07-041-1/+1
| | | | | | | | ports, emulators/virtualbox-ose and sysutils/smartmontools for example.
* | The change in r236456 (atomic_store_rel not locked) exposed a bugalfred2013-07-041-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the ithread code where we could lose ithread interrupts if intr_event_schedule_thread() is called while the ithread is already running. Effectively memory writes could be ordered incorrectly such that the unatomic write of 0 to ithd->it_need (in ithread_loop) could be delayed until after it was set to be triggered again by intr_event_schedule_thread(). This was particularly a big problem for CAM because CAM optimizes scheduling of ithreads such that it only signals camisr() when it queues to an empty queue. This means that additional completion events would not unstick CAM and quickly lead to a complete lockup of the CAM stack. To fix this use atomics in all places where ithd->it_need is accessed. Submitted by: delphij, mav Obtained from: TrueOS, iXsystems MFC After: 1 week
* | Support an optional "mac=" parameter to virtio-net config, to allowgrehan2013-07-044-29/+85
| | | | | | | | | | | | | | | | | | | | | | | | users to set the MAC address for a device. Clean up some obsolete code in pci_virtio_net.c Allow an error return from a PCI device emulation's init routine to be propagated all the way back to the top-level and result in the process exiting. Submitted by: Dinakar Medavaram dinnu sun at gmail (original version)
* | Remove unnecessary cast to pid_t.kevlo2013-07-042-3/+3
| |
* | - add myself to the committers list and add adrian as my mentorloos2013-07-041-0/+2
| | | | | | | | Approved by: adrian (mentor)
* | A problem with the old NFS client where large writes to large filesrmacklem2013-07-041-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | would sometimes result in a corrupted file was reported via email. This problem appears to have been caused by r251719 (reverting r251719 fixed the problem). Although I have not been able to reproduce this problem, I suspect it is caused by another thread increasing np->n_size after the mtx_unlock(&np->n_mtx) but before the vnode_pager_setsize() call. Since the np->n_mtx mutex serializes updates to np->n_size, doing the vnode_pager_setsize() with the mutex locked appears to avoid the problem. Unfortunately, vnode_pager_setsize() where the new size is smaller, cannot be called with a mutex held. This patch returns the semantics to be close to pre-r251719 such that the call to the vnode_pager_setsize() is only delayed until after the mutex is unlocked when np->n_size is shrinking. Since the file is growing when being written, I believe this will fix the corruption. Reported by: David G. Lawrence (dg@dglawrence.com) Tested by: David G. Lawrence (pending, to happen soon) Reviewed by: kib MFC after: 1 week
* | Fix printf argument mismatch reported by gcc on i386.jimharris2013-07-041-2/+2
| | | | | | | | Reported by: kargl
* | After fixing ranges restore POSIX requirement: rand() call withoutache2013-07-041-1/+6
| | | | | | | | | | srand() must be the same as srand(1); rand(); (yet one increment)
* | - Include the T5 firmware with the driver.np2013-07-0317-8297/+17883
| | | | | | | | | | | | | | | | - Update the T4 firmware to the latest. - Minor reorganization and updates to the version macros, etc. Obtained from: Chelsio MFC after: 1 day
* | Bump disk(9) ABI version to signify the addition of d_delmaxsize by r249940.smh2013-07-033-10/+9
| | | | | | | | | | | | | | | | | | | | | | Ensure that d_delmaxsize is always set, removing init to 0 which could cause future issues if use cases change. Allow kern.cam.da.X.delete_max (which maps to d_delmaxsize) to be increased up to the calculated max after being reduced. MFC after: 1 day X-MFC-With: r249940
* | vm_phys_fictitious_reg_range() was losing the 'memattr' because it would beneel2013-07-032-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | reset by pmap_page_init() right after being initialized in vm_page_initfake(). The statement above is with reference to the amd64 implementation of pmap_page_init(). Fix this by calling 'pmap_page_init()' in 'vm_page_initfake()' before changing the 'memattr'. Reviewed by: kib MFC after: 2 weeks
* | Fix one of INVARIANTS-related UMA panics on ARMgonzo2013-07-031-3/+15
| | | | | | | | | | | | Force UMA zone to allocate service structures like slabs using own allocator. uma_debug code performs atomic ops on uma_slab_t fields and safety of this operation is not guaranteed for write-back caches
* | In addition to prev. commit, for repeated rand_r(3) calls don't forgetache2013-07-031-1/+5
| | | | | | | | | | | | | | to compensate back at the end incremented at the start internal state. MFC after: 2 weeks
* | If a superpage mapping is being removed then we need to ignore the PG_PDE_PATneel2013-07-031-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bit when looking up the vm_page associated with the superpage's physical address. If the caching attribute for the mapping is write combining or write protected then the PG_PDE_PAT bit will be set and thus cause an 'off-by-one' error when looking up the vm_page. Fix this by using the PG_PS_FRAME mask to compute the physical address for a superpage mapping instead of PG_FRAME. This is a theoretical issue at this point since non-writeback attributes are currently used only for fictitious mappings and fictitious mappings are not subject to promotion. Discussed with: alc, kib MFC after: 2 weeks
* | Verify that all bytes in the instruction buffer are consumed during decoding.neel2013-07-031-0/+16
| | | | | | | | Suggested by: grehan
* | Merge r252513 from src/gnu/usr.bin/patch into src/usr.bin/patch:obrien2013-07-031-1/+1
| | | | | | | | | | | | | | | | Properly handle input lines containing NUL characters such that pgets() accurately fills the read buffer. Callers of pgets() still mis-process the buffer contents if the read line contains NUL characters, but this at least makes pgets() accurate.
* | Merge r252512 from src/gnu/usr.bin/patch into src/usr.bin/patch:obrien2013-07-031-2/+6
| | | | | | | | | | | | | | | | | | Make it so that 'patch < FUBAR' and 'patch -i FUBAR' operate the same. The former makes a copy of stdin, but was not accurately putting the content of stdin into a temp file. This lead to the undercounting the number of lines in hunks containing NUL characters when reading from stdin. Thus resulting in "unexpected end of file in patch" errors.
OpenPOWER on IntegriCloud