Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1183344ybi; Fri, 12 Jul 2019 11:07:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKNB8Xoo97EJCQb32LeU4JkBe430HTiYg2ibQ6Wn4PJnYUJxiO/TcUrgCnwlV/IYW4AHaA X-Received: by 2002:a63:124a:: with SMTP id 10mr12296228pgs.254.1562954827397; Fri, 12 Jul 2019 11:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562954827; cv=none; d=google.com; s=arc-20160816; b=iNNqDpMKDEy67ow84Qgu6z2oqpvlJbgjQglub1bvCI/oi430pbRt4zWGgYZfYJlHJD 6oNqAHhscZXA52e5yyacXO8JZlsqc+Qo0wE2p36fvotPc7Z9Nit66QIvg3CFHjjjuSVl ooMYlF0Xjql3RBw1d4g9Mem3c1lJevVTUVh/Tf+FDjjuobzInHALzdkwcNAJpY/D/dzh 34vDw/maFJNgYl0V8iAT25HQnrnuhC5SONdQITm8WSPiqUf8rQ5/gTsBJF7lA8NrTn8U ztwYGimx0nl65P1D1k4746+1mN6S5x2CyUNbYA/h0qfHYl/n9HBmi2LA/0Tyv1IB8X3q FPOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:message-id :content-transfer-encoding:references:importance:sensitivity :mime-version:date:cc:to:from:in-reply-to; bh=6IBu7FbIXIFKNBWbmOwOFlhGwSzBiOdqTxtUXqydKgo=; b=lpMJgk00DxGoqVeKWzMeWqWbshEg2J6CIJghNGtokt8IINCbUUg2fPZN2hIvevztlw m3wrHFvPA/MY+oPwYWPJw8Kl0mUL6YC1F6SgvdIOiI/RvPerScJwOZIrA6ViiFb+Ja5S ymSyhYuzcsj/ltQcyvNuXlr6G4oImTaOZiGKUn+IrzuZgsE/90gNh4se2yFTlxJ60/t9 wfsQhv/CRt84wS8F1qwlEC8YUPqy/KdAdI+nwa2rGkn/UWVwt34ciERRWD0ibSYvgBkx KGiBQMZXBshF4QNf77MEfIph609DKJkj2uOHw8i6mBMcIAFyTW1Y6BGkzqor7cY8qtzL 7Fhg== 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 h127si9184632pfe.44.2019.07.12.11.06.51; Fri, 12 Jul 2019 11:07:07 -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 S1727229AbfGLSGc convert rfc822-to-8bit (ORCPT + 99 others); Fri, 12 Jul 2019 14:06:32 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:22078 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726976AbfGLSGb (ORCPT ); Fri, 12 Jul 2019 14:06:31 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x6CI1sJp057827 for ; Fri, 12 Jul 2019 14:06:30 -0400 Received: from smtp.notes.na.collabserv.com (smtp.notes.na.collabserv.com [192.155.248.90]) by mx0a-001b2d01.pphosted.com with ESMTP id 2tpwr0uca6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 12 Jul 2019 14:06:30 -0400 Received: from localhost by smtp.notes.na.collabserv.com with smtp.notes.na.collabserv.com ESMTP for from ; Fri, 12 Jul 2019 18:06:30 -0000 Received: from us1a3-smtp08.a3.dal06.isc4sb.com (10.146.103.57) by smtp.notes.na.collabserv.com (10.106.227.141) with smtp.notes.na.collabserv.com ESMTP; Fri, 12 Jul 2019 18:06:23 -0000 Received: from us1a3-mail162.a3.dal06.isc4sb.com ([10.146.71.4]) by us1a3-smtp08.a3.dal06.isc4sb.com with ESMTP id 2019071218062278-708096 ; Fri, 12 Jul 2019 18:06:22 +0000 In-Reply-To: <20190712174525.GM27512@ziepe.ca> From: "Bernard Metzler" To: "Jason Gunthorpe" Cc: "Arnd Bergmann" , "Doug Ledford" , "Peter Zijlstra" , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 12 Jul 2019 18:06:22 +0000 MIME-Version: 1.0 Sensitivity: Importance: Normal X-Priority: 3 (Normal) References: <20190712174525.GM27512@ziepe.ca>,<20190712153243.GI27512@ziepe.ca> <20190712144257.GE27512@ziepe.ca> <20190712135339.GC27512@ziepe.ca> <20190712120328.GB27512@ziepe.ca> <20190712085212.3901785-1-arnd@arndb.de> X-Mailer: IBM iNotes ($HaikuForm 1054) | IBM Domino Build SCN1812108_20180501T0841_FP55 May 22, 2019 at 11:09 X-LLNOutbound: False X-Disclaimed: 56715 X-TNEFEvaluated: 1 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset=UTF-8 x-cbid: 19071218-9717-0000-0000-00000CE454F7 X-IBM-SpamModules-Scores: BY=0.035382; FL=0; FP=0; FZ=0; HX=0; KW=0; PH=0; SC=0.40962; ST=0; TS=0; UL=0; ISC=; MB=0.011064 X-IBM-SpamModules-Versions: BY=3.00011416; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000286; SDB=6.01231203; UDB=6.00648564; IPR=6.01012488; BA=6.00006355; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00027694; XFM=3.00000015; UTC=2019-07-12 18:06:28 X-IBM-AV-DETECTION: SAVI=unsuspicious REMOTE=unsuspicious XFE=unused X-IBM-AV-VERSION: SAVI=2019-07-12 15:07:04 - 6.00010156 x-cbparentid: 19071218-9718-0000-0000-00005C506232 Message-Id: Subject: Re: Re: Re: Re: Re: Re: [PATCH] rdma/siw: avoid smp_store_mb() on a u64 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-07-12_05:,, 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: 07/12/2019 07:45PM >Cc: "Arnd Bergmann" , "Doug Ledford" >, "Peter Zijlstra" , >linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org >Subject: [EXTERNAL] Re: Re: Re: Re: Re: [PATCH] rdma/siw: avoid >smp_store_mb() on a u64 > >On Fri, Jul 12, 2019 at 05:40:43PM +0000, Bernard Metzler wrote: > >> It is because there are two levels a CQ can be armed: >> >> #include >> >> int ibv_req_notify_cq(struct ibv_cq *cq, int >solicited_only); >> >> If we kick the CQ handler, we have to clear the whole >> thing. The user later again decides how he wants to get it >> re-armed...SOLICITED completions only, or ALL signaled. > >Arrange it so only one of the two bits is ever set and do two >test-and-set bits when a SOLICITED CQE comes in? > right, but that's too easy ;) I'll probably do it along those lines. Many thanks, Bernard.