Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2069398imu; Thu, 17 Jan 2019 07:56:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN6a9ouBSh9gtltGxTCfT978ilOEu84H5zu+9cUMM6y3ZHhQqIVk8kjvygTw45VXmwAZExTu X-Received: by 2002:a62:fc8a:: with SMTP id e132mr15247942pfh.176.1547740587823; Thu, 17 Jan 2019 07:56:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547740587; cv=none; d=google.com; s=arc-20160816; b=Z+9IlbTak83HFetOO88TDBTK5K+jx2ZB5Gq+n1Fd7ScLtsAhdHryhOqP/kJa47zxGq VXiBxFC77GlXE4IYNENb6hPvUnl3oeAg2+FR4Lb9SRFssKPLO420NLU1B/RXi/7rwSg7 xrrRqcQml8xa8VoN4U6u1VCzC7231x4Cl+E/Jcl5coqknmCUr9f8IVrg2q99UYOsiLpr yg+8Or/K7AfQtnaKgQAClH4taffHmtF3squmz0DSzFDmamBRQb4DTvlDv6mvVoUjdLVj IrfugH8n82apriI9ndTk68Bw7R6e5DH+6CmwLBVrUNY9hT77FDTjlAdb4kbHECjY6u1m FNjg== 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=XoyTkci7Xp8nMCsWzbFM4wtrRh6DnJmyxh+OjoiL0IM=; b=qFSMr6ucqtZvWlu+x2oxMC63WewdMbwdTrXUccfnVygoEKRykCeEVLLP+FTXf4qYHP rDVG3QycGp3gXBAcow3DFHJ8T/8dJWmd+mpFwsT/QV3s7sE7P25MwtM683VkrfnsmEGG QSDc9HgF4D+hFVMb06rX2p9Ynrm0i7+rg+ounJzXhHI59xgOcrxqK6cLnHzwQCiZ/WiD Juw+5Zmdu/4e0aivem62Izf7Eh6RLyKO65glEimE4inzm8jap9wkcvK7qCmKXfuBfkIN U61Vrl1jWS5V6z/B9dSFKbxqvuPmb8r+0I6co7TVLnVO1FGijZZDaTAvACtoOz0NrdZl d6ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=I7MydC1P; 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 k15si1756494pgi.99.2019.01.17.07.56.10; Thu, 17 Jan 2019 07:56:27 -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=@ziepe.ca header.s=google header.b=I7MydC1P; 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 S1728440AbfAQPyU (ORCPT + 99 others); Thu, 17 Jan 2019 10:54:20 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:47095 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727189AbfAQPyU (ORCPT ); Thu, 17 Jan 2019 10:54:20 -0500 Received: by mail-pf1-f196.google.com with SMTP id c73so4998701pfe.13 for ; Thu, 17 Jan 2019 07:54:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=XoyTkci7Xp8nMCsWzbFM4wtrRh6DnJmyxh+OjoiL0IM=; b=I7MydC1P7i1ju7q1CMrbpHev2RNE0RTiJhi4H1jlVNeEOCHKMoZEWSb0urKeWSLRZc 10Bcp9jbY+u0n5lqq/lzgXhSUpoWLtU6VzLpYpCauoJH+M6Em7HE454XQ9ST9eifWoHz JXE8afWHg9h7szhHiOxdNsYnuLE58AhoOmnYTp5yYE7ZnniEYPrw4SSEoK0kACVQSKtC ywp7tV18XrsvUJtubKtgz7FplJgrZraxgPfv9R7OozrIGFPsmob+p0WHbYxsWYcHl6P3 K2rrYisDx216Ii5AcbhkkupWq23bb446jIBaKaxskuYsFHQ674O2FTRdQpztvVgLz8XC Op2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XoyTkci7Xp8nMCsWzbFM4wtrRh6DnJmyxh+OjoiL0IM=; b=i5gGgRGAWoEoZAYRJV36lPAM6dr+BoddJCSnWaJClFacSxdCb75TWr2Ard4e0ib8P3 kj9qbgf5XvU+sqlqa0oov4E9HHBQGwAX/iYbr0Wtr4HEoD01HOxs70haS6Oz7TvF4now 6d2e5WiNDyWHMACi3oCsBH/hCjazaEqDA/8vkK6V4GzEZEIO99RuROM2Roz78NpmoKGW +Bf7ntxURdhX7PV3d3A+WohWZrzj0yWYYAs7+YqnjGXgcYOcCcQcpXtbbI9QvL/Sx9y8 Sszr2dT22evDTFriGBdzt0mhcMWXIyfXlQ70ShWGaOg4GZLfje4uOkbx6uV9yccaInu+ Vnbg== X-Gm-Message-State: AJcUukc6R9WKO/FWeo63p0Q/jh9I5CGITS7fJw6WcJEDGAJ6gN+yoCUY kp/WGsOZB0cI8wNewpoOH+11KA== X-Received: by 2002:a62:8c11:: with SMTP id m17mr15472054pfd.224.1547740459205; Thu, 17 Jan 2019 07:54:19 -0800 (PST) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [174.3.196.123]) by smtp.gmail.com with ESMTPSA id u6sm1926006pgr.79.2019.01.17.07.54.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Jan 2019 07:54:18 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1gk9zl-0002uC-9u; Thu, 17 Jan 2019 08:54:17 -0700 Date: Thu, 17 Jan 2019 08:54:17 -0700 From: Jason Gunthorpe To: "hch@lst.de" Cc: Thomas Hellstrom , "linux-kernel@vger.kernel.org" , "yong.zhi@intel.com" , "daniel.vetter@ffwll.ch" , "linux-rdma@vger.kernel.org" , "syeh@vmware.com" , "linux-media@vger.kernel.org" , "bingbu.cao@intel.com" , "imre.deak@intel.com" , "tian.shu.qiu@intel.com" , "jian.xu.zheng@intel.com" , "shiraz.saleem@intel.com" , "sakari.ailus@linux.intel.com" , "dri-devel@lists.freedesktop.org" Subject: Re: [PATCH] lib/scatterlist: Provide a DMA page iterator Message-ID: <20190117155417.GA9629@ziepe.ca> References: <20190104223531.GA1705@ziepe.ca> <20190110234218.GM6890@ziepe.ca> <20190114094856.GB29604@lst.de> <1fb20ab4b171b281e9994b6c55734c120958530b.camel@vmware.com> <20190115212501.GE22045@ziepe.ca> <20190116161134.GA29041@lst.de> <20190116172436.GM22045@ziepe.ca> <20190117093001.GB31303@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190117093001.GB31303@lst.de> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 17, 2019 at 10:30:01AM +0100, hch@lst.de wrote: > On Wed, Jan 16, 2019 at 10:24:36AM -0700, Jason Gunthorpe wrote: > > The fact is there is 0 industry interest in using RDMA on platforms > > that can't do HW DMA cache coherency - the kernel syscalls required to > > do the cache flushing on the IO path would just destroy performance to > > the point of making RDMA pointless. Better to use netdev on those > > platforms. > > In general there is no syscall required for doing cache flushing, you > just issue the proper instructions directly from userspace. At least on the ARM/MIPS systems I've worked with like this the cache manipulation instructions are privileged and cannot be executed by userspace. So the general case requires a syscall. > In that case we just need to block userspace DMA access entirely. > Which given the amount of problems it creates sounds like a pretty > good idea anyway. I doubt there is any support for that idea... Jason