Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1150112img; Tue, 19 Mar 2019 01:14:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyihKULYfBPc9tt8QqKcALASlzC9MaMgF5eMf7+XjTeLx+fJqGgbCg1Plqsdng39/yLdmTa X-Received: by 2002:a65:6259:: with SMTP id q25mr650490pgv.235.1552983280701; Tue, 19 Mar 2019 01:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552983280; cv=none; d=google.com; s=arc-20160816; b=x94Tgyg8mpsqosDKdnVxoFFjLRl65ufE14xsR7PLlcdjuJ8j8FyJTMYUm0cXQHBz58 7jMexpuKGhJx3l5llF2Ux9DUkrWKycBlyvnu5Qeit7pwsrMreTC7OVyuwBS3ljKf6Amt O0rWeYlmynKvjL299zIf+AxzmfEChlP/fiFt7CdGG+DCGtdGC0mXl6Ws1UaLB1JdmPNX wJwKU7DBqK5EFUOb2M91Z5O+eKFrfG/xIZWBs44YqjqNjb/UitK/3t2U5lS1MgXaGkow 6HqSSce9v860AKSrErqMGZixQH2xM99onIB1p/x8qX0yKr0sYyOZEsLyPy2OfSfzvue1 0W5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=nKx2KXb+317+faHmuAuG0MY1ZPYHKvfvBinhF5dGwWY=; b=WaFafBKu5dy4vxrbAEPkkEOILlQ1EGWcScMgYciGsknn7K9knlRtIZ8/za4xR//s+n EIqKZsJLGNdd1DtveHv6OZQo8oCObid5ElY3waXusECQaq8auxZuv84ztmC50iYr3Oae sh5orFoQ+HEmT6kqp9ytlryyEE0dKbdvaaGy8S3oUROPQ7XG6XOkmTbewxoXT0PnYQnx j9AATPo0NVg/pgMW/zc3Q7oEZAlWlOMq6LQEo2ELWvamrdIR3TjXzzJkKs+13M2PhN4w 9pcjo3AZltgr9t0AqDlNT5frEBVy55H9C1B9SXYclB/EBtuiQ+V8glXTWRmEwl+a0aI6 Z3Lw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si3299986plp.306.2019.03.19.01.14.25; Tue, 19 Mar 2019 01:14:40 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727580AbfCSINI (ORCPT + 99 others); Tue, 19 Mar 2019 04:13:08 -0400 Received: from mga06.intel.com ([134.134.136.31]:17178 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727395AbfCSINI (ORCPT ); Tue, 19 Mar 2019 04:13:08 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Mar 2019 01:13:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,497,1544515200"; d="scan'208";a="123866441" Received: from mattu-haswell.fi.intel.com (HELO [10.237.72.164]) ([10.237.72.164]) by orsmga007.jf.intel.com with ESMTP; 19 Mar 2019 01:13:05 -0700 Subject: Re: [PATCH] usb: xhci: add Immediate Data Transfer support To: Nicolas Saenz Julienne , Mathias Nyman Cc: felipe.balbi@linux.intel.com, oneukum@suse.com, Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190219162945.22889-1-nsaenzjulienne@suse.de> <31a3530dbd75771c82bfb41a357370b90d7981d2.camel@suse.de> From: Mathias Nyman Message-ID: <1fe79a10-16d4-8d06-4c9b-7e5a3d3807cf@linux.intel.com> Date: Tue, 19 Mar 2019 10:15:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <31a3530dbd75771c82bfb41a357370b90d7981d2.camel@suse.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15.3.2019 14.51, Nicolas Saenz Julienne wrote: > On Tue, 2019-02-19 at 17:29 +0100, Nicolas Saenz Julienne wrote: >> Immediate data transfers (IDT) allow the HCD to copy small chunks of >> data (up to 8bytes) directly into its output transfer TRBs. This avoids >> the somewhat expensive DMA mappings that are performed by default on >> most URBs submissions. >> >> In the case an URB was suitable for IDT. The data is directly copied >> into the "Data Buffer Pointer" region of the TRB and the IDT flag is >> set. Instead of triggering memory accesses the HC will use the data >> directly. >> >> The implementation could cover all kind of output endpoints. Yet >> Isochronous endpoints are bypassed as I was unable to find one that >> matched IDT's constraints. As we try to bypass the default DMA mappings >> on URB buffers we'd need to find a Isochronous device with an >> urb->transfer_buffer_length <= 8 bytes. >> >> The implementation takes into account that the 8 byte buffers provided >> by the URB will never cross a 64KB boundary. >> >> Signed-off-by: Nicolas Saenz Julienne > > > Friendly ping, any more comments on this? :) > Looks good, adding to queue, thanks -Mathias