Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp100000pxb; Tue, 2 Mar 2021 20:45:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNA37ONdzqCCWo+BMjSW986uleIJyaRZTh/MnxCnmU+SfHjRz1HyIFuiQEWhnqJyxaZu3R X-Received: by 2002:aa7:dc17:: with SMTP id b23mr24126671edu.139.1614746712390; Tue, 02 Mar 2021 20:45:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614746712; cv=none; d=google.com; s=arc-20160816; b=ImOegKWwVptOtqowE2Km4mFkFA6lhMiW8eq6Qdy5yoSn1uL7sRzFtrkD5e1X8yrPAc 6QHh8ugksWTtRdBoHXA1vLVgPbz2JTBhnb7kP54oNLiW+xcFiQ1cAJHmp0M7iH0DJWqf rtrVYyJlPmllieXOeNSJB36Z5xOHRmRhZ5pRWvKAAGvZBl7q52CvvNR4uznMWWVHsJLD cSrokwT6mIxWZsfs8m4pfmkYlimVXmknRXxzwmrVccHfS8Z7FO0q4KzOF4ihjpeKLmoU vpBx04LejXtew2pu+4cRw4+zjC005a+x8sM0N+xaErftL0tb/vFcJfIgfo9kA9GDo6MA WzcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=m7PK+VGZZuVJ0fHn7C2kTGmh2SYWv1+Z0POjXdhW/xs=; b=F+w8KV2atCNBRa8mOmtX54ktcUmy1GVUGjGnxJkU4G3pz1LYp1pjBi4ud1VzG42++2 0EahbU5UJlQ5Qt7PlKwjtkYoPKD/pWo8OiT1yYUAIEKeGfN/4Y/dZacLVY/iwh5DzEfp Go2kKrpXUYIvpN0BXZ7uVorWFzTEL+ttNLKmzCOoLp1TDD5y2C2e9WeAeuDTDmVYrTmR l/Ju8HOH23y9UmrXGgEbUKe49OAwQLdYcDc8+eT8B+TD0aZnPvWcCbJXllVQ4zox/4Py /pPbHoAwgx4XHNT+EqMznKqwrkNarKW1Vdq6W+4VaGapBjIJUEQ1eWuBpw8Xi6So/ZUx tpIQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b24si6490853edr.415.2021.03.02.20.44.50; Tue, 02 Mar 2021 20:45:12 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237135AbhCAQAL (ORCPT + 99 others); Mon, 1 Mar 2021 11:00:11 -0500 Received: from netrider.rowland.org ([192.131.102.5]:53615 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S237446AbhCAQAI (ORCPT ); Mon, 1 Mar 2021 11:00:08 -0500 Received: (qmail 1490911 invoked by uid 1000); 1 Mar 2021 10:59:27 -0500 Date: Mon, 1 Mar 2021 10:59:27 -0500 From: Alan Stern To: Christoph Hellwig , Hans de Goede Cc: Tom Yan , linux-usb , Linux Kernel Mailing List , SCSI development list Subject: Re: [PATCH 2/2] usb-storage: revert from scsi_add_host_with_dma() to scsi_add_host() Message-ID: <20210301155927.GB1490228@rowland.harvard.edu> References: <186eb035-4bc4-ff72-ee41-aeb6d81888e3@redhat.com> <20201130172004.GA966032@rowland.harvard.edu> <20201130203618.GB975529@rowland.harvard.edu> <20210225163557.GC1350993@rowland.harvard.edu> <20210226055352.GA2996@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210226055352.GA2996@lst.de> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 26, 2021 at 06:53:52AM +0100, Christoph Hellwig wrote: > On Thu, Feb 25, 2021 at 11:35:57AM -0500, Alan Stern wrote: > > This thread seems to have fallen through the cracks. Maybe now would be > > a good time to address the problem (since we originally planned to fix > > it in 5.11!). > > > > The questions listed below are pretty self-contained, although the rest > > of the discussion isn't. But I never received any answers. > > usb-storage must use scsi_add_host_with_dma to use the right device > for DMA mapping and parameters. The calls to set the DMA options > on the device are needed so that IOMMU merging doesn't change the > imposed requirements. If these requirements slow you down you need > to relax them, as apparently the hardware is able to handle bigger > limits. Hans, don't you have the right equipment to test this approach? Alan Stern