Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp7160324ybn; Mon, 30 Sep 2019 09:30:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUxWxu/YW/kHgO+AFuUKwWhKzs1VePlBKlSGGlIsfr6u+MXdiRsSHfJXJSxPA/qxoCtkbz X-Received: by 2002:aa7:d883:: with SMTP id u3mr20516752edq.281.1569861007177; Mon, 30 Sep 2019 09:30:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569861007; cv=none; d=google.com; s=arc-20160816; b=HVNYeLF8fPkBjK4o56GzFjKkk6wY+tONz8IbyBRUG9t7+VBGsMND/AQqPhX0NwIUW4 oYivyzDSyYlaN7m9Ud40dvnOWgI+TlOSlW3mh8PyvWZ+rJ17pUZZhCL+6aec5AT/M5Em iBYnoOx7Jy72ERAHSWGqKtTE4NlsmaBnvy+4oeq04ld+9A+eLaDZnIjW+IwXIXoXzf0O PNMyARm13MoRQ5pIk1kuH2jwXBE5BGprstEcXa53Wdhz6Z3j6O27s7p9mE+yk3Obr3mJ jn2pxT2vql3yKCBFeGaRzYt7K5mGIpgMeAZ7qsP0IYCPUvYPE7M4ibnt1EgJCdRR3bkb Nbig== 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=jzkAFLaCHV29m/fJWef9IzITfqS1NsfHIWmyf8nzRCA=; b=idX7yFsxLjlUHNevWVjnLpEbrBlkHadeUQADjTUQULNdqw6ber8AMS/ql3cByKzOwD HTDs9sMJ0KUhPv3O3EGYGrwxG8vGrJRevBcUIEVlKRi5cdwJPTivjpDt4jnnUIP9PNWA kKhgpObU8OCtbkCWyMVQM5rrTw2kS/GtQqTghonFTzSRpR++su789ux63rnDP10Ig91A fzkLtCj2zaUmgZsGY4qEBroBA6jjAK1SQ9+N9tOf8N2n6eMYANkZ5UM0nB4pTTkM0xzF kkSaOvPu41v8YOzA7G9IfoDguKcUvhDAkSC94Spk33sfWneD2qDXCXQ7d5Xn/KYAPh5X kCyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=NwVORxvg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f21si7025940eda.216.2019.09.30.09.29.34; Mon, 30 Sep 2019 09:30: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; dkim=pass header.i=@alien8.de header.s=dkim header.b=NwVORxvg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732272AbfI3Q3J (ORCPT + 99 others); Mon, 30 Sep 2019 12:29:09 -0400 Received: from mail.skyhub.de ([5.9.137.197]:50122 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732056AbfI3Q3I (ORCPT ); Mon, 30 Sep 2019 12:29:08 -0400 Received: from zn.tnic (p200300EC2F058B00329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2f05:8b00:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id C36C71EC05A1; Mon, 30 Sep 2019 18:29:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1569860946; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=jzkAFLaCHV29m/fJWef9IzITfqS1NsfHIWmyf8nzRCA=; b=NwVORxvgEnskxgL1hwnDSn7+uvAKGAHnEyl/4bKR9rA40iT/66FCEoXBNC/v06rwEkzJ7W raUj6GsQz4BDeSHoexc9g+vzLtMR8MKPasfbleksFjNT0jXulw5du2jg9kqoPX07vxnCA4 jAjRFl5AhGzlHzMbWO7OFXjJShxZNJw= Date: Mon, 30 Sep 2019 18:29:10 +0200 From: Borislav Petkov To: Michal Kubecek Cc: 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: <20190930162910.GI29694@zn.tnic> References: <20190930141316.GG29694@zn.tnic> <20190930154535.GC22120@unicorn.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190930154535.GC22120@unicorn.suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette