Created attachment 195760 [details]
I have smartpqi storage driver inbox with FreeBSD 12.0 Current. I am trying to create a logical volume (RAID0 or RAID1) with the drives attached to the samrtpqi controller. As i tried to create a logical volume the kernel panic is happening.
I am not able to see the issue on FreeBSD 11.2 smartpqi inbox driver. Also i executed same test of creating logical volume with samrtpqi inbox source on FreeBSD 11.0 Release & 11.1 Release. And i am able to create logical volumes successfully.
It looks like issue is only reproducible with FreeBSD 12.0 current. With other FreeBSD version it is working fine.
Pleas find the attached crash dump for detail.
This assertion is present in 11 and was added in r291074, but KASSERT()s are only compiled in with INVARIANTS enabled.
By default, CURRENT images are build with INVARIANTS enabled.
Release images like 11.1 are built with INVARIANTS *disabled*.
Probably the same panic and driver bug exists in 11, if you rebuilt the kernel with INVARIANTS.
The only significant driver difference between stable/11 (or releng/11.2) and CURRENT is r336201 ("update to release 3"), which you provided.