PCI express hotplug in FreeBSD11.2 VM

2019-05-23 Thread Bennett, Ciunas
Hi,

I am working on a driver for a PCI express device.
And have been trying to get hotplug feature working on a FreeBSD 11.2 VM using 
both PFs and VFs. (host is Fedora 26)
But I am having many issues in relation to this.

I am encountering issues with both scenarios,

For PF ->

1.  Create a VM with FreeBSD11.2

2.  Attach 1PF to the guest

  1.  Issue 'devctl rescan pci0' - Scans the PCI bus and the device becomes 
visible in the guest.

4.  Install driver, at some point of loading the driver/bringing up the pci 
device



-- Error = kernel panics and reboots. --

FOR VF ->

1.  Create a VM with FreeBSD11.2

  1.  Attach 1VF to the guest
  2.  Issue 'devctl rescan pci0' - Scans the PCI bus and the device becomes 
visible in the guest.
  3.  Detach the device from the guest.
  4.  Issue 'devctl rescan pci0'
-- Error = Expecting VF should be removed from the guest but it is not --
Is the support in FreeBSD at a stage where we should not be using hotplug 
feature?
Could someone give me a better idea of the support that is in FreeBSD for 
hotplug.
The documentation is very limited.
Thank you.

Ciunas Bennett
Dromore House,
East Park, Shannon,
Co. Clare,
V14 AN23,
Ireland

[Untitled]

--
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263


This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


carp can't delete address

2019-05-23 Thread Stefan Bethke
I’ve just set up carp (for the first time) and it seems the virtual address is 
not being removed on the backup host:

May 23 20:55:09 xxx kernel: carp: 1@igb0: INIT -> BACKUP (initialization 
complete)
May 23 20:55:12 xxx kernel: carp: 1@igb0: BACKUP -> MASTER (master timed out)
May 23 20:56:33 xxx kernel: carp: 1@igb0: MASTER -> BACKUP (more frequent 
advertisement received)
May 23 20:56:33 xxx kernel: igb0: deletion failed: 3

ifconfig shows the address as active:
# ifconfig igb0
igb0: flags=8943 metric 0 mtu 
1500

options=e527bb
ether ac:1f:6b:12:34:56
inet 212.12.xxx.xxx/24 broadcast 212.12.xxx.xxx 
inet 212.12.xxx.yyy/32 broadcast 212.12.xxx.yyy vhid 1 
inet6 fe80::ae1f:6bff:...%igb0/64 scopeid 0x1 
carp: BACKUP vhid 1 advbase 1 advskew 200
media: Ethernet autoselect (1000baseT )
status: active
nd6 options=21

Is there a configuration I can/need to adjust?

uname -a
FreeBSD foo.example.com 12.0-STABLE FreeBSD 12.0-STABLE r344052 EISENBOOT  amd64



Stefan

-- 
Stefan BethkeFon +49 151 14070811

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


FreeBSD CI Weekly Report 2019-05-19

2019-05-23 Thread Li-Wen Hsu
(bcc -current and -stable for more audience)

FreeBSD CI Weekly Report 2019-05-19
===

Here is a summary of the FreeBSD Continuous Integration results for
the period from 2019-05-13 to 2019-05-19.

During this period, we have:

* 1845 builds (97% passed, 3% failed) were executed on aarch64, amd64,
armv6, armv7, i386, mips, mips64, powerpc, powerpc64, powerpcspe,
riscv64, sparc64 architectures for head, stable/12, stable/11
branches.
* test runs (58.7% passed, 19.6% unstable, 21.7% exception) were
executed on amd64, i386, riscv64 architectures for head, stable/12,
stable/11 branches.
* 20 doc builds (95% passed)

Note: there was a updating of ci.freebsd.org system and resulted some
(less than 10) failures.

(The statistics from experimental jobs are omitted)

If any of the issues found by CI are in your area of interest or
expertise please investigate the PRs listed below.

The latest web version of this report is available at
https://hackmd.io/s/SJIjkSeaE and archive is available at
http://hackfoldr.org/freebsd-ci-report/, any help is welcome.

