Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1589266ybv; Thu, 6 Feb 2020 06:34:37 -0800 (PST) X-Google-Smtp-Source: APXvYqyqZloQY2SqzHUIOebyZpKh0fHQkIuqMVNwDYj/G4mTQEobuWzDlGdrtIbnYa/Is22+WMb2 X-Received: by 2002:a9d:7b51:: with SMTP id f17mr29908896oto.302.1580999677151; Thu, 06 Feb 2020 06:34:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580999677; cv=none; d=google.com; s=arc-20160816; b=rTX7PGRXwlUCEvaqz2VqE0MXf+Uzrw+Je298dS//5bsIZFxifHZXmirHDM5412PaYb /LDtg1fPR4f7tpfhxjU0eQXcyDbJvFrSd2VN1wJWz5R+QqGEpQ/MzoYq9Jcr4y6KDESL MrXgx1yS42FLab1Usr1D5CkMO94F3lYFUVgscPNNgffHcJvR2Qx9lmNm8cPw/okXnnM1 OigMUIvDS3cypiTM9laCSxiKXqsV+SMxXA1/0rjN7nhdy2+J/SyNRvs9/7qhzMG7c5yO h3wgxuqPYztWyXOYfd92/pGfF8PI5oCLcYIEcA+dejyjmoGe2d3MjxzG5ob0ineNyHAu GkHg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pyov8FWczadKme8MmKIuLoy6Cco1Gr8F1ki//7JnOus=; b=FHgn3jS5Q6M/yarmqV85r6lGWAM4gck6jSPEUsqhVB4xcPmECFHS721BnevU817hPQ DC1NsukgWDHosGeaDT7t6++GQA1ic8u0Y2c4r+8MFdkKvmRDB+fm3C+MEvPG4jR1J1aK qQaqPNem6Wmm3Gh/6dwFOcLKIqP+bGeIPO3DdDRxhQ30bxlOIULiOMFM2ic0u6OVIFPw ZX54imgmRJfAAdVCgJmyCo2g+z1gyapJMMaXzg9Z7z9PfvIGipgODJ8yRIseST49WCUM 7sBc0/bLpluQTaM6xh2H1y/Mh1CFie0tzhd8jZFfkH0NrsV7OPpifXAG0kj6y9kqEI2K kuMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=WtfTXcpx; 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 w9si1966475otk.91.2020.02.06.06.34.24; Thu, 06 Feb 2020 06:34:37 -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=WtfTXcpx; 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 S1728073AbgBFOcE (ORCPT + 99 others); Thu, 6 Feb 2020 09:32:04 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:34062 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727901AbgBFOcE (ORCPT ); Thu, 6 Feb 2020 09:32:04 -0500 Received: by mail-qt1-f195.google.com with SMTP id h12so4624682qtu.1 for ; Thu, 06 Feb 2020 06:32:03 -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:content-transfer-encoding:in-reply-to :user-agent; bh=pyov8FWczadKme8MmKIuLoy6Cco1Gr8F1ki//7JnOus=; b=WtfTXcpxEKjugOdoQ3xRt6ZtM85WSP/qurSvrIDFedMQ2O9pvih8+hrmBuSGbGmtGa N1n3Fw8knLnnvb4ofVFPGUTG8T0U0PeyP8xMS3/9Phf4gnK3Xkuo5liOPa6zSihQt050 bHZ6g4WV7jzYWWvSMRUIjVeclvvWj1QN/pRkO/wlWK/FS9lTji60yAGE2RAh4DvLbG3A AJscWPn+Yr6fwftqrnGtCXO/BsrB/LhpM8M7B90l4AynGy1W+ewNGKa5Hg98AllDlDfW F8d0+S5Wal6FlyjvAqBXml5yz3NfepnpIaBxYYKBSvjyeI6ovASl9pm85dJE0IsAYwq1 2pPg== 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:content-transfer-encoding :in-reply-to:user-agent; bh=pyov8FWczadKme8MmKIuLoy6Cco1Gr8F1ki//7JnOus=; b=jStBjWUJMf3LQO3n+jKzI5UY4hd40Ehs4wOldMqWCEIKabY58Nti1pCb8s22ybiz8b su0RTKcqVPDCRfLkLaIvjMkgpv42FAwWqZlcMui5UeWyyivtWEhNA65bH1BGiFaG73YE 2+rTCN4PAtVl37MdQTQ6qEFhnY/tn62xqA+JLtGy0o9MHc/JXwvD9Mdw7j9AaxNbY9bp kBFb9ARzyX/iKekPhczY57frrozI0fTbFcu2c1Ho5ehw46uHwzczlT+35Rg/bT9oqWMt yDoTX30q7oNON4Woh1KLjVt+XZDZzD8We1CROfC0E1wGulIxATWsGGOk2z8WrfZpFzVd +igQ== X-Gm-Message-State: APjAAAWq3rHlrzzrg/vk9wowqBwVXFBcd+8ReDLBzYOnWyjnIjK9iQqN EPc+Kr7LqNBOOB/MDpwR5dQlN5St7wE= X-Received: by 2002:ac8:7695:: with SMTP id g21mr2570013qtr.99.1580999522855; Thu, 06 Feb 2020 06:32:02 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-68-57-212.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.57.212]) by smtp.gmail.com with ESMTPSA id 69sm1464198qkk.106.2020.02.06.06.32.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Feb 2020 06:32:02 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1iziCH-0005pg-Sr; Thu, 06 Feb 2020 10:32:01 -0400 Date: Thu, 6 Feb 2020 10:32:01 -0400 From: Jason Gunthorpe To: Leon Romanovsky Cc: Randy Dunlap , Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , "linux-rdma@vger.kernel.org" Subject: Re: linux-next: Tree for Jan 30 + 20200206 (drivers/infiniband/hw/mlx5/) Message-ID: <20200206143201.GF25297@ziepe.ca> References: <20200130152852.6056b5d8@canb.auug.org.au> <20200206073019.GC414821@unreal> <20200206114033.GF414821@unreal> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200206114033.GF414821@unreal> 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, Feb 06, 2020 at 01:40:33PM +0200, Leon Romanovsky wrote: > On Thu, Feb 06, 2020 at 09:30:19AM +0200, Leon Romanovsky wrote: > > On Wed, Feb 05, 2020 at 09:31:15PM -0800, Randy Dunlap wrote: > > > On 1/30/20 5:47 AM, Randy Dunlap wrote: > > > > On 1/29/20 8:28 PM, Stephen Rothwell wrote: > > > >> Hi all, > > > >> > > > >> Please do not add any v5.7 material to your linux-next included > > > >> branches until after v5.6-rc1 has been released. > > > >> > > > >> Changes since 20200129: > > > >> > > > > > > > > on i386: > > > > > > > > ERROR: "__udivdi3" [drivers/infiniband/hw/mlx5/mlx5_ib.ko] undefined! > > > > ERROR: "__divdi3" [drivers/infiniband/hw/mlx5/mlx5_ib.ko] undefined! > > > > > > > > > > > > Full randconfig file is attached. > > > > > > > > > > > > > > I am still seeing this on linux-next of 20200206. > > > > Sorry, I was under wrong impression that this failure is connected to > > other issue reported by you. > > > > I'm looking on it right now. > > Randy, > > I'm having hard time to reproduce the failure. > ➜ kernel git:(a0c61bf1c773) ✗ git fixes > Fixes: a0c61bf1c773 ("Add linux-next specific files for 20200206") > ➜ kernel git:(a0c61bf1c773) ✗ wget https://lore.kernel.org/lkml/df42492f-a57e-bf71-e7e2-ce4dd7864462@infradead.org/2-config-r9621 > from https://lore.kernel.org/lkml/df42492f-a57e-bf71-e7e2-ce4dd7864462@infradead.org/ > ➜ kernel git:(a0c61bf1c773) ✗ mv 2-config-r9621 .config > ➜ kernel git:(a0c61bf1c773) ✗ make ARCH=i386 -j64 -s M=drivers/infiniband/hw/mlx5 > ➜ kernel git:(a0c61bf1c773) ✗ file drivers/infiniband/hw/mlx5/mlx5_ib.ko > drivers/infiniband/hw/mlx5/mlx5_ib.ko: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), BuildID[sha1]=49f81f5d56f7caf95d4a6cc9097391622c34f4ba, not stripped > > on my 64bit system: > ➜ kernel git:(rdma-next) file drivers/infiniband/hw/mlx5/mlx5_ib.ko > drivers/infiniband/hw/mlx5/mlx5_ib.ko: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), BuildID[sha1]=2dcb1e30d0bba9885d5a824f6f57488a98f0c95d, with debug_info, not stripped You need to link to see it.. From bee7b242c2c6a3bfb696cd5fa37d83a731f3ab15 Mon Sep 17 00:00:00 2001 From: Jason Gunthorpe Date: Thu, 6 Feb 2020 10:27:54 -0400 Subject: [PATCH] IB/mlx5: Use div64_u64 for num_var_hw_entries calculation On i386: ERROR: "__udivdi3" [drivers/infiniband/hw/mlx5/mlx5_ib.ko] undefined! ERROR: "__divdi3" [drivers/infiniband/hw/mlx5/mlx5_ib.ko] undefined! Fixes: f164be8c0366 ("IB/mlx5: Extend caps stage to handle VAR capabilities") Reported-by: Randy Dunlap Signed-off-by: Jason Gunthorpe --- drivers/infiniband/hw/mlx5/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 0ca9581432808c..9b88935f805ba2 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -6543,7 +6543,7 @@ static int mlx5_ib_init_var_table(struct mlx5_ib_dev *dev) doorbell_bar_offset); bar_size = (1ULL << log_doorbell_bar_size) * 4096; var_table->stride_size = 1ULL << log_doorbell_stride; - var_table->num_var_hw_entries = bar_size / var_table->stride_size; + var_table->num_var_hw_entries = div64_u64(bar_size, var_table->stride_size); mutex_init(&var_table->bitmap_lock); var_table->bitmap = bitmap_zalloc(var_table->num_var_hw_entries, GFP_KERNEL); -- 2.25.0