Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4130127imm; Mon, 30 Jul 2018 09:08:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdX/XWObOjhIrAWsEv4tAnyXL9hYAwPRisQAPdo3IJrdlPkBsjp43n+iCKaIajEsjcTCFtU X-Received: by 2002:a63:941a:: with SMTP id m26-v6mr16600661pge.82.1532966919329; Mon, 30 Jul 2018 09:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532966919; cv=none; d=google.com; s=arc-20160816; b=Q08F/JmJJeXBeDosygAz4vi8eFx3WDtuisecAcRaAGBMAh3ba9OkSsPhC6Y77MmzL1 LFWlOIvZ2soDuT99u6fMu0CAiavHjwhTrzHiXAM1d64h05hTraoSjdSkHnK4tkP1iL5W xHghfFYhDowC4djaZ3eir5QW9lPFgThcx6IHNEB85ShohxXowvUFhxSSKgXqyQrMNQkV 6t2+YrLKtm4Lxf8IygemshI2nObqaYgeBkkbiYrKjhplHNcdQ3yvKi6YQoezC3WGHUg0 9LrC6zrFkXxCYGvCVu7/x6yQ0V/P2ZRt2f14Ps+g5l5DZgl9lDKAg1Bvvf9U01AZgofc Fnsw== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=cqFMwEjaA0MXP1XgSjpSLSzs09XRJ4isT5CQbVvbX6Q=; b=qx4lDyYQIKCFr2n8NYuZih05p3aXXhA2WDuYfgsyjHJ7qp/i+0EYczg98uEmlMJx0X Mj/NGmN3qCC3NKvQ2Jhq2w7s2Lh1K6eYAl2v+sb8m1wPCxIyPOucCbFLCneRCCYcBGzQ Bo0DXOpNWX4ThMZuUY9Py7ZYD1orom9AfQfjPDtTWV8ILFvpTktFesYk7Y34mI9r/AEa dffoAKZ6eSI+6ghw52nLwaytYo0pPxHFB2tB4YqU4w0ZKZ16N4T1DMEe9qRyvVG2V04o tS3/wxsQ/mT0wxUaT48nbUGkmrslY13JXawR5CxwEJ/ZNWYHF8+hbREKkRRvDuhmH/Df +7SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=sPWdtdBF; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2-v6si11050337pfb.365.2018.07.30.09.08.24; Mon, 30 Jul 2018 09:08:39 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=sPWdtdBF; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727667AbeG3RnG (ORCPT + 99 others); Mon, 30 Jul 2018 13:43:06 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:44712 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbeG3RnG (ORCPT ); Mon, 30 Jul 2018 13:43:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=cqFMwEjaA0MXP1XgSjpSLSzs09XRJ4isT5CQbVvbX6Q=; b=sPWdtdBFeNcw1bB0nNn+2JB1G xZvaDCUOMGq+KCF1dtJ7HAb5+toRMdnq4SwWbvk+7FvRIxAI5w9Q92OjZKTdsIBsBUG+6k/MW8gAW mywuVnQcKJWn6Kk9gADOun5TF3WP4vM7s45+XIDdXvDVL+oa6ViwQE++H3GnDmi/pkeuzA3VBGM+h kirrTEEkDXQx0CUCojh1RgGWkgHKjZZ8ITNhkHaGwCcMxOvR1uKZtdKIUnWrGJ43j2vpD69gffBxo Lus+hIZL+AV5wufetujufabS6bWicGOnKfryoO0VceRkLAateJzD8l4B0+c4jh36HRiaFE3Oxqv8O LRd+HBZ6w==; Received: from [179.95.0.119] (helo=coco.lan) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkAhQ-0000Bh-C0; Mon, 30 Jul 2018 16:07:08 +0000 Date: Mon, 30 Jul 2018 13:07:02 -0300 From: Mauro Carvalho Chehab To: Ezequiel Garcia Cc: "Matwey V. Kornilov" , Alan Stern , Hans de Goede , hverkuil@xs4all.nl, mchehab@kernel.org, Laurent Pinchart , rostedt@goodmis.org, mingo@redhat.com, isely@pobox.com, bhumirks@gmail.com, colin.king@canonical.com, linux-media@vger.kernel.org, open list Subject: Re: [PATCH 2/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer Message-ID: <20180730130702.27664d15@coco.lan> In-Reply-To: References: <20180617143625.32133-1-matwey@sai.msu.ru> <20180617143625.32133-2-matwey@sai.msu.ru> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, 17 Jul 2018 17:10:22 -0300 Ezequiel Garcia escreveu: > Yeah, and not setting URB_NO_TRANSFER_DMA_MAP makes the USB core > create DMA mappings and use the streaming API. Which makes more > sense in hardware without hardware coherency. > > The only thing that bothers me with this patch is that it's not > really something specific to this driver. If this fix is valid > for pwc, then it's valid for all the drivers allocating coherent > memory. We're actually doing this change on other drivers: https://git.linuxtv.org/media_tree.git/commit/?id=d571b592c6206 I suspect that the reason why all USB media drivers were using URB_NO_TRANSFER_DMA_MAP is just because the first media USB driver upstream used it. On that time, I remember I tried once to not use this flag, but there was something that broke (perhaps I just didn't know enough about the USB layer - or perhaps some fixes happened at USB core - allowing it to be used with ISOC transfers). Anyway, nowadays, I fail to see a reason why not let the USB core do the DMA maps. On my tests after this patch, at the boards I tested (arm and x86), I was unable to see any regressions. Thanks, Mauro