Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1171845lqo; Thu, 9 May 2024 06:49:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNhSo/hOnZ+XCst9B1COO0BDGHJrErciHCdp1JyFHZ2GoygXCFG/KpTYqnqS1vHOrd/ZFXQNO/+WX6YeFRf6ackVVzA/twMtwhF1mShg== X-Google-Smtp-Source: AGHT+IFys3D/lDJb9A+qyxRFKSju6QMY32koywJNfuOMYrzdFpEz71g1HAVaP/KwsH7Vekusin5k X-Received: by 2002:a05:6870:214e:b0:23d:bf8d:2453 with SMTP id 586e51a60fabf-240985a461cmr5706456fac.42.1715262590828; Thu, 09 May 2024 06:49:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715262590; cv=pass; d=google.com; s=arc-20160816; b=fIhwEMmOoFB3quECIeWT4QkLq8S+JwEA2i/ofAjmFN2ygbd0hXXa4cxWvRAEn+11wb xxfikv8aIkLWCN1+S/zJXGLX2UT6cGOz6vIZ3m32DP0LyWYw84gVCD4jwoA6y8Ko5g40 TeP1V/gwnT/C05qEMRweNMq84tyuriHlOQX2DpNo2n6XSVkc+Ah7dIJtfrj5L83TcdkF 33OLlXIBj0F7scJUlcweibY4m7vqkjVuCdHKazE1LQEJ9OQXC+OTVgMp8K5ggWv/yyHu Z8MVrOUxuw38VDdAuAEBfaxrRuX1FrO3m6aLihl0RiPeAkI4/s6rmEZxMq94A7BJE13i +9OA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=sxUDcgV07M/cGG0C97HjP7lXVYLr1LRz4Tn9UlCqtIE=; fh=0CTvPWvHsvFhKfCmtQMjJ+/ezPDVbT7iOnKYxGhf0tg=; b=VZuxU1LKVeFz+om8+XTivCotw4y8WDgdFhXGK8pWNuDHnJ7AC8P7XjxNHh8MeZBKuj rUIgANqGp0WS8CGTPMEZ1pNR5z6386ZENi6d8cAnypknZhRuz0ghzUQY3W83F9TCJ0zw wBaaOgOPf4yLikusP4/oPRLemVAJzFuonzE6BIAmP79G/QLHorEIqIlKoUss0JBll263 ND5JaQYP+5m0JECQU0s57r09cHsAsznGGSn27sP3wNiwVaPtVHzMLwfZ8kAonvmsyChz y/IzB/nQ7o6+U4XtBLANR4lzJ1D6Z+F85VMIE7Vtz1TX/JY36rvffz1dY8hsHuqK9JEF Sj/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-174554-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174554-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-634103f6aa1si1401874a12.342.2024.05.09.06.49.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 06:49:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174554-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-174554-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174554-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 703A5282B23 for ; Thu, 9 May 2024 13:49:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6C7515D5B3; Thu, 9 May 2024 13:49:33 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7AB3A158D6D; Thu, 9 May 2024 13:49:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715262573; cv=none; b=cUlVqsum4ut3DDlkFeZ9I4MQHXcLo9f4r87XLY8Lvb3/Y/SQyr0Q7pJNA+74IpxLLHspFLqg3173p7pwohU0tOmctpQrWrCKz/QCJv2nvLx6UcJbzRVZUPrkpVLhJmuEwXK1/WvglBBlG6KmOIn53dwsKpxIaL+6peHsiyDBloc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715262573; c=relaxed/simple; bh=sxUDcgV07M/cGG0C97HjP7lXVYLr1LRz4Tn9UlCqtIE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Y/rUEUHWWvbqp8lmxoumgwcvSCX+S+F2/2Xsxke7yqVszJEIHsxGAZDOYgsDxWmNl1w71VltxtVgxP5Nbe3VwUTtMKcVObHRPZJiPauU+v5dc1x1wGJqlXnpINILYIbu1uMEAVKSUN2b+cYx0K5kbHt7WNYRXaOUUQmKALJiny4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 69F6068BFE; Thu, 9 May 2024 15:49:25 +0200 (CEST) Date: Thu, 9 May 2024 15:49:24 +0200 From: Christoph Hellwig To: Steven Price Cc: Alexander Lobakin , Christoph Hellwig , Eric Dumazet , Jakub Kicinski , Marek Szyprowski , Robin Murphy , Joerg Roedel , Will Deacon , "Rafael J. Wysocki" , Magnus Karlsson , nex.sw.ncis.osdt.itp.upstreaming@intel.com, bpf@vger.kernel.org, netdev@vger.kernel.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 2/7] dma: avoid redundant calls for sync operations Message-ID: <20240509134924.GA13607@lst.de> References: <20240507112026.1803778-1-aleksander.lobakin@intel.com> <20240507112026.1803778-3-aleksander.lobakin@intel.com> <010686f5-3049-46a1-8230-7752a1b433ff@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <010686f5-3049-46a1-8230-7752a1b433ff@arm.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, May 09, 2024 at 02:43:52PM +0100, Steven Price wrote: > The specific drivers are "rockchip-drm" and "rk_gmac-dwmac". Is it a > requirement that all drivers engaging in DMA should call dma_set_mask() > - and therefore this has uncovered a bug in those drivers. Or is the > assumption that all drivers call dma_set_mask() faulty? That was the assumption behind the code, but the assumption is wrong. Alex is working on a fix.