From nobody Thu May 23 13:19:55 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VlTLP2zlkz5LjBH for ; Thu, 23 May 2024 13:20:13 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Received: from plan-b.pwste.edu.pl (plan-b.pwste.edu.pl [IPv6:2001:678:618::40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "plan-b.pwste.edu.pl", Issuer "GEANT OV RSA CA 4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VlTLM4Hxnz4DR6 for ; Thu, 23 May 2024 13:20:11 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=plan-b.pwste.edu.pl header.s=plan-b-mailer header.b="zSu54p/d"; dmarc=pass (policy=quarantine) header.from=plan-b.pwste.edu.pl; spf=pass (mx1.freebsd.org: domain of zarychtam@plan-b.pwste.edu.pl designates 2001:678:618::40 as permitted sender) smtp.mailfrom=zarychtam@plan-b.pwste.edu.pl Received: from plan-b.pwste.edu.pl (zarychtam@localhost [127.0.0.1]) by plan-b.pwste.edu.pl (8.18.1/8.17.2) with ESMTPS id 44NDJxPQ004158 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 23 May 2024 15:19:59 +0200 (CEST) (envelope-from zarychtam@plan-b.pwste.edu.pl) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=plan-b.pwste.edu.pl; s=plan-b-mailer; t=1716470400; bh=TbFBcJbST79chQ404KQUT4l9LcS0lYuNL6Db/OGfmz8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=zSu54p/dbZe728EIS4tyyL47nWsxnHALYqneFx7YR4SDy+VD5xKg1FzTT4tIE1fRT qr6j9hyqN6WUL5j9X9pZnXWfjyVCCU1O3jGEzufta/8TF7DO/eGkfnAnFdD0lbVySz F+ZnnkD/PEFM+el1V3r6lGkZXkDF5673UOPpsT9Kg9rmTlD7gZk54C5fsek7odIbgu 8FO6FZicA04PowO0HjsKMumv+AYxAZ2saJOEFrWEXHTY0QldJnt3jYOhv1LrpZKiMF /iM31JM9rWnbSrV1t6sDsBfLeolnoDtGuPLcxCefriu9Bmz926g3TfL9ECjBZLvh69 03nCuOisEjs5A== Received: (from zarychtam@localhost) by plan-b.pwste.edu.pl (8.18.1/8.18.1/Submit) id 44NDJwXS004152; Thu, 23 May 2024 15:19:58 +0200 (CEST) (envelope-from zarychtam) Date: Thu, 23 May 2024 15:19:55 +0200 From: Marek Zarychta To: Peter Eriksson Cc: FreeBSD Hackers Subject: Re: Trying to understand CAM (and the cciss driver) Message-ID: References: <087AB4C4-9CE0-4024-8E1B-4C636014C8CC@lysator.liu.se> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <087AB4C4-9CE0-4024-8E1B-4C636014C8CC@lysator.liu.se> X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[plan-b.pwste.edu.pl,quarantine]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[plan-b.pwste.edu.pl:s=plan-b-mailer]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:206006, ipnet:2001:678:618::/48, country:PL]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_TWO(0.00)[2]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[plan-b.pwste.edu.pl:+] X-Rspamd-Queue-Id: 4VlTLM4Hxnz4DR6 Dnia Thu, May 09, 2024 at 07:58:32PM +0200, Peter Eriksson napisa=C5=82(a): > Hi, >=20 > I=E2=80=99m trying to fix a bug in the cciss driver that has been there = =E2=80=9Cforever=E2=80=9D when using it with an HP H241 SAS HBA card.=20 > The driver works fine when all (SAS, spinning rust) drives are behaving w= ell, but when some of them are starting to go bad it often goes into spin a= nd either hangs the kernel or panics. I=E2=80=99ve been trying to add instr= umentation to it in order to pin-point the problem and have been attempting= some workarounds (like clearing cr_complete since without that hack someti= me the driver get many many non-busy repeated requests with the same =E2=80= =9Ctag=E2=80=9D and then It panics with:=20 (...) >=20 > - Any suggestions? (Probably not but I thought I=E2=80=99d ask anyway :-) >=20 Hello Peter, I have no suggestion but a question. Does the panic happen with https://reviews.freebsd.org/D25155 applied ? I am using your patch from this review with a few drives. It's handy and still builds fine on 15-CURRENT. Cheers =20 --=20 Marek Zarychta