Commit Graph

198900 Commits

Author SHA1 Message Date
mav
9d4a2c89e4 MFC r280393: Reduce priority of ATA/SATA drivers.
Legacy ata(4) -> BUS_PROBE_LOW_PRIORITY;  more functional ahci(4), siis(4),
mvs(4) -> BUS_PROBE_DEFAULT;  BUS_PROBE_VENDOR leave for vendor drivers.
2015-04-06 08:23:06 +00:00
neel
f333e1d3ba MFC r272481.
Add new fields in the FADT, required by IASL 20140926-64.
2015-04-06 03:16:20 +00:00
dim
fd1aa4bec9 Ensure yacc is built during bootstrap-tools for __FreeBSD_version
1001506 and earlier, since some of the ACPI tools now reach yacc's old
maximum table limit.  This should fix the Jenkins buildbot, which
apparently runs 10.1-RELEASE.
2015-04-05 15:27:56 +00:00
mav
2aa6497cbb MFC r280822: Some cosmetic polishing. No functional change. 2015-04-05 06:53:29 +00:00
kib
6c211b7cb3 MFC r280342:
msdosfs: mark unused compat-mount fields.
2015-04-05 01:03:11 +00:00
dim
441da571d4 MFC r272444 (by jkim):
Merge ACPICA 20140926.

MFC r278970 (by jkim):

  Merge ACPICA 20141107 and 20150204.

Approved by:	jkim
Relnotes:	yes
2015-04-04 10:17:51 +00:00
kib
a66c389283 MFC r280797:
Make debug.vmem_check a tunable.  It is useful to set it early.
2015-04-04 08:06:13 +00:00
kib
cfab2455d5 MFC r280323:
Somewhat modernize the SysV shm code.

MFC r280325 (by cognet):
Fix warning for !MAC case.
2015-04-04 07:59:07 +00:00
kib
34687e7dea MFC r278697 (by alc):
Preset the object's color, or alignment, to maximize superpage usage.
2015-04-04 07:56:04 +00:00
kib
7b4777f74a MFC r258056 (by alc):
Eliminate the gratuitous use of mmap(2) flags from the implementation
of kern_shmat().  Use a simpler approach to determine whether to pass
VMFS_NO_SPACE or VMFS_OPTIMAL_SPACE to vm_map_find().
2015-04-04 07:52:12 +00:00
bdrewery
44dfc90bcd MFC r280179,r280180:
r280179:
    Add LIB_CXX so that C++ libraries will use CXX to link.

    This adds some extra dependencies directly to Makefile.inc1 as
    atf is still a prebuild library in stable/10. If r273449 is MFCd
    these can come out.

  r280180:
    Document LIB and LIB_CXX.
2015-04-04 00:42:09 +00:00
bdrewery
e247370125 MFC r280870:
Fix --one-file-system to include the directory encountered rather than
  excluding it.  This was broken in 3.0.4 (r238856).

Relnotes:	yes
2015-04-03 18:01:51 +00:00
bdrewery
2c4a772c3e MFC r280178:
Unhide linker line for libraries.
2015-04-03 17:51:37 +00:00
bdrewery
4c04960f71 MFC r280177:
Remove unneeded handling of undefined NM.
2015-04-03 17:21:30 +00:00
bdrewery
be53554302 MFC r278600:
Correct and clarify comment for __SMBF.
2015-04-03 17:19:29 +00:00
bdrewery
302c310328 MFC r278530:
When catopen(3) returns an error, it caches the result of that error from
  r202992. The refcount on the cache entry is not initialized, so any attempt
  to clean the cache will skip over this item since it likely has a >0 value.

  This change is currently a NOP.
2015-04-03 17:16:05 +00:00
bdrewery
f04ea508f5 MFC r272291:
Document [EPERM] for UNIX sockets.
2015-04-03 17:12:24 +00:00
alc
bc3dc06c14 MFC r279720
Correct a typo in vm_object_backing_scan() that originated in r254141.
  Specifically, change a lock acquire into a lock release.
2015-04-03 16:40:39 +00:00
mav
0e89c56fb7 MFC r280756, r280758: Fix bug on memory allocation error in split method.
While there, use bioq_takefirst() in place where it is convenient.
2015-04-03 06:16:20 +00:00
alc
a75a91e660 MFC r280238
Fix the root cause of the "vm_reserv_populate: reserv <address> is already
  promoted" panics.

