From owner-freebsd-current@freebsd.org Mon Jun 15 17:47:05 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 65F9333B235 for ; Mon, 15 Jun 2020 17:47:05 +0000 (UTC) (envelope-from SRS0=j+G0yf=74=codenetworks.net=sm@eigbox.net) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49lzL073LQz40BY for ; Mon, 15 Jun 2020 17:47:04 +0000 (UTC) (envelope-from SRS0=j+G0yf=74=codenetworks.net=sm@eigbox.net) Received: by mailman.nyi.freebsd.org (Postfix) id F052633B0BA; Mon, 15 Jun 2020 17:47:04 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F009033B234 for ; Mon, 15 Jun 2020 17:47:04 +0000 (UTC) (envelope-from SRS0=j+G0yf=74=codenetworks.net=sm@eigbox.net) Received: from bosmailout01.eigbox.net (bosmailout01.eigbox.net [66.96.189.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49lzKz5fTYz401N; Mon, 15 Jun 2020 17:47:03 +0000 (UTC) (envelope-from SRS0=j+G0yf=74=codenetworks.net=sm@eigbox.net) Received: from bosmailscan04.eigbox.net ([10.20.15.4]) by bosmailout01.eigbox.net with esmtp (Exim) id 1jktCI-0004CO-Up; Mon, 15 Jun 2020 13:47:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codenetworks.net; s=dkim; h=Sender:Content-Type:In-Reply-To:MIME-Version: Date:Message-ID:From:References:Cc:To:Subject:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=UJswl/DwJpJaicFtkg9dIe65VPM+fWJ604fztMRrheo=; b=kKWjjbprZ9kJVbqYcer19SUks 1gacz1dI/SNYD78VTjYuM8utExYGArdRpVzUnZd+5zfmQpr3M+JvTGWTVv4ObN+Qm68Ul+VWmOsJi D9Ke/lwrVyv4QKBoDrjOPRIYEQ/PLIuYvJulgElbWKwAx04hFA1gXIt1MGDAKHmvra2h4ZQ1ptC2B ixJE+7Ugez3mm0K3JRL8E8llRCfhfe/sXZ10ch7aiDqYOTfYW4fMKu/slSanPKqvg9bdpXJBw9IBa /iqJoAM44R4flIY1Nr2sXcZwcXgdjbCQ1Y7mTnlOxOd5lZTiJUgO8FS8ZFR9ko4hOiYsEQfzQffsm sqcNZ9Ytw==; Received: from [10.115.3.32] (helo=bosimpout12) by bosmailscan04.eigbox.net with esmtp (Exim) id 1jktCI-0002op-QC; Mon, 15 Jun 2020 13:47:02 -0400 Received: from bosauthsmtp12.yourhostingaccount.com ([10.20.18.12]) by bosimpout12 with id rVmz2200R0FdZ9W01Vn2Sr; Mon, 15 Jun 2020 13:47:02 -0400 X-Authority-Analysis: v=2.2 cv=KNQqNBNo c=1 sm=1 tr=0 a=wx0GOVZTcu8EuaXTIXj3VQ==:117 a=kkwQLKMA1cIZLGAtbCrT4w==:17 a=nTHF0DUjJn0A:10 a=zXyMKnP1Z5YA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=jlvWEfeLAAAA:8 a=Q-fNiiVtAAAA:8 a=6I5d2MoRAAAA:8 a=Mr1XnJQWAAAA:8 a=RqpxR_Uu6BmmPebR-JUA:9 a=6PsYHdNlhsdy9nig:21 a=fPAz4z-ZbvD6C7PK:21 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=NYoH4pcVmjYOLUs8VH8A:9 a=UYAltOaibo_vuw7v:21 a=KmWLlvzAYEEKpzbG:21 a=7w6pQmUjtCewf1kY:21 a=UiCQ7L4-1S4A:10 a=hTZeC7Yk6K0A:10 a=frz4AuCg-hUA:10 a=_W_S_7VecoQA:10 a=BUduvz6nQKmfCEOu4uBS:22 a=Fp8MccfUoT0GBdDC_Lng:22 a=IjZwj45LgO3ly-622nXo:22 a=x1WslF1p1lK7vEzEGcse:22 Received: from cpc96142-rdng26-2-0-cust93.15-3.cable.virginm.net ([80.5.170.94]:22203 helo=[192.168.0.100]) by bosauthsmtp12.eigbox.net with esmtpa (Exim) id 1jktCE-0000SO-W7; Mon, 15 Jun 2020 13:46:59 -0400 Subject: Re: MRSAS Panic during Install. To: Kashyap Desai , Don Lewis , Andriy Gapon Cc: FreeBSD Current , "Kashyap D. Desai" , "Kenneth D. Merry" , Sumit Saxena , Chandrakanth Patil References: <99447152-0340-11dd-fb75-a745d2ee5a6a@codenetworks.net> <0fa770fc-4fbc-cd1f-e8cc-30c74b37b71b@codenetworks.net> <3b0d4cec-69bd-0516-77e8-574678b6bd36@FreeBSD.org> <692229ea-ceb5-9e0d-e12e-2999ecb69297@codenetworks.net> <165ad464ab307e604a992dc59df40853@mail.gmail.com> <28f0a9f2-3f00-0167-bb5d-eab7d66ff813@codenetworks.net> <75ff0cfe-e516-a10a-abc5-7e1eb708c87f@codenetworks.net> <51abdead-b727-c3e3-b6a9-dfaaf400a6d8@codenetworks.net> <37c9656e67b7479933a6b66e61d46e90@mail.gmail.com> From: Santiago Martinez Message-ID: <9f2eeda1-528b-539a-40b6-c6c712facdf3@codenetworks.net> Date: Mon, 15 Jun 2020 18:46:48 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <37c9656e67b7479933a6b66e61d46e90@mail.gmail.com> Content-Language: en-US X-EN-UserInfo: d3bdfab0736480cedf04ed92aaea2ef5:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: sm@codenetworks.net Sender: Santiago Martinez X-EN-OrigIP: 80.5.170.94 X-EN-OrigHost: cpc96142-rdng26-2-0-cust93.15-3.cable.virginm.net X-Rspamd-Queue-Id: 49lzKz5fTYz401N X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none (invalid DKIM record) header.d=codenetworks.net header.s=dkim header.b=kKWjjbpr; dmarc=none; spf=pass (mx1.freebsd.org: domain of SRS0=j@eigbox.net designates 66.96.189.1 as permitted sender) smtp.mailfrom=SRS0=j@eigbox.net X-Spamd-Result: default: False [-2.92 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.96.128.0/18]; NEURAL_HAM_LONG(-1.01)[-1.012]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[codenetworks.net: no valid DMARC record]; NEURAL_HAM_MEDIUM(-0.98)[-0.979]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[codenetworks.net:~]; NEURAL_HAM_SHORT(-0.93)[-0.934]; RCPT_COUNT_SEVEN(0.00)[8]; RCVD_IN_DNSWL_NONE(0.00)[66.96.189.1:from]; R_DKIM_PERMFAIL(0.00)[codenetworks.net:s=dkim]; FORGED_SENDER(0.30)[sm@codenetworks.net,SRS0=j@eigbox.net]; RWL_MAILSPIKE_POSSIBLE(0.00)[66.96.189.1:from]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:29873, ipnet:66.96.128.0/18, country:US]; TAGGED_FROM(0.00)[G0yf=74=codenetworks.net=sm]; FROM_NEQ_ENVFROM(0.00)[sm@codenetworks.net,SRS0=j@eigbox.net] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 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: Mon, 15 Jun 2020 17:47:05 -0000 Hi guys, sorry for the radio silence, I did a fresh install today to apply the patch, and by mistake i changed from UEFI to BIOS (legacy), now I'm not able to replicate the panic any more (without applying the patch). Do you think is related, I mean does it make sense to you? Im planning to re install tonight with UEFI to see if i can hit it again. SAnti On 2020-06-12 06:30, Kashyap Desai wrote: > > Screenshot of final error is good enough at least for now. Additional > logs will be good if you can provide. > > Kashyap > > *From:*Santiago Martinez [mailto:sm@codenetworks.net > ] > *Sent:* Thursday, June 11, 2020 8:49 PM > *To:* Kashyap Desai >; Don Lewis >; Andriy Gapon > > *Cc:* FreeBSD Current >; Kashyap D. Desai >; Kenneth D. Merry >; Sumit Saxena >; Chandrakanth Patil > > > *Subject:* Re: MRSAS Panic during Install. > > Hi Everyone,  i haven't forget about this.... yet :) > > I perform the following test in preparation to apply the patch: > > 1. Installed 12.1 stable with one disc in raid0, no issues (did this > so i can apply patch and don't have to build a new bootable image). > 2. with 12.1 added second raid, in this case RAID1 and it crashed. > during foot complain about wrong/corrupt partition table > > Repeated the same test with current with exactly the same results ( I > also hit another issues on mlx5en that crashed with current, will > follow after we can sort this out) > > Today I'm planning to apply the patch and see what happens. > > Have some question: > > * Do you want me to record the booting/error for each case and make > it available? > * Do you want access to the box? > > Best regards. > > Santiago > > On 2020-06-09 22:43, Santiago Martinez wrote: > > Hi there, apologies for the delayed response. > > Regarding the lock reversal, I can try to capture the screen > showing the message. > > The "Wil check go it goes...." it was my brain trying to > multitask, obviously not in a successful way. What I meant to say > was "I will check how it goes..... without the RAID". > > Sure, I will test with the patch and let you know asap. hopefully > by tomorrow night(BST). > > Cheers > > Santi > > > On 2020-06-09 19:20, Kashyap Desai wrote: > > -----Original Message----- > From: Santiago Martinez [mailto:sm@codenetworks.net] > Sent: Tuesday, June 9, 2020 11:27 PM > To: Kashyap Desai > ; Don Lewis > ; > Andriy Gapon > Cc: FreeBSD Current > ; Kashyap D. Desai > ; > Kenneth D. Merry > ; Sumit Saxena > > ; Chandrakanth Patil > > > Subject: Re: MRSAS Panic during Install. > > Hi! so it works but i got a lock order reversal warning, > but it continue. > > OK. So what is a warning ? > > > Wil check go it goes.... > > Could not get your point. Can you elaborate ? > > > Also can you try Raid - 1 VD with below patch ? > > diff --git a/mrsas.c b/mrsas.c > index 3d33073..60f4b4d 100755 > --- a/mrsas.c > +++ b/mrsas.c > @@ -1744,11 +1744,14 @@ mrsas_complete_cmd(struct mrsas_softc > *sc, u_int32_t > MSIxIndex) > data_length = > r1_cmd->io_request->DataLength; > sense = > r1_cmd->sense; >                                                  } > + > + mtx_lock(&sc->sim_lock); > r1_cmd->ccb_ptr = NULL; >                                                  if > (r1_cmd->callout_owner) { > > callout_stop(&r1_cmd->cm_callout); > r1_cmd->callout_owner > = false; >                                                  } > + mtx_unlock(&sc->sim_lock); > mrsas_release_mpt_cmd(r1_cmd); > > mrsas_map_mpt_cmd_status(cmd_mpt, > cmd_mpt->ccb_ptr, status, > extStatus, > data_length, sense); > > > > > Santi > > On 2020-06-09 11:13, Santiago Martinez wrote: > > Trying right now, will let you know..... > > > On 2020-06-09 11:07, Kashyap Desai wrote: > > Hi Santi - Please try without Raid-1 VD. Most > likely you will not > observe issue, but you can confirm from your end. > > Kashyap > > > -----Original Message----- > From: Santiago Martinez > [mailto:sm@codenetworks.net] > Sent: Tuesday, June 9, 2020 2:08 PM > To: Don Lewis > ; Andriy Gapon > > > > Cc: FreeBSD Current > ; Kashyap D. Desai > > ; Kenneth D. Merry > > Subject: Re: MRSAS Panic during Install. > > Hi Kashayp, that's correct, the servers has > two raids. A raid 1 VD0 > with 2xSSD on it and a RAID5 VD0. > > Do you want me to break the raid and see i it > does not trigger the > bug? > > cheers > > Santi > > > On 2020-06-09 07:51, Don Lewis wrote: > > On  9 Jun, Andriy Gapon wrote: > > On 09/06/2020 03:42, Santiago Martinez > wrote: > > Hi Everyone, today I tested with > 12.1 and it works without any > issues (at least for now). > > I will sync against current and > see if it fails. > > Santiago > > On 2020-06-08 17:41, Santiago > Martinez wrote: > > Hi there, tried again and now > i got it with UFS also.. that > make > sense.. > > right... > > On 2020-06-08 15:20, Santiago > Martinez wrote: > > Hi Everyone, > > I'm installing FreeBSD > current(361567) snapshot > on a Lenovo > SR655 > > server. > > After selecting ZFS, and > the installer tries to > make the > partitions, etc I get the > following panic. > > I tried selecting UFS and > its works. > > I uploaded a screenshot as > I only have KVM access to it: > > https://0bin.net/paste/4yn33GkSKiYto6m4#h78yCE6h80- > > > 3DsApbXa1XLW9+b > > hoKhOr3MVS+NRgA5A > > > The server is a > ThinkSystem SR655, with > the following > controller, RAID 930-8i > 2GB Flash PCIe 12Gb Adapter > > Lousy OCR of the picture: > ... > nic: nutex mrsas_sin_lock not ouned at > /usr/src/sys/kern/kern_nutex.c:284 > ... > b_trace_self_urapper () at > db_trace_self_urapper+8x2b/frane > BxfffffeB33c44a918 > anic() at vpanic+Bx182/frane > BxfffffeA33c44ad68 > nic() at panic+Bx43/frame > BxfffffeB33c44adcd > _mtx_assert() at > __mtx_assert+@xb@/frane > Bxfffffed33c44a9dd > callout_stop_safe() at > _callout_stop_safe+Bx82/frane > Bxfffffe33c44aac > rsas_conplete_cnd() at > mrsas_complete_cnd+8x1b8/frane > BxfffffeB33c4daaed > ithread_loop() at > ithread_loop+@x279/frame > BxfffffeB33c44ah78 > > This looks like a fallout from r342064. > cm_callout is initialized like this: > callout_init_mtx(&cmd->cm_callout, > &sc->sim_lock, 0); but in > mrsas_complete_cmd() it's stopped > without holding the lock. > > _______________________________________________ > > freebsd-current@freebsd.org > > mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to > "freebsd-current- > > unsubscribe@freebsd.org > " > > _______________________________________________ > freebsd-current@freebsd.org > mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-current@freebsd.org > mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" > >