Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1407122pxb; Fri, 27 Aug 2021 08:12:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgt6B4YaMwY9YXJq+NEuxPYQdVLRbXdtbEZ2EQs96USw05o1/m21Jo2kcIq80sjsm4RmCo X-Received: by 2002:a5e:a601:: with SMTP id q1mr7882910ioi.51.1630077166254; Fri, 27 Aug 2021 08:12:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630077166; cv=none; d=google.com; s=arc-20160816; b=CZygAPDuhjuVh6Nt6knI7N2BYP0sFovFcyrGn2uqnGmgRse0pdBL+zd4ChKMsg9Dql 7uIlxZ1TXBuhOIEcaYbfLe+dzoucVHFaWZJw1JTr9RkdL69rJtPuXGtrel/FfAoGkdMW it/NrXiKwzO3Hs4GYqOEQga9mjhq8n56Eus9RWHmkfGm/RPSti8Jy34Dm2AZQxc67YYn WCdhAl3t3C+R6eyd0L3wm+mg46Kj7lNvDO8agOrgyMjYRohrpBR1gUXcnI0Ust5DNQvI YRnrbZy+QXEN4UGCIuhypvJ64/iydr3/A0mTyJaptJEKnkqZqaw3WQKexJXtt+QSSogS sB2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2y8ItP7OxStgqC269xp/vLuhvdyK3bvM8eQwyh+XgTI=; b=hMiFlhewU1I3X6h3r6QPGt7bceO4xlPxKGxSqzrb3mlKE6MHaUyMPO3jbd94QYZmX5 pg1pyOTqLqKbCruyQpbgQAe2s+ooJ4Cv24rVHAK3Ktl3EEsAjy8jV5xnNNbcJauJiIT0 MFyrepDq1qhqXKolEkRru9jWiR53eMQt6pDTm7dn2SCbJt9yGI5NBvNjTdL64S5MBozE qMlT3LvPKCQTZ5N5vbxZyL95PSxZh9piy1eZXRhpaTRL/shR2cugjHRL061BoaHNKAfz 5mJs9yaKDDJBJo9PpTTuvo3lxer6U4m3NuqD67QRJ7rcN5eoVsH9a9JeMij68MTapUm9 J36w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=AaDw1kC8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a7si6040799ilr.103.2021.08.27.08.12.33; Fri, 27 Aug 2021 08:12:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=AaDw1kC8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245383AbhH0PKn (ORCPT + 99 others); Fri, 27 Aug 2021 11:10:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234159AbhH0PKm (ORCPT ); Fri, 27 Aug 2021 11:10:42 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10877C061757; Fri, 27 Aug 2021 08:09:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: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=2y8ItP7OxStgqC269xp/vLuhvdyK3bvM8eQwyh+XgTI=; b=AaDw1kC8KI9vZXC710eZrVSVB SZuaAwNHAWl/nxee98O5qr4C3qRAbNeBKbR07mfSNm6A8C2w7TSZr9kuEP49xVtF94dBq8BlIUNyu oNsvGwHyFt8sowi0x46xF2gDY+pMtFDgbmAqoGqcfvoMsjvq+XpXsZNMjzAB6mRtVktVKoscIUJaq OT7UwgXHpTE3juc66Z7/DzwBeV0/Tp8O1jaSRhx3R7ncGKF3RVPgZ7MhrozDSjBGp4G7gewRzTQhW heVIWwhLRtzQDWd62YdKoJ66SekZo8iI7A8XZ/2d2f3AoaXFvoKmhq/4nkRSS/BqGyuEpYp4L0peZ l5ekv/03w==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:47754) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJdUD-0001G0-EL; Fri, 27 Aug 2021 16:09:41 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1mJdUB-0001tI-2J; Fri, 27 Aug 2021 16:09:39 +0100 Date: Fri, 27 Aug 2021 16:09:39 +0100 From: "Russell King (Oracle)" To: John Garry Cc: "Martin K . Petersen" , "James E.J. Bottomley" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Hannes Reinecke , Christoph Hellwig , Bart Van Assche , Arnd Bergmann , "linux-arm-kernel@lists.infradead.org" Subject: Re: arm scsi drivers Message-ID: <20210827150938.GU22278@shell.armlinux.org.uk> References: <5a72842f-99db-8787-120b-6d85e7884e2d@huawei.com> <9552a506-e53a-3fd3-b38e-3cec81e713a6@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9552a506-e53a-3fd3-b38e-3cec81e713a6@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I haven't, sorry. I have run 5.x kernels on the hardware, and do have a set of patches kicking around for the SCSI drivers that do some cleanups. It looks like the fixup is pretty simple from the links you've sent - using scsi_cmd_to_rq() to get the tag. That said, I think I may only had one SCSI drive that came anywhere close to supported tagged queuing, so I never put much effort into tagged command support. Both acornscsi and fas216 have it disabled for this reason, so it's probably easier just to rip the tag code out of these drivers. Russell. On Fri, Aug 27, 2021 at 03:55:05PM +0100, John Garry wrote: > Hi Russell, > > Have you had a chance to consider the below? > > Thanks > > > > > > Recently we tried to remove scsi_cmnd.tags struct member [0]. > > > > However it now shows that some of the arm SCSI drivers continue to use > > this [1]. I think any other driver usage of this member had been found > > and removed. > > > > The impression is that the usage of scsi_cmnd.tag in those drivers is > > quite dubious. > > > > Now checking [2], it appears that you may have had some patches for > > these drivers locally. > > > > So is that the case? Is this HW still used with bleeding edge kernels? > > If so, can we fix up this tag management? > > > > [0] https://lore.kernel.org/linux-scsi/6c83bd7f-9fd2-1b43-627f-615467fa55d4@huawei.com/T/#mb47909f38f35837686734369600051b278d124af > > > > > > [1] https://lore.kernel.org/linux-scsi/6c83bd7f-9fd2-1b43-627f-615467fa55d4@huawei.com/T/#md5d786e5753083b2f3e8e761b1c69809f82c7485 > > > > > > [2] > > https://lore.kernel.org/lkml/20210109174357.GB1551@shell.armlinux.org.uk/ > > > > Thanks, > > John > > -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!