svn commit: r306072 - in head/sys/dev/hyperv: include vmbus
Author: sephe Date: Wed Sep 21 05:56:47 2016 New Revision: 306072 URL: https://svnweb.freebsd.org/changeset/base/306072 Log: hyperv/vmbus: Allow bufrings preallocation. The assumption that the channel is only opened upon synthetic device attach time no longer holds, e.g. Hyper-V network device MTU changes. We have to allow device drivers to preallocate bufrings, e.g. in attach DEVMETHOD, to prevent bufring allocation failure once the system memory is fragmented after running for a while. MFC after:1 week Sponsored by: Microsoft Differential Revision:https://reviews.freebsd.org/D7960 Modified: head/sys/dev/hyperv/include/vmbus.h head/sys/dev/hyperv/vmbus/vmbus_chan.c Modified: head/sys/dev/hyperv/include/vmbus.h == --- head/sys/dev/hyperv/include/vmbus.h Wed Sep 21 05:44:13 2016 (r306071) +++ head/sys/dev/hyperv/include/vmbus.h Wed Sep 21 05:56:47 2016 (r306072) @@ -108,6 +108,13 @@ struct vmbus_chanpkt_rxbuf { struct vmbus_rxbuf_desc cp_rxbuf[]; } __packed; +struct vmbus_chan_br { + void*cbr; + bus_addr_t cbr_paddr; + int cbr_txsz; + int cbr_rxsz; +}; + struct vmbus_channel; struct hyperv_guid; @@ -122,6 +129,9 @@ vmbus_get_channel(device_t dev) intvmbus_chan_open(struct vmbus_channel *chan, int txbr_size, int rxbr_size, const void *udata, int udlen, vmbus_chan_callback_t cb, void *cbarg); +intvmbus_chan_open_br(struct vmbus_channel *chan, + const struct vmbus_chan_br *cbr, const void *udata, + int udlen, vmbus_chan_callback_t cb, void *cbarg); void vmbus_chan_close(struct vmbus_channel *chan); intvmbus_chan_gpadl_connect(struct vmbus_channel *chan, Modified: head/sys/dev/hyperv/vmbus/vmbus_chan.c == --- head/sys/dev/hyperv/vmbus/vmbus_chan.c Wed Sep 21 05:44:13 2016 (r306071) +++ head/sys/dev/hyperv/vmbus/vmbus_chan.c Wed Sep 21 05:56:47 2016 (r306072) @@ -196,13 +196,45 @@ int vmbus_chan_open(struct vmbus_channel *chan, int txbr_size, int rxbr_size, const void *udata, int udlen, vmbus_chan_callback_t cb, void *cbarg) { + struct vmbus_chan_br cbr; + int error; + + /* +* Allocate the TX+RX bufrings. +*/ + KASSERT(chan->ch_bufring == NULL, ("bufrings are allocated")); + chan->ch_bufring = hyperv_dmamem_alloc(bus_get_dma_tag(chan->ch_dev), + PAGE_SIZE, 0, txbr_size + rxbr_size, >ch_bufring_dma, + BUS_DMA_WAITOK); + if (chan->ch_bufring == NULL) { + device_printf(chan->ch_dev, "bufring allocation failed\n"); + return (ENOMEM); + } + + cbr.cbr = chan->ch_bufring; + cbr.cbr_paddr = chan->ch_bufring_dma.hv_paddr; + cbr.cbr_txsz = txbr_size; + cbr.cbr_rxsz = rxbr_size; + + error = vmbus_chan_open_br(chan, , udata, udlen, cb, cbarg); + if (error) { + hyperv_dmamem_free(>ch_bufring_dma, chan->ch_bufring); + chan->ch_bufring = NULL; + } + return (error); +} + +int +vmbus_chan_open_br(struct vmbus_channel *chan, const struct vmbus_chan_br *cbr, +const void *udata, int udlen, vmbus_chan_callback_t cb, void *cbarg) +{ struct vmbus_softc *sc = chan->ch_vmbus; const struct vmbus_chanmsg_chopen_resp *resp; const struct vmbus_message *msg; struct vmbus_chanmsg_chopen *req; struct vmbus_msghc *mh; uint32_t status; - int error; + int error, txbr_size, rxbr_size; uint8_t *br; if (udlen > VMBUS_CHANMSG_CHOPEN_UDATA_SIZE) { @@ -210,11 +242,20 @@ vmbus_chan_open(struct vmbus_channel *ch "invalid udata len %d for chan%u\n", udlen, chan->ch_id); return EINVAL; } + + br = cbr->cbr; + txbr_size = cbr->cbr_txsz; + rxbr_size = cbr->cbr_rxsz; KASSERT((txbr_size & PAGE_MASK) == 0, ("send bufring size is not multiple page")); KASSERT((rxbr_size & PAGE_MASK) == 0, ("recv bufring size is not multiple page")); + /* +* Zero out the TX/RX bufrings, in case that they were used before. +*/ + memset(br, 0, txbr_size + rxbr_size); + if (atomic_testandset_int(>ch_stflags, VMBUS_CHAN_ST_OPENED_SHIFT)) panic("double-open chan%u", chan->ch_id); @@ -230,20 +271,6 @@ vmbus_chan_open(struct vmbus_channel *ch else TASK_INIT(>ch_task, 0, vmbus_chan_task_nobatch, chan); - /* -* Allocate the TX+RX bufrings. -* XXX should use ch_dev dtag -*/ - br = hyperv_dmamem_alloc(bus_get_dma_tag(sc->vmbus_dev), - PAGE_SIZE, 0,
svn commit: r306071 - head/sys/kern
Author: trasz Date: Wed Sep 21 05:44:13 2016 New Revision: 306071 URL: https://svnweb.freebsd.org/changeset/base/306071 Log: Fix bug introduced with r302388, which could cause processes accessing automounted shares to hang with "vfs_busy" wchan. (As a workaround one can run 'automount -u' from cron.) Reviewed by: kib@ MFC after:1 month Modified: head/sys/kern/vfs_mount.c Modified: head/sys/kern/vfs_mount.c == --- head/sys/kern/vfs_mount.c Wed Sep 21 05:33:18 2016(r306070) +++ head/sys/kern/vfs_mount.c Wed Sep 21 05:44:13 2016(r306071) @@ -1207,6 +1207,9 @@ sys_unmount(struct thread *td, struct un /* * Return error if any of the vnodes, ignoring the root vnode * and the syncer vnode, have non-zero usecount. + * + * This function is purely advisory - it can return false positives + * and negatives. */ static int vfs_check_usecounts(struct mount *mp) @@ -1288,6 +1291,10 @@ dounmount(struct mount *mp, int flags, s MNT_ILOCK(mp); if (error != 0) { mp->mnt_kern_flag &= ~(MNTK_UNMOUNT | MNTK_NOINSMNTQ); + if (mp->mnt_kern_flag & MNTK_MWAIT) { + mp->mnt_kern_flag &= ~MNTK_MWAIT; + wakeup(mp); + } MNT_IUNLOCK(mp); if (coveredvp != NULL) { VOP_UNLOCK(coveredvp, 0); ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306070 - head/sys/arm/arm
Author: wma Date: Wed Sep 21 05:33:18 2016 New Revision: 306070 URL: https://svnweb.freebsd.org/changeset/base/306070 Log: Add support for SPI-mapped MSI interrupts outside of GICv2m. SPI-mapped MSI interrupts coming from a controller other than GICv2m need to have their trigger and polarity properly configured. This patch fixes MSI/MSI-X on Annapurna Alpine platform with GICv2. Obtained from: Semihalf Submitted by: Michal StanekSponsored by: Annapurna Labs Reviewed by: skra, wma Differential Revision: https://reviews.freebsd.org/D7698 Modified: head/sys/arm/arm/gic.c Modified: head/sys/arm/arm/gic.c == --- head/sys/arm/arm/gic.c Wed Sep 21 05:22:49 2016(r306069) +++ head/sys/arm/arm/gic.c Wed Sep 21 05:33:18 2016(r306070) @@ -835,6 +835,26 @@ gic_map_fdt(device_t dev, u_int ncells, #endif static int +gic_map_msi(device_t dev, struct intr_map_data_msi *msi_data, u_int *irqp, +enum intr_polarity *polp, enum intr_trigger *trigp) +{ + struct gic_irqsrc *gi; + + /* Map a non-GICv2m MSI */ + gi = (struct gic_irqsrc *)msi_data->isrc; + if (gi == NULL) + return (ENXIO); + + *irqp = gi->gi_irq; + + /* MSI/MSI-X interrupts are always edge triggered with high polarity */ + *polp = INTR_POLARITY_HIGH; + *trigp = INTR_TRIGGER_EDGE; + + return (0); +} + +static int gic_map_intr(device_t dev, struct intr_map_data *data, u_int *irqp, enum intr_polarity *polp, enum intr_trigger *trigp) { @@ -842,6 +862,7 @@ gic_map_intr(device_t dev, struct intr_m enum intr_polarity pol; enum intr_trigger trig; struct arm_gic_softc *sc; + struct intr_map_data_msi *dam; #ifdef FDT struct intr_map_data_fdt *daf; #endif @@ -860,6 +881,12 @@ gic_map_intr(device_t dev, struct intr_m __func__)); break; #endif + case INTR_MAP_DATA_MSI: + /* Non-GICv2m MSI */ + dam = (struct intr_map_data_msi *)data; + if (gic_map_msi(dev, dam, , , ) != 0) + return (EINVAL); + break; default: return (ENOTSUP); } @@ -907,6 +934,7 @@ arm_gic_setup_intr(device_t dev, struct enum intr_polarity pol; if ((gi->gi_flags & GI_FLAG_MSI) == GI_FLAG_MSI) { + /* GICv2m MSI */ pol = gi->gi_pol; trig = gi->gi_trig; KASSERT(pol == INTR_POLARITY_HIGH, ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306069 - head/sys/arm64/arm64
Author: wma Date: Wed Sep 21 05:22:49 2016 New Revision: 306069 URL: https://svnweb.freebsd.org/changeset/base/306069 Log: Add support for SPI-mapped MSI interrupts in GICv3. PIC_SETUP_INTR implementation in GICv3 did not allow for setting up interrupts without included FDT description. GICv2m-like MSI interrupts, which map MSI messages to SPI interrupt lines, may not have a description in FDT. Add support for such interrupts by setting the trigger and polarity to the appropriate values for MSI (edge, high) and get the hardware IRQ number from the corresponding ISRC. Obtained from: Semihalf Submitted by: Michal StanekSponsored by: Annapurna Labs Reviewed by: wma Differential Revision: https://reviews.freebsd.org/D7662 Modified: head/sys/arm64/arm64/gic_v3.c Modified: head/sys/arm64/arm64/gic_v3.c == --- head/sys/arm64/arm64/gic_v3.c Wed Sep 21 05:15:50 2016 (r306068) +++ head/sys/arm64/arm64/gic_v3.c Wed Sep 21 05:22:49 2016 (r306069) @@ -503,12 +503,33 @@ gic_map_fdt(device_t dev, u_int ncells, #endif static int +gic_map_msi(device_t dev, struct intr_map_data_msi *msi_data, u_int *irqp, +enum intr_polarity *polp, enum intr_trigger *trigp) +{ + struct gic_v3_irqsrc *gi; + + /* SPI-mapped MSI */ + gi = (struct gic_v3_irqsrc *)msi_data->isrc; + if (gi == NULL) + return (ENXIO); + + *irqp = gi->gi_irq; + + /* MSI/MSI-X interrupts are always edge triggered with high polarity */ + *polp = INTR_POLARITY_HIGH; + *trigp = INTR_TRIGGER_EDGE; + + return (0); +} + +static int do_gic_v3_map_intr(device_t dev, struct intr_map_data *data, u_int *irqp, enum intr_polarity *polp, enum intr_trigger *trigp) { struct gic_v3_softc *sc; enum intr_polarity pol; enum intr_trigger trig; + struct intr_map_data_msi *dam; #ifdef FDT struct intr_map_data_fdt *daf; #endif @@ -525,6 +546,12 @@ do_gic_v3_map_intr(device_t dev, struct return (EINVAL); break; #endif + case INTR_MAP_DATA_MSI: + /* SPI-mapped MSI */ + dam = (struct intr_map_data_msi *)data; + if (gic_map_msi(dev, dam, , , ) != 0) + return (EINVAL); + break; default: return (EINVAL); } ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306068 - head/sys/arm64/arm64
Author: wma Date: Wed Sep 21 05:15:50 2016 New Revision: 306068 URL: https://svnweb.freebsd.org/changeset/base/306068 Log: Register GICv3 xref. This allows other drivers to retrieve interrupt parent node. Obtained from: Semihalf Submitted by: Michal StanekSponsored by: Annapurna Labs Reviewed by: wma, zbb Differential Revision: https://reviews.freebsd.org/D7568 Modified: head/sys/arm64/arm64/gic_v3_fdt.c Modified: head/sys/arm64/arm64/gic_v3_fdt.c == --- head/sys/arm64/arm64/gic_v3_fdt.c Wed Sep 21 03:10:41 2016 (r306067) +++ head/sys/arm64/arm64/gic_v3_fdt.c Wed Sep 21 05:15:50 2016 (r306068) @@ -145,6 +145,9 @@ gic_v3_fdt_attach(device_t dev) goto error; } + /* Register xref */ + OF_device_register_xref(xref, dev); + if (intr_pic_claim_root(dev, xref, arm_gic_v3_intr, sc, GIC_LAST_SGI - GIC_FIRST_SGI + 1) != 0) { err = ENXIO; ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306067 - head/sys/powerpc/powerpc
Author: jhibbits Date: Wed Sep 21 03:10:41 2016 New Revision: 306067 URL: https://svnweb.freebsd.org/changeset/base/306067 Log: Move ofw_parse_bootargs to the correct place. Also, create a static initial environment, so bootargs can be set from uboot. Modified: head/sys/powerpc/powerpc/machdep.c Modified: head/sys/powerpc/powerpc/machdep.c == --- head/sys/powerpc/powerpc/machdep.c Wed Sep 21 02:56:57 2016 (r306066) +++ head/sys/powerpc/powerpc/machdep.c Wed Sep 21 03:10:41 2016 (r306067) @@ -141,6 +141,7 @@ int hw_direct_map = 1; extern void *ap_pcpu; struct pcpu __pcpu[MAXCPU]; +static char init_kenv[2048]; static struct trapframe frame0; @@ -293,13 +294,11 @@ powerpc_init(vm_offset_t fdt, vm_offset_ bzero(__sbss_start, __sbss_end - __sbss_start); bzero(__bss_start, _end - __bss_start); #endif - init_static_kenv(NULL, 0); + init_static_kenv(init_kenv, sizeof(init_kenv)); } /* Store boot environment state */ OF_initial_setup((void *)fdt, NULL, (int (*)(void *))ofentry); - ofw_parse_bootargs(); - /* * Init params/tunables that can be overridden by the loader */ @@ -338,6 +337,8 @@ powerpc_init(vm_offset_t fdt, vm_offset_ OF_bootstrap(); + ofw_parse_bootargs(); + /* * Initialize the console before printing anything. */ ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306066 - head/sys/conf
Author: jhibbits Date: Wed Sep 21 02:56:57 2016 New Revision: 306066 URL: https://svnweb.freebsd.org/changeset/base/306066 Log: Move ofw_cpu file to the main files conf file. There is nothing CPU specific here, and it's usable by both fdt and Open Firmware based systems. Rather than keeping the same file in every one, just add it to the ofw/fdt block in the main file. Modified: head/sys/conf/files head/sys/conf/files.arm Modified: head/sys/conf/files == --- head/sys/conf/files Wed Sep 21 02:28:39 2016(r306065) +++ head/sys/conf/files Wed Sep 21 02:56:57 2016(r306066) @@ -2226,6 +2226,7 @@ dev/oce/oce_sysctl.c optional oce pci dev/oce/oce_util.c optional oce pci dev/ofw/ofw_bus_if.m optional fdt dev/ofw/ofw_bus_subr.c optional fdt +dev/ofw/ofw_cpu.c optional fdt dev/ofw/ofw_fdt.c optional fdt dev/ofw/ofw_if.m optional fdt dev/ofw/ofw_subr.c optional fdt Modified: head/sys/conf/files.arm == --- head/sys/conf/files.arm Wed Sep 21 02:28:39 2016(r306065) +++ head/sys/conf/files.arm Wed Sep 21 02:56:57 2016(r306066) @@ -118,7 +118,6 @@ dev/fdt/fdt_arm_platform.c optionalplat dev/hwpmc/hwpmc_arm.c optionalhwpmc dev/hwpmc/hwpmc_armv7.coptionalhwpmc armv6 dev/iicbus/twsi/twsi.c optionaltwsi -dev/ofw/ofw_cpu.c optionalfdt dev/ofw/ofwpci.c optionalfdt pci dev/pci/pci_host_generic.c optionalpci_host_generic pci fdt dev/psci/psci.coptionalpsci ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306065 - in head/sys: dev/ofw powerpc/ofw powerpc/powerpc
Author: jhibbits Date: Wed Sep 21 02:28:39 2016 New Revision: 306065 URL: https://svnweb.freebsd.org/changeset/base/306065 Log: Add a ofw_parse_bootargs function, and use it for powerpc Summary: If the environment variable is set, U-boot adds a 'bootargs' property to /chosen. This is already handled by ARM and MIPS, but should be handled in a central location. For now, ofw_subr.c is a good place until we determine if it should be moved to init_main.c, or somewhere more central to all architectures. Eventually arm and mips should be modified to use ofw_parse_bootargs() as well, rather than using the duplicate code already. Reviewed By: adrian Differential Revision: https://reviews.freebsd.org/D7846 Modified: head/sys/dev/ofw/ofw_subr.c head/sys/dev/ofw/ofw_subr.h head/sys/powerpc/ofw/ofw_machdep.c head/sys/powerpc/powerpc/machdep.c Modified: head/sys/dev/ofw/ofw_subr.c == --- head/sys/dev/ofw/ofw_subr.c Wed Sep 21 02:27:23 2016(r306064) +++ head/sys/dev/ofw/ofw_subr.c Wed Sep 21 02:28:39 2016(r306065) @@ -34,6 +34,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include @@ -180,3 +181,64 @@ ofw_reg_to_paddr(phandle_t dev, int regn return (0); } + +/* Parse cmd line args as env - copied from xlp_machdep. */ +/* XXX-BZ this should really be centrally provided for all (boot) code. */ +static void +_parse_bootargs(char *cmdline) +{ + char *n, *v; + + while ((v = strsep(, " \n")) != NULL) { + if (*v == '\0') + continue; + if (*v == '-') { + while (*v != '\0') { + v++; + switch (*v) { + case 'a': boothowto |= RB_ASKNAME; break; + /* Someone should simulate that ;-) */ + case 'C': boothowto |= RB_CDROM; break; + case 'd': boothowto |= RB_KDB; break; + case 'D': boothowto |= RB_MULTIPLE; break; + case 'm': boothowto |= RB_MUTE; break; + case 'g': boothowto |= RB_GDB; break; + case 'h': boothowto |= RB_SERIAL; break; + case 'p': boothowto |= RB_PAUSE; break; + case 'r': boothowto |= RB_DFLTROOT; break; + case 's': boothowto |= RB_SINGLE; break; + case 'v': boothowto |= RB_VERBOSE; break; + } + } + } else { + n = strsep(, "="); + if (v == NULL) + kern_setenv(n, "1"); + else + kern_setenv(n, v); + } + } +} + +/* + * This is intended to be called early on, right after the OF system is + * initialized, so pmap may not be up yet. + */ +int +ofw_parse_bootargs(void) +{ + phandle_t chosen; + char buf[2048]; /* early stack supposedly big enough */ + int err; + + chosen = OF_finddevice("/chosen"); + if (chosen <= 0) + return (chosen); + + if ((err = OF_getprop(chosen, "bootargs", buf, sizeof(buf))) != -1) { + _parse_bootargs(buf); + return (0); + } + + return (err); +} Modified: head/sys/dev/ofw/ofw_subr.h == --- head/sys/dev/ofw/ofw_subr.h Wed Sep 21 02:27:23 2016(r306064) +++ head/sys/dev/ofw/ofw_subr.h Wed Sep 21 02:28:39 2016(r306065) @@ -46,4 +46,6 @@ int ofw_reg_to_paddr(phandle_t _dev, int _regno, bus_addr_t *_paddr, bus_size_t *_size, pcell_t *_pci_hi); +int ofw_parse_bootargs(void); + #endif Modified: head/sys/powerpc/ofw/ofw_machdep.c == --- head/sys/powerpc/ofw/ofw_machdep.c Wed Sep 21 02:27:23 2016 (r306064) +++ head/sys/powerpc/ofw/ofw_machdep.c Wed Sep 21 02:28:39 2016 (r306065) @@ -99,6 +99,7 @@ ofw_restore_trap_vec(char *restore_trap_ /* * Saved SPRG0-3 from OpenFirmware. Will be restored prior to the callback. */ +#ifndef __powerpc64__ register_t ofw_sprg0_save; static __inline void @@ -140,6 +141,8 @@ ofw_sprg_restore(void) } #endif +#endif + static int parse_ofw_memory(phandle_t node, const char *prop, struct mem_region *output) { @@ -344,11 +347,12 @@ OF_initial_setup(void *fdt_ptr, void *ju ofmsr[0] = mfmsr(); #ifdef __powerpc64__ ofmsr[0] &= ~PSL_SF; - #endif + #else __asm __volatile("mfsprg0 %0" : "="(ofmsr[1])); __asm __volatile("mfsprg1 %0" :
svn commit: r306064 - head/sys/powerpc/mpc85xx
Author: jhibbits Date: Wed Sep 21 02:27:23 2016 New Revision: 306064 URL: https://svnweb.freebsd.org/changeset/base/306064 Log: Add yet another QorIQ GPIO compat string. P1022 boards use the string "fsl,pq3-gpio", which seems to be common in Linux dts files. Modified: head/sys/powerpc/mpc85xx/qoriq_gpio.c Modified: head/sys/powerpc/mpc85xx/qoriq_gpio.c == --- head/sys/powerpc/mpc85xx/qoriq_gpio.c Wed Sep 21 00:50:22 2016 (r306063) +++ head/sys/powerpc/mpc85xx/qoriq_gpio.c Wed Sep 21 02:27:23 2016 (r306064) @@ -220,6 +220,7 @@ qoriq_gpio_probe(device_t dev) { if (!ofw_bus_is_compatible(dev, "fsl,qoriq-gpio") && + !ofw_bus_is_compatible(dev, "fsl,pq3-gpio") && !ofw_bus_is_compatible(dev, "fsl,mpc8572-gpio")) return (ENXIO); ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306063 - head/sys/dev/cxgbe
Author: np Date: Wed Sep 21 00:50:22 2016 New Revision: 306063 URL: https://svnweb.freebsd.org/changeset/base/306063 Log: cxgbe(4): Setup congestion response for T6 rx queues. Modified: head/sys/dev/cxgbe/t4_netmap.c head/sys/dev/cxgbe/t4_sge.c Modified: head/sys/dev/cxgbe/t4_netmap.c == --- head/sys/dev/cxgbe/t4_netmap.c Wed Sep 21 00:46:08 2016 (r306062) +++ head/sys/dev/cxgbe/t4_netmap.c Wed Sep 21 00:50:22 2016 (r306063) @@ -178,7 +178,7 @@ alloc_nm_rxq_hwq(struct vi_info *vi, str nm_rxq->fl_db_val = V_QID(nm_rxq->fl_cntxt_id) | sc->chip_params->sge_fl_db; - if (is_t5(sc) && cong >= 0) { + if (chip_id(sc) >= CHELSIO_T5 && cong >= 0) { uint32_t param, val; param = V_FW_PARAMS_MNEM(FW_PARAMS_MNEM_DMAQ) | Modified: head/sys/dev/cxgbe/t4_sge.c == --- head/sys/dev/cxgbe/t4_sge.c Wed Sep 21 00:46:08 2016(r306062) +++ head/sys/dev/cxgbe/t4_sge.c Wed Sep 21 00:50:22 2016(r306063) @@ -2800,7 +2800,7 @@ alloc_iq_fl(struct vi_info *vi, struct s FL_UNLOCK(fl); } - if (is_t5(sc) && !(sc->flags & IS_VF) && cong >= 0) { + if (chip_id(sc) >= CHELSIO_T5 && !(sc->flags & IS_VF) && cong >= 0) { uint32_t param, val; param = V_FW_PARAMS_MNEM(FW_PARAMS_MNEM_DMAQ) | ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306062 - head/sys/dev/cxgbe
Author: np Date: Wed Sep 21 00:46:08 2016 New Revision: 306062 URL: https://svnweb.freebsd.org/changeset/base/306062 Log: cxgbe(4): Show wcwr_stats for T6 cards. Modified: head/sys/dev/cxgbe/t4_main.c Modified: head/sys/dev/cxgbe/t4_main.c == --- head/sys/dev/cxgbe/t4_main.cWed Sep 21 00:08:42 2016 (r306061) +++ head/sys/dev/cxgbe/t4_main.cWed Sep 21 00:46:08 2016 (r306062) @@ -5093,7 +5093,7 @@ t4_sysctls(struct adapter *sc) CTLTYPE_STRING | CTLFLAG_RD, sc, 0, sysctl_ulprx_la, "A", "ULPRX logic analyzer"); - if (is_t5(sc)) { + if (chip_id(sc) >= CHELSIO_T5) { SYSCTL_ADD_PROC(ctx, children, OID_AUTO, "wcwr_stats", CTLTYPE_STRING | CTLFLAG_RD, sc, 0, sysctl_wcwr_stats, "A", "write combined work requests"); ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306061 - head/sys/cam
Author: markj Date: Wed Sep 21 00:08:42 2016 New Revision: 306061 URL: https://svnweb.freebsd.org/changeset/base/306061 Log: Protect ccbq access with devq->send_mtx in the XPT_ABORT handler. Submitted by: Ryan LibbyReviewed by: mav MFC after:2 weeks Sponsored by: Dell EMC Isilon Differential Revision:https://reviews.freebsd.org/D7985 Modified: head/sys/cam/cam_xpt.c Modified: head/sys/cam/cam_xpt.c == --- head/sys/cam/cam_xpt.c Wed Sep 21 00:06:49 2016(r306060) +++ head/sys/cam/cam_xpt.c Wed Sep 21 00:08:42 2016(r306061) @@ -2578,21 +2578,25 @@ xpt_action_default(union ccb *start_ccb) abort_ccb = start_ccb->cab.abort_ccb; if (XPT_FC_IS_DEV_QUEUED(abort_ccb)) { + struct cam_ed *device; + struct cam_devq *devq; + + device = abort_ccb->ccb_h.path->device; + devq = device->sim->devq; - if (abort_ccb->ccb_h.pinfo.index >= 0) { - struct cam_ccbq *ccbq; - struct cam_ed *device; - - device = abort_ccb->ccb_h.path->device; - ccbq = >ccbq; - cam_ccbq_remove_ccb(ccbq, abort_ccb); + mtx_lock(>send_mtx); + if (abort_ccb->ccb_h.pinfo.index > 0) { + cam_ccbq_remove_ccb(>ccbq, abort_ccb); abort_ccb->ccb_h.status = CAM_REQ_ABORTED|CAM_DEV_QFRZN; - xpt_freeze_devq(abort_ccb->ccb_h.path, 1); + xpt_freeze_devq_device(device, 1); + mtx_unlock(>send_mtx); xpt_done(abort_ccb); start_ccb->ccb_h.status = CAM_REQ_CMP; break; } + mtx_unlock(>send_mtx); + if (abort_ccb->ccb_h.pinfo.index == CAM_UNQUEUED_INDEX && (abort_ccb->ccb_h.status & CAM_SIM_QUEUED) == 0) { /* ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306060 - stable/11/sys/netinet6
Author: karels Date: Wed Sep 21 00:06:49 2016 New Revision: 306060 URL: https://svnweb.freebsd.org/changeset/base/306060 Log: MFC r304713: Fix L2 caching for UDP over IPv6 ip6_output() was missing cache invalidation code analougous to ip_output.c. r304545 disabled L2 caching for UDP/IPv6 as a workaround. This change adds the missing cache invalidation code and reverts r304545. Reviewed by:gnn Approved by:gnn (mentor) Tested by: peter@, Mike Andrews Differential Revision: https://reviews.freebsd.org/D7591 Modified: stable/11/sys/netinet6/ip6_output.c stable/11/sys/netinet6/udp6_usrreq.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/netinet6/ip6_output.c == --- stable/11/sys/netinet6/ip6_output.c Tue Sep 20 23:16:36 2016 (r306059) +++ stable/11/sys/netinet6/ip6_output.c Wed Sep 21 00:06:49 2016 (r306060) @@ -87,6 +87,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include #include @@ -552,6 +553,9 @@ again: rt = ro->ro_rt; ifp = ro->ro_rt->rt_ifp; } else { + if (ro->ro_lle) + LLE_FREE(ro->ro_lle); /* zeros ro_lle */ + ro->ro_lle = NULL; if (fwd_tag == NULL) { bzero(_sa, sizeof(dst_sa)); dst_sa.sin6_family = AF_INET6; @@ -821,6 +825,9 @@ again: } else { RO_RTFREE(ro); needfiblookup = 1; /* Redo the routing table lookup. */ + if (ro->ro_lle) + LLE_FREE(ro->ro_lle); /* zeros ro_lle */ + ro->ro_lle = NULL; } } /* See if fib was changed by packet filter. */ @@ -829,6 +836,9 @@ again: fibnum = M_GETFIB(m); RO_RTFREE(ro); needfiblookup = 1; + if (ro->ro_lle) + LLE_FREE(ro->ro_lle); /* zeros ro_lle */ + ro->ro_lle = NULL; } if (needfiblookup) goto again; Modified: stable/11/sys/netinet6/udp6_usrreq.c == --- stable/11/sys/netinet6/udp6_usrreq.cTue Sep 20 23:16:36 2016 (r306059) +++ stable/11/sys/netinet6/udp6_usrreq.cWed Sep 21 00:06:49 2016 (r306060) @@ -898,7 +898,7 @@ udp6_output(struct inpcb *inp, struct mb UDP_PROBE(send, NULL, inp, ip6, inp, udp6); UDPSTAT_INC(udps_opackets); - error = ip6_output(m, optp, NULL, flags, + error = ip6_output(m, optp, >inp_route6, flags, inp->in6p_moptions, NULL, inp); break; case AF_INET: ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306059 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 23:16:36 2016 New Revision: 306059 URL: https://svnweb.freebsd.org/changeset/base/306059 Log: Revise the entry for r287197, ifconfig(8) did not change, the wireless networking stack changed. Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 23:04:39 2016(r306058) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 23:16:36 2016(r306059) @@ -443,7 +443,7 @@ updated to remove the automatic checkout feature. The utility has + sponsor=", ">The wireless network stack has been modified to no longer show physical wireless devices by default. In order to view available wireless devices on the system, run sysctl net.wlan.devices. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306058 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 23:04:39 2016 New Revision: 306058 URL: https://svnweb.freebsd.org/changeset/base/306058 Log: Document physical wireless devices are no longer listed by default in ifconfig(8) output. Submitted by: woodsb02 Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 22:05:52 2016(r306057) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 23:04:39 2016(r306058) @@ -442,6 +442,12 @@ The utility has been updated to remove the automatic checkout feature. + The utility has + been modified to no longer show physical wireless devices by + default. In order to view available wireless devices on the + system, run sysctl net.wlan.devices. + A new utility, , has been added, which is used to manage (SCSI Environmental ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306057 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 22:05:52 2016 New Revision: 306057 URL: https://svnweb.freebsd.org/changeset/base/306057 Log: Fix an incorrect svn revision. Link to the binmiscctl(8) manual in the r266531 entry. Submitted by: sbruno Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 21:38:12 2016(r306056) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 22:05:52 2016(r306057) @@ -939,7 +939,8 @@ The IMAGACT_BINMISC kernel configuration option has been enabled by default, which enables application execution through emulators, such - as QEMU. + as QEMU via + . The VT kernel configuration file has been removed, and the @@ -1329,7 +1330,7 @@ updated to support Solarflare Flareon Ultra 7000-series chipsets. - The driver has been updated with improved transmission queue hang detection. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306056 - head/usr.bin/elfdump
Author: emaste Date: Tue Sep 20 21:38:12 2016 New Revision: 306056 URL: https://svnweb.freebsd.org/changeset/base/306056 Log: elfdump: limit STDIN to no rights rather than closing it Closing stdin/stdout/stderr is often a bad idea as a future open() can end up with its fd. Leave it open and limit it to no rights instead. Reviewed by: cem Differential Revision:https://reviews.freebsd.org/D7984 Modified: head/usr.bin/elfdump/elfdump.c Modified: head/usr.bin/elfdump/elfdump.c == --- head/usr.bin/elfdump/elfdump.c Tue Sep 20 21:33:57 2016 (r306055) +++ head/usr.bin/elfdump/elfdump.c Tue Sep 20 21:38:12 2016 (r306056) @@ -573,7 +573,7 @@ main(int ac, char **av) cap_rights_init(, CAP_MMAP_R); if (cap_rights_limit(fd, ) < 0 && errno != ENOSYS) err(1, "unable to limit rights for %s", *av); - close(STDIN_FILENO); + cap_rights_limit(STDIN_FILENO, cap_rights_init()); cap_rights_init(, CAP_FSTAT, CAP_IOCTL, CAP_WRITE); cmd = TIOCGETA; /* required by isatty(3) in printf(3) */ if ((cap_rights_limit(STDOUT_FILENO, ) < 0 && errno != ENOSYS) || ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306055 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 21:33:57 2016 New Revision: 306055 URL: https://svnweb.freebsd.org/changeset/base/306055 Log: Tweak the nvi(1) entry to be less clumsy-sounding. Submitted by: lidl Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 20:32:35 2016(r306054) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 21:33:57 2016(r306055) @@ -507,7 +507,7 @@ The utility has been updated to support multi-threaded compression. - The utility and related + The editor and related utilities have been updated to version 2.1.3. The and ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r306010 - head/share/man/man9
On Tue, Sep 20, 2016 at 2:16 PM, Pedro Giffuniwrote: > s/alphebetially/alphabetically/ ? This was fixed in r306027. Best, Conrad ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r306010 - head/share/man/man9
On 19/09/2016 23:50, Warner Losh wrote: Author: imp Date: Tue Sep 20 04:50:53 2016 New Revision: 306010 URL: https://svnweb.freebsd.org/changeset/base/306010 Log: Document existing practice and be more clear about sys/foo.h files being alphabetical with sys/param.h or sys/types.h being first. Expand the example to hopefully make this (slightly) clearer. Noticed by: cem@ Modified: head/share/man/man9/style.9 Modified: head/share/man/man9/style.9 == --- head/share/man/man9/style.9 Tue Sep 20 04:33:58 2016(r306009) +++ head/share/man/man9/style.9 Tue Sep 20 04:50:53 2016(r306010) @@ -118,17 +118,21 @@ Leave another blank line before the head .Pp Kernel include files (i.e.\& .Pa sys/*.h ) -come first; normally, include +come first sorted alphebetially where possible. s/alphebetially/alphabetically/ ? ... ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306054 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 20:32:35 2016 New Revision: 306054 URL: https://svnweb.freebsd.org/changeset/base/306054 Log: Tweak wording and add clarifications for several sections. Submitted by: dhw Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 19:21:41 2016(r306053) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 20:32:35 2016(r306054) @@ -141,7 +141,7 @@ Source-based upgrades (those based on recompiling the base system from source code) from previous versions are - supported, according to the instructions in + supported, using the instructions in /usr/src/UPDATING. @@ -467,7 +467,7 @@ will set the default regulatory domain to FCC on wireless interfaces. As a result, newly created wireless interfaces with default settings will - have less chances to violate country-specific + have less chance to violate country-specific regulations. A bug in the utility that @@ -507,8 +507,8 @@ The utility has been updated to support multi-threaded compression. - The utility has been updated - to version 2.1.3. + The utility and related + utilities have been updated to version 2.1.3. The and utilities have been updated to version @@ -527,11 +527,12 @@ IPv6:0:0 versus IPv6:0. This change requires that configuration data (including maps, files, classes, custom ruleset, etc.) must use the same format, so make certain such - configuration data is upgrading. As a very simple check - search for patterns like 'IPv6:[0-9a-fA-F:]*::' and 'IPv6::'. - To return to the old behavior, set the m4 option - confUSE_COMPRESSED_IPV6_ADDRESSES or the cf - option UseCompressedIPv6Addresses. + configuration data is in place before upgrading. As a very + simple check search for patterns like 'IPv6:[0-9a-fA-F:]*::' + and 'IPv6::'. To return to the old behavior, set the m4 + option confUSE_COMPRESSED_IPV6_ADDRESSES or + the cf option + UseCompressedIPv6Addresses. The utility has been updated to version 4.7.4. @@ -717,8 +718,9 @@ A new script, growfs, has been added, which will resize - the root filesystem on boot if /firstboot - exists and growfs_enable is enabled in + the root filesystem to fill the device on boot if + /firstboot exists and + growfs_enable is enabled in . The mrouted @@ -814,13 +816,13 @@ updated to consistently set errno on failure. - The functions have been - updated to be able to handle 32-bit aligned data on 64-bit - platforms, also providing a significant improvement in 32-bit - workloads. + The -related functions have + been updated to be able to handle 32-bit aligned data on + 64-bit platforms, also providing a significant improvement in + 32-bit workloads. Several standard include headers have - been updated to use of gcc + been updated to make use of gcc attributes, such as __result_use_check(), __alloc_size(), and __nonnull(). ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306053 - head/sbin/dhclient
Author: cem Date: Tue Sep 20 19:21:41 2016 New Revision: 306053 URL: https://svnweb.freebsd.org/changeset/base/306053 Log: dhclient(8): Enable numbered user class ID option By adding it to the option priorities table. PR: 184117 Submitted by: Lowell Gilbert Reported by: Tomek CEDRO Reviewed by: jhb Differential Revision:https://reviews.freebsd.org/D7911 Modified: head/sbin/dhclient/tables.c Modified: head/sbin/dhclient/tables.c == --- head/sbin/dhclient/tables.c Tue Sep 20 19:15:39 2016(r306052) +++ head/sbin/dhclient/tables.c Tue Sep 20 19:21:41 2016(r306053) @@ -400,6 +400,7 @@ unsigned char dhcp_option_default_priori DHO_IRC_SERVER, DHO_STREETTALK_SERVER, DHO_STREETTALK_DA_SERVER, + DHO_DHCP_USER_CLASS_ID, DHO_DOMAIN_SEARCH, /* Presently-undefined options... */ ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306052 - releng/11.0/release/doc/share/xml
Author: gjb Date: Tue Sep 20 19:15:39 2016 New Revision: 306052 URL: https://svnweb.freebsd.org/changeset/base/306052 Log: Update the manual page path for 11.0-RELEASE. Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/share/xml/release.ent Modified: releng/11.0/release/doc/share/xml/release.ent == --- releng/11.0/release/doc/share/xml/release.ent Tue Sep 20 19:11:40 2016(r306051) +++ releng/11.0/release/doc/share/xml/release.ent Tue Sep 20 19:15:39 2016(r306052) @@ -58,7 +58,7 @@ - + ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306051 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 19:11:40 2016 New Revision: 306051 URL: https://svnweb.freebsd.org/changeset/base/306051 Log: Document r291716, camdd(8). Submitted by: ken Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 19:06:58 2016(r306050) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 19:11:40 2016(r306051) @@ -1647,6 +1647,24 @@ GELI-backed SSD storage providers. + The utility has been + added, which allows copying data sequentially to and from + SCSI devices, files, block devices and tape + drives. If the source and/or destination is + a SCSI disk, can use the + asynchronous interface to queue multiple I/Os for + improved speed. (ATA passthrough support for is + in development.) + + The + SCSI/ATA passthrough + driver now has an asynchronous interface. User applications + may queue many requests, get notification of completion via +and retrieve status later. is an + example application using the interface. + Support for parsing libucl-based configuration files has been added to . ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306050 - head/sys/arm/ti/am335x
Author: loos Date: Tue Sep 20 19:06:58 2016 New Revision: 306050 URL: https://svnweb.freebsd.org/changeset/base/306050 Log: If present, honor the USB port mode (host or peripheral) set on DTS, if not, keep the beaglebone defaults: USB0 -> peripheral/gadget, USB1 -> host. This is only a workaround as in fact fact this hardware is capable of detect the USB port mode based on type of cable and act according with the detected mode. Unfortunately the driver does not handle that at moment. MFC after:3 days Sponsored by: Rubicon Communications, LLC (Netgate) Modified: head/sys/arm/ti/am335x/am335x_musb.c Modified: head/sys/arm/ti/am335x/am335x_musb.c == --- head/sys/arm/ti/am335x/am335x_musb.cTue Sep 20 18:53:42 2016 (r306049) +++ head/sys/arm/ti/am335x/am335x_musb.cTue Sep 20 19:06:58 2016 (r306050) @@ -237,6 +237,7 @@ static int musbotg_attach(device_t dev) { struct musbotg_super_softc *sc = device_get_softc(dev); + char mode[16]; int err; uint32_t reg; @@ -308,10 +309,19 @@ musbotg_attach(device_t dev) } sc->sc_otg.sc_platform_data = sc; - if (sc->sc_otg.sc_id == 0) - sc->sc_otg.sc_mode = MUSB2_DEVICE_MODE; - else - sc->sc_otg.sc_mode = MUSB2_HOST_MODE; + if (OF_getprop(ofw_bus_get_node(dev), "dr_mode", mode, + sizeof(mode)) > 0) { + if (strcasecmp(mode, "host") == 0) + sc->sc_otg.sc_mode = MUSB2_HOST_MODE; + else + sc->sc_otg.sc_mode = MUSB2_DEVICE_MODE; + } else { + /* Beaglebone defaults: USB0 device, USB1 HOST. */ + if (sc->sc_otg.sc_id == 0) + sc->sc_otg.sc_mode = MUSB2_DEVICE_MODE; + else + sc->sc_otg.sc_mode = MUSB2_HOST_MODE; + } /* * software-controlled function ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306049 - in head: share/man/man9 sys/dev/ath sys/dev/usb/wlan
Author: avos Date: Tue Sep 20 18:53:42 2016 New Revision: 306049 URL: https://svnweb.freebsd.org/changeset/base/306049 Log: net80211: remove IEEE80211_RADIOTAP_TSFT field from transmit definitions. This field may be used for received frames only. Differential Revision:https://reviews.freebsd.org/D3826 Differential Revision:https://reviews.freebsd.org/D3827 Modified: head/share/man/man9/ieee80211_radiotap.9 head/sys/dev/ath/if_ath_tx.c head/sys/dev/ath/if_athioctl.h head/sys/dev/usb/wlan/if_rum.c head/sys/dev/usb/wlan/if_rumvar.h head/sys/dev/usb/wlan/if_run.c head/sys/dev/usb/wlan/if_runvar.h Modified: head/share/man/man9/ieee80211_radiotap.9 == --- head/share/man/man9/ieee80211_radiotap.9Tue Sep 20 18:47:33 2016 (r306048) +++ head/share/man/man9/ieee80211_radiotap.9Tue Sep 20 18:53:42 2016 (r306049) @@ -263,7 +263,6 @@ struct wi_rx_radiotap_header { and transmit definitions for the Atheros driver: .Bd -literal -offset indent #define ATH_TX_RADIOTAP_PRESENT ( \\ -(1 << IEEE80211_RADIOTAP_TSFT) | \\ (1 << IEEE80211_RADIOTAP_FLAGS) | \\ (1 << IEEE80211_RADIOTAP_RATE) | \\ (1 << IEEE80211_RADIOTAP_DBM_TX_POWER) | \\ @@ -273,7 +272,6 @@ and transmit definitions for the Atheros struct ath_tx_radiotap_header { struct ieee80211_radiotap_header wt_ihdr; -uint64_t wt_tsf; uint8_twt_flags; uint8_twt_rate; uint8_twt_txpower; Modified: head/sys/dev/ath/if_ath_tx.c == --- head/sys/dev/ath/if_ath_tx.cTue Sep 20 18:47:33 2016 (r306048) +++ head/sys/dev/ath/if_ath_tx.cTue Sep 20 18:53:42 2016 (r306049) @@ -1538,7 +1538,6 @@ ath_tx_normal_setup(struct ath_softc *sc struct ath_buf *bf, struct mbuf *m0, struct ath_txq *txq) { struct ieee80211vap *vap = ni->ni_vap; - struct ath_hal *ah = sc->sc_ah; struct ieee80211com *ic = >sc_ic; const struct chanAccParams *cap = >ic_wme.wme_chanParams; int error, iswep, ismcast, isfrag, ismrr; @@ -1822,9 +1821,6 @@ ath_tx_normal_setup(struct ath_softc *sc sc->sc_hwmap[rix].ieeerate, -1); if (ieee80211_radiotap_active_vap(vap)) { - u_int64_t tsf = ath_hal_gettsf64(ah); - - sc->sc_tx_th.wt_tsf = htole64(tsf); sc->sc_tx_th.wt_flags = sc->sc_hwmap[rix].txflags; if (iswep) sc->sc_tx_th.wt_flags |= IEEE80211_RADIOTAP_F_WEP; @@ -2105,7 +2101,6 @@ ath_tx_raw_start(struct ath_softc *sc, s const struct ieee80211_bpf_params *params) { struct ieee80211com *ic = >sc_ic; - struct ath_hal *ah = sc->sc_ah; struct ieee80211vap *vap = ni->ni_vap; int error, ismcast, ismrr; int keyix, hdrlen, pktlen, try0, txantenna; @@ -2252,9 +2247,6 @@ ath_tx_raw_start(struct ath_softc *sc, s sc->sc_hwmap[rix].ieeerate, -1); if (ieee80211_radiotap_active_vap(vap)) { - u_int64_t tsf = ath_hal_gettsf64(ah); - - sc->sc_tx_th.wt_tsf = htole64(tsf); sc->sc_tx_th.wt_flags = sc->sc_hwmap[rix].txflags; if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) sc->sc_tx_th.wt_flags |= IEEE80211_RADIOTAP_F_WEP; Modified: head/sys/dev/ath/if_athioctl.h == --- head/sys/dev/ath/if_athioctl.h Tue Sep 20 18:47:33 2016 (r306048) +++ head/sys/dev/ath/if_athioctl.h Tue Sep 20 18:53:42 2016 (r306049) @@ -374,7 +374,6 @@ struct ath_rx_radiotap_header { } __packed; #define ATH_TX_RADIOTAP_PRESENT ( \ - (1 << IEEE80211_RADIOTAP_TSFT) | \ (1 << IEEE80211_RADIOTAP_FLAGS) | \ (1 << IEEE80211_RADIOTAP_RATE) | \ (1 << IEEE80211_RADIOTAP_DBM_TX_POWER) | \ @@ -384,7 +383,6 @@ struct ath_rx_radiotap_header { struct ath_tx_radiotap_header { struct ieee80211_radiotap_header wt_ihdr; - u_int64_t wt_tsf; u_int8_twt_flags; u_int8_twt_rate; u_int8_twt_txpower; Modified: head/sys/dev/usb/wlan/if_rum.c == --- head/sys/dev/usb/wlan/if_rum.c Tue Sep 20 18:47:33 2016 (r306048) +++ head/sys/dev/usb/wlan/if_rum.c Tue Sep 20 18:53:42 2016 (r306049) @@ -1118,7 +1118,6 @@ tr_setup: tap->wt_flags = 0; tap->wt_rate = data->rate; - rum_get_tsf(sc, >wt_tsf); tap->wt_antenna = sc->tx_ant;
svn commit: r306048 - head/etc/periodic/security
Author: asomers Date: Tue Sep 20 18:47:33 2016 New Revision: 306048 URL: https://svnweb.freebsd.org/changeset/base/306048 Log: Fix periodic scripts when an NFS mount covers a local mount 100.chksetuid and 110.neggrpperm try to search through all UFS and ZFS filesystems. But their logic contains an error. They also search through remote filesystems that are mounted on top of the root of a local filesystem. For example, if a user installs a FreeBSD system with the default ZFS layout, he'll get a zroot/usr/home filesystem. If he then mounts /usr/home over NFS, these scripts would search through /usr/home. MFC after:4 weeks Sponsored by: Spectra Logic Corp Differential Revision:https://reviews.freebsd.org/D7482 Modified: head/etc/periodic/security/100.chksetuid head/etc/periodic/security/110.neggrpperm Modified: head/etc/periodic/security/100.chksetuid == --- head/etc/periodic/security/100.chksetuidTue Sep 20 18:38:16 2016 (r306047) +++ head/etc/periodic/security/100.chksetuidTue Sep 20 18:47:33 2016 (r306048) @@ -46,7 +46,7 @@ then echo "" echo 'Checking setuid files and devices:' MP=`mount -t ufs,zfs | awk '$0 !~ /no(suid|exec)/ { print $3 }'` - find -sx $MP /dev/null -type f \ + find -sx $MP /dev/null \( ! -fstype local \) -prune -o -type f \ \( -perm -u+x -or -perm -g+x -or -perm -o+x \) \ \( -perm -u+s -or -perm -g+s \) -exec ls -liTd \{\} \+ | check_diff setuid - "${host} setuid diffs:" Modified: head/etc/periodic/security/110.neggrpperm == --- head/etc/periodic/security/110.neggrpperm Tue Sep 20 18:38:16 2016 (r306047) +++ head/etc/periodic/security/110.neggrpperm Tue Sep 20 18:47:33 2016 (r306048) @@ -44,7 +44,7 @@ then echo "" echo 'Checking negative group permissions:' MP=`mount -t ufs,zfs | awk '$0 !~ /no(suid|exec)/ { print $3 }'` - n=$(find -sx $MP /dev/null -type f \ + n=$(find -sx $MP /dev/null \( ! -fstype local \) -prune -o -type f \ \( \( ! -perm +010 -and -perm +001 \) -or \ \( ! -perm +020 -and -perm +002 \) -or \ \( ! -perm +040 -and -perm +004 \) \) \ ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306047 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 18:38:16 2016 New Revision: 306047 URL: https://svnweb.freebsd.org/changeset/base/306047 Log: Document r297678, uuencode(1) '-r' option. Document r302558, ul(1) truncation bug fix. Submitted by: gahr Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 18:08:17 2016(r306046) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 18:38:16 2016(r306047) @@ -458,12 +458,21 @@ /etc/resolv.conf if the modification time has changed. + The utility has been + updated to include a new flag, -r, which + when used will generate raw output similar the +-r flag. + By default the utility will set the default regulatory domain to FCC on wireless interfaces. As a result, newly created wireless interfaces with default settings will have less chances to violate country-specific regulations. + + A bug in the utility that + caused lines to be truncated at 512 characters has been + fixed. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306046 - head/sys/netinet6
Author: markj Date: Tue Sep 20 18:08:17 2016 New Revision: 306046 URL: https://svnweb.freebsd.org/changeset/base/306046 Log: Reduce code duplication around NDP message handlers in icmp6_input(). No functional change intended. MFC after:2 weeks Modified: head/sys/netinet6/icmp6.c Modified: head/sys/netinet6/icmp6.c == --- head/sys/netinet6/icmp6.c Tue Sep 20 18:02:16 2016(r306045) +++ head/sys/netinet6/icmp6.c Tue Sep 20 18:08:17 2016(r306046) @@ -734,36 +734,19 @@ icmp6_input(struct mbuf **mp, int *offp, goto badcode; if (icmp6len < sizeof(struct nd_router_solicit)) goto badlen; - if ((n = m_copym(m, 0, M_COPYALL, M_NOWAIT)) == NULL) { - /* give up local */ - - /* Send incoming SeND packet to user space. */ - if (send_sendso_input_hook != NULL) { - IP6_EXTHDR_CHECK(m, off, - icmp6len, IPPROTO_DONE); - error = send_sendso_input_hook(m, ifp, - SND_IN, ip6len); - /* -1 == no app on SEND socket */ - if (error == 0) - return (IPPROTO_DONE); - nd6_rs_input(m, off, icmp6len); - } else - nd6_rs_input(m, off, icmp6len); - m = NULL; - goto freeit; - } if (send_sendso_input_hook != NULL) { - IP6_EXTHDR_CHECK(n, off, - icmp6len, IPPROTO_DONE); -error = send_sendso_input_hook(n, ifp, - SND_IN, ip6len); - if (error == 0) + IP6_EXTHDR_CHECK(m, off, icmp6len, IPPROTO_DONE); + error = send_sendso_input_hook(m, ifp, SND_IN, ip6len); + if (error == 0) { + m = NULL; goto freeit; - /* -1 == no app on SEND socket */ - nd6_rs_input(n, off, icmp6len); - } else - nd6_rs_input(n, off, icmp6len); - /* m stays. */ + } + } + n = m_copym(m, 0, M_COPYALL, M_NOWAIT); + nd6_rs_input(m, off, icmp6len); + m = n; + if (m == NULL) + goto freeit; break; case ND_ROUTER_ADVERT: @@ -772,29 +755,18 @@ icmp6_input(struct mbuf **mp, int *offp, goto badcode; if (icmp6len < sizeof(struct nd_router_advert)) goto badlen; - if ((n = m_copym(m, 0, M_COPYALL, M_NOWAIT)) == NULL) { - - /* Send incoming SeND-protected/ND packet to user space. */ - if (send_sendso_input_hook != NULL) { - error = send_sendso_input_hook(m, ifp, - SND_IN, ip6len); - if (error == 0) - return (IPPROTO_DONE); - nd6_ra_input(m, off, icmp6len); - } else - nd6_ra_input(m, off, icmp6len); - m = NULL; - goto freeit; - } if (send_sendso_input_hook != NULL) { - error = send_sendso_input_hook(n, ifp, - SND_IN, ip6len); - if (error == 0) + error = send_sendso_input_hook(m, ifp, SND_IN, ip6len); + if (error == 0) { + m = NULL; goto freeit; - nd6_ra_input(n, off, icmp6len); - } else - nd6_ra_input(n, off, icmp6len); - /* m stays. */ + } + } + n = m_copym(m, 0, M_COPYALL, M_NOWAIT); + nd6_ra_input(m, off, icmp6len); + m = n; + if (m == NULL) + goto freeit; break; case ND_NEIGHBOR_SOLICIT: @@ -803,27 +775,18 @@ icmp6_input(struct mbuf **mp, int *offp, goto badcode; if (icmp6len < sizeof(struct nd_neighbor_solicit)) goto badlen; - if ((n = m_copym(m, 0, M_COPYALL, M_NOWAIT)) == NULL) { - if (send_sendso_input_hook != NULL) { - error = send_sendso_input_hook(m, ifp, -
svn commit: r306045 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 18:02:16 2016 New Revision: 306045 URL: https://svnweb.freebsd.org/changeset/base/306045 Log: Wording fixes and further clarifications. Submitted by: cperciva Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 17:53:33 2016(r306044) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 18:02:16 2016(r306045) @@ -242,9 +242,9 @@ The utility has been updated to correctly enumerate prime numbers between 4295098369 and - 3825123056546413050, which prior to this - change, it would be possible for returned values to be - incorrectly identified as prime numbers. + 3825123056546413050. Prior to this change, + it was possible for returned values to be incorrectly + identified as prime numbers. The utility has been updated to include three options used to print information @@ -709,7 +709,8 @@ A new script, growfs, has been added, which will resize the root filesystem on boot if /firstboot - exists. + exists and growfs_enable is enabled in + . The mrouted script has been removed from the base system. An @@ -1508,9 +1509,9 @@ driver has been updated to support checksum offloading and TSO. - The driver has been updated - to include support for blkif indirect - segment I/O. + The blkfront driver has been + updated to include support for blkif + indirect segment I/O. Indirect segment I/O is enabled by default in the Xen blkfront driver when running on AWS ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306044 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 17:53:33 2016 New Revision: 306044 URL: https://svnweb.freebsd.org/changeset/base/306044 Log: Document r300779, dummynet(4) AQM addition. Submitted by: truckman Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 17:30:34 2016(r306043) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 17:53:33 2016(r306044) @@ -1342,6 +1342,13 @@ The driver has been updated to remove support for the fec protocol. + + The driver has been + updated to include support for AQM (Active + Queue Management), adding support for PIE + (Proportional Integral controller Enhanced) and + FQ-PIE (Fair Queueing Proportional Integral + controller Enhanced). ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306043 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 17:30:34 2016 New Revision: 306043 URL: https://svnweb.freebsd.org/changeset/base/306043 Log: Document r289315, resolver reloads resolv.conf if mtime changes. Fix a spacing nit while here. Submitted by: vangyzen Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 17:26:02 2016(r306042) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 17:30:34 2016(r306043) @@ -453,6 +453,11 @@ falling back to the PCI ID database in the base system. + The + resolver library has been updated to reload + /etc/resolv.conf if the modification time + has changed. + By default the utility will set the default regulatory domain to FCC on wireless interfaces. As a result, @@ -1564,7 +1569,7 @@ Support for the HiSilicon HI6220 SoC has - been added. + been added. The second CPU core on Allwinner A20 SoC have been enabled. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306042 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 17:26:02 2016 New Revision: 306042 URL: https://svnweb.freebsd.org/changeset/base/306042 Log: - Remove redundant wording. - Update MK_ARM_EABI entry to note it is the default. - Reword the entry for r290910. - Fix various wording nits. - Remove redundant '[arch]' tags where they are already specified. - Various rewordings. Submitted by: theraven (first pass from his feedback) Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 17:07:14 2016(r306041) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 17:26:02 2016(r306042) @@ -163,7 +163,7 @@ includes files in the /etc/newsyslog.conf.d/ and /usr/local/etc/newsyslog.conf.d/ - directories by default for . + directories for . The utility has been updated to use from the @@ -172,12 +172,13 @@ if unset. The MK_ARM_EABI -option has been removed. +option has been removed and is now the only + supported ABI for /. The ntp suite has been updated to version 4.2.8p8. - The + /etc/ntp/leap-seconds has been updated to version 3676752000. @@ -194,11 +195,12 @@ is now printed, opposed to the previous output Exec format error.. - Allow to identify PCI - devices that are attached to a driver to be identified by - their device name instead of just the selector. Additionally, - the -l flag now accepts an optional device - argument to list details about a single device. + The utility can now + identify PCI devices that are attached to a driver to be + identified by their device name instead of just the selector. + Additionally, the -l flag now accepts an + optional device argument to list details about a single + device. A new flag, onifconsole has been added to /etc/ttys. This allows @@ -304,8 +306,8 @@ MBR EFI partition type. - The system - call has been updated include support for Altivec registers on + The system call has been + updated include support for Altivec registers on /. A new device control utility, @@ -317,14 +319,15 @@ The utility has been - updated to link against the shared - library. + updated to use to optionally generate + machine-readable output. A new flag, -c, has been added to the utility, which allows specifying the capacity of the target disk image. The + UEFI Secure Boot signing utility, utility has been added. A new utility, , has been added, which is used - to manage devices. + to manage (SCSI Environmental + Services) devices. The utility has been updated to use the PCI ID database from the The utility has been updated to support multi-threaded compression. - The - elftoolchain utilities have been - updated to version 3179. - The utility has been updated to version 2.1.3. @@ -869,11 +869,11 @@ on processors with Turbo Boost enabled has been fixed. - Support for -stack tracing has been fixed for - /, using the trapexit() - and asttrapexit() functions instead of - checking within addressed kernel space. + Support for stack tracing + has been fixed for /, using the + trapexit() and + asttrapexit() functions instead of checking + within addressed kernel space. A kernel panic triggered when destroying a configured with has @@ -907,9 +907,8 @@ - Support for -has been added for the - Book-E. + Support for has been + added for the PowerPC Book-E. The system call has been @@ -923,7 +922,7 @@ The IMAGACT_BINMISC kernel configuration option has been enabled by default, which enables application execution through emulators, such - as Qemu. + as QEMU. The VT kernel configuration file has been removed, and the @@ -938,10 +937,9 @@ class="directory">src/ tree, specified as an argument to the -s flag. - The - / kernel now builds as - a position-independent executable, allowing the kernel to be - loaded into and run from any physical or virtual + The / kernel now + builds as a position-independent executable, allowing the + kernel to be loaded into and run from any physical or virtual
svn commit: r306041 - head/sys/conf
Author: emaste Date: Tue Sep 20 17:07:14 2016 New Revision: 306041 URL: https://svnweb.freebsd.org/changeset/base/306041 Log: Always pass -m to ld for converting binary files to kernel ELF objects This is in preparation for linking with LLVM's lld, which does not have a compiled-in default output emulation. lld requires that it is specified via the -m option, or obtained from the object file(s) being linked. This will also allow all build targets to share a common linker binary. Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D7837 Modified: head/sys/conf/kern.mk head/sys/conf/kern.pre.mk head/sys/conf/kmod.mk Modified: head/sys/conf/kern.mk == --- head/sys/conf/kern.mk Tue Sep 20 16:55:59 2016(r306040) +++ head/sys/conf/kern.mk Tue Sep 20 17:07:14 2016(r306041) @@ -244,3 +244,23 @@ CFLAGS+=-std=iso9899:1999 .else # CSTD CFLAGS+=-std=${CSTD} .endif # CSTD + +# Set target-specific linker emulation name. Used by ld -b binary to convert +# binary files into ELF objects. +LD_EMULATION_aarch64=aarch64elf +LD_EMULATION_amd64=elf_x86_64_fbsd +LD_EMULATION_arm=armelf_fbsd +LD_EMULATION_armeb=armelf_fbsd +LD_EMULATION_armv6=armelf_fbsd +LD_EMULATION_i386=elf_i386_fbsd +LD_EMULATION_mips= elf32btsmip_fbsd +LD_EMULATION_mips64= elf64btsmip_fbsd +LD_EMULATION_mipsel= elf32ltsmip_fbsd +LD_EMULATION_mips64el= elf64ltsmip_fbsd +LD_EMULATION_mipsn32= elf32btsmipn32_fbsd +LD_EMULATION_mipsn32el= elf32btsmipn32_fbsd # I don't think this is a thing that works +LD_EMULATION_powerpc= elf32ppc_fbsd +LD_EMULATION_powerpc64= elf64ppc_fbsd +LD_EMULATION_riscv= elf64riscv +LD_EMULATION_sparc64= elf64_sparc_fbsd +LD_EMULATION=${LD_EMULATION_${MACHINE_ARCH}} Modified: head/sys/conf/kern.pre.mk == --- head/sys/conf/kern.pre.mk Tue Sep 20 16:55:59 2016(r306040) +++ head/sys/conf/kern.pre.mk Tue Sep 20 17:07:14 2016(r306041) @@ -119,7 +119,7 @@ NORMAL_M= ${AWK} -f $S/tools/makeobjops. NORMAL_FW= uudecode -o ${.TARGET} ${.ALLSRC} NORMAL_FWO= ${LD} -b binary --no-warn-mismatch -d -warn-common -r \ - -o ${.TARGET} ${.ALLSRC:M*.fw} + -m ${LD_EMULATION} -o ${.TARGET} ${.ALLSRC:M*.fw} # Common for dtrace / zfs CDDL_CFLAGS= -DFREEBSD_NAMECACHE -nostdinc -I$S/cddl/compat/opensolaris -I$S/cddl/contrib/opensolaris/uts/common -I$S -I$S/cddl/contrib/opensolaris/common ${CFLAGS} -Wno-unknown-pragmas -Wno-missing-prototypes -Wno-undef -Wno-strict-prototypes -Wno-cast-qual -Wno-parentheses -Wno-redundant-decls -Wno-missing-braces -Wno-uninitialized -Wno-unused -Wno-inline -Wno-switch -Wno-pointer-arith -Wno-unknown-pragmas Modified: head/sys/conf/kmod.mk == --- head/sys/conf/kmod.mk Tue Sep 20 16:55:59 2016(r306040) +++ head/sys/conf/kmod.mk Tue Sep 20 17:07:14 2016(r306041) @@ -171,11 +171,13 @@ ${_firmw:C/\:.*$/.fwo/:T}:${_firmw:C/\: @${ECHO} ${_firmw:C/\:.*$//} ${.ALLSRC:M*${_firmw:C/\:.*$//}} @if [ -e ${_firmw:C/\:.*$//} ]; then\ ${LD} -b binary --no-warn-mismatch ${_LDFLAGS} \ - -r -d -o ${.TARGET} ${_firmw:C/\:.*$//};\ + -m ${LD_EMULATION} -r -d\ + -o ${.TARGET} ${_firmw:C/\:.*$//}; \ else\ ln -s ${.ALLSRC:M*${_firmw:C/\:.*$//}} ${_firmw:C/\:.*$//}; \ ${LD} -b binary --no-warn-mismatch ${_LDFLAGS} \ - -r -d -o ${.TARGET} ${_firmw:C/\:.*$//};\ + -m ${LD_EMULATION} -r -d\ + -o ${.TARGET} ${_firmw:C/\:.*$//}; \ rm ${_firmw:C/\:.*$//}; \ fi ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306040 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 16:55:59 2016 New Revision: 306040 URL: https://svnweb.freebsd.org/changeset/base/306040 Log: Expand the r285387 entry to include information for cases where NUMA may be disabled due to system BIOS. Submitted by: vangyzen Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 16:48:25 2016(r306039) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 16:55:59 2016(r306040) @@ -1029,6 +1029,14 @@ , and , for usage details. + + If the system BIOS generates an invalid ACPI SRAT table, + the kernel will ignore it, effectively disabling + NUMA. If dmesg shows SRAT: + Duplicate local APIC ID, try updating the BIOS to fix + NUMA support. + + Support for running CloudABI executables on amd64 and arm64 has been added. CloudABI is a runtime environment that uses capability-based security exclusively, ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306039 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 16:48:25 2016 New Revision: 306039 URL: https://svnweb.freebsd.org/changeset/base/306039 Log: Update the entry for r279463, and move it to the correct section. Submitted by: rstone Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 16:40:15 2016(r306038) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 16:48:25 2016(r306039) @@ -711,12 +711,6 @@ equivalent script is available from the net/mrouted port. - A new script, - iovctl, has been added, which allows - automatically starting the utility at - boot. - The utility has been updated to honor entries within + Support for PCI Single Root I/O + Virtualization (SR-IOV) has been introduced, allowing the + creation of PCI Virtual Functions (VFs) for device drivers + that support SR-IOV. See for details on + creating and configuring VFs. + The hypervisor has been updated to support DSM TRIM commands for virtual AHCI disks. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306038 - head/contrib/netbsd-tests/fs/tmpfs
Author: ngie Date: Tue Sep 20 16:40:15 2016 New Revision: 306038 URL: https://svnweb.freebsd.org/changeset/base/306038 Log: Port vnd_test to FreeBSD Use mdmfs/mdconfig instead of vndconfig/newfs. vndconfig doesn't exist on FreeBSD. TODO: need to parameterize out the md(4) device as it's currently hardcoded to "3" (in both the FreeBSD and NetBSD cases). MFC after:1 month Sponsored by: Dell EMC Isilon Modified: head/contrib/netbsd-tests/fs/tmpfs/t_vnd.sh Modified: head/contrib/netbsd-tests/fs/tmpfs/t_vnd.sh == --- head/contrib/netbsd-tests/fs/tmpfs/t_vnd.sh Tue Sep 20 16:39:41 2016 (r306037) +++ head/contrib/netbsd-tests/fs/tmpfs/t_vnd.sh Tue Sep 20 16:40:15 2016 (r306038) @@ -38,12 +38,21 @@ basic_body() { atf_check -s eq:0 -o ignore -e ignore \ dd if=/dev/zero of=disk.img bs=1m count=10 + # Begin FreeBSD + if true; then + atf_check -s eq:0 -o empty -e empty mkdir mnt + atf_check -s eq:0 -o empty -e empty mdmfs -F disk.img md3 mnt + else + # End FreeBSD atf_check -s eq:0 -o empty -e empty vndconfig /dev/vnd3 disk.img atf_check -s eq:0 -o ignore -e ignore newfs /dev/rvnd3a atf_check -s eq:0 -o empty -e empty mkdir mnt atf_check -s eq:0 -o empty -e empty mount /dev/vnd3a mnt + # Begin FreeBSD + fi + # End FreeBSD echo "Creating test files" for f in $(jot -w %u 100 | uniq); do @@ -58,7 +67,15 @@ basic_body() { done atf_check -s eq:0 -o empty -e empty umount mnt + # Begin FreeBSD + if true; then + atf_check -s eq:0 -o empty -e empty mdconfig -d -u 3 + else + # End FreeBSD atf_check -s eq:0 -o empty -e empty vndconfig -u /dev/vnd3 + # Begin FreeBSD + fi + # End FreeBSD test_unmount touch done @@ -66,7 +83,15 @@ basic_body() { basic_cleanup() { if [ ! -f done ]; then umount mnt 2>/dev/null 1>&2 + # Begin FreeBSD + if true; then + atf_check -s eq:0 -o empty -e empty mdconfig -d -u 3 + else + # End FreeBSD vndconfig -u /dev/vnd3 2>/dev/null 1>&2 + # Begin FreeBSD + fi + # End FreeBSD fi } ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306037 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 16:39:41 2016 New Revision: 306037 URL: https://svnweb.freebsd.org/changeset/base/306037 Log: Fix a typo. Submitted by: vangyzen Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 16:37:02 2016(r306036) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 16:39:41 2016(r306037) @@ -1648,7 +1648,7 @@ allow I/O scheduling tuning to fit workload and drive characteristics. This option is off by default, and can be enabled by adding option - CAM_IOSCHED_ADATPIVE option to the kernel + CAM_IOSCHED_ADAPTIVE option to the kernel configuration and recompiling the kernel. The ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306036 - head/contrib/netbsd-tests/fs/tmpfs
Author: ngie Date: Tue Sep 20 16:37:02 2016 New Revision: 306036 URL: https://svnweb.freebsd.org/changeset/base/306036 Log: Port to mknod_test and readdir_test to FreeBSD The `mknod p` command doesn't exist on FreeBSD, like on NetBSD. Use mkfifo instead to create named pipes (FIFOs). MFC after:1 month Sponsored by: Dell EMC Isilon Modified: head/contrib/netbsd-tests/fs/tmpfs/t_mknod.sh head/contrib/netbsd-tests/fs/tmpfs/t_readdir.sh Modified: head/contrib/netbsd-tests/fs/tmpfs/t_mknod.sh == --- head/contrib/netbsd-tests/fs/tmpfs/t_mknod.sh Tue Sep 20 16:36:55 2016(r306035) +++ head/contrib/netbsd-tests/fs/tmpfs/t_mknod.sh Tue Sep 20 16:37:02 2016(r306036) @@ -106,7 +106,15 @@ pipe_body() { test_mount umask 022 + # Begin FreeBSD + if true; then + atf_check -s eq:0 -o empty -e empty mkfifo pipe + else + # End FreeBSD atf_check -s eq:0 -o empty -e empty mknod pipe p + # Begin FreeBSD + fi + # End FreeBSD eval $(stat -s pipe) [ ${st_mode} = 010644 ] || atf_fail "Invalid mode" @@ -124,7 +132,15 @@ pipe_kqueue_body() { umask 022 atf_check -s eq:0 -o empty -e empty mkdir dir + # Begin FreeBSD + if true; then + echo 'mkfifo dir/pipe' | kqueue_monitor 1 dir + else + # End FreeBSD echo 'mknod dir/pipe p' | kqueue_monitor 1 dir + # Begin FreeBSD + fi + # End FreeBSD kqueue_check dir NOTE_WRITE test_unmount Modified: head/contrib/netbsd-tests/fs/tmpfs/t_readdir.sh == --- head/contrib/netbsd-tests/fs/tmpfs/t_readdir.sh Tue Sep 20 16:36:55 2016(r306035) +++ head/contrib/netbsd-tests/fs/tmpfs/t_readdir.sh Tue Sep 20 16:37:02 2016(r306036) @@ -59,7 +59,15 @@ types_body() { atf_check -s eq:0 -o empty -e empty ln -s reg lnk atf_check -s eq:0 -o empty -e empty mknod blk b 0 0 atf_check -s eq:0 -o empty -e empty mknod chr c 0 0 + # Begin FreeBSD + if true; then + atf_check -s eq:0 -o empty -e empty mkfifo fifo + else + # End FreeBSD atf_check -s eq:0 -o empty -e empty mknod fifo p + # Begin FreeBSD + fi + # End FreeBSD atf_check -s eq:0 -o empty -e empty \ $(atf_get_srcdir)/h_tools sockets sock ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306035 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 16:36:55 2016 New Revision: 306035 URL: https://svnweb.freebsd.org/changeset/base/306035 Log: Fix an incorrect revision. Submitted by: avos Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 16:35:57 2016(r306034) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 16:36:55 2016(r306035) @@ -449,7 +449,7 @@ falling back to the PCI ID database in the base system. - By default the utility + By default the utility will set the default regulatory domain to FCC on wireless interfaces. As a result, newly created wireless interfaces with default settings will ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306034 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 16:35:57 2016 New Revision: 306034 URL: https://svnweb.freebsd.org/changeset/base/306034 Log: Document 285307, cloudabi Submitted by: ed Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 16:31:57 2016(r306033) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 16:35:57 2016(r306034) @@ -1035,6 +1035,13 @@ , and , for usage details. + Support for running CloudABI executables + on amd64 and arm64 has been added. CloudABI is a runtime + environment that uses capability-based security exclusively, + similar to always being enabled. It allows + designing, implementing and testing strongly sandboxed + applications more easily. + The driver has been added to the GENERIC kernel configuration for supported architectures. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r305988 - in head/sys: geom sys
> On Sep 20, 2016, at 09:28, Alan Somerswrote: > > On Tue, Sep 20, 2016 at 10:23 AM, Alexander Motin wrote: >> On 20.09.2016 09:20, Alan Somers wrote: >>> On Mon, Sep 19, 2016 at 11:46 AM, Edward Tomasz Napierala >>> wrote: Author: trasz Date: Mon Sep 19 17:46:15 2016 New Revision: 305988 URL: https://svnweb.freebsd.org/changeset/base/305988 Log: Remove unused bio_taskqueue(). MFC after:1 month Modified: head/sys/geom/geom_io.c head/sys/sys/bio.h >>> >>> This is a KBI change, so you should bump __FreeBSD_version. You >>> probably shouldn't MFC it, either. >> >> The last/only consumer of this KPI I know gone with FreeBSD 9 and old >> ATA stack. Do you know any other? > > Nothing in-tree. But it's publicly visible, so we have no way of > knowing who might be using it out-of-tree. I’d have to check, but this might impact us (Isilon). We don’t use the __FreeBSD_version #ifdefs though in our code, so it’s fine from my perspective to leave things alone. That being said, are you sure that port klds (e.g. open-vm-tools*) aren’t impacted by this change? Did it go through a ports -exp run? Thanks, -Ngie signature.asc Description: Message signed with OpenPGP using GPGMail
Re: svn commit: r306031 - head/contrib/netbsd-tests/fs
> On Sep 20, 2016, at 09:28, Ngie Cooperwrote: > > Author: ngie > Date: Tue Sep 20 16:28:57 2016 > New Revision: 306031 > URL: https://svnweb.freebsd.org/changeset/base/306031 > > Log: > Port contrib/netbsd-tests/fs/h_funcs.subr to FreeBSD > > Use kldstat -m to determine whether or not a filesystem is loaded. This works > well with tmpfs, ufs, and zfs This also works with msdosfs… (I forgot to check that sooner). Cheers... signature.asc Description: Message signed with OpenPGP using GPGMail
svn commit: r306033 - head/contrib/netbsd-tests/fs/tmpfs
Author: ngie Date: Tue Sep 20 16:31:57 2016 New Revision: 306033 URL: https://svnweb.freebsd.org/changeset/base/306033 Log: Port sizes_test and statvfs_test to FreeBSD Similar to r306030, use a simpler method for getting the value of `hw.pagesize`, i.e. `sysctl -n hw.pagesize`. The awk filtering method doesn't work on FreeBSD MFC after:1 month Sponsored by: Dell EMC Isilon Modified: head/contrib/netbsd-tests/fs/tmpfs/t_sizes.sh head/contrib/netbsd-tests/fs/tmpfs/t_statvfs.sh Modified: head/contrib/netbsd-tests/fs/tmpfs/t_sizes.sh == --- head/contrib/netbsd-tests/fs/tmpfs/t_sizes.sh Tue Sep 20 16:30:59 2016(r306032) +++ head/contrib/netbsd-tests/fs/tmpfs/t_sizes.sh Tue Sep 20 16:31:57 2016(r306033) @@ -54,7 +54,15 @@ big_head() { big_body() { test_mount -o -s10M + # Begin FreeBSD + if true; then + pagesize=$(sysctl -n hw.pagesize) + else + # End FreeBSD pagesize=$(sysctl hw.pagesize | cut -d ' ' -f 3) + # Begin FreeBSD + fi + # End FreeBSD eval $($(atf_get_srcdir)/h_tools statvfs . | sed -e 's|^f_|cf_|') cf_bused=$((${cf_blocks} - ${cf_bfree})) Modified: head/contrib/netbsd-tests/fs/tmpfs/t_statvfs.sh == --- head/contrib/netbsd-tests/fs/tmpfs/t_statvfs.sh Tue Sep 20 16:30:59 2016(r306032) +++ head/contrib/netbsd-tests/fs/tmpfs/t_statvfs.sh Tue Sep 20 16:31:57 2016(r306033) @@ -38,7 +38,15 @@ values_head() { values_body() { test_mount -o -s10M + # Begin FreeBSD + if true; then + pagesize=$(sysctl -n hw.pagesize) + else + # End FreeBSD pagesize=$(sysctl hw.pagesize | cut -d ' ' -f 3) + # Begin FreeBSD + fi + # End FreeBSD eval $($(atf_get_srcdir)/h_tools statvfs .) [ ${pagesize} -eq ${f_bsize} ] || \ atf_fail "Invalid bsize" ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306032 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 16:30:59 2016 New Revision: 306032 URL: https://svnweb.freebsd.org/changeset/base/306032 Log: Document r298002, NCQ TRIM support, CAM_IOSCHED_ADATPIVE. Submitted by: imp Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 16:28:57 2016(r306031) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 16:30:59 2016(r306032) @@ -1620,6 +1620,30 @@ for parsing libucl-based configuration files has been added to . + The driver has been updated + to add NCQ TRIM support + for drives that support it. + + + Drives that advertise this feature but do not properly + support it have been blacklisted. Systems experiencing + traffic problems with NCQ + TRIM enabled can set the + kern.cam.ada.%d.quirks tunable to + 2 for 512k sectors or + 3 for 4096k sectors, replacing + %d with the drive number. + + + The driver has been updated to + allow I/O scheduling tuning to fit workload and drive + characteristics. This option is off by default, and can be + enabled by adding option + CAM_IOSCHED_ADATPIVE option to the kernel + configuration and recompiling the kernel. + The command can manually force updating capacity data after a disk gets resized using the reprobe ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306031 - head/contrib/netbsd-tests/fs
Author: ngie Date: Tue Sep 20 16:28:57 2016 New Revision: 306031 URL: https://svnweb.freebsd.org/changeset/base/306031 Log: Port contrib/netbsd-tests/fs/h_funcs.subr to FreeBSD Use kldstat -m to determine whether or not a filesystem is loaded. This works well with tmpfs, ufs, and zfs MFC after:1 month Sponsored by: Dell EMC Isilon Modified: head/contrib/netbsd-tests/fs/h_funcs.subr Modified: head/contrib/netbsd-tests/fs/h_funcs.subr == --- head/contrib/netbsd-tests/fs/h_funcs.subr Tue Sep 20 16:27:34 2016 (r306030) +++ head/contrib/netbsd-tests/fs/h_funcs.subr Tue Sep 20 16:28:57 2016 (r306031) @@ -45,6 +45,15 @@ require_fs() { # if we have autoloadable modules, just assume the file system atf_require_prog sysctl + # Begin FreeBSD + if true; then + if kldstat -m ${name}; then + found=yes + else + found=no + fi + else + # End FreeBSD autoload=$(sysctl -n kern.module.autoload) [ "${autoload}" = "1" ] && return 0 @@ -57,6 +66,9 @@ require_fs() { fi shift done + # Begin FreeBSD + fi + # End FreeBSD [ ${found} = yes ] || \ atf_skip "The kernel does not include support the " \ "\`${name}' file system" ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r305988 - in head/sys: geom sys
On Tue, Sep 20, 2016 at 10:23 AM, Alexander Motinwrote: > On 20.09.2016 09:20, Alan Somers wrote: >> On Mon, Sep 19, 2016 at 11:46 AM, Edward Tomasz Napierala >> wrote: >>> Author: trasz >>> Date: Mon Sep 19 17:46:15 2016 >>> New Revision: 305988 >>> URL: https://svnweb.freebsd.org/changeset/base/305988 >>> >>> Log: >>> Remove unused bio_taskqueue(). >>> >>> MFC after:1 month >>> >>> Modified: >>> head/sys/geom/geom_io.c >>> head/sys/sys/bio.h >>> >> >> This is a KBI change, so you should bump __FreeBSD_version. You >> probably shouldn't MFC it, either. > > The last/only consumer of this KPI I know gone with FreeBSD 9 and old > ATA stack. Do you know any other? > > -- > Alexander Motin Nothing in-tree. But it's publicly visible, so we have no way of knowing who might be using it out-of-tree. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306030 - head/contrib/netbsd-tests/fs/tmpfs
Author: ngie Date: Tue Sep 20 16:27:34 2016 New Revision: 306030 URL: https://svnweb.freebsd.org/changeset/base/306030 Log: Port vnode_leak_test:main to FreeBSD Use a simpler way of dumping kern.maxvnodes, i.e. `sysctl -n kern.maxvnodes` The awk filtering method employed in NetBSD doesn't work on FreeBSD MFC after:1 month Sponsored by: Dell EMC Isilon Modified: head/contrib/netbsd-tests/fs/tmpfs/t_vnode_leak.sh Modified: head/contrib/netbsd-tests/fs/tmpfs/t_vnode_leak.sh == --- head/contrib/netbsd-tests/fs/tmpfs/t_vnode_leak.sh Tue Sep 20 16:24:22 2016(r306029) +++ head/contrib/netbsd-tests/fs/tmpfs/t_vnode_leak.sh Tue Sep 20 16:27:34 2016(r306030) @@ -36,7 +36,15 @@ main_head() { } main_body() { echo "Lowering kern.maxvnodes to 2000" + # Begin FreeBSD + if true; then + sysctl -n kern.maxvnodes > oldvnodes + else + # End FreeBSD sysctl kern.maxvnodes | awk '{ print $3; }' >oldvnodes + # Begin FreeBSD + fi + # End FreeBSD atf_check -s eq:0 -o ignore -e empty sysctl -w kern.maxvnodes=2000 test_mount -o -s$(((4000 + 2) * 4096)) ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306029 - in head/libexec/atf: atf-check atf-sh
Author: ngie Date: Tue Sep 20 16:24:22 2016 New Revision: 306029 URL: https://svnweb.freebsd.org/changeset/base/306029 Log: Use SRCTOP instead of the longhand version for defining the path to contrib/atf MFC after:3 days Sponsored by: Dell EMC Isilon Modified: head/libexec/atf/atf-check/Makefile head/libexec/atf/atf-sh/Makefile Modified: head/libexec/atf/atf-check/Makefile == --- head/libexec/atf/atf-check/Makefile Tue Sep 20 16:14:42 2016 (r306028) +++ head/libexec/atf/atf-check/Makefile Tue Sep 20 16:24:22 2016 (r306029) @@ -28,7 +28,7 @@ .include .include -ATF= ${.CURDIR:H:H:H}/contrib/atf +ATF= ${SRCTOP}/contrib/atf .PATH: ${ATF}/atf-sh PROG_CXX= atf-check Modified: head/libexec/atf/atf-sh/Makefile == --- head/libexec/atf/atf-sh/MakefileTue Sep 20 16:14:42 2016 (r306028) +++ head/libexec/atf/atf-sh/MakefileTue Sep 20 16:24:22 2016 (r306029) @@ -28,7 +28,7 @@ .include .include -ATF= ${.CURDIR:H:H:H}/contrib/atf +ATF= ${SRCTOP}/contrib/atf .PATH: ${ATF}/atf-sh PROG_CXX= atf-sh ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r305988 - in head/sys: geom sys
On 20.09.2016 09:20, Alan Somers wrote: > On Mon, Sep 19, 2016 at 11:46 AM, Edward Tomasz Napierala >wrote: >> Author: trasz >> Date: Mon Sep 19 17:46:15 2016 >> New Revision: 305988 >> URL: https://svnweb.freebsd.org/changeset/base/305988 >> >> Log: >> Remove unused bio_taskqueue(). >> >> MFC after:1 month >> >> Modified: >> head/sys/geom/geom_io.c >> head/sys/sys/bio.h >> > > This is a KBI change, so you should bump __FreeBSD_version. You > probably shouldn't MFC it, either. The last/only consumer of this KPI I know gone with FreeBSD 9 and old ATA stack. Do you know any other? -- Alexander Motin ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r305988 - in head/sys: geom sys
On Mon, Sep 19, 2016 at 11:46 AM, Edward Tomasz Napieralawrote: > Author: trasz > Date: Mon Sep 19 17:46:15 2016 > New Revision: 305988 > URL: https://svnweb.freebsd.org/changeset/base/305988 > > Log: > Remove unused bio_taskqueue(). > > MFC after:1 month > > Modified: > head/sys/geom/geom_io.c > head/sys/sys/bio.h > This is a KBI change, so you should bump __FreeBSD_version. You probably shouldn't MFC it, either. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306028 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes
Author: gjb Date: Tue Sep 20 16:14:42 2016 New Revision: 306028 URL: https://svnweb.freebsd.org/changeset/base/306028 Log: Document bsdinstall(8) hardening menu. Submitted by: robak Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml == --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 15:14:33 2016(r306027) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xmlTue Sep 20 16:14:42 2016(r306028) @@ -685,6 +685,10 @@ sponsor="">Support for selecting the partitioning scheme when installing on the UFS filesystem has been added to . + + The utility has been + updated to include various system hardening options during + installation. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306027 - head/share/man/man9
Author: imp Date: Tue Sep 20 15:14:33 2016 New Revision: 306027 URL: https://svnweb.freebsd.org/changeset/base/306027 Log: Spell alphabetically correctly both in the commit message AND in the actual man page. Sigh. Submitted by: David A Bright and Pedro Giffuni Modified: head/share/man/man9/style.9 Modified: head/share/man/man9/style.9 == --- head/share/man/man9/style.9 Tue Sep 20 15:13:15 2016(r306026) +++ head/share/man/man9/style.9 Tue Sep 20 15:14:33 2016(r306027) @@ -118,7 +118,7 @@ Leave another blank line before the head .Pp Kernel include files (i.e.\& .Pa sys/*.h ) -come first sorted alphebetially where possible. +come first sorted alphabetically where possible. Include .In sys/types.h OR ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306026 - head/usr.bin/bsdiff/bspatch
Author: emaste Date: Tue Sep 20 15:13:15 2016 New Revision: 306026 URL: https://svnweb.freebsd.org/changeset/base/306026 Log: bspatch: Remove backwards-compatibility sys/capability.h support bspatch previously included sys/capability.h or sys/capsicum.h based on __FreeBSD_version, as FreeBSD is the upstream for bsdiff and we may see this file incorporated into other third-party software. The Capsicum header is now installed as sys/capsicum.h in stable/10 and FreeBSD 10.3, so we can just use sys/capsicum.h and simplify the logic. Reviewed by: allanjude Differential Revision:https://reviews.freebsd.org/D7954 Modified: head/usr.bin/bsdiff/bspatch/bspatch.c Modified: head/usr.bin/bsdiff/bspatch/bspatch.c == --- head/usr.bin/bsdiff/bspatch/bspatch.c Tue Sep 20 13:23:08 2016 (r306025) +++ head/usr.bin/bsdiff/bspatch/bspatch.c Tue Sep 20 15:13:15 2016 (r306026) @@ -29,12 +29,9 @@ __FBSDID("$FreeBSD$"); #if defined(__FreeBSD__) #include -#if __FreeBSD_version >= 1100014 +#if __FreeBSD_version >= 1001511 #include #define HAVE_CAPSICUM -#elif __FreeBSD_version >= 100 -#include -#define HAVE_CAPSICUM #endif #endif ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306025 - stable/11/sys/netpfil/ipfw
Author: ae Date: Tue Sep 20 13:23:08 2016 New Revision: 306025 URL: https://svnweb.freebsd.org/changeset/base/306025 Log: MFC r305778: Fix swap tables between sets when this functional is enabled. We have 6 opcode rewriters for table opcodes. When `set swap' command invoked, it is called for each rewriter, so at the end we get the same result, because opcode rewriter uses ETLV type to match opcode. And all tables opcodes have the same ETLV type. To solve this problem, use separate sets handler for one opcode rewriter. Use it to handle TEST_ALL, SWAP_ALL and MOVE_ALL commands. PR: 212630 Modified: stable/11/sys/netpfil/ipfw/ip_fw_table.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/netpfil/ipfw/ip_fw_table.c == --- stable/11/sys/netpfil/ipfw/ip_fw_table.cTue Sep 20 12:59:30 2016 (r306024) +++ stable/11/sys/netpfil/ipfw/ip_fw_table.cTue Sep 20 13:23:08 2016 (r306025) @@ -2825,13 +2825,12 @@ table_manage_sets(struct ip_fw_chain *ch switch (cmd) { case SWAP_ALL: case TEST_ALL: + case MOVE_ALL: /* -* Return success for TEST_ALL, since nothing prevents -* move rules from one set to another. All tables are -* accessible from all sets when per-set tables sysctl -* is disabled. +* Always return success, the real action and decision +* should make table_manage_sets_all(). */ - case MOVE_ALL: + return (0); case TEST_ONE: case MOVE_ONE: /* @@ -2856,6 +2855,39 @@ table_manage_sets(struct ip_fw_chain *ch set, new_set, cmd)); } +/* + * We register several opcode rewriters for lookup tables. + * All tables opcodes have the same ETLV type, but different subtype. + * To avoid invoking sets handler several times for XXX_ALL commands, + * we use separate manage_sets handler. O_RECV has the lowest value, + * so it should be called first. + */ +static int +table_manage_sets_all(struct ip_fw_chain *ch, uint16_t set, uint8_t new_set, +enum ipfw_sets_cmd cmd) +{ + + switch (cmd) { + case SWAP_ALL: + case TEST_ALL: + /* +* Return success for TEST_ALL, since nothing prevents +* move rules from one set to another. All tables are +* accessible from all sets when per-set tables sysctl +* is disabled. +*/ + case MOVE_ALL: + if (V_fw_tables_sets == 0) + return (0); + break; + default: + return (table_manage_sets(ch, set, new_set, cmd)); + } + /* Use generic sets handler when per-set sysctl is enabled. */ + return (ipfw_obj_manage_sets(CHAIN_TO_NI(ch), IPFW_TLV_TBL_NAME, + set, new_set, cmd)); +} + static struct opcode_obj_rewrite opcodes[] = { { .opcode = O_IP_SRC_LOOKUP, @@ -2905,7 +2937,7 @@ static struct opcode_obj_rewrite opcodes .find_byname = table_findbyname, .find_bykidx = table_findbykidx, .create_object = create_table_compat, - .manage_sets = table_manage_sets, + .manage_sets = table_manage_sets_all, }, { .opcode = O_VIA, ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306024 - head/sys/dev/mrsas
Author: emaste Date: Tue Sep 20 12:59:30 2016 New Revision: 306024 URL: https://svnweb.freebsd.org/changeset/base/306024 Log: mrsas: update for sys/capability.h rename in r263232 Modified: head/sys/dev/mrsas/mrsas_linux.c Modified: head/sys/dev/mrsas/mrsas_linux.c == --- head/sys/dev/mrsas/mrsas_linux.cTue Sep 20 12:58:28 2016 (r306023) +++ head/sys/dev/mrsas/mrsas_linux.cTue Sep 20 12:59:30 2016 (r306024) @@ -43,8 +43,10 @@ __FBSDID("$FreeBSD$"); #include #include -#if (__FreeBSD_version > 90) -#include +#if (__FreeBSD_version >= 1001511) +#include +#elif (__FreeBSD_version > 90) +#include #endif #include ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306023 - head/contrib/openbsm/bin/auditdistd
Author: emaste Date: Tue Sep 20 12:58:28 2016 New Revision: 306023 URL: https://svnweb.freebsd.org/changeset/base/306023 Log: auditdistd: update for sys/capability.h rename in r263232 Modified: head/contrib/openbsm/bin/auditdistd/sandbox.c Modified: head/contrib/openbsm/bin/auditdistd/sandbox.c == --- head/contrib/openbsm/bin/auditdistd/sandbox.c Tue Sep 20 12:56:03 2016(r306022) +++ head/contrib/openbsm/bin/auditdistd/sandbox.c Tue Sep 20 12:58:28 2016(r306023) @@ -34,7 +34,7 @@ #include #endif #ifdef HAVE_CAP_ENTER -#include +#include #endif #include ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306022 - head/sys/dev/hwpmc
Author: emaste Date: Tue Sep 20 12:56:03 2016 New Revision: 306022 URL: https://svnweb.freebsd.org/changeset/base/306022 Log: hwpmc: remove sys/capability.h backwards compatibility The Capsicum header is installed as sys/capsicum.h in stable/10 as well. Modified: head/sys/dev/hwpmc/hwpmc_logging.c Modified: head/sys/dev/hwpmc/hwpmc_logging.c == --- head/sys/dev/hwpmc/hwpmc_logging.c Tue Sep 20 11:11:06 2016 (r306021) +++ head/sys/dev/hwpmc/hwpmc_logging.c Tue Sep 20 12:56:03 2016 (r306022) @@ -37,11 +37,7 @@ __FBSDID("$FreeBSD$"); #include -#if (__FreeBSD_version >= 110) #include -#else -#include -#endif #include #include #include ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306021 - in head/sys: arm/annapurna/alpine arm/conf arm64/conf boot/fdt/dts/arm conf
Author: wma Date: Tue Sep 20 11:11:06 2016 New Revision: 306021 URL: https://svnweb.freebsd.org/changeset/base/306021 Log: Add driver for PCIe root complex on Annapurna Alpine platform. The driver subclasses pci-host-generic and additionally performs configuration of vendor-specific PCIe registers. Obtained from: Semihalf Submitted by: Michal StanekSponsored by: Annapurna Labs Reviewed by: wma Differential Revision: https://reviews.freebsd.org/D7571 Added: head/sys/arm/annapurna/alpine/alpine_pci.c (contents, props changed) Modified: head/sys/arm/conf/ALPINE head/sys/arm64/conf/GENERIC head/sys/boot/fdt/dts/arm/annapurna-alpine.dts head/sys/conf/files.arm head/sys/conf/files.arm64 Added: head/sys/arm/annapurna/alpine/alpine_pci.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/arm/annapurna/alpine/alpine_pci.c Tue Sep 20 11:11:06 2016 (r306021) @@ -0,0 +1,158 @@ +/*- + * Copyright (c) 2015,2016 Annapurna Labs Ltd. and affiliates + * All rights reserved. + * + * Developed by Semihalf. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *notice, this list of conditions and the following disclaimer in the + *documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +/* + * Alpine PCI/PCI-Express controller driver. + */ + +#include +__FBSDID("$FreeBSD$"); + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +#include "pcib_if.h" + +#include "contrib/alpine-hal/al_hal_unit_adapter_regs.h" +#include "contrib/alpine-hal/al_hal_pcie.h" +#include "contrib/alpine-hal/al_hal_pcie_axi_reg.h" + +#define ANNAPURNA_VENDOR_ID0x1c36 + +/* Forward prototypes */ +static int al_pcib_probe(device_t); +static int al_pcib_attach(device_t); +static void al_pcib_fixup(device_t); + +static struct ofw_compat_data compat_data[] = { + {"annapurna-labs,al-internal-pcie", true}, + {"annapurna-labs,alpine-internal-pcie", true}, + {NULL, false} +}; + +/* + * Bus interface definitions. + */ +static device_method_t al_pcib_methods[] = { + /* Device interface */ + DEVMETHOD(device_probe, al_pcib_probe), + DEVMETHOD(device_attach,al_pcib_attach), + + DEVMETHOD_END +}; + +DEFINE_CLASS_1(pcib, al_pcib_driver, al_pcib_methods, +sizeof(struct generic_pcie_softc), generic_pcie_driver); + +static devclass_t anpa_pcib_devclass; + +DRIVER_MODULE(alpine_pcib, simplebus, al_pcib_driver, anpa_pcib_devclass, 0, 0); +DRIVER_MODULE(alpine_pcib, ofwbus, al_pcib_driver, anpa_pcib_devclass, 0, 0); + +static int +al_pcib_probe(device_t dev) +{ + + if (!ofw_bus_status_okay(dev)) + return (ENXIO); + + if (!ofw_bus_search_compatible(dev, compat_data)->ocd_data) + return (ENXIO); + + device_set_desc(dev, + "Annapurna-Labs Integrated Internal PCI-E Controller"); + return (BUS_PROBE_DEFAULT); +} + +static int +al_pcib_attach(device_t dev) +{ + int rv; + + rv = pci_host_generic_attach(dev); + + /* Annapurna quirk: configure vendor-specific registers */ + if (rv == 0) + al_pcib_fixup(dev); + + return (rv); +} + +static void +al_pcib_fixup(device_t dev) +{ + uint32_t val; + uint16_t vid; + uint8_t hdrtype; + int bus, slot, func, maxfunc; + + /* Fixup is only needed on bus 0 */ + bus = 0; + for (slot = 0; slot <= PCI_SLOTMAX; slot++) { + maxfunc = 0; + for (func = 0; func <= maxfunc; func++) { + hdrtype = PCIB_READ_CONFIG(dev,
Re: svn commit: r305968 - head/etc/autofs
On Mon, Sep 19, 2016 at 10:19:04PM -0600, Warner Losh wrote: > For MSDOS it's one thing and likely helps. But for ufs it doesn't > help. Soft updates already does an excellent job at reducing wear and > all async does is give added danger of dataloss. Linux distros don't > matter for UFS because different design decisions have been made for > ext[234] and UFS. SU mount of UFS and unexpected media loast can caused kernel panic at next mount this media. async mount don't have such issuse. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306020 - in head/sys/amd64: amd64 include
Author: kib Date: Tue Sep 20 09:38:07 2016 New Revision: 306020 URL: https://svnweb.freebsd.org/changeset/base/306020 Log: Move pmap_p*e_index() inline functions from pmap.c to pmap.h. They are already used in minidump code. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/amd64/amd64/minidump_machdep.c head/sys/amd64/amd64/pmap.c head/sys/amd64/include/pmap.h Modified: head/sys/amd64/amd64/minidump_machdep.c == --- head/sys/amd64/amd64/minidump_machdep.c Tue Sep 20 09:19:22 2016 (r306019) +++ head/sys/amd64/amd64/minidump_machdep.c Tue Sep 20 09:38:07 2016 (r306020) @@ -239,10 +239,10 @@ minidumpsys(struct dumperinfo *di) * page written corresponds to 1GB of space */ pmapsize += PAGE_SIZE; - ii = (va >> PML4SHIFT) & ((1ul << NPML4EPGSHIFT) - 1); + ii = pmap_pml4e_index(va); pml4 = (uint64_t *)PHYS_TO_DMAP(KPML4phys) + ii; pdp = (uint64_t *)PHYS_TO_DMAP(*pml4 & PG_FRAME); - i = (va >> PDPSHIFT) & ((1ul << NPDPEPGSHIFT) - 1); + i = pmap_pdpe_index(va); if ((pdp[i] & PG_V) == 0) { va += NBPDP; continue; @@ -264,7 +264,7 @@ minidumpsys(struct dumperinfo *di) pd = (uint64_t *)PHYS_TO_DMAP(pdp[i] & PG_FRAME); for (n = 0; n < NPDEPG; n++, va += NBPDR) { - j = (va >> PDRSHIFT) & ((1ul << NPDEPGSHIFT) - 1); + j = pmap_pde_index(va); if ((pd[j] & PG_V) == 0) continue; @@ -368,10 +368,10 @@ minidumpsys(struct dumperinfo *di) bzero(fakepd, sizeof(fakepd)); for (va = VM_MIN_KERNEL_ADDRESS; va < MAX(KERNBASE + nkpt * NBPDR, kernel_vm_end); va += NBPDP) { - ii = (va >> PML4SHIFT) & ((1ul << NPML4EPGSHIFT) - 1); + ii = pmap_pml4e_index(va); pml4 = (uint64_t *)PHYS_TO_DMAP(KPML4phys) + ii; pdp = (uint64_t *)PHYS_TO_DMAP(*pml4 & PG_FRAME); - i = (va >> PDPSHIFT) & ((1ul << NPDPEPGSHIFT) - 1); + i = pmap_pdpe_index(va); /* We always write a page, even if it is zero */ if ((pdp[i] & PG_V) == 0) { Modified: head/sys/amd64/amd64/pmap.c == --- head/sys/amd64/amd64/pmap.c Tue Sep 20 09:19:22 2016(r306019) +++ head/sys/amd64/amd64/pmap.c Tue Sep 20 09:38:07 2016(r306020) @@ -673,35 +673,6 @@ pmap_pde_pindex(vm_offset_t va) } -/* Return various clipped indexes for a given VA */ -static __inline vm_pindex_t -pmap_pte_index(vm_offset_t va) -{ - - return ((va >> PAGE_SHIFT) & ((1ul << NPTEPGSHIFT) - 1)); -} - -static __inline vm_pindex_t -pmap_pde_index(vm_offset_t va) -{ - - return ((va >> PDRSHIFT) & ((1ul << NPDEPGSHIFT) - 1)); -} - -static __inline vm_pindex_t -pmap_pdpe_index(vm_offset_t va) -{ - - return ((va >> PDPSHIFT) & ((1ul << NPDPEPGSHIFT) - 1)); -} - -static __inline vm_pindex_t -pmap_pml4e_index(vm_offset_t va) -{ - - return ((va >> PML4SHIFT) & ((1ul << NPML4EPGSHIFT) - 1)); -} - /* Return a pointer to the PML4 slot that corresponds to a VA */ static __inline pml4_entry_t * pmap_pml4e(pmap_t pmap, vm_offset_t va) Modified: head/sys/amd64/include/pmap.h == --- head/sys/amd64/include/pmap.h Tue Sep 20 09:19:22 2016 (r306019) +++ head/sys/amd64/include/pmap.h Tue Sep 20 09:38:07 2016 (r306020) @@ -416,6 +416,35 @@ boolean_t pmap_map_io_transient(vm_page_ void pmap_unmap_io_transient(vm_page_t *, vm_offset_t *, int, boolean_t); #endif /* _KERNEL */ +/* Return various clipped indexes for a given VA */ +static __inline vm_pindex_t +pmap_pte_index(vm_offset_t va) +{ + + return ((va >> PAGE_SHIFT) & ((1ul << NPTEPGSHIFT) - 1)); +} + +static __inline vm_pindex_t +pmap_pde_index(vm_offset_t va) +{ + + return ((va >> PDRSHIFT) & ((1ul << NPDEPGSHIFT) - 1)); +} + +static __inline vm_pindex_t +pmap_pdpe_index(vm_offset_t va) +{ + + return ((va >> PDPSHIFT) & ((1ul << NPDPEPGSHIFT) - 1)); +} + +static __inline vm_pindex_t +pmap_pml4e_index(vm_offset_t va) +{ + + return ((va >> PML4SHIFT) & ((1ul << NPML4EPGSHIFT) - 1)); +} + #endif /* !LOCORE */ #endif /* !_MACHINE_PMAP_H_ */ ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306019 - in head/sys/contrib/alpine-hal: . eth eth/eth
Author: wma Date: Tue Sep 20 09:19:22 2016 New Revision: 306019 URL: https://svnweb.freebsd.org/changeset/base/306019 Log: Update Annapurna Alpine HAL alpine-hal SerDes file was omitted in the previous commit. Files added here. All unnecessary (old) files were also removed. Merge from vendor-sys, r306017 Added: head/sys/contrib/alpine-hal/al_hal_serdes_hssp.c - copied unchanged from r306018, head/sys/contrib/alpine-hal/al_hal_serdes.c Deleted: head/sys/contrib/alpine-hal/al_hal_serdes.c head/sys/contrib/alpine-hal/eth/al_hal_common.h head/sys/contrib/alpine-hal/eth/al_hal_iofic.c head/sys/contrib/alpine-hal/eth/al_hal_iofic.h head/sys/contrib/alpine-hal/eth/al_hal_iofic_regs.h head/sys/contrib/alpine-hal/eth/al_hal_nb_regs.h head/sys/contrib/alpine-hal/eth/al_hal_pbs_regs.h head/sys/contrib/alpine-hal/eth/al_hal_pcie.c head/sys/contrib/alpine-hal/eth/al_hal_pcie.h head/sys/contrib/alpine-hal/eth/al_hal_pcie_axi_reg.h head/sys/contrib/alpine-hal/eth/al_hal_pcie_interrupts.h head/sys/contrib/alpine-hal/eth/al_hal_pcie_regs.h head/sys/contrib/alpine-hal/eth/al_hal_pcie_w_reg.h head/sys/contrib/alpine-hal/eth/al_hal_plat_services.h head/sys/contrib/alpine-hal/eth/al_hal_plat_types.h head/sys/contrib/alpine-hal/eth/al_hal_reg_utils.h head/sys/contrib/alpine-hal/eth/al_hal_serdes.c head/sys/contrib/alpine-hal/eth/al_hal_serdes.h head/sys/contrib/alpine-hal/eth/al_hal_serdes_25g.c head/sys/contrib/alpine-hal/eth/al_hal_serdes_25g.h head/sys/contrib/alpine-hal/eth/al_hal_serdes_25g_internal_regs.h head/sys/contrib/alpine-hal/eth/al_hal_serdes_25g_regs.h head/sys/contrib/alpine-hal/eth/al_hal_serdes_hssp.h head/sys/contrib/alpine-hal/eth/al_hal_serdes_hssp_internal_regs.h head/sys/contrib/alpine-hal/eth/al_hal_serdes_hssp_regs.h head/sys/contrib/alpine-hal/eth/al_hal_serdes_interface.h head/sys/contrib/alpine-hal/eth/al_hal_serdes_internal_regs.h head/sys/contrib/alpine-hal/eth/al_hal_serdes_regs.h head/sys/contrib/alpine-hal/eth/al_hal_types.h head/sys/contrib/alpine-hal/eth/al_hal_udma.h head/sys/contrib/alpine-hal/eth/al_hal_udma_config.c head/sys/contrib/alpine-hal/eth/al_hal_udma_config.h head/sys/contrib/alpine-hal/eth/al_hal_udma_debug.c head/sys/contrib/alpine-hal/eth/al_hal_udma_debug.h head/sys/contrib/alpine-hal/eth/al_hal_udma_iofic.c head/sys/contrib/alpine-hal/eth/al_hal_udma_iofic.h head/sys/contrib/alpine-hal/eth/al_hal_udma_iofic_regs.h head/sys/contrib/alpine-hal/eth/al_hal_udma_main.c head/sys/contrib/alpine-hal/eth/al_hal_udma_regs.h head/sys/contrib/alpine-hal/eth/al_hal_udma_regs_gen.h head/sys/contrib/alpine-hal/eth/al_hal_udma_regs_m2s.h head/sys/contrib/alpine-hal/eth/al_hal_udma_regs_s2m.h head/sys/contrib/alpine-hal/eth/al_hal_unit_adapter_regs.h head/sys/contrib/alpine-hal/eth/al_serdes.c head/sys/contrib/alpine-hal/eth/al_serdes.h head/sys/contrib/alpine-hal/eth/eth/ Copied: head/sys/contrib/alpine-hal/al_hal_serdes_hssp.c (from r306018, head/sys/contrib/alpine-hal/al_hal_serdes.c) == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/contrib/alpine-hal/al_hal_serdes_hssp.cTue Sep 20 09:19:22 2016(r306019, copy of r306018, head/sys/contrib/alpine-hal/al_hal_serdes.c) @@ -0,0 +1,3164 @@ +/*** +Copyright (C) 2015 Annapurna Labs Ltd. + +This file may be licensed under the terms of the Annapurna Labs Commercial +License Agreement. + +Alternatively, this file can be distributed under the terms of the GNU General +Public License V2 as published by the Free Software Foundation and can be +found at http://www.gnu.org/licenses/gpl-2.0.html + +Alternatively, redistribution and use in source and binary forms, with or +without modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in +the documentation and/or other materials provided with the +distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING
svn commit: r306018 - head/sys/geom
Author: trasz Date: Tue Sep 20 09:18:33 2016 New Revision: 306018 URL: https://svnweb.freebsd.org/changeset/base/306018 Log: Follow up r305988 by removing g_bio_run_task and related code. The g_io_schedule_up() gets its "if" condition swapped to make it more similar to g_io_schedule_down(). Suggested by: mav@ Reviewed by: mav@ MFC after:1 month Modified: head/sys/geom/geom_io.c Modified: head/sys/geom/geom_io.c == --- head/sys/geom/geom_io.c Tue Sep 20 08:56:50 2016(r306017) +++ head/sys/geom/geom_io.c Tue Sep 20 09:18:33 2016(r306018) @@ -69,7 +69,6 @@ static intg_io_transient_map_bio(struct static struct g_bioq g_bio_run_down; static struct g_bioq g_bio_run_up; -static struct g_bioq g_bio_run_task; /* * Pace is a hint that we've had some trouble recently allocating @@ -280,7 +279,6 @@ g_io_init() g_bioq_init(_bio_run_down); g_bioq_init(_bio_run_up); - g_bioq_init(_bio_run_task); biozone = uma_zcreate("g_bio", sizeof (struct bio), NULL, NULL, NULL, NULL, @@ -887,31 +885,23 @@ void g_io_schedule_up(struct thread *tp __unused) { struct bio *bp; + for(;;) { g_bioq_lock(_bio_run_up); - bp = g_bioq_first(_bio_run_task); - if (bp != NULL) { - g_bioq_unlock(_bio_run_up); - THREAD_NO_SLEEPING(); - CTR1(KTR_GEOM, "g_up processing task bp %p", bp); - bp->bio_task(bp->bio_task_arg); - THREAD_SLEEPING_OK(); - continue; - } bp = g_bioq_first(_bio_run_up); - if (bp != NULL) { - g_bioq_unlock(_bio_run_up); - THREAD_NO_SLEEPING(); - CTR4(KTR_GEOM, "g_up biodone bp %p provider %s off " - "%jd len %ld", bp, bp->bio_to->name, - bp->bio_offset, bp->bio_length); - biodone(bp); - THREAD_SLEEPING_OK(); + if (bp == NULL) { + CTR0(KTR_GEOM, "g_up going to sleep"); + msleep(_wait_up, _bio_run_up.bio_queue_lock, + PRIBIO | PDROP, "-", 0); continue; } - CTR0(KTR_GEOM, "g_up going to sleep"); - msleep(_wait_up, _bio_run_up.bio_queue_lock, - PRIBIO | PDROP, "-", 0); + g_bioq_unlock(_bio_run_up); + THREAD_NO_SLEEPING(); + CTR4(KTR_GEOM, "g_up biodone bp %p provider %s off " + "%jd len %ld", bp, bp->bio_to->name, + bp->bio_offset, bp->bio_length); + biodone(bp); + THREAD_SLEEPING_OK(); } } ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r306017 - vendor-sys/alpine-hal/2.7a
Author: wma Date: Tue Sep 20 08:56:50 2016 New Revision: 306017 URL: https://svnweb.freebsd.org/changeset/base/306017 Log: Update Annapurna Alpine HAL alpine-hal SerDes file was omitted in the previous commit. Files added here. Added: vendor-sys/alpine-hal/2.7a/al_hal_serdes_hssp.c - copied unchanged from r306016, vendor-sys/alpine-hal/2.7a/al_hal_serdes.c Deleted: vendor-sys/alpine-hal/2.7a/al_hal_serdes.c Copied: vendor-sys/alpine-hal/2.7a/al_hal_serdes_hssp.c (from r306016, vendor-sys/alpine-hal/2.7a/al_hal_serdes.c) == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor-sys/alpine-hal/2.7a/al_hal_serdes_hssp.c Tue Sep 20 08:56:50 2016(r306017, copy of r306016, vendor-sys/alpine-hal/2.7a/al_hal_serdes.c) @@ -0,0 +1,3164 @@ +/*** +Copyright (C) 2015 Annapurna Labs Ltd. + +This file may be licensed under the terms of the Annapurna Labs Commercial +License Agreement. + +Alternatively, this file can be distributed under the terms of the GNU General +Public License V2 as published by the Free Software Foundation and can be +found at http://www.gnu.org/licenses/gpl-2.0.html + +Alternatively, redistribution and use in source and binary forms, with or +without modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in +the documentation and/or other materials provided with the +distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +***/ + +#include "al_hal_serdes_hssp.h" +#include "al_hal_serdes_hssp_regs.h" +#include "al_hal_serdes_hssp_internal_regs.h" + +#define SRDS_CORE_REG_ADDR(page, type, offset)\ + (((page) << 13) | ((type) << 12) | (offset)) + +/* Link Training configuration */ +#define AL_SERDES_TX_DEEMPH_SUM_MAX0x1b + +/* c configurations */ +#define AL_SERDES_TX_DEEMPH_C_ZERO_MAX_VAL 0x1b +#define AL_SERDES_TX_DEEMPH_C_ZERO_MIN_VAL 0 +#define AL_SERDES_TX_DEEMPH_C_ZERO_PRESET AL_SERDES_TX_DEEMPH_C_ZERO_MAX_VAL + +/* c(+1) configurations */ +#define AL_SERDES_TX_DEEMPH_C_PLUS_MAX_VAL 0x9 +#define AL_SERDES_TX_DEEMPH_C_PLUS_MIN_VAL 0 +#define AL_SERDES_TX_DEEMPH_C_PLUS_PRESET AL_SERDES_TX_DEEMPH_C_PLUS_MIN_VAL + +/* c(-1) configurations */ +#define AL_SERDES_TX_DEEMPH_C_MINUS_MAX_VAL0x6 +#define AL_SERDES_TX_DEEMPH_C_MINUS_MIN_VAL0 +#define AL_SERDES_TX_DEEMPH_C_MINUS_PRESET AL_SERDES_TX_DEEMPH_C_MINUS_MIN_VAL + +/* Rx equal total delay = MDELAY * TRIES */ +#define AL_SERDES_RX_EQUAL_MDELAY 10 +#define AL_SERDES_RX_EQUAL_TRIES 50 + +/* Rx eye calculation delay = MDELAY * TRIES */ +#define AL_SERDES_RX_EYE_CAL_MDELAY50 +#define AL_SERDES_RX_EYE_CAL_TRIES 70 + +#if (!defined(AL_SERDES_BASIC_SERVICES_ONLY)) || (AL_SERDES_BASIC_SERVICES_ONLY == 0) +#define AL_SRDS_ADV_SRVC(func) func +#else +static void al_serdes_hssp_stub_func(void) +{ + al_err("%s: not implemented service called!\n", __func__); +} + +#define AL_SRDS_ADV_SRVC(func) ((typeof(func) *)al_serdes_hssp_stub_func) +#endif + +/** + * SERDES core reg read + */ +static inline uint8_t al_serdes_grp_reg_read( + struct al_serdes_grp_obj*obj, + enum al_serdes_reg_page page, + enum al_serdes_reg_type type, + uint16_toffset); + +/** + * SERDES core reg write + */ +static inline void al_serdes_grp_reg_write( + struct al_serdes_grp_obj*obj, + enum al_serdes_reg_page page, + enum al_serdes_reg_type type, + uint16_toffset, + uint8_t data); + +/** + * SERDES core masked reg write + */ +static inline void al_serdes_grp_reg_masked_write( +
svn commit: r306016 - vendor-sys/alpine-hal/dist
Author: wma Date: Tue Sep 20 08:56:24 2016 New Revision: 306016 URL: https://svnweb.freebsd.org/changeset/base/306016 Log: Update Annapurna Alpine HAL alpine-hal SerDes file was omitted in the previous commit. Files added here. Added: vendor-sys/alpine-hal/dist/al_hal_serdes_hssp.c - copied unchanged from r306015, vendor-sys/alpine-hal/dist/al_hal_serdes.c Deleted: vendor-sys/alpine-hal/dist/al_hal_serdes.c Copied: vendor-sys/alpine-hal/dist/al_hal_serdes_hssp.c (from r306015, vendor-sys/alpine-hal/dist/al_hal_serdes.c) == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor-sys/alpine-hal/dist/al_hal_serdes_hssp.c Tue Sep 20 08:56:24 2016(r306016, copy of r306015, vendor-sys/alpine-hal/dist/al_hal_serdes.c) @@ -0,0 +1,3164 @@ +/*** +Copyright (C) 2015 Annapurna Labs Ltd. + +This file may be licensed under the terms of the Annapurna Labs Commercial +License Agreement. + +Alternatively, this file can be distributed under the terms of the GNU General +Public License V2 as published by the Free Software Foundation and can be +found at http://www.gnu.org/licenses/gpl-2.0.html + +Alternatively, redistribution and use in source and binary forms, with or +without modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in +the documentation and/or other materials provided with the +distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +***/ + +#include "al_hal_serdes_hssp.h" +#include "al_hal_serdes_hssp_regs.h" +#include "al_hal_serdes_hssp_internal_regs.h" + +#define SRDS_CORE_REG_ADDR(page, type, offset)\ + (((page) << 13) | ((type) << 12) | (offset)) + +/* Link Training configuration */ +#define AL_SERDES_TX_DEEMPH_SUM_MAX0x1b + +/* c configurations */ +#define AL_SERDES_TX_DEEMPH_C_ZERO_MAX_VAL 0x1b +#define AL_SERDES_TX_DEEMPH_C_ZERO_MIN_VAL 0 +#define AL_SERDES_TX_DEEMPH_C_ZERO_PRESET AL_SERDES_TX_DEEMPH_C_ZERO_MAX_VAL + +/* c(+1) configurations */ +#define AL_SERDES_TX_DEEMPH_C_PLUS_MAX_VAL 0x9 +#define AL_SERDES_TX_DEEMPH_C_PLUS_MIN_VAL 0 +#define AL_SERDES_TX_DEEMPH_C_PLUS_PRESET AL_SERDES_TX_DEEMPH_C_PLUS_MIN_VAL + +/* c(-1) configurations */ +#define AL_SERDES_TX_DEEMPH_C_MINUS_MAX_VAL0x6 +#define AL_SERDES_TX_DEEMPH_C_MINUS_MIN_VAL0 +#define AL_SERDES_TX_DEEMPH_C_MINUS_PRESET AL_SERDES_TX_DEEMPH_C_MINUS_MIN_VAL + +/* Rx equal total delay = MDELAY * TRIES */ +#define AL_SERDES_RX_EQUAL_MDELAY 10 +#define AL_SERDES_RX_EQUAL_TRIES 50 + +/* Rx eye calculation delay = MDELAY * TRIES */ +#define AL_SERDES_RX_EYE_CAL_MDELAY50 +#define AL_SERDES_RX_EYE_CAL_TRIES 70 + +#if (!defined(AL_SERDES_BASIC_SERVICES_ONLY)) || (AL_SERDES_BASIC_SERVICES_ONLY == 0) +#define AL_SRDS_ADV_SRVC(func) func +#else +static void al_serdes_hssp_stub_func(void) +{ + al_err("%s: not implemented service called!\n", __func__); +} + +#define AL_SRDS_ADV_SRVC(func) ((typeof(func) *)al_serdes_hssp_stub_func) +#endif + +/** + * SERDES core reg read + */ +static inline uint8_t al_serdes_grp_reg_read( + struct al_serdes_grp_obj*obj, + enum al_serdes_reg_page page, + enum al_serdes_reg_type type, + uint16_toffset); + +/** + * SERDES core reg write + */ +static inline void al_serdes_grp_reg_write( + struct al_serdes_grp_obj*obj, + enum al_serdes_reg_page page, + enum al_serdes_reg_type type, + uint16_toffset, + uint8_t data); + +/** + * SERDES core masked reg write + */ +static inline void al_serdes_grp_reg_masked_write( +
svn commit: r306015 - head/sys/dev/hyperv/storvsc
Author: sephe Date: Tue Sep 20 08:52:45 2016 New Revision: 306015 URL: https://svnweb.freebsd.org/changeset/base/306015 Log: hyperv/storvsc: Fix SRB length setting. This fixes disk discovery issue on WS2008R2 Hyper-V, which plagued us since 10.2-release. Reported by: many MFC after:3 days Sponsored by: Microsoft Modified: head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c Modified: head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c == --- head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.cTue Sep 20 05:45:18 2016(r306014) +++ head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.cTue Sep 20 08:52:45 2016(r306015) @@ -705,7 +705,8 @@ hv_storvsc_io_request(struct storvsc_sof vstor_packet->flags |= REQUEST_COMPLETION_FLAG; - vstor_packet->u.vm_srb.length = VSTOR_PKT_SIZE; + vstor_packet->u.vm_srb.length = + sizeof(struct vmscsi_req) - vmscsi_size_delta; vstor_packet->u.vm_srb.sense_info_len = sense_buffer_size; ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r306012 - head/etc/autofs
On Tue, 20 Sep 2016, Edward Tomasz Napierala wrote: On 0920T1653, Bruce Evans wrote: On Tue, 20 Sep 2016, Edward Tomasz Napierala wrote: Log: Fix -media to not mount ufs with "async"; it doesn't make sense when there is softupdates. It does make sense when there isn't soft updates. With soft updates, it is silently ignored. True. It might be possible to make special_media to check whether softdep is enabled using tunefs(8). But nothing is needed for soft updates, since it silently ignores being misconfigured with async. Not that I like this... However, I don't like changing the default. async gives less robustness and noatime breaks POSIX conformance. ... I also don't like noatime being silently ignored by file systems that don't support it, e.g., nfs. nfs just gives the noatime policy of the server without telling you what that policy is. I liked the previous defaults too, until I've started to use this more often. For things like SD cards, "sync" is just annoyingly slow. "sync" is too slow for everything, but the default is neither async or sync for any of ffs, msdosfs or extfs. The default (without soft updates) works OK only for large files since there are not many metadata updates then. I use async a lot, but rarely for removable backup media except for the first use, and noatime almost always, and type a lot of mount commands, mostly using shell history to retrieve nearly-correct options and then edit just to toggle ro/rw and async/noasync flags. Btw, /etc/autofs is in /etc for a reason - so that the system administrators can tweak it. The best tweaks are device-dependent and probably not well known. I don't have much hardware, but find that a USB3 disk drive works almost as well as a SATA drive and doesn't need async hacks, but a USB3 memory drive is almost as slow as USB2 memory drives and DVDs for writing. All of the latter have large write latency and probably large wear in the slow cases, and no file system in FreeBSD (except maybe nandfs) understands this. Clustering stops at 128K, but that is not large enough and only helps for individual files and never helps for metadata. Removable media tends to have dumber controllers that don't compensate for this. Bruce ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r306012 - head/etc/autofs
On 0920T1653, Bruce Evans wrote: > On Tue, 20 Sep 2016, Edward Tomasz Napierala wrote: > > > Log: > > Fix -media to not mount ufs with "async"; it doesn't make sense when > > there is softupdates. > > It does make sense when there isn't soft updates. With soft updates, it > is silently ignored. True. It might be possible to make special_media to check whether softdep is enabled using tunefs(8). > However, I don't like changing the default. async gives less robustness > and noatime breaks POSIX conformance. I liked the previous defaults too, until I've started to use this more often. For things like SD cards, "sync" is just annoyingly slow. > I use async a lot, but rarely for removable backup media except for the > first use, and noatime almost always, and type a lot of mount commands, > mostly using shell history to retrieve nearly-correct options and then > edit just to toggle ro/rw and async/noasync flags. Btw, /etc/autofs is in /etc for a reason - so that the system administrators can tweak it. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r306012 - head/etc/autofs
On Tue, 20 Sep 2016, Edward Tomasz Napierala wrote: Log: Fix -media to not mount ufs with "async"; it doesn't make sense when there is softupdates. It does make sense when there isn't soft updates. With soft updates, it is silently ignored. However, I don't like changing the default. async gives less robustness and noatime breaks POSIX conformance. I use async a lot, but rarely for removable backup media except for the first use, and noatime almost always, and type a lot of mount commands, mostly using shell history to retrieve nearly-correct options and then edit just to toggle ro/rw and async/noasync flags. Bruce ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r305971 - stable/11/lib/msun/src
On Mon, 19 Sep 2016, Ed Schouten wrote: 2016-09-19 14:34 GMT+02:00 Bruce Evans: +#if (LDBL_MANT_DIG == 53) +__weak_reference(fmod, fmodl); +#endif I've noticed that libm uses __weak_reference() all over the place, but I guess that in this specific case there is no reason to use them, right? Wouldn't it make more sense to use strong references here, so that they are consistent with other architectures? I just copied what das did here. Weak symbols are less portable in theory but more portable in practice: - the ifdefs depend on compiler support for __strong_reference() but not for __weak_reference - there was apparently no compiler support for __strong_reference() in icc, and it is still not defined if __INTEL_COMPILER (so the hundreds of other __INTEL_COMPILER ifdefs are nonsense, since __strong_reference() is now used all over the place) - __weak_reference() was implemented in FreeBSD in 1994 but __strong_reference() was not implemented until 2000 -- it is barely in FreeBSD-4 - however, it is __strong_reference() that requires less toolchain support. I think just asm() with ".globl" and ".equ" or ".set" would work for it. __weak_reference() needs the less portable ".weak" instead of ".globl". The compiler __alias__ attribute used to define __strong_reference() just generates these directives on x86, except clang spells ".equ" worse as "=" (it even rewrites ".equ" in the asm to "=") and also generates ".type", and gcc-4.2.1 generates ".set" instead of ".equ" (it doesn't rewrite the asm). - at least, with ELF. Old versions of FreeBSD including FreeBSD-3 have even uglier ifdefs for this involving AOUT. Apparently, a magic ".stab" was needed instead of ".weak". A magic ".stab" was also used for aliasing. Perhaps ".equ" was not powerful enough, and IIRC it indeed isn't in my aout implementation (IIRC it is not exported). In direct asm, it is not needed for mere aliases for functions since you can just duplicate labels as needed. The strong reference is also technically more correct in theory but less useful in practice. With non-broken (static) linkers, it gives an error if the user tries to replace the library function by his own function. An error is technically correct. But the user should be allowed to do this. Libraries should have only one API per object file, to allow the user to replace one function at a time (and to not bloat the linked executable with unused functions). libm mostly does this. However, for these aliases, it puts the alias in the same file as the main function for convenience. With strong aliases, this would prevent the user from replacing the alias without also replacing the main function. Compiler support for aliases gives mere aliases. It doesn't generate extra code like the kernel ALTENTRY() macros to disambiguate the aliases for -pg. Compilers should optionally also generate such code (or duplicate the function for small functions) for -g and -finstrument- functions (so that you can put a breakpoint in fmodl() without hitting in when you only call fmod() ...). ALTENTRY() and END() are perhaps not careful enough with ".type" and ".size" directives for the not-quite- alias. Compilers don't generate ".size" for the alias. Bruce ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r305998 - in head/usr.bin: cmp indent tr
On Mon, 19 Sep 2016, John Baldwin wrote: On Monday, September 19, 2016 01:45:01 PM Ngie Cooper wrote: On Sep 19, 2016, at 1:43 PM, Conrad E. Meyerwrote: Log: Move sys/capsicum.h includes after types.h or param.h This is not actually documented or even implied in style(9). Make the change to match convention. Someone should document this convention in style(9). Reported by: jhb Sponsored by: EMC Dell Isilon Uh??? yes it clearly states it in style(9). From https://www.freebsd.org/cgi/man.cgi?query=style=9 : Kernel include files (i.e. sys/*.h) come first; normally, include OR , but not both. includes , and it is okay to depend on that. It doesn't actually say that types.h/param.h has to come before other sys/*.h headers though. Normally sys/foo.h requires sys/types.h to compile hence the rule, but sys/capsicum.h gets around this by a nested include of sys/param.h (which is itself probably dubious). This and other nested includes make sys/capsicum.h of rmrf quality. It is now not so normal to require sys/types or sys/param.h first, since too many headers have been broken using nested includes. Only a few have correct fixes for pollution. Almost none have documentation for either their non-pollution or pollution, except possibly with directives like -D_POSIX_SOURCE (restrict to ~1988 POSIX.1) where the standard has such documentation and the standard is supported. E.g., cap_enter(2) only mentions a couple of symbols and no namespaces. Its SYNOPSIS uses the undocumented symbol u_int, and doesn't mention sys/types.h or _BSD_VISIBLE, so by knowing undocumented things we can tell that its #include of is either incomplete or that it has namespace pollution including at least u_int and probably all the undocumented symbols in sys/types.h, but that is just the start of the pollution. I do think we should explicitly add a note to style.9 though to say that types.h|param.h comes first. I use the following: X Index: style.9 X === X RCS file: /home/ncvs/src/share/man/man9/style.9,v X retrieving revision 1.110 X diff -u -2 -r1.110 style.9 X --- style.9 3 Jul 2004 18:29:24 - 1.110 X +++ style.9 7 Jul 2004 11:47:22 - X @@ -90,17 +130,22 @@ X .Ed X .Pp X -Leave another blank line before the header files. X +Leave one blank line before the header files. X .Pp X -Kernel include files (i.e.\& X +Kernel include files (i.e.,\& X .Pa sys/*.h ) X -come first; normally, include X -.In sys/types.h X -OR X -.In sys/param.h , X -but not both. X +come first; normally, X .In sys/types.h X +or X +.In sys/param.h X +will be needed before any others. X +.In sys/param.h X includes X +.In sys/types.h . X +Do not include both. X +Many headers, including X +.In sys/types.h , X +include X .In sys/cdefs.h , X -and it is okay to depend on that. X +and it is OK to depend on that. X .Bd -literal X #include /* Non-local includes in angle brackets. */ X @@ -116,12 +161,11 @@ X .Ed X .Pp X -Do not use files in X +Do not include files in X .Pa /usr/include X for files in the kernel. X .Pp X -Leave a blank line before the next group, the X -.Pa /usr/include X -files, X -which should be sorted alphabetically by name. X +Leave a blank line before the next group (XXX nah, all groups), X +the <*.h> include files. X +Sort the <*.h> include files (XXX nah, all groups) alphabetically. X .Bd -literal X #include X @@ -138,5 +182,6 @@ X .Ed X .Pp X -Leave another blank line before the user include files. X +Leave another blank line before the local include files. X +XXX nah, leave it before all groups. X .Bd -literal X #include "pathnames.h" /* Local includes in double quotes. */ Bruce___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"