aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add ALTQ(9) support for the CoDel algorithm.Luiz Otavio O Souza2015-08-2124-21/+989
| | | | | | | | | | | | | | | | CoDel is a parameterless queue discipline that handles variable bandwidth and RTT. It can be used as the single queue discipline on an interface or as a sub discipline of existing queue disciplines such as PRIQ, CBQ, HFSC, FAIRQ. Differential Revision: https://reviews.freebsd.org/D3272 Reviewd by: rpaulo, gnn (previous version) Obtained from: pfSense Sponsored by: Rubicon Communications (Netgate) Notes: svn path=/head/; revision=287009
* We're waiting on a struct proc *, not a struct thread *. Fix aWarner Losh2015-08-211-1/+1
| | | | | | | comment that was wrong. Notes: svn path=/head/; revision=287008
* Document bsd.compiler.mk and the variables it defines.Warner Losh2015-08-211-0/+21
| | | | Notes: svn path=/head/; revision=287007
* Document CFLAGS_NO_SIMD.Warner Losh2015-08-211-1/+9
| | | | Notes: svn path=/head/; revision=287006
* Fix the racy xargs -P0 -n2 test added in r286289Enji Cooper2015-08-212-3/+3
| | | | | | | | | | | Sort the output obtained from xargs and the expected output to ensure the end result versus the input file is stable Differential Revision: D3432 Submitted by: Nikolai Lifanov <lifanov@mail.lifanov.com> Notes: svn path=/head/; revision=287005
* Disable the -P0 testEnji Cooper2015-08-211-1/+1
| | | | | | | | | It's unreliable (sometimes it passes, sometimes it fails) Reported by: Jenkins (many times over the past few weeks) Notes: svn path=/head/; revision=287004
* Fix typos (depreciated -> deprecated)Enji Cooper2015-08-211-2/+2
| | | | Notes: svn path=/head/; revision=287003
* Eliminate pointless assignments to rtvals[] in swap_pager_putpages().Alan Cox2015-08-211-12/+12
| | | | | | | | Reviewed by: kib Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=287002
* Document bsd.arch.inc.mk.Warner Losh2015-08-211-0/+8
| | | | Notes: svn path=/head/; revision=287001
* preload_search_info: make sure mod is setRoger Pau Monné2015-08-218-23/+13
| | | | | | | | | | | | | | Add a check to preload_search_info to make sure mod is set. Most of the callers of preload_search_info don't check that the mod parameter is set, which can cause page faults. While at it, remove some now unnecessary checks before calling preload_search_info. Sponsored by: Citrix Systems R&D Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D3440 Notes: svn path=/head/; revision=287000
* xen: allow disabling PV disks and nicsRoger Pau Monné2015-08-214-4/+33
| | | | | | | | | | | | | | | | | | Introduce two new loader tunnables that can be used to disable PV disks and PV nics at boot time. They default to 0 and should be set to 1 (or any number different than 0) in order to disable the PV devices: hw.xen.disable_pv_disks=1 hw.xen.disable_pv_nics=1 In /boot/loader.conf will disable both PV disks and nics. Sponsored by: Citrix Systems R&D Tested by: Karl Pielorz <kpielorz_lst@tdx.co.uk> MFC after: 1 week Notes: svn path=/head/; revision=286999
* Mark bsd.info.mk as depreciatedBaptiste Daroussin2015-08-211-1/+1
| | | | Notes: svn path=/head/; revision=286998
* vt_cpulogos: Resize all terms/windows when tearing down logosConrad Meyer2015-08-213-32/+32
| | | | | | | | | | | | PR: 202288 (partial) Tested by: Jakob Alvermark Reviewed by: ed Approved by: markj (mentor) Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3388 Notes: svn path=/head/; revision=286997
* Document bsd.progs.mk, including its status as being stronglyWarner Losh2015-08-211-0/+1
| | | | | | | discouraged and that it will be going away as soon as is practicable. Notes: svn path=/head/; revision=286995
* Automatically disable x2APIC mode on SandyBridge Lenovo machines. IKonstantin Belousov2015-08-211-6/+33
| | | | | | | | | | | | | | | believe that the bug only affects mobile CPUs, at least I did not see other reports, but it is impossible to detect it in madt_setup_local(). While there, reduce duplication in the information strings printed when x2APIC is auto-disabled, and do not print the line when user manually override the setting. Tested and reviewed by: royger (previous version) Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=286994
* Fix err pointer not initialized to NULL resultingBaptiste Daroussin2015-08-212-0/+16
| | | | | | | Reported by: "O. Hartmann" <ohartman@zedat.fu-berlin.de> Notes: svn path=/head/; revision=286993
* Turn off gcc's uninitialized warnings for this code. TheyWarner Losh2015-08-211-0/+1
| | | | | | | can be fixed, but really do appear to be false alarms. Notes: svn path=/head/; revision=286992
* Fix typo in regression testBaptiste Daroussin2015-08-211-1/+1
| | | | Notes: svn path=/head/; revision=286991
* Fix /home symlink creationBaptiste Daroussin2015-08-212-1/+14
| | | | | | | Add regression test about it Notes: svn path=/head/; revision=286986
* try to fix lor between z_teardown_lock and spa_namespace_lockAndriy Gapon2015-08-211-10/+16
| | | | | | | | | | | | | | | | | | | | | | The lock order reversal and a resulting deadlock were introduced in r285021 / D2865. The problem is that zfs_register_callbacks() calls dsl_prop_get_integer() that has to acquire spa_namespace_lock. At the same time, spa_config_sync() is called with spa_namespace_lock held and then it performs ZFS vnode operations that acquire z_teardown_lock in the reader mode. So, fix the problem by using dsl_prop_get_int_ds() instead of dsl_prop_get_integer(). The former does not need to look up the pool and the dataset by name. Reported by: many Reviewed by: delphij Tested by: delphij, Jens Schweikhardt <schweikh@schweikhardt.net> MFC after: 5 days X-MFC with: r285021 Notes: svn path=/head/; revision=286985
* fix standalone build of zfs moduleAndriy Gapon2015-08-211-1/+1
| | | | | | | Not sure if this is a proper fix, but it does the job. Notes: svn path=/head/; revision=286984
* fix a mismerge in r286539 (MFV 286538: 5562 ZFS sa_handle's violate...)Andriy Gapon2015-08-211-1/+1
| | | | | | | | | PR: 202358 X-MFC with: r286539 X-MFC attn: mav Notes: svn path=/head/; revision=286983
* Fix useradd regression:Baptiste Daroussin2015-08-212-2/+67
| | | | | | | | | | | Readd the function to create the parents home directory if it does not exists. if it is only a directory at the top level of the hierarchy symlink it into /usr as it used to be done before. Reported by: kevlo, adrian Notes: svn path=/head/; revision=286982
* Don't truncate cursor arithmetic to 16 bits.Ed Schouten2015-08-211-6/+6
| | | | | | | | | | | | | | | | | When updating the row number when the cursor position escape sequence is issued, we should make sure to store the intermediate result in a 32-bit integer. If we fail to do this, the cursor may be set above the origin region, which is bad. This could cause libteken to crash when INVARIANTS is enabled, due to the strict set of assertions that libteken has. PR: 202540 Reported by: kcwu csie org MFC after: 1 month Notes: svn path=/head/; revision=286981
* Editing pass on procctl.2Benjamin Kaduk2015-08-211-26/+26
| | | | | | | | | | | | | Spell "descendant" correctly. Grammar fixes. Use correct width argument to Bl. Use Po and Pc to avoid leaving a dangling '(' on the end of a line. Notes: svn path=/head/; revision=286978
* Add initial boot support for e500mc and e5500.Justin Hibbits2015-08-211-29/+121
| | | | | | | | | | | | | | | * Since r257190 the kernel must actually be loaded at a 64MB boundary, not 16MB. * Don't program HID1 register on e500mc or e5500, they don't have this SPR. * Set proper HID0 defaults for these new architectures. There is still more work to be done for the various SoCs, and the PMAP code still needs to be extended to 36-bit paddr, coming soon. Obtained from: Semihalf Sponsored by: Alex Perez/Inertial Computing Notes: svn path=/head/; revision=286977
* Simplify the PCI bus scanning logic.Justin Hibbits2015-08-211-14/+3
| | | | | | | | | | | Rather than special casing on PCIC_BRIDGE || PCIC_PROCESSOR, allow all HDRTYPE_BRIDGE types. Obtained from: Semihalf Sponsored by: Alex Perez/Intertial Computing Notes: svn path=/head/; revision=286976
* If process becomes reaper (procctl(PROC_REAP_ACQUIRE)) while alreadyKonstantin Belousov2015-08-202-4/+6
| | | | | | | | | | | | | | | | having some children, the children' reaper is not reset to the parent. This allows for the situation where reaper has children but not descendands and the too strict asserts in the reap_status() fire. Remove the wrong asserts, add some clarification for the situation to the procctl(2) REAP_STATUS. Reported and tested by: feld Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=286975
* Remove reference to non-existent kern_openat(9).Bryan Drewery2015-08-201-3/+2
| | | | | | | | MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=286974
* sh: Avoid negative character values from $'\Uffffffff' etc.Jilles Tjoelker2015-08-203-5/+15
| | | | | | | | | | | | The negative value was not expected and generated the low 8 bits as a byte, which may be an invalid character encoding. The final shift in creating the negative value was undefined as well. Make the temporary variable unsigned to fix this. Notes: svn path=/head/; revision=286973
* Appease gcc-4.2Pedro F. Giffuni2015-08-201-1/+1
| | | | | | | | | It needs to die, but it resists mipsteriously. Submitted by: Oliver Pinter Notes: svn path=/head/; revision=286972
* sh: Add test for $'\u' without any digits.Jilles Tjoelker2015-08-202-0/+8
| | | | | | | | It is likely that $'\uXXXX' and $'\UXXXXXXXX' will allow fewer digits in future. However, no digits at all should still be disallowed. Notes: svn path=/head/; revision=286971
* Prevent ticks rollover from preventing vm_lowmem eventRyan Stone2015-08-201-3/+4
| | | | | | | | | | | | | | | | | | | Currently vm_pageout_scan() uses a ticks-based scheme to rate-limit the number of times that the vm_lowmem event will happen. However if no events happen for long enough for ticks to roll over, this leaves us in a long window in which vm_lowmem events will not happen. Replace the use of ticks with time_t to prevent rollover from ever being an issue. Reviewed by: ian MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3439 Notes: svn path=/head/; revision=286970
* Remove code left over from the armv4 days. On armv4, cache maintenanceIan Lepore2015-08-201-16/+5
| | | | | | | | | | operations always had to be aligned and sized to cache lines. On armv6 and later, cache maintenance operates on a cache line if any part of the line is referenced in the operation, so we don't need extra code to align the edges of the sync range. Notes: svn path=/head/; revision=286969
* Minor comment and style fixes, no functional change.Ian Lepore2015-08-201-3/+4
| | | | | | | Submitted by: Svatopluk Kraus <onwahe@gmail.com> Notes: svn path=/head/; revision=286968
* The flags -mno-aes -mno-avx only exist for clang, not gcc, soWarner Losh2015-08-201-1/+2
| | | | | | | add them only to the clang CFLAGS. Notes: svn path=/head/; revision=286967
* Add link for rw_unlock(9) to rwlock(9).Bryan Drewery2015-08-201-0/+1
| | | | | | | | MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=286966
* Revamp camcontrol(8) fwdownload support and add the opcodes subcommand.Kenneth D. Merry2015-08-207-214/+1623
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The significant changes and bugs fixed here are: 1. Fixed a bug in the progress display code: When the user's filename is too big, or his terminal width is too small, the progress code could wind up using a negative number for the length of the "stars" that it uses to indicate progress. This negative value was assigned to an unsigned variable, resulting in a very large positive value. The result is that we wound up writing garbage from memory to the user's terminal. With an 80 column terminal, a file name length of more than 35 characters would generate this problem. To address this, we now set a minimum progress bar length, and truncate the user's file name as needed. This has been tested with large filenames and small terminals, and at least produces reasonable results. If the terminal is too narrow, the progress display takes up an additional line with each update, but this is more user friendly than writing garbage to the tty. 2. SATA drives connected via a SATA controller didn't have SCSI Inquiry data populated in struct cam_device. This meant that the code in fw_get_vendor() in fwdownload.c would try to match a zero-length vendor ID, and so return the first entry in the vendor table. (Which used to be HITACHI.) Fixed by grabbing identify data, passing the identify buffer into fw_get_vendor(), and matching against the model name. 3. SATA drives connected via a SAS controller do have Inquiry data populated. The table included a couple of entries -- "ATA ST" and "ATA HDS", intended to handle Seagate and Hitachi SATA drives attached via a SAS controller. SCSI to ATA translation layers use a vendor ID of "ATA" (which is standard), and then the model name from the ATA identify data as the SCSI product name when they are returning data on SATA disks. The cam_strmatch code will match the first part of the string (because the length it is given is the length of the vendor, "ATA"), and return 0 (i.e. a match). So all SATA drives attached to a SAS controller would be programmed using the Seagate method (WRITE BUFFER mode 7) of SCSI firmware downloading. 4. Issue #2 above covered up a bug in fw_download_img() -- if the maximum packet size in the vendor table was 0, it tried to default to a packet size of 32K. But then it didn't actually succeed in doing that, because it set the packet size to the value that was in the vendor table (0). Now that we actually have ATA attached drives fall use the VENDOR_ATA case, we need a reasonable default packet size. So this is fixed to properly set the default packet size. 5. Add support for downloading firmware to IBM LTO drives, and add a firmware file validation method to make sure that the firmware file matches the drive type. IBM tape drives include a Load ID and RU name in their vendor-specific VPD page 0x3. Those should match the IDs in the header of the firmware file to insure that the proper firmware file is loaded. 6. This also adds a new -q option to the camcontrol fwdownload subcommand to suppress informational output. When -q is used in combination with -y, the firmware upgrade will happen without prompting and without output except if an error condition occurs. 7. Re-add support for printing out SCSI inquiry information when asking the user to confirm that they want to download firmware, and add printing of ATA Identify data if it is a SATA disk. This was removed in r237281 when support for flashing ATA disks was added. 8. Add a new camcontrol(8) "opcodes" subcommand, and use the underlying code to get recommended timeout values for drive firmware downloads. Many SCSI devices support the REPORT SUPPORTED OPERATION CODES command, and some support the optional timeout descriptor that specifies nominal and recommended timeouts for the commands supported by the device. The new camcontrol opcodes subcommand allows displaying all opcodes supported by a drive, information about which fields in a SCSI CDB are actually used by a given SCSI device, and the nominal and recommended timeout values for each command. Since firmware downloads can take a long time in some devices, and the time varies greatly between different types of devices, take advantage of the infrastructure used by the camcontrol opcodes subcommand to determine the best timeout to use for the WRITE BUFFER command in SCSI device firmware downloads. If the device recommends a timeout, it is likely to be more accurate than the default 50 second timeout used by the firmware download code. If the user specifies a timeout, it will override the default or device recommended timeout. If the device doesn't support timeout descriptors, we fall back to the default. 9. Instead of downloading firmware to SATA drives behind a SAS controller using WRITE BUFFER, use the SCSI ATA PASS-THROUGH command to compose an ATA DOWNLOAD MICROCODE command and it to the drive. The previous version of this code attempted to send a SCSI WRITE BUFFER command to SATA drives behind a SAS controller. Although that is part of the SAT-3 spec, it doesn't work with the parameters used with LSI controllers at least. 10.Add a new mechanism for making common ATA passthrough and ATA-behind-SCSI passthrough commands. The existing camcontrol(8) ATA command mechanism checks the device type on every command executed. That works fine for individual commands, but is cumbersome for things like a firmware download that send a number of commands. The fwdownload code detects the device type up front, and then sends the appropriate commands. 11.In simulation mode (-s), if the user specifies the -v flag, print out the SCSI CDB or ATA registers that would be sent to the drive. This will aid in debugging any firmware download issues. sbin/camcontrol/fwdownload.c: Add a device type to the fw_vendor structure, so that we can specify different download methods for different devices from the same vendor. In this case, IBM hard drives (from when they still made hard drives) and tape drives. Add a tur_status field to the fw_vendor structure so that we can specify whether the drive to be upgraded should be ready, not ready, or whether it doesn't matter. Add the corresponding capability in fw_download_img(). Add comments describing each of the vendor table fields. Add HGST and SmrtStor to the supported SCSI vendors list. In fw_get_vendor(), look at ATA identify data if we have a SATA device to try to identify what the drive vendor is. Add IBM firmware file validation. This gets VPD page 0x3, and compares the Load ID and RU name in the page to the values included in the header. The validation code will refuse to load a firmware file if the values don't match. This does allow the user to attempt a downgrade; whether or not it succeeds will likely depend on the drive settings. Add a -q option, and disable all informative output (progress bars, etc.) when this is enabled. Re-add the inquiry in the confirmation dialog so the user has a better idea of which device he is talking to. Add support for displaying ATA identify data. Don't automatically disable confirmation in simulation (-s) mode. This allows the user to see the inquiry or identify data in the dialog, and see exactly what they would see when the command actually runs. Also, in simulation mode, if the user specifies the -v flag, print out the SCSI CDB or ATA registers that would be sent to the drive. This will aid in debugging any firmware download issues. Add a timeout field and timeout type to the firmware download vendor table. This allows specifying a default timeout and allows specifying whether we should attempt to probe for a recommended timeout from the drive. Add a new fuction, fw_get_timeout(), that will determine which timeout to use for the WRITE BUFFER command. If the user specifies a timeout, we always use that. Otherwise, we will use the drive recommended timeout, if available, and fall back to the default when a drive recommended timeout isn't available. When we prompt the user, tell him what timeout we're going to use, and the source of the timeout. Revamp the way SATA devices are handled. In fwdownload(), use the new get_device_type() function to determine what kind of device we're talking to. Allow firmware downloads to any SATA device, but restrict SCSI downloads to known devices. (The latter is not a change in behavior.) Break out the "ready" check from fw_download_img() into a new subfunction, fw_check_device_ready(). This sends the appropriate command to the device in question -- a TEST UNIT READY or an IDENTIFY. The IDENTIFY for SATA devices a SAT layer is done using the SCSI ATA PASS-THROUGH command. Use the new build_ata_cmd() function to build either a SCSI or ATA I/O CCB to issue the DOWNLOAD MICROCODE command to SATA devices. build_ata_cmd() figures looks at the devtype argument and fills in the correct CCB type and CDB or ATA registers. Revamp the vendor table to remove the previous vendor-specific ATA entries and use a generic ATA vendor placeholder. We currently use the same method for all ATA drives, although we may have to add vendor-specific behavior once we test this with more drives. sbin/camcontrol/progress.c: In progress_draw(), make barlength a signed value so that we can easily detect a negative value. If barlength (the length of the progress bar) would wind up negative due to a small TTY width or a large filename, set the bar length to the new minimum (10 stars) and truncate the user's filename. We will truncate it down to 0 characters if necessary. Calculate a new prefix_len variable (user's filename length) and use it as the precision when printing the filename. sbin/camcontrol/camcontrol.c: Implement a new camcontrol(8) subcommand, "opcodes". The opcodes subcommand allows displaying the entire list of SCSI commands supported by a device, or details on an individual command. In either case, it can display nominal and recommended timeout values. Add the scsiopcodes() function, which calls the new scsigetopcodes() function to fetch opcode data from a drive. Add two new functions, scsiprintoneopcode() and scsiprintopcodes(), which print information about one opcode or all opcodes, respectively. Remove the get_disk_type() function. It is no longer used. Add a new function, dev_has_vpd_page(), that fetches the supported INQUIRY VPD list from a device and tells the caller whether the requested VPD page is available. Add a new function, get_device_type(), that returns a more precise device type than the old get_disk_type() function. The get_disk_type() function only distinguished between SCSI and ATA devices, and SATA devices behind a SCSI to ATA translation layer were considered to be "SCSI". get_device_type() offers a third type, CC_DT_ATA_BEHIND_SCSI. We need to know this to know whether to attempt to send ATA passthrough commands. If the device has the ATA Information VPD page (0x89), then it is an ATA device behind a SCSI to ATA translation layer. Remove the type argument from the fwdownload() subcommand. Add a new function, build_ata_cmd(), that will take one set of common arguments and build either a SCSI or ATA I/O CCB, depending on the device type passed in. sbin/camcontrol/camcontrol.h: Add a prototype for scsigetopcodes(). Add a new enumeration, camcontrol_devtype. Add prototypes for dev_has_vpd_page(), get_device_type() and build_ata_cmd(). Remove the type argument from the fwdownload() subcommand. sbin/camcontrol/camcontrol.8 Explain that the fwdownload subcommand will use the drive recommended timeout if available, and that the user can override the timeout. Document the new opcodes subcommand. Explain that we will attempt to download firmware to any SATA device. Document supported SCSI vendors, and models tested if known. Explain the commands used to download firmware for the three different drive and controller combinations. Document that the -v flag in simulation mode for the fwdownload subcommand will print out the SCSI CDBs or ATA registers that would be used. sys/cam/scsi/scsi_all.h: Add new bit definitions for the one opcode descriptor for the REPORT SUPPORTED OPCODES command. Add a function prototype for scsi_report_supported_opcodes(). sys/cam/scsi/scsi_all.c: Add a new CDB building function, scsi_report_supported_opcodes(). Sponsored by: Spectra Logic MFC after: 1 week Notes: svn path=/head/; revision=286965
* Add ATF functional tests for fstyp(8). No ZFS or GELI tests yet.Alan Somers2015-08-2010-0/+257
| | | | | | | | | | Reviewed by: trasz, ngie MFC after: 2 weeks Sponsored by: SpectraLogic Differential Revision: https://reviews.freebsd.org/D2801 Notes: svn path=/head/; revision=286964
* Handle the conditional decoding of execve() argument and environmentJohn Baldwin2015-08-2012-225/+19
| | | | | | | | | | | | arrays generically rather than duplicating a hack in all of the backends. - Add two new system call argument types and use them instead of StringArray for the argument and environment arguments execve and linux_execve. - Honor the -a/-e flags in the handling of these new types. - Instead of printing "<missing argument>" when the decoding is disabled, print the raw pointer value. Notes: svn path=/head/; revision=286963
* Rework the argv and env string fetching for execve to be more robust.John Baldwin2015-08-201-23/+41
| | | | | | | | | | | | | | | | | Before truss would fetch 100 string pointers and happily walk off the end of the array if it never found a NULL. This also means for a short argv list it could fail entirely if the 100 string pointers spanned into an unmapped page. Instead, fetch page-aligned blocks of string pointers in a loop fetching each string until a NULL is found. While here, make use of the open memstream file descriptor instead of allocating a temporary array. This allows us to fetch each string once instead of twice. Notes: svn path=/head/; revision=286962
* Typo.Konstantin Belousov2015-08-201-1/+1
| | | | Notes: svn path=/head/; revision=286960
* Add the definitions of __infinity and __nan.Andrew Turner2015-08-203-0/+17
| | | | Notes: svn path=/head/; revision=286959
* Add the kernel support for minidumps on arm64.Andrew Turner2015-08-203-9/+429
| | | | | | | | | Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3318 Notes: svn path=/head/; revision=286958
* Remove pmap_kenter from pmap.h, the function doesn't exist.Andrew Turner2015-08-202-2/+6
| | | | Notes: svn path=/head/; revision=286957
* Add pmap_get_tables to get the page tables for a given virtual address. ThisAndrew Turner2015-08-202-0/+37
| | | | | | | | | | will be used for minidump support. Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=286956
* * Split allocation and table linking for lle's.Alexander V. Chernikov2015-08-208-143/+291
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before that, the logic besides lle_create() was the following: return existing if found, create if not. This behaviour was error-prone since we had to deal with 'sudden' static<>dynamic lle changes. This commit fixes bunch of different issues like: - refcount leak when lle is converted to static. Simple check case: console 1: while true; do for i in `arp -an|awk '$4~/incomp/{print$2}'|tr -d '()'`; do arp -s $i 00:22:44:66:88:00 ; arp -d $i; done; done console 2: ping -f any-dead-host-in-L2 console 3: # watch for memory consumption: vmstat -m | awk '$1~/lltable/{print$2}' - possible problems in arptimer() / nd6_timer() when dropping/reacquiring lock. New logic explicitly handles use-or-create cases in every lla_create user. Basically, most of the changes are purely mechanical. However, we explicitly avoid using existing lle's for interface/static LLE records. * While here, call lle_event handlers on all real table lle change. * Create lltable_free_entry() calling existing per-lltable lle_free_t callback for entry deletion Notes: svn path=/head/; revision=286955
* Add the arm64 minidump header. This was missed from r286953.Andrew Turner2015-08-201-0/+48
| | | | Notes: svn path=/head/; revision=286954
* Add support to libkvm for reading minidumps on arm64. The kernel side isAndrew Turner2015-08-203-10/+320
| | | | | | | | | | | | missing until it can be cleaned up. Reviewed by: jhb Approved by: ABT Systems Ltd Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3319 Notes: svn path=/head/; revision=286953
* Restore part of r274628, reverted at r286776.Alexander Motin2015-08-201-1/+2
| | | | | | | Submitted by: avg Notes: svn path=/head/; revision=286951