]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoRename vt(4) vga module to dismiss interference with syscons(4) vga module.
ray [Wed, 18 Jun 2014 22:10:10 +0000 (22:10 +0000)]
Rename vt(4) vga module to dismiss interference with syscons(4) vga module.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

10 years agoFix syntax error.
wblock [Wed, 18 Jun 2014 18:31:35 +0000 (18:31 +0000)]
Fix syntax error.

PR: 191131
Submitted by: dan.mcgregor@usask.ca
MFC after: 1 week

10 years agoFix spelling, typos, missing articles, contractions. Expanded version
wblock [Wed, 18 Jun 2014 18:27:16 +0000 (18:27 +0000)]
Fix spelling, typos, missing articles, contractions.  Expanded version
of patch supplied with PR.

PR: 191001
Submitted by: olgeni
MFC after: 1 week

10 years agoRetooling addrconfig() to exclude addresses on loopback interfaces
ume [Wed, 18 Jun 2014 18:07:19 +0000 (18:07 +0000)]
Retooling addrconfig() to exclude addresses on loopback interfaces
when looking for configured addresses.
This change is based upon the code from the submitter, and made
following changes:
- Exclude addresses assigned on interfaces which are down, like NetBSD
  does.
- Exclude addresses assigned on interfaces which are ifdisabled.

PR: 190824
Submitted by: Justin McOmie
MFC after: 1 week

10 years agoRename a variable; no functional changes.
trasz [Wed, 18 Jun 2014 17:48:30 +0000 (17:48 +0000)]
Rename a variable; no functional changes.

Sponsored by: The FreeBSD Foundation

10 years agoAdd "iscsictl -M", which allows one to change session parameters
trasz [Wed, 18 Jun 2014 17:46:34 +0000 (17:46 +0000)]
Add "iscsictl -M", which allows one to change session parameters
without removing it and adding back.

Sponsored by: The FreeBSD Foundation

10 years agoImplement redirection handling in initiator.
trasz [Wed, 18 Jun 2014 17:35:40 +0000 (17:35 +0000)]
Implement redirection handling in initiator.

Sponsored by: The FreeBSD Foundation

10 years agoGet rid of unneccessary argument.
trasz [Wed, 18 Jun 2014 17:21:38 +0000 (17:21 +0000)]
Get rid of unneccessary argument.

Sponsored by: The FreeBSD Foundation

10 years agoFix typo and rename macro KDB_SYS_FLAG to KBD_SYS_FLAG.
neel [Wed, 18 Jun 2014 17:20:02 +0000 (17:20 +0000)]
Fix typo and rename macro KDB_SYS_FLAG to KBD_SYS_FLAG.

Reviewed by: tychon

10 years agoRework session termination in iSCSI target to actually wait
trasz [Wed, 18 Jun 2014 17:13:18 +0000 (17:13 +0000)]
Rework session termination in iSCSI target to actually wait
for any outstanding commands to be properly aborted by CTL.
Without it, in some cases (such as files backing the LUNs
stored on failing disk drives), terminating a busy session
would result in panic.

Reviewed by: mav@ (earlier version)
Sponsored by: The FreeBSD Foundation

10 years agoImprove code a little; no functional changes.
trasz [Wed, 18 Jun 2014 17:04:25 +0000 (17:04 +0000)]
Improve code a little; no functional changes.

Sponsored by: The FreeBSD Foundation

10 years agoUse proper term in debug messages.
trasz [Wed, 18 Jun 2014 17:00:41 +0000 (17:00 +0000)]
Use proper term in debug messages.

MFC after: 1 month
Sponsored by: FreeBSD Foundation

10 years agoxen: fix out-of-bounds access to ipi_handle
royger [Wed, 18 Jun 2014 13:41:20 +0000 (13:41 +0000)]
xen: fix out-of-bounds access to ipi_handle

Fix the gate in xen_pv_lapic_ipi_vectored to prevent access to element
at position nitems(xen_ipis).

Sponsored by: Citrix Systems R&D
Coverity ID: 1223203
Approved by: gibbs

10 years agoOn discovery stage add set of TargetAddress keys to reply, reporting to
mav [Wed, 18 Jun 2014 12:26:02 +0000 (12:26 +0000)]
On discovery stage add set of TargetAddress keys to reply, reporting to
the client all the portal groups addresses and ports.

Reviewed by: trasz@
MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

10 years agoAdd polish vt(4) keymap.
trasz [Wed, 18 Jun 2014 07:23:04 +0000 (07:23 +0000)]
Add polish vt(4) keymap.

Sponsored by: The FreeBSD Foundation

10 years agostdtime: style(9) fixes.
pfg [Wed, 18 Jun 2014 02:36:21 +0000 (02:36 +0000)]
stdtime: style(9) fixes.

Obtained from: illumos
MFC after: 5 days

