Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8851636rwp; Wed, 19 Jul 2023 16:54:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlEHIq8f2pt3vyVqRjibcz5NSXt5lXWcsIhTf2Bd8431FP3Xynyo3gWkVlGYhNnpVYmAYyj9 X-Received: by 2002:a05:6402:78c:b0:51e:be0:d2ea with SMTP id d12-20020a056402078c00b0051e0be0d2eamr4235556edy.9.1689810878174; Wed, 19 Jul 2023 16:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689810878; cv=none; d=google.com; s=arc-20160816; b=rHXwKTOt8VJCbYJaIL4NsIOgiu4j10kwnxaLM8Nx5SCmn8Z0HZT7ZtDD7OHR//cvBI 9dLqt3my35QR2BLDgy/m9XQ25+FjzeIttRKN4DYlGyNRJWp/lr8XsvS2xpUg7fPS/BZF iWImfq/9BtlP10zk9eSa3ewgI6bZO3YDbCbFqwSHKNHWWDrx8SolIs+tIByISzIygaur 0YJlArKR9FWrtKJKU7L0zvcPt86QOYEWZpnouLCAVEawfh6QmQ/rYgU/lBuxhTS9nMC1 +OzAwwpkF4AehXdfrpzqSeo9rM1Wo47wgk2BcWVK0L7VOLm7N+zKo54J9UEWCMtsHOfO jkHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QMBXWfDTfMeBEXpKpdrCux7UOxDUWWDJl0r9KLthi7I=; fh=ZspnP6/vhBlFHfnBpvsNTHvzOH/47Qlf8it3NNBZORQ=; b=mFXOPjptVircWzQDEAVLwoeQoSlR0dbiZ+mT0o4qcnXOX2htoi7kXsV0BD4BpCV+cl 9mVeChmoh0SfejLRPeluezwIMIkFAmv7QZc2Jj9Z12NLnbYQjqsvY4UEd/UDnccqR7WY 0cLPnBlq0P11o/0cJED1eNC79q0mHemyz8JwE8F7Iuuq8ExPfmcovPsdhRBFe4QpIRDh +whqQorIc1XQtGT1JEDxi0Y9IUsqq2dL6S4m7F9mWzeFItJo8zh3yqWHvuNvo22uPGBn JR7JgxdAW54x3gonZawlP2A35POa5Ca7AIBqVPHsSEhsMiBP/JxYMvXnW9KQaiTykzTq V4gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=RitoPG5v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i8-20020aa7dd08000000b0051be93a4395si3810996edv.52.2023.07.19.16.54.13; Wed, 19 Jul 2023 16:54:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=RitoPG5v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229733AbjGSXZA (ORCPT + 99 others); Wed, 19 Jul 2023 19:25:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjGSXY7 (ORCPT ); Wed, 19 Jul 2023 19:24:59 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 959852102 for ; Wed, 19 Jul 2023 16:24:54 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-668704a5b5bso144568b3a.0 for ; Wed, 19 Jul 2023 16:24:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1689809094; x=1690413894; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=QMBXWfDTfMeBEXpKpdrCux7UOxDUWWDJl0r9KLthi7I=; b=RitoPG5vg2KH92ckG+V7d8L8L9W7M1MBD8JemTd7YYR3fTJrTOVFYtqqXzUnBKMuir 5mWALTL5KmWaQJU0sCdTf1pDvm6hLmYvUeYrkwPsO1SZCFet8sGivcjzWo2/jJSQ+69r tWFF5/07XRl/q/8uN+rCYjwQhkZBkDDkJmR7gbwa/MDL9f0w0sZGSvooJmm5Ax+0ioy1 H/sOq8DkuI4B9Gm5OL3DqroseeCwVW7yCWj9quaQcgXz/+7NKt05sQF+GJ9/12jWPXZ6 8j+EKQKrYcWo0PuWQibJD8tsH5yifa7BtFwNC8Ufe7awQAN0xt48aMlwNrlWN/lcUSoO 93QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689809094; x=1690413894; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QMBXWfDTfMeBEXpKpdrCux7UOxDUWWDJl0r9KLthi7I=; b=U/gcPUwKnWkajpz2GohgD3DanyeAosETax+yI09fWg815I/YnleaBo9FgOZb/xtdK3 tRK4riOUr/zX1MXiKFpl3iAZh+njA7Q1oeAT8CeDPhWbP8sAh7bxYpOwlQ3X7lLdg8W+ WIw4R4IirY4dMZxpuRXqVWIx0DSVJyBDa3zElPylk6wmorNW6ay/yQPDbKiHE0D6Y2Bc 7W/xdrFrL29gCjQKwgwucUVN6oR6C0Owi5z+jyLUY+iV6R6hj2nWAzjuyjfmQ2yfd4+a XGgBpdeezDVOf+3wuGfvBZrPD+wbrIqcuEBtLkVRcbEzzfzlPDVMusF7db9FQjL9EtTC aIDQ== X-Gm-Message-State: ABy/qLZiZX9esjCYoDlJRStcUCSuGo8Rf4kNdT4c93ZuzdHFmqJ2KpTT McZ7uWZoHPWn8E3wmgLZSQsabLChdSfPFJYoAFg= X-Received: by 2002:a05:6a20:840b:b0:126:a80d:4960 with SMTP id c11-20020a056a20840b00b00126a80d4960mr28216893pzd.30.1689809094040; Wed, 19 Jul 2023 16:24:54 -0700 (PDT) Received: from ziepe.ca ([206.223.160.26]) by smtp.gmail.com with ESMTPSA id g23-20020aa78757000000b0067a1f4f4f7dsm3780558pfo.169.2023.07.19.16.24.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 16:24:53 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1qMGXL-002tBd-Tt; Wed, 19 Jul 2023 20:24:51 -0300 Date: Wed, 19 Jul 2023 20:24:51 -0300 From: Jason Gunthorpe To: Stephen Hemminger Cc: Mina Almasry , Jakub Kicinski , David Ahern , Andy Lutomirski , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, netdev@vger.kernel.org, linux-arch@vger.kernel.org, linux-kselftest@vger.kernel.org, Sumit Semwal , Christian =?utf-8?B?S8O2bmln?= , "David S. Miller" , Eric Dumazet , Paolo Abeni , Jesper Dangaard Brouer , Ilias Apalodimas , Arnd Bergmann , Willem de Bruijn , Shuah Khan Subject: Re: [RFC PATCH 00/10] Device Memory TCP Message-ID: References: <12393cd2-4b09-4956-fff0-93ef3929ee37@kernel.org> <20230718111508.6f0b9a83@kernel.org> <35f3ec37-11fe-19c8-9d6f-ae5a789843cb@kernel.org> <20230718112940.2c126677@kernel.org> <20230718154503.0421b4cd@kernel.org> <20230719105711.448f8cad@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230719105711.448f8cad@hermes.local> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 19, 2023 at 10:57:11AM -0700, Stephen Hemminger wrote: > Naive idea. > Would it be possible for process to use mmap() on the GPU memory and then > do zero copy TCP receive some how? Or is this what is being proposed. It could be possible, but currently there is no API to recover the underlying dmabuf from the VMA backing the mmap. Also you can't just take arbitary struct pages from any old VMA and make them "netmem" Jason