summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Change maxio to reflect variable hardware configurations.sbruno2013-04-271-1/+17
| | | | | | | | | | | | | | | | | If max_sg_length is 0, then we default to 16 If max_sg_length is less than CISS_MAX_SG_ELEMENTS, then we will set round the value of max_sg_length to the nearest power of 2 and use it to align maxio. Else, we will use CISS_MAX_SG_ELEMENTS for our calculations. Thanks to scottl for working me through the history and providing the basis for this patch. Submitted by: scott Obtained from: Yahoo! Inc. MFC after: 2 weeks
* Add const qualifier to the dst parameter of the ifnet if_output method.glebius2013-04-271-2/+2
|
* Return "descr" field alike to "Intel RAID1 volume" for GEOM RAID to makemav2013-04-271-0/+4
| | | | it look better in bsdinstall.
* Add reset support to the Wii.rpaulo2013-04-272-8/+55
|
* Remove references to MK_IDEA.ed2013-04-273-21/+1
| | | | | | As of r249959, we want to build with IDEA support enabled unconditionally. As this change removed the MK_IDEA flag, update these Makefiles accordingly.
* Partially revert my last change.ed2013-04-271-5/+5
| | | | | I forgot that I still had a locally applied patch to my copy of Clang that needs to be pushed in before we should use C11 atomics.
* Use C11 <stdatomic.h> instead of our non-standard <machine/atomic.h>.ed2013-04-272-11/+21
| | | | Reviewed by: pjd
* Unbreak <stdatomic.h> on ARM + Clang.ed2013-04-2717-17/+34
| | | | | | | | | | | Clang only supports atomic operations for ARMv6. For non-ARMv6, we still need to emit these functions. Clang's prototype for these functions slightly differs, as it is truly based on GCC's documentation. It requires the use of signed types, but also requires varargs. Still, we are not allowed to simply implement this function directly. Cleverly work around this by implementing it under a different name and using __strong_reference().
* Add a comma to satisfy Igor.eadler2013-04-272-2/+2
|
* Fix the frambuffer issues by calling pmap_mapdev() in the attach routine. Thisrpaulo2013-04-271-1/+5
| | | | | will make the framebuffer region uncacheable and it will create a proper KVA -> RAM mapping.
* Remove IDEA from OptionalObsoleteFiles.inceadler2013-04-272-4/+4
| | | | Also add an UPDATING entry (requsted by gjb)
* Remove the WITH_IDEA option and build it unconditionally.eadler2013-04-263-11/+1
| | | | | | | | The European version of the patent expired in 2011. The US version of the patent expired in 2012 or prior. Reviewed by: des No objection from: cperciva, ehaupt
* Conditionally compile this only if ATH_DEBUG is defined.adrian2013-04-261-0/+4
|
* Dump the entire TXQ descriptor contents during a reset, rather than onlyadrian2013-04-261-0/+29
| | | | completed descriptors.
* sysconf(3): Correct the description of _SC_OPEN_MAX.jilles2013-04-261-2/+2
| | | | | Reported by: bde MFC after: 1 week
* Properly sanitize --menu results (guards against Gtk library warnings fromdteske2013-04-262-1/+8
| | | | | | | | | X11 side of things from bleeding into Xdialog(1) stderr output). It should be duely noted that such errors are not a by-product of anything in the Xdialog(1) utility or API, but optional libraries that it can link against (such as Gtk1 versus Gtk2; if you compile xdialog from ports against Gtk2 AND misconfigure your fonts or generally make Gtk2 unhappy, these warning messages can bleed into the captured stderr -- that is we we sanitize!).
* Comments.dteske2013-04-262-1/+3
|
* Fix examples for overriding INSTALL to not suggest hardcodingbdrewery2013-04-262-3/+3
| | | | | | | | | | 'install' since it breaks buildworld after the introduction and use of 'install -l' in r245752. Overriding INSTALL causes /usr/bin/install to be used instead of the proper /usr/src/tools/install.sh which handles the new flag. Approved by: bapt MFC after: 2 weeks
* According to devctl(4), clients must read events whole; they may notasomers2013-04-261-1/+1
| | | | | | | | | | | | piece them together from multiple reads(). It's as if /dev/devctl is a datagram device instead of a stream device. However, devd's internal buffer was too small (1025 bytes) to read an entire ereport.fs.zfs.checksum event (variable, up to ~1300 bytes). This commit enlarges the buffer to 8k. Reviewed by: imp Approved by: ken (mentor) MFC after: 2 weeks
* Add two more 'static' qualifierseadler2013-04-261-2/+2
|
* Take some improvements from DragonFlyBSD:eadler2013-04-261-17/+17
| | | | | | | | | | - add const where appropriate - add static where appropriate - fix a whitespace issues Reviewed by: brooks Obtained from: DragonFlyBSD MFC After: 1 week
* Add -x option to avoid crossing mount points when removing a hierarchy.eadler2013-04-262-6/+13
| | | | | | Discussed on: -hackers Inspired by: DragonflyBSD MFC After: 1 week
* Adjust the min comparison to look at the adjust value after subtraction, don'tsbruno2013-04-261-1/+1
| | | | | | | subtract 1 from the chosen value if we are going to use the configued value. Obtained from: Yahoo! Inc. MFC after: 2 weeks
* Move pinmux configuration to board-specific config. It will varygonzo2013-04-262-79/+82
| | | | from board to board.
* Bump FreeBSD_version after glebius' changes.adrian2013-04-261-1/+1
|
* Added automatic detection of non-rotating media which disables thesmh2013-04-263-8/+111
| | | | | | | | | use of BIO queue sorting, hence optimising performance for devices such as SSD's Reviewed by: scottl Approved by: pjd (mentor) MFC after: 2 weeks
* Teach GEOM and CAM about the difference between the max "size" of r/w and deletesmh2013-04-264-9/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | requests. sys/geom/geom_disk.h: - Added d_delmaxsize which represents the maximum size of individual device delete requests in bytes. This can be used by devices to inform geom of their size limitations regarding delete operations which are generally different from the read / write limits as data is not usually transferred from the host to physical device. sys/geom/geom_disk.c: - Use new d_delmaxsize to calculate the size of chunks passed through to the underlying strategy during deletes instead of using read / write optimised values. This defaults to d_maxsize if unset (0). - Moved d_maxsize default up so it can be used to default d_delmaxsize sys/cam/ata/ata_da.c: - Added d_delmaxsize calculations for TRIM and CFA sys/cam/scsi/scsi_da.c: - Added re-calculation of d_delmaxsize whenever delete_method is set. - Added kern.cam.da.X.delete_max sysctl which allows the max size for delete requests to be limited. This is useful in preventing timeouts on devices who's delete methods are slow. It should be noted that this limit is reset then the device delete method is changed and that it can only be lowered not increased from the device max. Reviewed by: mav Approved by: pjd (mentor)
* Added available delete methods discovery during device probe, including thesmh2013-04-261-76/+566
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | maximum sizes for said methods, which are used when processing BIO_DELETE requests. This includes updating UNMAP support discovery to be based on SBC-3 T10/1799-D Revision 31 specification. Added ATA TRIM support to cam scsi devices via ATA Pass-Through(16) sys/cam/scsi/scsi_da.c: - Added ATA Data Set Management TRIM support via ATA Pass-Through(16) as a delete_method - Added four new probe states used to identity available methods and their limits for the processing of BIO_DELETE commands via both UNMAP and the new ATA TRIM commands. - Renamed Probe states to better indicate their use - Added delete method descriptions used when informing user of issues. - Added automatic calculation of the optimum delete mode based on which method presents the largest maximum request size as this is most likely to result in the best performance. - Added WRITE SAME max block limits - Updated UNMAP range generation to mirror that used by ATA TRIM, this optimises the generation of ranges and fixes a potential overflow issue in the count when combining multiple BIO_DELETE requests - Added output of warnings about short deletes. This should only ever be triggered on devices that fail to correctly advertise their supported delete modes / max sizes. - Fixed WS16 requests being incorrectly limited to 65535 in length. Reviewed by: mav Approved by: pjd (mentor) MFC after: 2 weeks
* Refactored scsi_xpt use of device_has_vpd to generic scsi_vpd_supported_pagesmh2013-04-263-21/+36
| | | | | | | | | | | so its available for use in generic scsi code. This is a pre-requirement for using VPD queries to determine available SCSI delete methods within scsi_da. Reviewed by: mav Approved by: pjd (mentor) MFC after: 2 weeks
* Updated TRIM calculations in cam/ata to be based off ATA_DSM_* definessmh2013-04-261-14/+24
| | | | | | Reviewed by: mav Approved by: pjd (mentor) MFC after: 2 weeks
* Added the ability to send ATA identify and Data Set Management (DSM) TRIMsmh2013-04-262-0/+118
| | | | | | | | | | | | | | | | | | | | | | | | commands to an ATA device attached via a SCSI control. sys/cam/scsi/scsi_all.c: - Added scsi_ata_identify, scsi_ata_trim Which use ATA Pass-Through to send commands to the attached disk. sys/cam/scsi/scsi_all.h: - Added defines for all missing ATA Pass-Through commands values. - Added scsi_ata_identify, scsi_ata_trim methods used in ATA TRIM support. - Added scsi_vpd_logical_block_prov structure used when querying for the supported sizes UNMAP commands. - Added scsi_vpd_block_limits structure used when querying for the supported sizes of the UNMAP command. Reviewed by: mav Approved by: pjd (mentor) MFC after: 2 weeks
* Added Dataset Management defines to be used by TRIM in cam ata and scsi tosmh2013-04-261-0/+6
| | | | | | | | calculate the size of blocks. Reviewed by: mav Approved by: pjd (mentor) MFC after: 2 weeks
* Added a sysctl (kern.geom.dev.delete_max_sectors) to control the maximumsmh2013-04-261-5/+22
| | | | | | | | | | | | | | | | | | | | | | size of a delete request sent to the providing device performed by g_dev_ioctl. This allows the kernel and apps via ioctl e.g. newfs -E to request large LBA deletes which siginificantly improves performance. Previously this was hard coded to 65536 sectors, the new default is 262144 which doubles the throughput of deletes on commonly available SSD's. In tests on a Intel 520 120GB FW: 400i disk it improved the delete throughput from 1.6GB/s to over 2.6GB/s on a full disk delete such as that done via newfs -E For some SSD's where delete time is pretty much constant, no matter what the request, setting this to 0 will provide significantly better throughput e.g. Samsung 840 240GB FW DXT07B0Q @ 262144 = 79G/s, @ 0 = 2259G/s Reviewed by: mav Approved by: pjd (mentor) MFC after: 2 weeks
* Removed unneeded tests in dadeletemethodset changing it to return voidsmh2013-04-261-7/+4
| | | | | | Reviewed by: mav Approved by: pjd (mentor) MFC after: 2 weeks
* Document constantness of dst argument to if_output.glebius2013-04-261-2/+2
| | | | Submitted by: pluknet
* Add usie to LINT.glebius2013-04-261-0/+3
|
* On those machines that use critical(9) for counter(9) we need toglebius2013-04-261-0/+1
| | | | include systm.h.
* Add const qualifier to the dst parameter of the ifnet if_output method.glebius2013-04-2654-225/+202
|
* Don't appease clang static analyzer after all and roll backuqs2013-04-261-1/+0
| | | | | | | | | the free(3) of mntbuf ... again. There's no point in doing useless extra work when we're about to exit. See also r240565. Not reading file history: uqs
* Changed ZFS TRIM sysctl from vfs.zfs.trim_disable -> vfs.zfs.trim.enabledsmh2013-04-265-15/+21
| | | | | | | | Enabled ZFS TRIM by default Reviewed by: pjd (mentor) Approved by: pjd (mentor) MFC after: 2 weeks
* Octeon 2 (6xxx) and newer CPUs don't use the clock CPU speed for itsimp2013-04-261-1/+1
| | | | | | | | | | I/O clock. Thankfully, the simple executive provies a way to querry the proper clock that works on all models. Move to asking for the SCLK via this interface. This gets the serial console working after we start init and open the console and set the divisor (which turned the output from good to bad). I can login on the console now.
* Remove a comment that shouldn't have gone in.jhibbits2013-04-261-3/+0
| | | | X-MFC-with: r249864
* Use a thread for the processing of virtio tx descriptors rathergrehan2013-04-261-21/+111
| | | | | | | | | | | than blocking the vCPU thread. This improves bulk data performance by ~30-40% and doesn't harm req/resp time for stock netperf runs. Future work will use a thread pool rather than a thread per tx queue. Submitted by: Dinakar Medavaram Reviewed by: neel, grehan Obtained from: NetApp
* Gripe if some <slot,function> tuple is specified more than once instead ofneel2013-04-263-20/+47
| | | | | | | | | | | | silently overwriting the previous assignment. Gripe if the emulation is not recognized instead of silently ignoring the emulated device. If an error is detected by pci_parse_slot() then exit from the command line parsing loop in main(). Submitted by (initial version): Chris Torek (chris.torek@gmail.com)
* In the case where the controller supports an sg_list LESS than our predefinedsbruno2013-04-251-1/+1
| | | | | | | | | | | and tuned value, we would advertise the unsupported value to CAM and it would merrily destroy the controller with way too many IO operations. This manifests itself in a Zero Memory RAID configuration for a P410 and possibly other controllers. Obtained from: Yahoo! Inc. MFC after: 2 weeks
* Use the system MAKEOBJDIRPREFIX when running make targets inbrooks2013-04-252-5/+14
| | | | | | | | | | mergemaster. This allows bootstrap verions of tools to be used. Add a note to UPDATING about this change. Discussed with: jhb Sponsored by: DARPA, AFRL MFC after: 5 days
* Remove deprecated APIs to get the total and free memory available to vmm.ko.neel2013-04-252-26/+0
| | | | | | | | | These APIs were relevant when memory for virtual machine allocation was hard partitioned away from the rest of the system but that is no longer the case. The sysctls that provided this information were garbage collected a while back. Obtained from: NetApp
* mdoc: remove superfluous paragraph macro.joel2013-04-251-2/+0
|
* Fix couple of mbuf leaks in incoming ARP processing.glebius2013-04-251-2/+2
|
* Minor whitespace nitimp2013-04-251-1/+1
|
OpenPOWER on IntegriCloud