10 years agocxgbe(4): Fix bug in the fast rx buffer recycle path. In some cases rx
np [Wed, 18 Jun 2014 00:16:35 +0000 (00:16 +0000)]
cxgbe(4):  Fix bug in the fast rx buffer recycle path.  In some cases rx
buffers were getting recycled when they should have been left alone.

MFC after: 3 days

10 years ago- Add a LOCAL_ITOOLS to allow adding additional tools required for the
bdrewery [Tue, 17 Jun 2014 22:23:36 +0000 (22:23 +0000)]
- Add a LOCAL_ITOOLS to allow adding additional tools required for the
  installworld and distributeworld targets

PR: 179562
Submitted by: Garrett Cooper <yaneurabeya@gmail.com>
MFC after: 1 week

10 years agoDifferent versions of the ARM processor use different registers.
tuexen [Tue, 17 Jun 2014 21:48:04 +0000 (21:48 +0000)]
Different versions of the ARM processor use different registers.
Fix the code used on a Raspberry Pi.

Reviewed by: markm@

10 years agoDrop 'Inc.' for consistency.
gjb [Tue, 17 Jun 2014 21:08:49 +0000 (21:08 +0000)]
Drop 'Inc.' for consistency.

Sponsored by: The FreeBSD Foundation

10 years agoConvert the potential console port over to using 3wire, for i386/amd64.
grehan [Tue, 17 Jun 2014 18:51:03 +0000 (18:51 +0000)]
Convert the potential console port over to using 3wire, for i386/amd64.

(This change was already in place for other arches via r262957)

Reviewed by: nwhitehorn
MFC after: 1 week

10 years agoDon't bother clearing maps for static DMA allocations to NULL. Instead,
jhb [Tue, 17 Jun 2014 18:10:06 +0000 (18:10 +0000)]
Don't bother clearing maps for static DMA allocations to NULL.  Instead,
leave them as purely opaque values that are only set by bus_dmamem_alloc().

10 years agoUpdate src.conf.5 after r267582
emaste [Tue, 17 Jun 2014 16:25:50 +0000 (16:25 +0000)]
Update src.conf.5 after r267582

10 years agoshare/vt now also includes keymaps
emaste [Tue, 17 Jun 2014 16:21:50 +0000 (16:21 +0000)]
share/vt now also includes keymaps

10 years agoFix various bugs with freeing static DMA allocations in sound drivers:
jhb [Tue, 17 Jun 2014 16:07:57 +0000 (16:07 +0000)]
Fix various bugs with freeing static DMA allocations in sound drivers:
- Don't compare the DMA map to NULL to determine if bus_dmamap_unload()
  should be called when releasing a static allocation.  Instead, compare
  the bus address against 0.
- Don't assume that the DMA map for static allocations is NULL.  Instead,
  save the value set by bus_dmamem_alloc() so it can later be passed to
  bus_dmamem_free().  Also, add missing calls to bus_dmamap_unload() in
  these cases before freeing the buffer.
- Use the bus address from the bus_dma callback instead of calling
  vtophys() on the address allocated by bus_dmamem_alloc().

Reviewed by: kan

10 years agoFix teardown of static DMA allocations in various NIC drivers:
jhb [Tue, 17 Jun 2014 14:47:49 +0000 (14:47 +0000)]
Fix teardown of static DMA allocations in various NIC drivers:
- Add missing calls to bus_dmamap_unload() in et(4).
- Check the bus address against 0 to decide when to call
  bus_dmamap_unload() instead of comparing the bus_dma map against NULL.
- Check the virtual address against NULL to decide when to call
  bus_dmamem_free() instead of comparing the bus_dma map against NULL.
- Don't clear bus_dma map pointers to NULL for static allocations.
  Instead, treat the value as completely opaque.
- Pass the correct virtual address to bus_dmamem_free() in wpi(4) instead
  of trying to free a pointer to the virtual address.

Reviewed by: yongari

10 years agoAdd glyphs from converted syscons iso* fonts
emaste [Tue, 17 Jun 2014 13:12:30 +0000 (13:12 +0000)]
Add glyphs from converted syscons iso* fonts

This consists of the unique glyphs from the following font files in
/usr/share/syscons/fonts:

iso*.fnt     ISO-8859-1 West European
iso02*.fnt   ISO-8859-2 Central European
iso04*.fnt   ISO-8859-4 Baltic
iso05*.fnt   ISO-8859-5 Cyrillic
iso07*.fnt   ISO-8859-7 Greek
iso08*.fnt   ISO-8859-8 Hebrew
iso09*.fnt   ISO-8859-9 Turkish
iso15*.fnt   ISO-8859-15 West European

Sponsored by: The FreeBSD Foundation

10 years agoAdd a stub send-pr that simply points people towards the online support
gavin [Tue, 17 Jun 2014 12:59:03 +0000 (12:59 +0000)]
Add a stub send-pr that simply points people towards the online support
pages, to give people used to send-pr a bit of guidance.

