From owner-freebsd-doc@freebsd.org Sat Dec 15 10:16:03 2018 Return-Path: Delivered-To: freebsd-doc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4682013401D6 for ; Sat, 15 Dec 2018 10:16:03 +0000 (UTC) (envelope-from spamlessone@gmail.com) Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A9C3C6843E for ; Sat, 15 Dec 2018 10:16:02 +0000 (UTC) (envelope-from spamlessone@gmail.com) Received: by mail-ot1-x334.google.com with SMTP id v23so7859250otk.9 for ; Sat, 15 Dec 2018 02:16:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=PabpZ39UfgSAufXjnQH7zapTL1a4g1wSf/lPS/e6XYE=; b=GJU+N+T7zXvrSOAXI0AGEYG6D9IeTW3A6adh14PSsgduhVKwwnk83C9B0Hb1mZf67T tPWibFMq8B7PgqwCbJ7tiAJ4z29uRwrF3bkT+C/6hACUzt0F7WSLZGPPId5YI/7DYo1o p+wIttNM4eZmpkVnuy12H2mc87+7tvudJjgxavVKgTQHtgUXfVJj/UybjPxqN5Ds79rD xj2iiOlR4chMrHI3yKJxZMTGtOqT89Xd7SKNmD9bCy3N8GJj/+s0dtN+a6KWBCO7df/i zP1Z4J5Ccx34Qi0eZlTLclsI/kfY+9DKJueyX8rOWq8oIP3HRkZS2/6mrH5VCv9JppYm d96Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=PabpZ39UfgSAufXjnQH7zapTL1a4g1wSf/lPS/e6XYE=; b=BITnYFQSJ6DSUFzyje9gz4J/hvt4SH3HJ1owtHELY7wmb5Gy7UrgaaZ8dNucv5Q3el 8JJoUmDybsVh2Jp08q4LjqjAwGXcqb9ooly6qucWlqyDQs73e/X2ssXVMR2ksx2LVY2t gO9uTVImluICRtZQymEdV+kk4XEgcG+5URneQEO+aHc7pCHX7Lqqd13Q9O1dIJ4PA0NR ONkhxTEkdB3m8c/bkM434u7bgQxKSaA7Q027vtteOtBRhfb0WxtZIgElD5d2zLCNm+Qa ek2TSyFmstXVI06oFhA3tXWnSeiF1rJMjO8RegVnZ1MBC84QQq2nq3fH1oPVcEtg8qPx KYAQ== X-Gm-Message-State: AA+aEWaut6Ir7IFhujrFPRWsE/AVcL8hYdQ548nZkFVfT9IWkFKN3/dP 6X/hMtG3uv3An2kTF799IxORsCv3HPKr7BLLNmVqXg== X-Google-Smtp-Source: AFSGD/V8gLNTs64blCifFKaRdDtXYmeAFq0cO0j0XNIHBCGM3kg4LvDmZg34FX0wnJeuNDADHoX4UisGbjKdS8FajrQ= X-Received: by 2002:a9d:58cb:: with SMTP id s11mr4252565oth.161.1544868961802; Sat, 15 Dec 2018 02:16:01 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Peter Holvenstot Date: Sat, 15 Dec 2018 05:15:22 -0500 Message-ID: Subject: Re: Infiniband documentation outdated To: freebsd-doc@freebsd.org X-Rspamd-Queue-Id: A9C3C6843E X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=GJU+N+T7; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of spamlessone@gmail.com designates 2607:f8b0:4864:20::334 as permitted sender) smtp.mailfrom=spamlessone@gmail.com X-Spamd-Result: default: False [-3.59 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.992,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-doc@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.99)[-0.994,0]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[4.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_SPAM_SHORT(0.01)[0.012,0]; IP_SCORE(-0.61)[ipnet: 2607:f8b0::/32(-1.61), asn: 15169(-1.33), country: US(-0.08)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2018 10:16:03 -0000 Also, for me /etc/src.conf did not exist by default and adding WITH_OFED='yes' did not help, I got a build error with a generic kernel with the appropriate device and option flags added (nor did WITH_OFED="YES"). It appears that this might need to be added as a command-line arg when doing buildkernel, rather than as a src.conf parameter... unless they are supposed to be equivalent functionality wise? Not sure if the suggestions I read on forums were correct or not here, after I got the kernel modules to load successfully I abandoned attempting to build it into the kernel, but I could not successfully build the kernel by following the documentation here (again, as of 12.0-RELEASE). Might be newbie mistakes, I'm just transitioning from Linux to FreeBSD, but the documentation appears to have possibly drifted at least somewhat from the codebase here on 12.0 release. On Sat, Dec 15, 2018 at 4:56 AM Peter Holvenstot wrote: > Hello, > > the script to build the kernel modules for the mlx4 infiniband driver > appears to be outdated at least as of 12.0-RELEASE. After some searching, > it appears the correct script is: > > #!/bin/sh -e > > cd /usr/src/sys/modules > for module in mlx4 ibcore mlx4ib ipoib; do > cd $module > > *make DEBUG_FLAGS="-DVIMAGE=1"* make install > sync > kldload $module || true > printf "${module}_load=\"YES\"\n" >> /boot/loader.conf > cd .. > done > kldstat > > note the addition of the DEBUG_FLAGS. Otherwise all of the modules except > mlx4 fail to kldload correctly. > > Thanks, > Peter >