From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_MUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 991B6C468B0 for ; Thu, 13 Jun 2019 17:11:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7B602205ED for ; Thu, 13 Jun 2019 17:11:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404693AbfFMRLq (ORCPT ); Thu, 13 Jun 2019 13:11:46 -0400 Received: from verein.lst.de ([213.95.11.211]:39770 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404663AbfFMRLq (ORCPT ); Thu, 13 Jun 2019 13:11:46 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id EB4AB68BFE; Thu, 13 Jun 2019 19:11:13 +0200 (CEST) Date: Thu, 13 Jun 2019 19:11:12 +0200 From: Christoph Hellwig To: Alan Stern Cc: Yoshihiro Shimoda , gregkh@linuxfoundation.org, hch@lst.de, linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH v2] usb-storage: Add a limitation for blk_queue_max_hw_sectors() Message-ID: <20190613171112.GA22155@lst.de> References: <1560418611-10239-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org On Thu, Jun 13, 2019 at 01:06:40PM -0400, Alan Stern wrote: > Hmmm. Would it be easier instead to copy the DMA mapping parameters > from us->pusb_dev->bus->sysdev into the SCSI host's parent before > calling scsi_add_host()? That way the correct values would be > available from the beginning, so the existing DMA setup would > automatically use the correct sizes. It would in theory. But at usb-storage has a special max_sectors quirk for tape devices, and as the device type is a per-LU property we'd still have to override it in ->slave_configure.