MFC after: 3 days

10 years agoDo not reference native_lapic_ipi_*() functions in the UP build.
kib [Tue, 17 Jun 2014 09:33:22 +0000 (09:33 +0000)]
Do not reference native_lapic_ipi_*() functions in the UP build.
The functions' definitions are protected by #ifdef SMP.
Keeping apic_ops.ipi_*() methods NULL would allow to catch the use
on UP machines.

Reviewed by: royger
Sponsored by: The FreeBSD Foundation

10 years agoMake cs_terminating a bool; no functional changes.
trasz [Tue, 17 Jun 2014 09:02:10 +0000 (09:02 +0000)]
Make cs_terminating a bool; no functional changes.

Sponsored by: The FreeBSD Foundation

10 years agoMFV r249332 (illumos-gate 14005:55fc53126003)
delphij [Tue, 17 Jun 2014 08:11:45 +0000 (08:11 +0000)]
MFV r249332 (illumos-gate 14005:55fc53126003)

Illumos ZFS issues:
  3654 zdb should print number of ganged blocks

MFC after: 2 weeks

10 years agoIn msdosfs_setattr(), add a check for result of the utimes(2)
kib [Tue, 17 Jun 2014 07:11:00 +0000 (07:11 +0000)]
In msdosfs_setattr(), add a check for result of the utimes(2)
permissions test, forgotten in r164033.

Refactor the permission checks for utimes(2) into vnode helper
function vn_utimes_perm(9), and simplify its code comparing with the
UFS origin, by writing the call to VOP_ACCESSX only once.  Use the
helper for UFS(5), tmpfs(5), devfs(5) and msdosfs(5).

Reported by: bde
Reviewed by: bde, trasz
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoRevert r266925 as it can lead to instant panic at fexecve():
dchagin [Tue, 17 Jun 2014 05:29:18 +0000 (05:29 +0000)]
Revert r266925 as it can lead to instant panic at fexecve():

To allow to run the interpreter itself add a new ELF branding type.

Pointed out by: kib, mjg

10 years agoAdd MLINKS for macros decribed in queue.3 manpage.
kevlo [Tue, 17 Jun 2014 02:10:40 +0000 (02:10 +0000)]
Add MLINKS for macros decribed in queue.3 manpage.

10 years agoSupport for multiple disks and tap devices.
alfred [Tue, 17 Jun 2014 00:53:00 +0000 (00:53 +0000)]
Support for multiple disks and tap devices.

This allows you to give a bhyve instance multiple network devices
and disk devices easily by specifying additional "-d " and "-t "
options.

Reviewed by: neel
Sponsored by: Norse

10 years agoBring an overly enthusiastic KASSERT inline with the Intel SDM.
tychon [Mon, 16 Jun 2014 22:59:18 +0000 (22:59 +0000)]
Bring an overly enthusiastic KASSERT inline with the Intel SDM.

Reviewed by: neel

10 years agoAdd &citrix; and &citrix.rd; macros.
gjb [Mon, 16 Jun 2014 20:21:15 +0000 (20:21 +0000)]
Add &citrix; and &citrix.rd; macros.

Sponsored by: The FreeBSD Foundation

10 years agoDocument r267536, Xen PVH DomU support for amd64.
gjb [Mon, 16 Jun 2014 20:20:54 +0000 (20:20 +0000)]
Document r267536, Xen PVH DomU support for amd64.

Submitted by: royger
Sponsored by: The FreeBSD Foundation

10 years agoAdd comment explaining a potential problem with just added LUN ID.
trasz [Mon, 16 Jun 2014 19:05:51 +0000 (19:05 +0000)]
Add comment explaining a potential problem with just added LUN ID.

Reminded by: mav@
Sponsored by: The FreeBSD Foundation

10 years ago- Modify vm_page_unwire() and vm_page_enqueue() to directly accept
attilio [Mon, 16 Jun 2014 18:15:27 +0000 (18:15 +0000)]
- Modify vm_page_unwire() and vm_page_enqueue() to directly accept
  the queue where to enqueue pages that are going to be unwired.
- Add stronger checks to the enqueue/dequeue for the pagequeues when
  adding and removing pages to them.

Of course, for unmanaged pages the queue parameter of vm_page_unwire() will
be ignored, just as the active parameter today.
This makes adding new pagequeues quicker.

This change effectively modifies the KPI.  __FreeBSD_version will be,
however, bumped just when the full cache of free pages will be
evicted.

Sponsored by: EMC / Isilon storage division
Reviewed by: alc
Tested by: pho

10 years agoAdd LUN-associated name to VPD, to make Hyper-V Failover Cluster happy.
trasz [Mon, 16 Jun 2014 18:14:05 +0000 (18:14 +0000)]
Add LUN-associated name to VPD, to make Hyper-V Failover Cluster happy.

