aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove the need for files.beaglebone and std.beaglebone by moving the oneAndrew Turner2014-10-134-8/+2
| | | | | | | option they defined into files.am335x. Notes: svn path=/head/; revision=273047
* Don't confuse frontend with zero length data moves, just return immediately.Alexander Motin2014-10-131-9/+9
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=273046
* Sort the files in the am355x directory.Andrew Turner2014-10-131-2/+4
| | | | Notes: svn path=/head/; revision=273045
* Start removing the omap3 support. In base it was only ever a header and aAndrew Turner2014-10-137-906/+5
| | | | | | | | | | | | | | few changes to drivers, no kernel config was added. As the SoCs are quite old and the code is unmaintained start the process of removing support by deleting the header file and code that depends on it along with the macro SOC_OMAP3. Other Ti SoCs shouldn't be affected, other than for us to have less code to maintain. Differential Revision: https://reviews.freebsd.org/D936 Reviewed by: rpaulo, loos Notes: svn path=/head/; revision=273041
* Fix for build issue on i386.xen and amd64.xen.Kashyap D Desai2014-10-134-27/+27
| | | | | | | | | | | | | This is a duplicate variable reference in mrsas, so now this patch isolate atomic_ variable and relavent function call using prefix mrsas_xx. Issue was introduced in r272737. MFC after: 2 weeks Sponsored by: Avago Technology Notes: svn path=/head/; revision=273040
* Add support for READ DEFECT DATA (10/12) commands.Alexander Motin2014-10-134-34/+107
| | | | | | | | | | SPC-4 r2 allows to return empty defect list if the list is not supported. We don't reallu support defect data lists, but this suppresses some errors. MFC after: 1 week Notes: svn path=/head/; revision=273038
* Fix matching default rule on clear/show commands.Alexander V. Chernikov2014-10-132-5/+15
| | | | | | | Found by: Oleg Ginzburg Notes: svn path=/head/; revision=273035
* Add one more AMD Kaveri APU device ID.Christian Brueffer2014-10-131-0/+2
| | | | | | | | Submitted by: Remy Nonnenmacher <remy.nonnenmacher@activnetworks.com> MFC after: 1 week Notes: svn path=/head/; revision=273034
* Report physical block size for file-backed LUNs, using vattr.va_blocksize.Alexander Motin2014-10-131-10/+11
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=273029
* Eliminate unnecessary checking for M_EXT on mbufs returned by m_getjcl().Robert Watson2014-10-133-12/+0
| | | | | | | | | | Reviewed by: bz, glebius, yongari MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D938 Notes: svn path=/head/; revision=273028
* Make sure correct object code is generated at -O0.Navdeep Parhar2014-10-131-1/+1
| | | | | | | | | Submitted by: grehan@ Approved by: so@ (des) MFC after: 1 month Notes: svn path=/head/; revision=273027
* Add a tunable for arc_shrink_shift (vfs.zfs.arc_shrink_shift) thatXin LI2014-10-131-0/+5
| | | | | | | | | | | controls how much fraction, 1/2^arc_shrink_shift, should be reclaimed when there is memory pressure. Submitted by: Richard Kojedzinszky <krichy at tvnetwork.hu> MFC after: 2 weeks Notes: svn path=/head/; revision=273026
* Remove ALC_LOCK_ASSERT in alc_stop_queue(). This function is nowPyun YongHyeon2014-10-131-2/+0
| | | | | | | | | | called in device attach without holding a driver lock so it resulted in panic. Reported by: markj Notes: svn path=/head/; revision=273018
* Check error return from reading integer part of temperature.Justin Hibbits2014-10-121-0/+4
| | | | | | | | | | | | There's a very remote, but possible, chance that the integer part read will fail, but the fraction read succeeds, at which point the reported temperature is invalid. Reported by: Matthew Rezny MFC after: 3 weeks Notes: svn path=/head/; revision=273016
* A connection in TIME_WAIT state before calling close() actually did notJulien Charbon2014-10-121-1/+3
| | | | | | | | | | | | received any RST packet. Do not set error to ECONNRESET in this case. Differential Revision: https://reviews.freebsd.org/D879 Reviewed by: rpaulo, adrian Approved by: jhb (mentor) Sponsored by: Verisign, Inc. Notes: svn path=/head/; revision=273014
* Add an AC line monitor so power_profile can workJustin Hibbits2014-10-121-0/+46
| | | | | | | | | | | | | | | | | | | | | | Summary: Add a polling loop (1Hz) to monitor the battery and AC status, to notify devd like ACPI does for power monitoring. This allows /etc/rc.d/power_profile to work on PowerPC laptops Test Plan: Tested on a Titanium PowerBook, configuring economy_cpu_freq and performance_cpu_freq, disabling powerd. Reviewers: #powerpc, nwhitehorn Reviewed By: nwhitehorn Subscribers: rpaulo Differential Revision: https://reviews.freebsd.org/D937 Notes: svn path=/head/; revision=273009
* Remove stale comments.Alexander Motin2014-10-121-10/+0
| | | | Notes: svn path=/head/; revision=273008
* ddb: ANSI-fy function declarations.Pedro F. Giffuni2014-10-1211-227/+89
| | | | | | | MFC after: 5 days Notes: svn path=/head/; revision=273006
* Use the FIFOs in the imx5/imx6 uart hardware instead of interrupting onIan Lepore2014-10-121-31/+75
| | | | | | | each byte sent or received. Notes: svn path=/head/; revision=273004
* When deciding whether to call m_pullup() even though there is adequateRobert Watson2014-10-126-16/+14
| | | | | | | | | | | | | | | | | | | data in an mbuf, use M_WRITABLE() instead of a direct test of M_EXT; the latter both unnecessarily exposes mbuf-allocator internals in the protocol stack and is also insufficient to catch all cases of non-writability. (NB: m_pullup() does not actually guarantee that a writable mbuf is returned, so further refinement of all of these code paths continues to be required.) Reviewed by: bz MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D900 Notes: svn path=/head/; revision=272984
* Improve and document `ctladm portlist` subcommand.Alexander Motin2014-10-121-8/+68
| | | | | | | | | | | Make this subcommand less FC-specific, reporting target and port addresses in more generic way. Also make it report list of connected initiators in unified way, working for both FC and iSCSI, and potentially others. MFC after: 1 week Notes: svn path=/head/; revision=272978
* ddb: space/tab fixes.Pedro F. Giffuni2014-10-1111-19/+19
| | | | | | | | | No functional change. MFC after: 3 days Notes: svn path=/head/; revision=272958
* Add locking and mark MPSAFE.John Baldwin2014-10-114-208/+220
| | | | | | | | | | | | | | | | - Add a mutex to protect the softc. - Use callout(9) instead of timeout(9). - Consolidate duplicated detach routines into a bus-independent detach routine. - Add an extra sleep lock flag (MSESC_READING) to prevent other readers from reading while the first reader is copying data out of sc_bytes[] via uiomove(). - Use bus_*() instead of bus_space_*(). Tested by: nyan Notes: svn path=/head/; revision=272956
* Do not set IN_ACCESS flag for read-only mounts. The IN_ACCESSKonstantin Belousov2014-10-113-3/+3
| | | | | | | | | | | | survives remount in rw, also it is set for vnodes on rootfs before noatime can be set or clock is adjusted. All conditions result in wrong atime for accessed vnodes. Submitted by: bde MFC after: 1 week Notes: svn path=/head/; revision=272952
* Bump FreeBSD_version due to cleanup of tcp wrapper header.Pedro F. Giffuni2014-10-111-1/+1
| | | | | | | | Due to revisions r272949 and r272950 which should affect positively some ports. Notes: svn path=/head/; revision=272951
* Give physical and virtual ports numbers some more meaning.Alexander Motin2014-10-113-4/+10
| | | | Notes: svn path=/head/; revision=272947
* Fix nits in previous commit:Marcel Moolenaar2014-10-111-12/+11
| | | | | | | | | | | | | | | | | 1. Remove initializer for badstack_sbuf_size; it gets set unconditionally. 2. Remove meaningless comment. 3. Group witness_count and its sysctl together. 4. Fix spacing in for statements (space after for and within condition). 5. Change *all* M_NOWAIT usages in witness_initialize() to M_WAITOK; not just those that were newly introduced -- the allocation is assumed to succeed for all allocations. 6. Avoid using uint8_t as the base type in sizeof() expressions; Use the variable name (w_rmatrix) as much as possible. Pointed out by: jhb@ (thanks!) Notes: svn path=/head/; revision=272944
* MFi386 r272761.Konstantin Belousov2014-10-111-8/+12
| | | | | | | | | Noted by: Holger Hans Peter Freyther <holger at freyther.de> Sponsored by: The FreeBSD Foundation MFC after: 10 days Notes: svn path=/head/; revision=272943
* Update ip_divert.ko to depend on version 3 of ipfw.John Baldwin2014-10-111-1/+1
| | | | Notes: svn path=/head/; revision=272941
* Fix KASSERT typo.Alexander V. Chernikov2014-10-111-2/+2
| | | | Notes: svn path=/head/; revision=272940
* Shorten frontend name.Alexander Motin2014-10-111-1/+1
| | | | Notes: svn path=/head/; revision=272939
* Filter out duplicate AC_PATH_REGISTERED async events.Alexander Motin2014-10-111-45/+39
| | | | | | | | | | Queued async events handling in CAM opened race, that may lead to duplicate AC_PATH_REGISTERED events delivery during boot. That was not happening before r272935 because the driver was initialized later. After that change it started create duplicate ports in CTL. Notes: svn path=/head/; revision=272938
* Fix r272936 build with old GCC.Alexander Motin2014-10-111-1/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=272937
* Update isp_tgt_map and send new arrival notification if target that departedAlexander Motin2014-10-111-0/+5
| | | | | | | | | earlier has returned. Previously that code worked only once, confusing CTL. MFC after: 1 month Notes: svn path=/head/; revision=272936
* Mark CTL frontend's CAM driver as CAM_PERIPH_DRV_EARLY.Alexander Motin2014-10-111-1/+2
| | | | | | | | | | | Target mode operation does not depend on the initiator mode scan process. This change allows the target driver to attach earlier and receive some async events (like AC_CONTRACT) that could be lost otherwise. MFC after: 1 week Notes: svn path=/head/; revision=272935
* Add assertion to catch duplicated notes.Edward Tomasz Napierala2014-10-111-1/+5
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=272931
* Turn WITNESS_COUNT into a tunable and sysctl. This allows adjustingMarcel Moolenaar2014-10-111-11/+27
| | | | | | | | | | | | | the value without recompiling the kernel. This is useful when recompiling is not possible as an immediate solution. When we run out of witness objects, witness is completely disabled. Not having an immediate solution can therefore be problematic. Submitted by: Sreekanth Rupavatharam <rupavath@juniper.net> Obtained from: Juniper Networks, Inc. Notes: svn path=/head/; revision=272925
* Remove redundant if_notifier declaration.Alexander V. Chernikov2014-10-101-1/+0
| | | | Notes: svn path=/head/; revision=272912
* Make ctld start even if some LUNs are unable to open backing storage.Alexander Motin2014-10-105-86/+107
| | | | | | | | | Such LUNs will be visible to initiators, but return "not ready" status on media access commands. If backing storage become available later, `ctladm modify ...` or `service ctld reload` can trigger its reopen. Notes: svn path=/head/; revision=272911
* Make MAP_NOSYNC handling in the vm_fault() read-locked object pathKonstantin Belousov2014-10-101-41/+67
| | | | | | | | | | | | | | | | | compatible with write-locked path. Test for MAP_ENTRY_NOSYNC and set VPO_NOSYNC for pages with dirty mask zero (this does not exclude a possibility that the page is dirty, e.g. due to read fault on writeable mapping and consequent write; the same issue exists in the slow path). Use helper vm_fault_dirty() to unify fast and slow path handling of VPO_NOSYNC and setting the dirty mask. Reviewed by: alc Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=272907
* Change the PF hash from Jenkins to Murmur3. In forwarding testsGeorge V. Neville-Neil2014-10-104-7/+85
| | | | | | | | | | | | this showed a conservative 3% incrase in PPS. Differential Revision: https://reviews.freebsd.org/D461 Submitted by: des Reviewed by: emaste MFC after: 1 month Notes: svn path=/head/; revision=272906
* Don't pass RF_ALLOCATED to bus_alloc_resource().John Baldwin2014-10-103-5/+3
| | | | Notes: svn path=/head/; revision=272904
* Fix KASSERT argument type.Alexander V. Chernikov2014-10-101-1/+1
| | | | Notes: svn path=/head/; revision=272900
* Fix NOINET6 build for ipfw.Alexander V. Chernikov2014-10-101-5/+47
| | | | Notes: svn path=/head/; revision=272899
* Partially fix build on !amd64Alexander V. Chernikov2014-10-101-0/+213
| | | | | | | Pointed by: bz Notes: svn path=/head/; revision=272898
* Various fixes to stats:John Baldwin2014-10-101-7/+37
| | | | | | | | | | | | | | | - Read the counts of received, dropped, and transmitted management packets and add sysctl nodes for them. - Fix the total octets received/transmitted to read all 64 bits of the counters. - Add missing sysctl nodes for rlec, tncrs, fcruc, tor, and tot. - Remove spurious spaces. Reviewed by: Eric Joyner @ Intel MFC after: 1 week Notes: svn path=/head/; revision=272897
* o Add machine-dependent SMP partRuslan Bukin2014-10-105-1/+188
| | | | | | | | | o Enable SMP Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=272896
* Fix typo revealed by using newer binutilsBaptiste Daroussin2014-10-101-1/+1
| | | | | | | | Differential Revision: https://reviews.freebsd.org/D933 Reviewed by: marius Notes: svn path=/head/; revision=272895
* Use FreeBSD-bit-checking-styleBaptiste Daroussin2014-10-101-3/+3
| | | | | | | | | | This appease gcc 4.9 issuing warnings about parentheses Differential Revision: https://reviews.freebsd.org/D933 Reviewed by: marius Notes: svn path=/head/; revision=272894
* Store persistent reservation keys as uint64_t instead of uint8_t[8].Alexander Motin2014-10-102-151/+61
| | | | | | | | This allows to simplify the code and save 512KB of RAM per LUN (8%) by removing no longer needed "registered" keys flags. Notes: svn path=/head/; revision=272893