## Failing Tests

* https://ci.freebsd.org/job/FreeBSD-head-amd64-test/
* 
https://ci.freebsd.org/job/FreeBSD-head-amd64-test/11251/testReport/junit/lib.libarchive/functional_test/test_read_format_zip_utf8_paths/
  Fixed in https://svnweb.freebsd.org/changeset/base/347999

* https://ci.freebsd.org/job/FreeBSD-head-i386-test/
i386 test is current suffering from loading ipsec(4) kernel
module, which is needed after
https://svnweb.freebsd.org/changeset/base/347410 ,  causes kernel
panic.
For more information, see:
* https://bugs.freebsd.org/238012
* https://bugs.freebsd.org/230857
* https://reviews.freebsd.org/D17512

* https://ci.freebsd.org/job/FreeBSD-stable-12-i386-test/
* sys.netpfil.pf.forward.v6
* sys.netpfil.pf.forward.v4
* sys.netpfil.pf.set_tos.v4
* lib.libc.regex.exhaust_test.regcomp_too_big
* lib.libregex.exhaust_test.regcomp_too_big

* https://ci.freebsd.org/job/FreeBSD-stable-11-i386-test/
* local.kyua.* (31 cases)
* local.lutok.* (3 cases)

## Failing and Flaky Tests (from experimental jobs)

* https://ci.freebsd.org/job/FreeBSD-head-amd64-test_zfs/
There are ~60 failing cases, including flakey ones, see
https://ci.freebsd.org/job/FreeBSD-head-amd64-test_zfs/lastCompletedBuild/testReport/
for more details

* https://ci.freebsd.org/job/FreeBSD-head-amd64-dtrace_test/
* Flakey test case: common.misc.t_dtrace_contrib.tst_dynopt_d
  https://bugs.freebsd.org/237641

## Disabled Tests

* lib.libc.sys.mmap_test.mmap_truncate_signal
  https://bugs.freebsd.org/211924
* sys.fs.tmpfs.mount_test.large
  https://bugs.freebsd.org/212862
* sys.fs.tmpfs.link_test.kqueue
  https://bugs.freebsd.org/213662
* sys.kqueue.libkqueue.kqueue_test.main
  https://bugs.freebsd.org/233586
* usr.bin.procstat.procstat_test.command_line_arguments
  https://bugs.freebsd.org/233587
* usr.bin.procstat.procstat_test.environment
  https://bugs.freebsd.org/233588

## Open Issues

* https://bugs.freebsd.org/237077 possible race in build:
/usr/src/sys/amd64/linux/linux_support.s:38:2: error: expected
relocatable expression
* https://bugs.freebsd.org/237403 Tests in sys/opencrypto should be
converted to Python3
* https://bugs.freebsd.org/237641 Flakey test case:
common.misc.t_dtrace_contrib.tst_dynopt_d
* https://bugs.freebsd.org/237652
tests.hotspare.hotspare_test.hotspare_snapshot_001_pos timeout since
somewhere in (r346814, r 346845]
* https://bugs.freebsd.org/237655 Non-deterministic panic when running
pf tests in interface ioctl code (NULL passed to strncmp)
* https://bugs.freebsd.org/237656 "Freed UMA keg (rtentry) was not
empty (18 items). Lost 1 pages of memory." seen when running
sys/netipsec tests
* https://bugs.freebsd.org/237657
sys.kern.pdeathsig.signal_delivered_ptrace timing out periodically on
i386

### Cause build fails

* [233735: Possible build race: genoffset.o /usr/src/sys/sys/types.h:
error: machine/endian.h: No such file or
directory](https://bugs.freebsd.org/233735)
* [233769: Possible build race: ld: error: unable to find library
-lgcc_s](https://bugs.freebsd.org/233769)

### Others
[Tickets related to testing@](https://preview.tinyurl.com/y9maauwg)

## Other news
* https://issues.tmatesoft.com/issue/SVNKIT-740
  The patch is asked to be updated and help wanted.

* https://bugs.freebsd.org/235356
  Help on how to reproduce and analyze is wanted.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"