Sponsored by: The FreeBSD Foundation

10 years agoTidy up the early parts of vm_map_insert(), in particular, simplify one
alc [Mon, 16 Jun 2014 16:37:41 +0000 (16:37 +0000)]
Tidy up the early parts of vm_map_insert(), in particular, simplify one
of the assertions and eliminate a comment that has grown stale.

Reviewed by: kib
MFC after: 1 week

10 years agoUpdate license to strptime(3) implementation.
pfg [Mon, 16 Jun 2014 14:55:09 +0000 (14:55 +0000)]
Update license to strptime(3) implementation.

Our strptime(3) implementation was the base for the illumos
implementation and after contacting the author, Kevin Rudy
stated the code is under a 2-Clause BSD License [1]

After reviewing our local changes to the file in question,
the FreeBSD Foundation has agreed that their contributions
to this file are not required to carry clause 3 or 4 so
the file can be relicensed as in Illumos [2].

References:

[1] https://www.illumos.org/issues/357
[2] Illumos Revision: 13222:02526851ba75

Approved: core (jhb)
Approved: FreeBSD Foundation (emaste)
MFC after: 4 days

10 years agoFix destruction of character devices by passing correct pointer to
hselasky [Mon, 16 Jun 2014 14:02:14 +0000 (14:02 +0000)]
Fix destruction of character devices by passing correct pointer to
kernel in IOCTL request.

Submitted by: Andrey Zholos <aaz@q-fu.com>

10 years agoAdd support for VERIFY(10/12/16) and COMPARE AND WRITE SCSI commands.
mav [Mon, 16 Jun 2014 11:00:14 +0000 (11:00 +0000)]
Add support for VERIFY(10/12/16) and COMPARE AND WRITE SCSI commands.

Make data_submit backends method support not only read and write requests,
but also two new ones: verify and compare.  Verify just checks readability
of the data in specified location without transferring them outside.
Compare reads the specified data and compares them to received data,
returning error if they are different.

VERIFY(10/12/16) commands request either verify or compare from backend,
depending on BYTCHK CDB field.  COMPARE AND WRITE command executed in two
stages: first it requests compare, and then, if succeesed, requests write.
Atomicity of operation is guarantied by CTL request ordering code.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

10 years agoxen: add missing files
royger [Mon, 16 Jun 2014 08:54:04 +0000 (08:54 +0000)]
xen: add missing files

Commit missing files that actually belong to previous commits.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

10 years agoisa: allow ISA bus to attach to xenpv bus
royger [Mon, 16 Jun 2014 08:49:16 +0000 (08:49 +0000)]
isa: allow ISA bus to attach to xenpv bus

This is needed because syscons depends on ISA.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

x86/isa/isa.c:
 - Allow the ISA bus to attach to xenpv.

10 years agoxen: unify gnttab initialization for PVHVM and PVH
royger [Mon, 16 Jun 2014 08:48:42 +0000 (08:48 +0000)]
xen: unify gnttab initialization for PVHVM and PVH

Switch the initialization of gnttab to use an unused physical memory
range for both PVHVM and PVH.

In the past PVHVM was using the xenpci BAR, but there's no reason to
do that, and in fact FreeBSD was probably doing it because it was the
way it was done in Windows, were drivers cannot probably request for
unused physical memory ranges, but it was never enforced in the
hypervisor.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

xen/gnttab.c:
 - Allocate contiguous physical memory for grant table frames for both
   PVHVM and PVH.
 - Since gnttab is not a device, use the xenpv device in order to
   request for this allocation.

dev/xen/xenpci/xenpcivar.h:
dev/xen/xenpci/xenpci.c:
 - Remove the now unused xenpci_alloc_space and xenpci_alloc_space_int
   functions.

xen/gnttab.h:
 - Change the prototype of gnttab_init and gnttab_resume, that now
   takes a device_t parameter.

dev/xen/control/control.c:
x86/xen/xenpv.c:
 - Changes to accomodate the new prototype of gnttab_init and
   gnttab_resume.

10 years agoxen: init gnttab from xenpv
royger [Mon, 16 Jun 2014 08:48:06 +0000 (08:48 +0000)]
xen: init gnttab from xenpv

Currently the grant table is initialized from xenstore, but a better
place to do this would be xenpv, so move grant table initialization
there.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

x86/xen/xenpv.c:
 - Add gnttab initialization.

xen/xenstore/xenstore.c:
 - Remove gnttab initialization.

10 years agoxen: xenstore changes to support PVH
royger [Mon, 16 Jun 2014 08:47:15 +0000 (08:47 +0000)]
xen: xenstore changes to support PVH

For PVH guests the xenstore parameters are fetched from the start_info
struct, just like on PV.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

xen/xenstore/xenstore.c:
 - Fetch xenstore event channel port from start_info.

