Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2933182ybl; Mon, 19 Aug 2019 09:31:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+yzpUJbcR4MYjlcaqAv8HtHkXTDRRFsNiH7y2Z1HdAf8wfhwYeVuTJwwENksy67WDsf5K X-Received: by 2002:a63:3dcd:: with SMTP id k196mr20960649pga.45.1566232319213; Mon, 19 Aug 2019 09:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566232319; cv=none; d=google.com; s=arc-20160816; b=W4KhA5lrHknwhg5g4jQpQZ7UFGesFiti9thqmgVb4ChZV4xQ28Mh+zdJDlZ6nZ7Rez RRadG0Jp10xdbHRo64VvPF9WucoEpZq6Bii76a6msNTVeMfnWWUwuL7gvmb3LjopwURM T6SpbNFlOY49Kyw5mmqv3jBo6Fb7yLjJxROpm/cFtvHPO296m67ESb1hoC/QjsH4HnHd bCPQ5U6mA+qPmjPv439aHJ6gBkmUT+dCmxxyI1Jr51b7u1gSFZS7m8aS1sWBPBTr2j1W DLPZh4y103RqMLXa3h/YmavNl0zFYK12iXoSnuNwBEjhacms6efn1cqfjmCS7qdT7Sfd oDLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :references:importance:sensitivity:mime-version:date:cc:to:from :subject:in-reply-to; bh=UlS6+gwR+QThTwkY4vPAXPHBV3f4HjBuMnMAoK5H8IE=; b=hA9/daQz2VCnrfwUmMxtLKOnmRu5aUKDCg0sj4QsndPJAsb5FqdAFOimZq7QSceoMG 33R3e3v26CiyHMnDSQFrxZY64HPnC+g189YhvTFmuqPIx3+vmXtvC0nh/VF3RV1RaB0A KMKNDQnUCqKUZf10kROqxOl+vzggwJn3AS6EjjnSpYslerdcnAHsBXUiMhVXaZvRem1J 8yJvKifOfD4UAh4xB9K2YQIQbzgFfVMZiUUM6Ii1LcC81n99uBLtHu7TJaP1EWzCRcnH HUFbvAzROJf9+n2D8dD2R2EaiiGtbTOYbL/z9I32y9Eu7kFAtFkERSPxVgpWHM8kM54K eQCQ== ARC-Authentication-Results: i=1; mx.google.com; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24si10805386pfp.107.2019.08.19.09.31.43; Mon, 19 Aug 2019 09:31:59 -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; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727919AbfHSQ3V convert rfc822-to-8bit (ORCPT + 99 others); Mon, 19 Aug 2019 12:29:21 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:5802 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727398AbfHSQ3V (ORCPT ); Mon, 19 Aug 2019 12:29:21 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x7JGReaH138916 for ; Mon, 19 Aug 2019 12:29:19 -0400 Received: from smtp.notes.na.collabserv.com (smtp.notes.na.collabserv.com [192.155.248.93]) by mx0b-001b2d01.pphosted.com with ESMTP id 2ufwgx4w28-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 19 Aug 2019 12:29:19 -0400 Received: from localhost by smtp.notes.na.collabserv.com with smtp.notes.na.collabserv.com ESMTP for from ; Mon, 19 Aug 2019 16:29:18 -0000 Received: from us1a3-smtp02.a3.dal06.isc4sb.com (10.106.154.159) by smtp.notes.na.collabserv.com (10.106.227.39) with smtp.notes.na.collabserv.com ESMTP; Mon, 19 Aug 2019 16:29:12 -0000 Received: from us1a3-mail162.a3.dal06.isc4sb.com ([10.146.71.4]) by us1a3-smtp02.a3.dal06.isc4sb.com with ESMTP id 2019081916291183-732280 ; Mon, 19 Aug 2019 16:29:11 +0000 In-Reply-To: <20190819160502.GI5058@ziepe.ca> Subject: Re: Re: Re: Re: Re: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse From: "Bernard Metzler" To: "Jason Gunthorpe" Cc: "Geert Uytterhoeven" , "Doug Ledford" , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 19 Aug 2019 16:29:11 +0000 MIME-Version: 1.0 Sensitivity: Importance: Normal X-Priority: 3 (Normal) References: <20190819160502.GI5058@ziepe.ca>,<20190819150723.GH5058@ziepe.ca> <20190819141856.GG5058@ziepe.ca> <20190819135213.GF5058@ziepe.ca> <20190819122456.GB5058@ziepe.ca> <20190819100526.13788-1-geert@linux-m68k.org> X-Mailer: IBM iNotes ($HaikuForm 1054) | IBM Domino Build SCN1812108_20180501T0841_FP55 May 22, 2019 at 11:09 X-LLNOutbound: False X-Disclaimed: 38175 X-TNEFEvaluated: 1 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset=UTF-8 x-cbid: 19081916-8889-0000-0000-00000028E1B2 X-IBM-SpamModules-Scores: BY=0; FL=0; FP=0; FZ=0; HX=0; KW=0; PH=0; SC=0.40962; ST=0; TS=0; UL=0; ISC=; MB=0.015493 X-IBM-SpamModules-Versions: BY=3.00011618; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000287; SDB=6.01249129; UDB=6.00659389; IPR=6.01030664; MB=3.00028236; MTD=3.00000008; XFM=3.00000015; UTC=2019-08-19 16:29:16 X-IBM-AV-DETECTION: SAVI=unsuspicious REMOTE=unsuspicious XFE=unused X-IBM-AV-VERSION: SAVI=2019-08-19 14:09:01 - 6.00010304 x-cbparentid: 19081916-8890-0000-0000-0000003B008E Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-19_03:,, signatures=0 X-Proofpoint-Spam-Reason: safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org -----"Jason Gunthorpe" wrote: ----- >To: "Bernard Metzler" >From: "Jason Gunthorpe" >Date: 08/19/2019 06:05PM >Cc: "Geert Uytterhoeven" , "Doug Ledford" >, linux-rdma@vger.kernel.org, >linux-kernel@vger.kernel.org >Subject: [EXTERNAL] Re: Re: Re: Re: [PATCH] RDMA/siw: Fix compiler >warnings on 32-bit due to u64/pointer abuse > >On Mon, Aug 19, 2019 at 03:54:56PM +0000, Bernard Metzler wrote: > >> Absolutely. But these addresses are conveyed through the >> API as unsigned 64 during post_send(), and land in the siw >> send queue as is. During send queue processing, these addresses >> must be interpreted according to its context and transformed >> (casted) back to the callers intention. I frankly do not >> know what we can do differently... The representation of >> all addresses as unsigned 64 is given. Sorry for the confusion. > >send work does not have pointers in it, so I'm confused what this is >about. Does siw allow userspace to stick an ordinary pointer for the >SG list? Right a user references a buffer by address and local key it got during reservation of that buffer. The user can provide any VA between start of that buffer and registered length. > >The code paths here must be totally different, so there should be >different types and functions for each case. Yes, there is a function to process application memory (siw_rx_umem), to process a kernel PBL (siw_rx_pbl), and one to process kernel addresses (siw_rx_kva). Before running that function, the API representation of the current SGE gets translated into target buffer representation. Thanks and best regards, Bernard.