Re: pmspcv panic on boot on this box

From: Larry Rosenman <ler_at_lerctr.org>
Date: Thu, 30 Jul 2015 15:09:30 -0500
$ sudo -s
Password:
# cd /usr/src
# patch -p0 < ~ler/pmspcv.diff
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: sys/dev/pms/freebsd/driver/common/lxutil.c
|===================================================================
|--- sys/dev/pms/freebsd/driver/common/lxutil.c	(revision 286083)
|+++ sys/dev/pms/freebsd/driver/common/lxutil.c	(working copy)
--------------------------
Patching file sys/dev/pms/freebsd/driver/common/lxutil.c using Plan A...
Hunk #1 failed at 758.
Hunk #2 failed at 767.
2 out of 2 hunks failed--saving rejects to 
sys/dev/pms/freebsd/driver/common/lxutil.c.rej
done
# vi sys/dev/pms/freebsd/driver/common/lxutil.c.rej
_at__at_ -758,6 +758,7 _at__at_
    int idx;^M
    static U32 cardMap[4] = { 0, 0, 0, 0 };^M
    u_int16_t agtiapi_dev; // PCI device ID^M
+  u_int16_t agtiapi_vendor; // PCI vendor ID^M
    AGTIAPI_PRINTK("agtiapi_ProbeCard: start\n");^M
  ^M
    if ( ! atomic_cmpset_32( &cardMap[thisCard], 0, 5 ) ) { // card 
already ran^M
_at__at_ -766,10 +767,12 _at__at_
    }^M
    else {^M
      agtiapi_dev = pci_get_device( dev ); // get PCI device ID^M
+    agtiapi_vendor = pci_get_vendor( dev ); // get PCI vendor ID^M
      for( idx = 0; idx < COUNT(ag_card_type); idx++ ) ^M
      {^M
-      if( ag_card_type[idx].deviceId == agtiapi_dev ) ^M
-      { // device ID match^M
+      if( ag_card_type[idx].deviceId == agtiapi_dev &&^M
+          ag_card_type[idx].vendorId == agtiapi_vendor ) ^M
+      { // device and vendor IDs match^M
          memset( (void *)&agCardInfoList[ thisCard ], 0,^M
                  sizeof(ag_card_info_t) );^M
          thisCardInst->cardIdIndex = idx;^M
~
:q
#

Not good :(


On 2015-07-30 15:05, Benno Rice wrote:
> Can you try the attached patch and let me know if it fixes the issue?
> 
> Many thanks,
> 	Benno.
> 
> 
> 
> 
>> On Jul 30, 2015, at 11:55 AM, Benno Rice <benno_at_freebsd.org> wrote:
>> 
>> Hi Larry,
>> 
>> I’ve brought this to the attention of PMC Sierra and we’re pretty sure 
>> we’ve worked out what the problem is. I’m just waiting on their review 
>> of the fix I’ve suggested.
>> 
>> Sorry this has caused you problems.
>> 
>> Many apologies,
>> 	Benno.
>> 
>>> On Jul 28, 2015, at 2:01 PM, Larry Rosenman <ler_at_lerctr.org> wrote:
>>> 
>>> When I upgraded an approximately 3 month old -CURRENT system to 
>>> yesterday, I
>>> got page not present panics, after a message about pmspcv not 
>>> supporting
>>> my ahd(4) deviceid.
>>> 
>>> I did NOT capture the panic, but adding
>>> 
>>> nodevice	pmspcv
>>> 
>>> Allowed me to boot.
>>> 
>>> Dmesg.boot from the WORKING system attached.
>>> 
>>> I *CAN* work with someone if they want.
>>> 
>>> 
>>> <dmesg.boot>_______________________________________________
>>> freebsd-current_at_freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>>> To unsubscribe, send any mail to 
>>> "freebsd-current-unsubscribe_at_freebsd.org"
>> 
>> _______________________________________________
>> freebsd-current_at_freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to 
>> "freebsd-current-unsubscribe_at_freebsd.org"
> 
> 
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to 
> "freebsd-current-unsubscribe_at_freebsd.org"

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler_at_lerctr.org
US Mail: 7011 W Parmer Ln, Apt 1115, Austin, TX 78729-6961
Received on Thu Jul 30 2015 - 18:09:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:58 UTC