PR:		198163
2015-04-02 19:10:33 +00:00
wblock
4b74d7e3ef MFC r262769:
- Clarify usage of the -f option.

MFC r280336:

Describe the behavior when both -f and a message are given.  Pointed out by
Raphael Abreu <raphael.lorenzeto@gmail.com> on freebsd-doc.
2015-04-02 02:14:58 +00:00
jhb
b09b758bf2 MFC 276724:
On some Intel CPUs with a P-state but not C-state invariant TSC the TSC
may also halt in C2 and not just C3 (it seems that in some cases the BIOS
advertises its C3 state as a C2 state in _CST).  Just play it safe and
disable both C2 and C3 states if a user forces the use of the TSC as the
timecounter on such CPUs.

PR:		192316
2015-04-02 01:02:42 +00:00
jhb
5fdf8ec777 MFC 261790:
Add support for managing PCI bus numbers.  As with BARs and PCI-PCI bridge
I/O windows, the default is to preserve the firmware-assigned resources.
PCI bus numbers are only managed if NEW_PCIB is enabled and the architecture
defines a PCI_RES_BUS resource type.
- Add a helper API to create top-level PCI bus resource managers for each
  PCI domain/segment.  Host-PCI bridge drivers use this API to allocate
  bus numbers from their associated domain.
- Change the PCI bus and CardBus drivers to allocate a bus resource for
  their bus number from the parent PCI bridge device.
- Change the PCI-PCI and PCI-CardBus bridge drivers to allocate the
  full range of bus numbers from secbus to subbus from their parent bridge.
  The drivers also always program their primary bus register.  The bridge
  drivers also support growing their bus range by extending the bus resource
  and updating subbus to match the larger range.
- Add support for managing PCI bus resources to the Host-PCI bridge drivers
  used for amd64 and i386 (acpi_pcib, mptable_pcib, legacy_pcib, and qpi_pcib).
- Define a PCI_RES_BUS resource type for amd64 and i386.

PR:		197076
2015-04-01 21:48:54 +00:00
jhb
971b9a0eeb MFC 260973:
- Reuse legacy_pcib_(read|write)_config() methods in the QPI pcib driver.
- Reuse legacy_pcib_alloc_msi{,x}() methods in the QPI and mptable pcib
  drivers.
2015-04-01 21:16:33 +00:00
jhb
ea3f65c3bf MFC 278761:
Include OBJT_PHYS VM objects in ELF core dumps. In particular this
includes the shared page allowing debuggers to use the signal trampoline
code to identify signal frames in core dumps.
2015-04-01 19:48:19 +00:00
pfg
ec31b3f59e Revert r280449;
Permit multiple arguments for the nonnull attribute.

For the benefit of anyone that may be struggling to port
FreeBSD to gcc 2.8 (or older) avoid using variadic macros.

MFC	r280700 (partial);

Bring new attribute:
__result_use_check
Causes a warning to be emitted if a caller of the function
with this attribute does not use its return value. This is
known in gcc as "warn_unused_result" but we considered the
original naming unsuitable for an attribute.
2015-04-01 16:17:58 +00:00
gjb
f771564270 Document removal of 10.1-RELEASE QCOW2 virtual machine disk
images from FTP, due to a crash-on-boot problem.

Requested by:	jhb (months ago), bapt (recently)
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2015-04-01 04:58:08 +00:00
jhb
065ed54942 MFC 278760:
Add two new counters for vnode life cycle events:
- vfs.recycles counts the number of vnodes forcefully recycled to avoid
  exceeding kern.maxvnodes.
- vfs.vnodes_created counts the number of vnodes created by successful
  calls to getnewvnode().
2015-03-31 15:37:24 +00:00
arybchik
5cd4ffb3cf MFC: r280807
sfxge: fix bug in TSO when a DMA segment has both header and data

Sponsored by:   Solarflare Communications, Inc.
2015-03-31 08:05:29 +00:00
arybchik
c3bb525c82 MFC: 279268
sfxge: add to config files