10 years agoxen: add shutdown hook for PVH
royger [Mon, 16 Jun 2014 08:46:31 +0000 (08:46 +0000)]
xen: add shutdown hook for PVH

Add the PV shutdown hook to PVH.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

dev/xen/control/control.c:
 - Make xen_pv_shutdown_final available on XENHVM builds.
 - Register the Xen PV shutdown hook for PVH guests.

10 years agoxen: create a Xen nexus to use in PV/PVH
royger [Mon, 16 Jun 2014 08:45:51 +0000 (08:45 +0000)]
xen: create a Xen nexus to use in PV/PVH

Introduce a Xen specific nexus that is going to be used by Xen PV/PVH
guests.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

x86/xen/xen_nexus.c:
 - Introduce a Nexus to use on Xen PV(H) guests, this prevents PV(H)
   guests from using the legacy Nexus.

conf/files.amd64:
conf/files.i386:
 - Add the xen nexus to the build.

10 years agoxen: create a PV CPU device for PVH guests
royger [Mon, 16 Jun 2014 08:45:12 +0000 (08:45 +0000)]
xen: create a PV CPU device for PVH guests

Since there's no ACPI on PVH guests, we need to create a dummy CPU
device in order to fill the pcpu->pc_device field.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

dev/xen/pvcpu/pvcpu.c:
 - Create a dummy CPU device for PVH guests in order to fill the
   per-cpu pc_device field.

conf/files:
 - Add the pvcpu device to kernels using XEN or XENHVM options.

10 years agoxen: introduce xenpv bus
royger [Mon, 16 Jun 2014 08:44:33 +0000 (08:44 +0000)]
xen: introduce xenpv bus

Create a dummy bus so top level Xen devices can attach to it (instead
of attaching directly to the nexus). This allows to have all the Xen
related devices grouped under a single bus.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

x86/xen/xenpv.c:
 - Attach the xenpv bus when running as a Xen guest.
 - Attach the ISA bus if needed, in order to attach syscons.

conf/files.amd6:
conf/files.i386:
 - Include the xenpv.c file in the build of i386/amd64 kernels using
   XENHVM.

dev/xen/console/console.c:
dev/xen/timer/timer.c:
xen/xenstore/xenstore.c:
 - Attach to the xenpv bus instead of the Nexus.

dev/xen/xenpci/xenpci.c:
 - Xen specific devices on PVHVM guests are no longer attached to the
   xenpci device, they are instead attached to the xenpv bus, remove
   the now unused methods.

10 years agoxen: add hooks for Xen PV APIC
royger [Mon, 16 Jun 2014 08:43:45 +0000 (08:43 +0000)]
xen: add hooks for Xen PV APIC

Create the necessary hooks in order to provide a Xen PV APIC
implementation that can be used on PVH. Most of the lapic ops
shouldn't be called on Xen, since we trap those operations at a higher
layer.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

x86/xen/hvm.c:
x86/xen/xen_apic.c:
 - Move IPI related code to xen_apic.c

x86/xen/xen_apic.c:
 - Introduce Xen PV APIC implementation, most of the functions of the
   lapic interface should never be called when running as PV(H) guest,
   so make sure FreeBSD panics when trying to use one of those.
 - Define the Xen APIC implementation in xen_apic_ops.

xen/xen_pv.h:
 - Extern declaration of the xen_apic struct.

x86/xen/pv.c:
 - Use xen_apic_ops as apic_ops when running as PVH guest.

conf/files.amd64:
conf/files.i386:
 - Include the xen_apic.c file in the build of i386/amd64 kernels
   using XENHVM.

10 years agoamd64/i386: introduce APIC hooks for different APIC implementations.
royger [Mon, 16 Jun 2014 08:43:03 +0000 (08:43 +0000)]
amd64/i386: introduce APIC hooks for different APIC implementations.

This is needed for Xen PV(H) guests, since there's no hardware lapic
available on this kind of domains. This commit should not change
functionality.

Sponsored by: Citrix Systems R&D
Reviewed by: jhb
Approved by: gibbs

amd64/include/cpu.h:
amd64/amd64/mp_machdep.c:
i386/include/cpu.h:
i386/i386/mp_machdep.c:
 - Remove lapic_ipi_vectored hook from cpu_ops, since it's now
   implemented in the lapic hooks.

amd64/amd64/mp_machdep.c:
i386/i386/mp_machdep.c:
 - Use lapic_ipi_vectored directly, since it's now an inline function
   that will call the appropiate hook.

x86/x86/local_apic.c:
 - Prefix bare metal public lapic functions with native_ and mark them
   as static.
 - Define default implementation of apic_ops.

x86/include/apicvar.h:
 - Declare the apic_ops structure and create inline functions to
   access the hooks, so the change is transparent to existing users of
   the lapic_ functions.

x86/xen/hvm.c:
 - Switch to use the new apic_ops.

