Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3263061ybl; Mon, 19 Aug 2019 15:23:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6XH8m1vYFHdJXSY+w3iIj0YZjyXHHkUunVngazAFOi4dsuBrtbCqTqKLyj6Iwxork6RmZ X-Received: by 2002:a65:49cc:: with SMTP id t12mr20521447pgs.83.1566253396043; Mon, 19 Aug 2019 15:23:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566253396; cv=none; d=google.com; s=arc-20160816; b=YBy/xoGUOLgdJGAc0lPOJZCB4s5NhbpFW+/IZiVpGY3/Dj4VLS5rMCi0rQIat1Pbjb QkfhNLyZsgsRPz/8CTMBIoESQuYQUtmtDgaVtyyUIx0Fmw5x3yhgTHhQkqMhXGYLDniH puQIuDoV5/imMoNVZ4magej4KN7oWRDKVHKuEds9Te2ZSxRT3HjWM3D0m5l3RJXDtH1J 1Meh9AalZsBKshgsM//eiJMn9st6KjUWSu+C+meFgonPyApu06bvjIUVwALvb+DAYXE5 4y4DRgdEXchhYx26pR26UkOimuOtvPxerXghHFJEoxpmTYqvS9N9uwUOXvUJDy3UW/I3 wI+w== 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=9tF/xHAhZ516dn+gEJYG3pEDOElpvS9fvxoRear+kN4=; b=KVyP89mvHkNtyspblY1p2LdsMzwSnwHMQ6MAgaBwj2U/6/suZ9qYdj+OKY6BUBj/QF FaD9aBtklRfSFC+/PC/QimYgjTYdoTl32YZ3F/jZJ7srSinIhbIIEeVmtONHKvmmI43r vu2YE/7MlBLXAaaA3xwomtcO0vKsdf/wWCC38S201pyJ/o192II+brKoiGgubuTqt2bA lAITK3FYyP/uLThBy328/SzIABcj6YcnGs4qX00nF1RTG+QI3O1ztGS/Sg+WChU9b+bB NrWQymXhZGsfhn67fD5ZlPRyZw0lKQhA3xDtmqurEHo2ol1lFW/Z11EjZuR+uIMMKq/n XCcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="J7/ASB90"; 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 b6si11123028pfd.29.2019.08.19.15.23.01; Mon, 19 Aug 2019 15:23:16 -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=pass header.i=@ziepe.ca header.s=google header.b="J7/ASB90"; 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 S1728628AbfHSWWL (ORCPT + 99 others); Mon, 19 Aug 2019 18:22:11 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:46572 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728520AbfHSWWK (ORCPT ); Mon, 19 Aug 2019 18:22:10 -0400 Received: by mail-qt1-f196.google.com with SMTP id j15so3730457qtl.13 for ; Mon, 19 Aug 2019 15:22:10 -0700 (PDT) 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=9tF/xHAhZ516dn+gEJYG3pEDOElpvS9fvxoRear+kN4=; b=J7/ASB90A/7LfBNDmG0O3c4ffb8C8mJHLy3tqLBMNl5OZSeKxRxdST+9AEyTDXj/+L tx/IKT3agMO9523a3Vy7bWPEQ0fOd2ABYSyhQOoaM+bTrjDgVDq4ma8TX31a/SU8vvyB l4TJFpr1RR48pgFwTL9eLOhnG6TjzNM/7S3ZaTJri/08mEgECHxLA5zdWtnDv5F4POyR iv/xzAanBU7blocAW93dHdi9/Nh2xt7qwo6tIddVVVQRRkVpdKp/+f0ImnEibu+keKrV m/4y4ianaDFz5RzyUa1yRCvA+fbZmVuOr82Z1W1KZry1w9wY5F2FmRiQ8dUPylFYopGG w30g== 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=9tF/xHAhZ516dn+gEJYG3pEDOElpvS9fvxoRear+kN4=; b=r2wGaPsrCW9BdlTsAomi2EGwgJ1Zvwgc8wq77ov58Hht9MKzi6eLGmJcgzlkMuBBq9 KdXhkVDDlrECDr1YZwUK4+sAvIrkk1TwKZra3EtXqEdUYcTAl2FvMASzheKEWIQHbglm /3bQIBJFFfOJym3P5G0Q5PpHVvXorUi9BSr6AV7y7EHIhuQS8Xc/ttgifdgCpuLmlp/G HP+3uc6wpS4qj7f7Nph3tQjoMbLK5kjE59sTemrI//RQicP9xcfNkv4JwoYGq6RcaR9R ZoSmWHTRKSW9mde8Q2pFgHK94uvp/TiFwzoH48kJkPDcLCxVFlOXxmRH/fHnCzBD0HtQ pVLQ== X-Gm-Message-State: APjAAAV0VrzAdCeOq9NNVNonDM7nGT/x3x97EA1jhRILhCzJI4lQlkCX /Cg6U6XPFRAf+s0+JFvzl3/P2w== X-Received: by 2002:a0c:db88:: with SMTP id m8mr12556600qvk.143.1566253329715; Mon, 19 Aug 2019 15:22:09 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-156-34-55-100.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.55.100]) by smtp.gmail.com with ESMTPSA id 145sm8112579qkm.1.2019.08.19.15.22.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Aug 2019 15:22:09 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1hzq2S-0006eU-N4; Mon, 19 Aug 2019 19:22:08 -0300 Date: Mon, 19 Aug 2019 19:22:08 -0300 From: Jason Gunthorpe To: Bernard Metzler Cc: Geert Uytterhoeven , Doug Ledford , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Re: Re: Re: Re: Re: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse Message-ID: <20190819222208.GA25513@ziepe.ca> References: <20190819135213.GF5058@ziepe.ca> <20190819122456.GB5058@ziepe.ca> <20190819100526.13788-1-geert@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Mon, Aug 19, 2019 at 09:40:10PM +0000, Bernard Metzler wrote: > >It is either an iova & lkey pair, or SGE information is inlined into > >the WR ring. > > > In siw, the reference to any type of memory is kept uninterpreted > in the send/receive queue until it gets accessed by a data > transfer. The information on what type of memory is being referenced > is deducted from the local memory key. As said, this step is > being executed only when the actual buffer is to be touched. > All it needs before that translation is to keep the 32bit key + > length and the up to 64bit address in a work queue element within > the send queue. > lkey lookup and memory translation + access validation happens > after the work queue element left the send/receive queue and a > local copy of it is being processed by the kernel driver > during RX or TX operations. > > Inline data is implemented similar to how HW providers do > it - user data are copied immediately into the WR array. I still don't understand how kernel void *'s are getting into WQEs. Jason