Sponsored by:   Solarflare Communications, Inc.
2015-03-31 08:00:20 +00:00
mav
49119503d2 MFC r280172: Improve ATA and SCSI versions printing.
There is no "SCSI-6" and "ATA-9", but there is "SPC-4" and "ACS-2".
2015-03-31 07:26:39 +00:00
mav
7e7a1cb5ec MFC r280166:
Make ATA power management commands to work on SCSI HBAs via PASS THROUGH.
2015-03-31 07:21:53 +00:00
kib
4826fa033b MFC r280781:
Make it possible for the signal handler to act on #ss.  Load the
canonical user data segment' selector into %ss when calling the
handler.
2015-03-31 01:05:34 +00:00
kib
ae182701d0 MFC r280780:
The #ss fault handler erronously does not check for the fault
originated from the return to usermode. #ss must be handled same as
#np.
2015-03-31 00:59:30 +00:00
kib
cff2ee95c4 MFC r280435:
When mapping an allocated entry, use the entry size, instead of the
requested size.  If tag restrictions caused split entry, its size is
less then requsted.
2015-03-31 00:57:25 +00:00
kib
2f3af4a1a4 MFC r280434:
Assert that the mapping loop makes progress.
2015-03-31 00:55:12 +00:00
jhb
ec839daca2 Revert accidental(?) change in r280455 and do not compile hwpmc statically
into GENERIC by default.  This change is not present in HEAD and was not
made in the two commits to HEAD that r280455 merged.
2015-03-30 16:28:04 +00:00
mav
3e11976044 MFC r280134:
Report ARAT (APIC-Timer-always-running) feature for virtual CPU.

This makes FreeBSD guest to not avoid using LAPIC timer, preferring HPET
due to worries about non-existing for virtual CPUs deep sleep states.

Benchmarks of usleep(1) on guest and host show such extra latencies:
 - 51us for virtual HPET,
 - 22us for virtual LAPIC timer,
 - 22us for host HPET and
 - 3us for host LAPIC timer.
2015-03-30 07:11:49 +00:00
mav
1d0629a91f MFC r280090: Hide virtio features negotiation messages under bootverbose.
Those messages are noisy, but useless for average user.
2015-03-29 07:46:59 +00:00
gjb
92d4896ada MFC r280640:
Crochet sources moved to a new home; update accordingly.

Sponsored by:	The FreeBSD Foundation
2015-03-28 05:11:16 +00:00
mav
122509b53e MFC r273445 (by imp):
Add defines for various FIRST PARTY DMA SEND subcommands.
2015-03-27 09:32:34 +00:00
mav
5169456c99 MFC r270832 (by imp):
Add a few defines and packet types for SATA 3.2 and FPDMA (First Party
DMA).
2015-03-27 09:31:28 +00:00
mav
bfc574567f MFC r279927: Make DIOCGATTR in device mode handle "GEOM::candelete". 2015-03-27 09:28:30 +00:00
mav
713a1f945d MFC r280286: Add comment explaining existing powerd behavior on SMP systems. 2015-03-27 09:01:25 +00:00
mav
9d1b41e02f MFC r280154:
Report that we may have write cache, and that we do support FLUSH.
2015-03-27 08:59:21 +00:00
mav
1240a4ece1 MFC r280133: Increase S/G list size of 32 to 33 entries.
32 entries are not enough for the worst case of misaligned 128KB request,
that made FreeBSD to chunk large quests in odd pieces.
2015-03-27 08:58:30 +00:00
mav
ea196f5fc6 MFC r280126: Pre-allocate one extra request per processing thread.
Processing threads call callbacks before freeing requests.  As result,
new requests may arrive before old ones are freed.
2015-03-27 08:57:38 +00:00
mav
4b55b30394 MFC r280044:
According to Linux and QEMU, s/n equal to buffer is not zero-terminated.

This makes same s/n reported for both virtio and AHCI drivers.
2015-03-27 08:56:44 +00:00
mav
1265da624b MFC r280042: Close potential race on blockif_close().
Reported by:	vangyzen
2015-03-27 08:55:54 +00:00
mav
77dd65195c MFC r280040:
Give AHCI disk serial based on backing file path same as for virtio block.

It is still not good that they may intersect on different hosts, but that
is better then intersecting on the same host.
2015-03-27 08:54:55 +00:00