10 years agoxen: fix style in pv.c
royger [Mon, 16 Jun 2014 08:41:57 +0000 (08:41 +0000)]
xen: fix style in pv.c

Fix the lenght of some comments, and also add proper indentation to
xen_init_ops

Sponsored by: Citrix Systems R&D
Approved by: gibbs

10 years agoForce two byte alignment for all control message headers
bryanv [Mon, 16 Jun 2014 04:32:27 +0000 (04:32 +0000)]
Force two byte alignment for all control message headers

The header structure consists of two 1-byte elements, but it must always
be describable by a single SG entry. Note for consistency, specify the
alignment everywhere, even if the structure has the appropriate natural
alignment since it contains a uint16_t.

Obtained from: DragonFlyBSD
MFC after: 1 week

10 years agoMake the feature negotiation code easier to follow
bryanv [Mon, 16 Jun 2014 04:29:28 +0000 (04:29 +0000)]
Make the feature negotiation code easier to follow

MFC after: 1 week

10 years agoMove the VIRTIO_RING_F_* defines out of virtqueue.h into virtio_config.h
bryanv [Mon, 16 Jun 2014 04:25:04 +0000 (04:25 +0000)]
Move the VIRTIO_RING_F_* defines out of virtqueue.h into virtio_config.h

These defines are applicable to userland too, but virtqueue.h contains
the kernel virtqueue interface, and is therefore not usable in userland.

Note that Linux places these defines in virtio_ring.h, but I don't want
the drivers including this header file to keep the VirtIO ring opaque to
everything but the virtqueue.

MFC after: 1 week

10 years agoRemove kernel specific macro out of the VirtIO PCI header file
bryanv [Mon, 16 Jun 2014 04:16:31 +0000 (04:16 +0000)]
Remove kernel specific macro out of the VirtIO PCI header file

The eventual goal is to share this file with userland, so
remove the macro that is only specific for virtio_pci(4).
Instead, add the VIRTIO_PCI_CONFIG_OFF macro from Linux to
get the config size whether MSIX is enabled or not.

MFC after: 1 week

10 years ago - Remove two write-only local variables
bryanv [Mon, 16 Jun 2014 04:12:33 +0000 (04:12 +0000)]
  - Remove two write-only local variables
  - Remove unused element in the vtnet_rxq structure

MFC after: 1 week

10 years agoMake backends track completion by processed number of sectors instead of
mav [Sun, 15 Jun 2014 20:14:11 +0000 (20:14 +0000)]
Make backends track completion by processed number of sectors instead of
total transfer size.

Commands such as VERIFY or COMPARE AND WRITE may have transfer size not
matching directly to number of sectors.

10 years agoMinor mdoc improvements.
joel [Sun, 15 Jun 2014 18:39:10 +0000 (18:39 +0000)]
Minor mdoc improvements.

10 years agomdoc: add missing width to Bl -tag.
joel [Sun, 15 Jun 2014 18:30:26 +0000 (18:30 +0000)]
mdoc: add missing width to Bl -tag.

10 years agoRemove memcpy() from ctl_private[] accesses.
mav [Sun, 15 Jun 2014 18:16:51 +0000 (18:16 +0000)]
Remove memcpy() from ctl_private[] accesses.

That union is aligned enough to access data directly.

10 years agoMove kern_total_len setting from backend to core code.
mav [Sun, 15 Jun 2014 17:14:52 +0000 (17:14 +0000)]
Move kern_total_len setting from backend to core code.

10 years agoMFV r266988:
pfg [Sun, 15 Jun 2014 16:54:26 +0000 (16:54 +0000)]
MFV r266988:

Merge from r258379 missed the tests.

4248 dtrace(1M) should never create DOF with empty probes section
4249 Only probes from the first DTrace object file will be included

Illumos Revision: 54a20ab41aadcb81c53e72fc65886e964e9add59

MFC after: 5 days

10 years agopatch: add dry-run alias for compatibility with other implementations.
pfg [Sun, 15 Jun 2014 16:38:17 +0000 (16:38 +0000)]
patch: add dry-run alias for compatibility with other implementations.

Other implementations of patch(1), including GNU patch and "svn patch"
have a --dry-run option which does the same as our -C or --check
option.

Add a new alias to make our implementation more compatible.

MFC after: 1 week

10 years agoCreate a mechanism for providing fine-grained build order dependencies
ian [Sun, 15 Jun 2014 13:45:37 +0000 (13:45 +0000)]
Create a mechanism for providing fine-grained build order dependencies
during SUBDIR_PARALLEL builds.  This augments the coarse .WAIT mechanism,
which is still useful if you've got a situation such as "almost everything
depends on A and B".

Because the parallel subdir mechanism uses non-obvious mangling of
target names, which should probably remain a private detail of the
implementation, it's not easy to do things like "libfoo: libbar", so
instead the new mechanism lets you set a variable that lists dependencies:

  SUBDIR_DEPEND_libfoo= libgroodah libpouet

