From owner-freebsd-current@freebsd.org Thu Jul 30 20:09:32 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 518319ACB2F; Thu, 30 Jul 2015 20:09:32 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [IPv6:2001:470:1f0f:3ad:223:7dff:fe9e:6e8a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "thebighonker.lerctr.org", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C3700699; Thu, 30 Jul 2015 20:09:31 +0000 (UTC) (envelope-from ler@lerctr.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=lerami; h=Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version; bh=IekTOndkPBCSkvvfb4LGTKtgfPmk3TNzNuffyjcAvD8=; b=Om3SqQj3Yj4MtMKUv6i7gs0r0NECqRNYPR6e4z/B9P3FyFECSF6nBsQxh0I6J2bxDJwADWjOL90BOSSScT1gUtt6yX3t5TDgCHwD6opyhhlYgqbnnZD8kwvOmXXg/+YUg0IEcqeCcYypzHSYGu+kNbetOMNWB3MkINP73bmVMuI=; Received: from thebighonker.lerctr.org ([2001:470:1f0f:3ad:223:7dff:fe9e:6e8a]:39215 helo=webmail.lerctr.org) by thebighonker.lerctr.org with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.85 (FreeBSD)) (envelope-from ) id 1ZKu8w-0000kO-UT; Thu, 30 Jul 2015 15:09:31 -0500 Received: from cpe-70-113-56-244.austin.res.rr.com ([70.113.56.244]) by webmail.lerctr.org with HTTP (HTTP/1.1 POST); Thu, 30 Jul 2015 15:09:30 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 30 Jul 2015 15:09:30 -0500 From: Larry Rosenman To: Benno Rice Cc: freebsd-current@freebsd.org, owner-freebsd-current@freebsd.org Subject: Re: pmspcv panic on boot on this box In-Reply-To: <765D2BB8-F101-4D8C-BF1D-BB896904FB29@FreeBSD.org> References: <20150728210109.GA6424@oldtbh.lerctr.org> <04E640B9-423C-4C30-BF90-D3DD148C930D@FreeBSD.org> <765D2BB8-F101-4D8C-BF1D-BB896904FB29@FreeBSD.org> Message-ID: X-Sender: ler@lerctr.org User-Agent: Roundcube Webmail/1.1.2 X-Spam-Score: -1.0 (-) X-LERCTR-Spam-Score: -1.0 (-) X-Spam-Report: SpamScore (-1.0/5.0) ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 X-LERCTR-Spam-Report: SpamScore (-1.0/5.0) ALL_TRUSTED=-1, SHORTCIRCUIT=-0.0001 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jul 2015 20:09:32 -0000 $ 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 @@ -758,6 +758,7 @@ 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 @@ -766,10 +767,12 @@ }^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 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 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. >>> >>> >>> _______________________________________________ >>> freebsd-current@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-current >>> To unsubscribe, send any mail to >>> "freebsd-current-unsubscribe@freebsd.org" >> >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to >> "freebsd-current-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 E-Mail: ler@lerctr.org US Mail: 7011 W Parmer Ln, Apt 1115, Austin, TX 78729-6961