Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp7422571ybn; Mon, 30 Sep 2019 13:41:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxwebduKxZmkaXPebaiIRWM4gBDe/HEDta6KAxXybCDUq7Zq6dl6LrzxFzxyjSfg935WNx X-Received: by 2002:a17:906:b84c:: with SMTP id ga12mr21366039ejb.0.1569876105517; Mon, 30 Sep 2019 13:41:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569876105; cv=none; d=google.com; s=arc-20160816; b=fCa4inkVdDrMwd5KaSZEFuIbTd9/Sm0VNSyJmF3jmBVeRAC3bIojzkiVJHuV3lp8s0 7VNcx/e+6AKgsdJcNBnuqXHKc1AQLP14Y0Yk4zEw7jyU39rJLO0cigo057GeDYRsOdlr mQZZkngs7pqYJS2tlssYZDXwnON+wk5RZYv/DDJTsXyq4luNnyq8mhw3GkrB+L41ToUK iFGewCFLErtMkPSMCEpQyyjJ9DvrJZZpQP4X5hkVoz32VYDHwjb/b/kmO5PwIajnIt42 PJf9Z1dC7elGTavlaooHfNcCjeDoeNXukqFS/QnUr8lRkxj+/Y0hQwXcz5PhqZqybuBg K4vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=lQ5PoHAAz/ydjtjUiADmfaA6ywwQrUwXkJB8zfwKppI=; b=BWfJvSgtOV3jU1w/RfPtTGrbdF2tfjA72RnLXlz8UzhcDjzIegfAqkcV/VMBLYlJOb qmzhwz3DOeSxq//SqpPDHRGp14miKdGFinUGh7HDuyW2yJXe00NH0ac82+Vv6QtmQqrk mgf0XjmtKZpne/lXzq1iCUPResZalGrYQqA4UwbEIdRXLapjdibSqZ0p3gJyEqTfxhtQ mCClKQGV2HJx/zIrD4dIfSpvQTecHxL7cgAoVDzouC/wHnio9ikceMOgfo3vK9ZGdRub TjQ1eZQ4FEmmsTuLR6eLjbfHrdvYKd5m8YRIJV6N6QiDZ/YA1pw5JijxfE8i686001LK pFcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b="Y/rFnOlC"; 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 jz12si7382280ejb.193.2019.09.30.13.40.52; Mon, 30 Sep 2019 13:41:45 -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=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b="Y/rFnOlC"; 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 S1730126AbfI3QzT (ORCPT + 99 others); Mon, 30 Sep 2019 12:55:19 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:41458 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726858AbfI3QzT (ORCPT ); Mon, 30 Sep 2019 12:55:19 -0400 Received: by mail-pg1-f195.google.com with SMTP id s1so7702214pgv.8 for ; Mon, 30 Sep 2019 09:55:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lQ5PoHAAz/ydjtjUiADmfaA6ywwQrUwXkJB8zfwKppI=; b=Y/rFnOlCbotMAk/hgn2CMTpa9RZ6Ewr3HU2nV06RqcNRs1WMPaucoXALh/KktpDw76 /9moz7Uch8yc4H7Yc+zLjfFyximUz0/8lDsraAD+dJynCs8zUMbVCocX25k8ix4nIPMU YogwrS/JolfZxOGf91tK8NL/EPnaJtDvSOguVjvmXE5+LTf+nDoBbAKNNofsCMcPBLCQ 4Gc4m6170fTN24g3kf2TuCKZUPU0304PeRpUAVDlmXheFzljiumOLEea7ViOx8gILa7I F1v29gJJOQ9702LyQ6ZDq3+EJcjcjYhpRhDcOPBvRKlAhgqL/SGLPTf4+eollQzfPAGi 9irQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=lQ5PoHAAz/ydjtjUiADmfaA6ywwQrUwXkJB8zfwKppI=; b=IfppCJghJn87jsphROHqM9kvaWi8hqLQ7RGLvfLdGfJjBmou2MotkF3tEU43NkASjc A7/w/FflH+ZEa18DAhEwxuz327xkRRjBey+6CtiiGt0aonK6Ls1GngP8Da+KKtPn5Fki GL5h2ZcUokwnOm7GxVoz3r4v1ZwTdonmeMFhO4P3zmLtG/XM0DfKFW5PNmkWb+eRPJzU l7ZmRDf8Ou7aB7EF2i5nlBRrCf4t8C73Bg52jjVqdQ1O86GHTDf1WYqVUVpR1OXONB1M 9sm417lZB5vyb9tesQMptVqXRSDC0UXjZfWe4L0sWplCEwdWyJeusxCf7nYAMFNW7/3s sLvQ== X-Gm-Message-State: APjAAAXw2PsSnZApinRvKzpO6OZLz8xrWf6xnz75PDxlPQ+LmvEj7Clp wxfb8EY5u1R1uV8EcGErVvllTw== X-Received: by 2002:a17:90a:b309:: with SMTP id d9mr253408pjr.8.1569862518487; Mon, 30 Sep 2019 09:55:18 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id v44sm27124250pgn.17.2019.09.30.09.55.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2019 09:55:18 -0700 (PDT) Date: Mon, 30 Sep 2019 09:55:16 -0700 From: Stephen Hemminger To: Borislav Petkov Cc: Michal Kubecek , linux-rdma@vger.kernel.org, Saeed Mahameed , Leon Romanovsky , netdev@vger.kernel.org, lkml Subject: Re: ERROR: "__umoddi3" [drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.ko] undefined! Message-ID: <20190930095516.0f55513a@hermes.lan> In-Reply-To: <20190930162910.GI29694@zn.tnic> References: <20190930141316.GG29694@zn.tnic> <20190930154535.GC22120@unicorn.suse.cz> <20190930162910.GI29694@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 30 Sep 2019 18:29:10 +0200 Borislav Petkov wrote: > On Mon, Sep 30, 2019 at 05:45:35PM +0200, Michal Kubecek wrote: > > On Mon, Sep 30, 2019 at 04:13:17PM +0200, Borislav Petkov wrote: > > > I'm seeing this on i386 allyesconfig builds of current Linus master: > > > > > > ERROR: "__umoddi3" [drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.ko] undefined! > > > make[1]: *** [__modpost] Error 1 > > > make: *** [modules] Error 2 > > > > This is usually result of dividing (or modulo) by a 64-bit integer. Can > > you identify where (file and line number) is the __umoddi3() call > > generated? > > Did another 32-bit allyesconfig build. It said: > > ld: drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.o: in function `mlx5dr_icm_alloc_chunk': > dr_icm_pool.c:(.text+0x733): undefined reference to `__umoddi3' > make: *** [vmlinux] Error 1 > > The .s file then points to the exact location: > > # drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c:140: align_diff = icm_mr->icm_start_addr % align_base; > pushl %ebx # align_base > pushl %ecx # align_base > call __umoddi3 # > popl %edx # > popl %ecx # > > HTH. > Could also us div_u64_rem here?