Note that while I'm using libraries as an example here, it really has
nothing to do with the generated library files.  This is really saying
"build in directory libfoo after building in the libgroodah and libpouet
directories."

This updates lib/Makefile with dependency information based on the old
almost-accurate comment block and by combing through lib/* makefiles
looking for LDADD dependencies to other libraries within lib/*.

Reviewed by: Jia-Shiun Li <jiashiun@gmail.com>

10 years agoAdd very basic driver for 12-bit Analog to Digital Converter (ADC).
br [Sun, 15 Jun 2014 12:08:33 +0000 (12:08 +0000)]
Add very basic driver for 12-bit Analog to Digital Converter (ADC).

10 years agoDocument additional LUN/backend options.
mav [Sun, 15 Jun 2014 11:21:44 +0000 (11:21 +0000)]
Document additional LUN/backend options.

10 years agomdoc: remove superfluous paragraph macros.
joel [Sun, 15 Jun 2014 10:43:12 +0000 (10:43 +0000)]
mdoc: remove superfluous paragraph macros.

10 years agomdoc: add missing width argument to Bl -tag.
joel [Sun, 15 Jun 2014 10:40:54 +0000 (10:40 +0000)]
mdoc: add missing width argument to Bl -tag.

10 years agomdoc: remove superfluous paragraph macros.
joel [Sun, 15 Jun 2014 10:34:35 +0000 (10:34 +0000)]
mdoc: remove superfluous paragraph macros.

10 years agomdoc: use display block in the beginning of the EXAMPLES section.
joel [Sun, 15 Jun 2014 10:31:50 +0000 (10:31 +0000)]
mdoc: use display block in the beginning of the EXAMPLES section.

10 years agoFix date.
joel [Sun, 15 Jun 2014 10:18:57 +0000 (10:18 +0000)]
Fix date.

10 years agoFormat Portal Group Tag same as istgt does -- %4.4x instead of %x.
mav [Sun, 15 Jun 2014 10:04:44 +0000 (10:04 +0000)]
Format Portal Group Tag same as istgt does -- %4.4x instead of %x.

SPC-4 spec tells it should be "two or more hexadecimal digits".
RFC3720 tells it is 16-bit value.

MFC after: 2 weeks

10 years agoRemove custom processing for "file" option.
mav [Sun, 15 Jun 2014 09:37:06 +0000 (09:37 +0000)]
Remove custom processing for "file" option.

10 years agoRespect "vendor" option in all places.
mav [Sun, 15 Jun 2014 08:43:52 +0000 (08:43 +0000)]
Respect "vendor" option in all places.

MFC after: 2 weeks

10 years agoOne of the intentions behind r267254 was that the global variable "sgrowsiz"
alc [Sun, 15 Jun 2014 07:52:59 +0000 (07:52 +0000)]
One of the intentions behind r267254 was that the global variable "sgrowsiz"
would be read once and cached in a local variable so that the resource limit
check and map entry insertion would be guaranteed to use the same value.
However, the value being passed to vm_map_insert() is still from "sgrowsiz"
and not the local variable.  Correct this oversight.

Reviewed by: kib

10 years agoAdd "vendor", "product" and "revision" options to control inquiry data.
mav [Sun, 15 Jun 2014 06:56:10 +0000 (06:56 +0000)]
Add "vendor", "product" and "revision" options to control inquiry data.

MFC after: 2 weeks

10 years agoFix two issues:
delphij [Sun, 15 Jun 2014 05:07:01 +0000 (05:07 +0000)]
Fix two issues:

 - Check for rc.d directory's existence before traversing
   it;
 - Don't output * when rc.d directory is empty.

PR: conf/190665
Submitted by: Oleg Ginzburg <olevole olevole ru> (with changes)
MFC after: 2 weeks

10 years agoFix some cosmetic issues with the use of kmem_malloc() in the i386 LDT
kib [Sun, 15 Jun 2014 05:01:35 +0000 (05:01 +0000)]
Fix some cosmetic issues with the use of kmem_malloc() in the i386 LDT
sysarch(2) code.

Use M_ZERO instead of explicit bzero(9).  Do not check for failed
allocation when M_WAITOK is specified (which is specified always).
Use malloc(9) when allocating memory for the intermediate copy of the
user-supplied buffer.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoUse vn_io_fault for the writes from core dumping code. Recursing into
kib [Sun, 15 Jun 2014 04:51:53 +0000 (04:51 +0000)]
Use vn_io_fault for the writes from core dumping code.  Recursing into
VM due to copyin(9) faulting while VFS locks are held is
deadlock-prone there in the same way as for the write(2) syscall.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

10 years agopatch: unsign the line length to avoid overflows.
pfg [Sun, 15 Jun 2014 03:54:23 +0000 (03:54 +0000)]
patch: unsign the line length to avoid overflows.

Patch(1) uses a short int for the line length, which is usually
sufficient for regular diffs, but makes no effort to signal
when there is an overflow.

Change the line length to an unsigned short int to better use
the fact that a length is never negative.  The change is loosely
inspired on a related change in DragonFly, but we avoid spending
more memory than necessary.

While here adjust the messages to be clearer on what is happening.

MFC after: 1 week

10 years agoDon't check the dma map address for a static DMA mapping against NULL
bryanv [Sat, 14 Jun 2014 23:36:17 +0000 (23:36 +0000)]
Don't check the dma map address for a static DMA mapping against NULL
to determine if the mapping is valid.

Submitted by: jhb

10 years agoRemove send-pr, the supported interface to submit bugs is now via
gavin [Sat, 14 Jun 2014 20:36:32 +0000 (20:36 +0000)]
Remove send-pr, the supported interface to submit bugs is now via
https://bugs.freebsd.org/submit/

Removing send-pr also removes one more piece of non-BSD-licensed software.

Hat: bugmeister
MFC after: 3 days

10 years agoRemove non-functional remnants of control LUN -- 18MB of RAM for nothing.
mav [Sat, 14 Jun 2014 20:25:14 +0000 (20:25 +0000)]
Remove non-functional remnants of control LUN -- 18MB of RAM for nothing.

10 years agoWith the move away from GNATS, point end users to a better web page
gavin [Sat, 14 Jun 2014 18:45:40 +0000 (18:45 +0000)]
With the move away from GNATS, point end users to a better web page
detailing how to report bugs.

Hat: bugmeister
MFC after: 3 days

10 years agoStop telling people to use send-pr; instead point them towards Bugzilla.
gavin [Sat, 14 Jun 2014 18:43:48 +0000 (18:43 +0000)]
Stop telling people to use send-pr; instead point them towards Bugzilla.

Hat: bugmeister@
MFC after: 3 days

10 years agoImplement small KPI to access LUN options instead doing it by hands.
mav [Sat, 14 Jun 2014 17:47:44 +0000 (17:47 +0000)]
Implement small KPI to access LUN options instead doing it by hands.

MFC after: 2 weeks

10 years agoFix/improve fhe_stats sysctl output.
mav [Sat, 14 Jun 2014 12:26:12 +0000 (12:26 +0000)]
Fix/improve fhe_stats sysctl output.

MFC after: 2 weeks

10 years agoMFp4: change 1191346
brueffer [Sat, 14 Jun 2014 12:17:45 +0000 (12:17 +0000)]
MFp4: change 1191346

In print_header32_tok(), correct printing in the XML case.  This lead to
invalid XML files before.

PR: 176259
Submitted by: zi
MFC after: 3 days

10 years agoMFV of 267471, tzdata2014e
edwin [Sat, 14 Jun 2014 11:34:39 +0000 (11:34 +0000)]
MFV of 267471, tzdata2014e

Fix historical data for Egypt.
Better prediction for future Egypt / Morocco changes.
Update to Cocos / Cook islands.
Fix historical data for Russia.

10 years agoShadow RAM support is apparently not at all working on the Intel 5300 Wifi.
adrian [Sat, 14 Jun 2014 06:54:03 +0000 (06:54 +0000)]
Shadow RAM support is apparently not at all working on the Intel 5300 Wifi.

Tested:

* Intel 5300 3x3 wifi
* Intel 5100

10 years agopatch: cleanup some unnecessary cruft.
pfg [Sat, 14 Jun 2014 01:58:33 +0000 (01:58 +0000)]
patch: cleanup some unnecessary cruft.

- Drop some bogus casts to size_t.
- The new_p_foo variables are not needed after r267426.

Pointed out by: bde
MFC after: 1 week

10 years agoUndo commit r267455, which was done in the wrong directory.
edwin [Sat, 14 Jun 2014 01:18:02 +0000 (01:18 +0000)]
Undo commit r267455, which was done in the wrong directory.

10 years agoSwitch release/Makefile knobs from WITHOUT_FOO=1 to MK_FOO=no.
gjb [Sat, 14 Jun 2014 01:03:24 +0000 (01:03 +0000)]
Switch release/Makefile knobs from WITHOUT_FOO=1 to MK_FOO=no.

This allows greater granular control over the release
build, and avoids WITH_FOO=1 and WITHOUT_FOO=1 collision.

This change was verified to produce correct results
compared to an earlier build by diffing find(1) output
of the resulting bootonly/, dvd/, and release/ directories.

Tested on: head@r267449
MFC after: 1 month
X-MFC-Note: Requires commits not yet MFC'd, so likely
longer than 1 month.
Sponsored by: The FreeBSD Foundation

10 years agoAdded:
shurd [Sat, 14 Jun 2014 00:10:10 +0000 (00:10 +0000)]
Added:

- my birthday

Approved by: db, skreuzer (mentors)