Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5972539ybx; Mon, 11 Nov 2019 01:37:50 -0800 (PST) X-Google-Smtp-Source: APXvYqyRjXAFcidQt0fvjfiCbgwpnLLwwN+VtFymKo+wOAyoaO3JqYJtAlgWVw0K7B/Ba1p0/rhw X-Received: by 2002:a17:906:4cd2:: with SMTP id q18mr21196843ejt.319.1573465070308; Mon, 11 Nov 2019 01:37:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573465070; cv=none; d=google.com; s=arc-20160816; b=VuWqmzr+xbHJRA+MTefvhs6HG5oOS3MD4ZJUA9/4DwRsyssXO6Xl8umh9ZG0iVlVPo CFb2dW1IwAa4MTU5DCpqKq/CeipetarGZeXH36zq9gPKIEvMvnuOPFYDymDixTuw9rSl K3TICWtLCL9/hx+FYoxQg/8TA4SLppJzanLrKVqP3gkAco9ahY3loirJSDpS5qXyHLYj Zc+2U4z7PZR14D1hJZ0toxJ3Kg3D1nVZDYBFupn82fThM1qVaJYQQRFZMbo3VgukIfFi QGZThbH5G2yWE3NeERPQK/M1eXJi909FXRBmwvWoYAjim4dWp37gtMtusikyhRloAHyW S8Xg== 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=bHtvZV/WnreuBkzNaZ/laxWMklhCCGqAfYZonTVQZEU=; b=EAywI8b6Xu0aZb8Diz8rXkYRHZ43f7FRbrY/3U75wzL7MjWvgByMlXL6kAMfvjUX5u nTT1MfphsSG4N5xmhijwGgbV7TC2uETqKyigUVPAtxntQycu+nK0RakXLr4lzMTZjShI m/TpR2knhM2xoM1Ce8ulWzP2OJGDsButlQhsuRcUiSy+A+VgQ4wvL27BuHmOvCREucfT crcd0PeuxFgPuKyB9DPToMeLqik9uXH30KO3aHrH2Dxg1AXZbXWyXyPvDdMUyDYKs5zl CIZ6kc+tUjvbSAWlJUfwZVWvwSTbVixuX0F2AhKANTTdVg78t7Y9jpAQsUWbM6meSVsR AUHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cIXR3fs4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ch17si9286284ejb.184.2019.11.11.01.37.27; Mon, 11 Nov 2019 01:37:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cIXR3fs4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726889AbfKKJgn (ORCPT + 99 others); Mon, 11 Nov 2019 04:36:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:53602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726768AbfKKJgm (ORCPT ); Mon, 11 Nov 2019 04:36:42 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4A8502075B; Mon, 11 Nov 2019 09:36:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573465001; bh=10fPEu9FZrhk6J1j7t879mqhJ3XB2/xSo4oLnUX/mUw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cIXR3fs4XsjhXq1ExFdK/YS942Ly/v7iv6y3lZoG2sCdymoknCYpZodIN9yBO8sct n86fPGr6jHtPg5rt4BrMUoth0beZsKKi8leZs2pHOQi1NRoY29PB8hgv5jQ2DBBetL UsGekVUimWIBOrYqHjF7nJjxcGDxvm7GoPxs0sJU= Date: Mon, 11 Nov 2019 10:36:38 +0100 From: Greg Kroah-Hartman To: Alan Stern Cc: Oliver Neukum , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH 4.19 114/149] UAS: Revert commit 3ae62a42090f ("UAS: fix alignment of scatter/gather segments") Message-ID: <20191111093638.GD4139389@kroah.com> References: <1573396023.2662.4.camel@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 10, 2019 at 10:34:02AM -0500, Alan Stern wrote: > On Sun, 10 Nov 2019, Oliver Neukum wrote: > > > Am Freitag, den 08.11.2019, 10:35 -0500 schrieb Alan Stern: > > > On Fri, 8 Nov 2019, Greg Kroah-Hartman wrote: > > > > > > > On Thu, Nov 07, 2019 at 12:32:45PM +0100, Oliver Neukum wrote: > > > > > Am Dienstag, den 05.11.2019, 17:38 +0100 schrieb Greg Kroah-Hartman: > > > > > > > > Given this information, perhaps you will decide that the revert is > > > > > > > > worthwhile. > > > > > > > > > > > > > > Damned if I do, damned if I do not. > > > > > > > Check for usbip and special case it? > > > > > > > > > > > > We should be able to do that in the host controller driver for usbip, > > > > > > right? What is the symptom if you use a UAS device with usbip and this > > > > > > commit? > > > > > > > > > > Yes, that patch should then also be applied. Then it will work. > > > > > Without it, commands will fail, as transfers will end prematurely. > > > > > > > > Ok, I'm confused now. I just checked, and I really have no idea what > > > > needs to be backported anymore. 3ae62a42090f ("UAS: fix alignment of > > > > scatter/gather segments") was backported to all of the stable kernels, > > > > and now we reverted it. > > > > > > > > So what else needs to be done here? > > > > > > In one sense, nothing needs to be done. 3ae62a42090f was intended to > > > fix a long-standing problem with USBIP, but people reported a > > > > OK, now I am a bit confused. AFAICT 3ae62a42090f actually did fix the > > issue. So if you simply revert it, the issue will reappear. > > Correct. I think. > > > > regression in performance. (Admittedly, the report was about the > > > correponding change to usb-storage, not the change to uas, but it's > > > reasonable to think the effect would be the same.) So in line with the > > > > Yes. > > > > > no-regressions policy, we only need to revert the commit -- which you > > > have already done. > > > > But that breaks UAS over USBIP, doesn't it? > > It was already broken to start with. The attempted fix caused a > regression, so the fix must be reverted. > > > > On the other hand, the long-standing problem in USBIP can be fixed by > > > back-porting commit ea44d190764b. But since that commit isn't a > > > bug-fix (and since it's rather large), you may question whether it is > > > appropriate for the -stable kernel series. > > > > It certainly is large. But without it UAS won't work over USBIP, will > > it? I think that is the central question we need to answer here. > > You are right. If Greg is okay with porting ea44d190764b to the stable > kernels, I won't object. Ok, I've backported this to 4.14.y, 4.19.y, and 5.3.y. As superspeed support was not added to vhci until the 4.13 release, I don't think that UAS will be an issue on those older kernels. thanks, greg k-h