* Re: arm scsi drivers [not found] <5a72842f-99db-8787-120b-6d85e7884e2d@huawei.com> @ 2021-08-27 14:55 ` John Garry 2021-08-27 15:09 ` Russell King (Oracle) 0 siblings, 1 reply; 4+ messages in thread From: John Garry @ 2021-08-27 14:55 UTC (permalink / raw) To: linux 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: arm scsi drivers 2021-08-27 14:55 ` arm scsi drivers John Garry @ 2021-08-27 15:09 ` Russell King (Oracle) 2021-08-27 15:23 ` Hannes Reinecke 0 siblings, 1 reply; 4+ messages in thread From: Russell King (Oracle) @ 2021-08-27 15:09 UTC (permalink / raw) 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 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! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: arm scsi drivers 2021-08-27 15:09 ` Russell King (Oracle) @ 2021-08-27 15:23 ` Hannes Reinecke 2021-09-01 8:03 ` John Garry 0 siblings, 1 reply; 4+ messages in thread From: Hannes Reinecke @ 2021-08-27 15:23 UTC (permalink / raw) To: Russell King (Oracle), 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 On 8/27/21 5:09 PM, Russell King (Oracle) wrote: > 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. > That's what I figured, too. And that's what my patches do, killing the tag support from arm drivers which had them disabled since the dawn of git history. Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: arm scsi drivers 2021-08-27 15:23 ` Hannes Reinecke @ 2021-09-01 8:03 ` John Garry 0 siblings, 0 replies; 4+ messages in thread From: John Garry @ 2021-09-01 8:03 UTC (permalink / raw) To: Hannes Reinecke, Russell King (Oracle) 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 On 27/08/2021 16:23, Hannes Reinecke wrote: > On 8/27/21 5:09 PM, Russell King (Oracle) wrote: >> 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. I'm not sure. The SCSI midlayer does nothing with that tag field, apart from set it to the block layer request tag, and it seems that these drivers reuse that field for their own tag management. But Hannes is confident that we may just use scsi_cmd_to_rq(). >> >> 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. >> > That's what I figured, too. > And that's what my patches do, killing the tag support from arm drivers > which had them disabled since the dawn of git history. These are the patches: https://lore.kernel.org/linux-scsi/20210819084007.79233-1-hare@suse.de/T/#t Hannes, please consider resending, cc'ing Russell. Thanks, John _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-09-01 8:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <5a72842f-99db-8787-120b-6d85e7884e2d@huawei.com>
2021-08-27 14:55 ` arm scsi drivers John Garry
2021-08-27 15:09 ` Russell King (Oracle)
2021-08-27 15:23 ` Hannes Reinecke
2021-09-01 8:03 ` John Garry
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox