From owner-freebsd-arm@freebsd.org Tue Dec 18 02:30:13 2018 Return-Path: Delivered-To: freebsd-arm@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 1878F1339ABF for ; Tue, 18 Dec 2018 02:30:13 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) (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 8034071863 for ; Tue, 18 Dec 2018 02:30:12 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: by mail-io1-f44.google.com with SMTP id s22so11608134ioc.8 for ; Mon, 17 Dec 2018 18:30:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Eg6vH0EnTA0ENB8OznIyEpF9mq7z0rBwYViES2Lb6Nw=; b=fwOEAF6xROW0Hkvl8w9sM8++b9sizJcDvx9UKpMhYYQ0US7cHMts8zTcbU4njpUW7B 1lfKs64z86OvcD5IaaVpdqBDzErQMnwUXi4MAx5dc3GvfLTUKQkZ3YPfQX+X4b7h6sGI f8gXFGZTMzvTdErVKf8pkl+CaiD0I3w96UUuzvs35eiK7nc312AiP3DEuu8QfJu1mZzX jfskYC+uT9OSEsze9o97ZPkzP85cmDIb5ueIpHJ/4xS0BfDbUQLOIauCpphhwEsdQppK eZyqX1Xe9NcZMcOcBMkMnzHQ4BtcvsiIYFMneWqrN7xKKHrBu+syZvfq6mikiJGgb0Mt IzXw== X-Gm-Message-State: AA+aEWbkIVIjOCNNvO2gJxADvmB44x6rcwmjjJruUxhK0b78K4mIOKAU XTGk3Zm8OAYoNux/pQqoOyOLaQMubcvS+PJqPmrVRNQO X-Google-Smtp-Source: AFSGD/U2UH1YJ0r5TWioTYuGLOA+1AyXssBGfcljWElnKLyv7cBJ+byKonMF79i8bp80eBkn+PSwynEXZ8+h5/Pwot0= X-Received: by 2002:a6b:9355:: with SMTP id v82mr13540660iod.40.1545100206295; Mon, 17 Dec 2018 18:30:06 -0800 (PST) MIME-Version: 1.0 From: "Jayachandran C." Date: Mon, 17 Dec 2018 18:29:40 -0800 Message-ID: Subject: ThunderX2 support in FreeBSD/arm64 To: freebsd-arm@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 8034071863 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of cjayachandran@gmail.com designates 209.85.166.44 as permitted sender) smtp.mailfrom=cjayachandran@gmail.com X-Spamd-Result: default: False [-5.02 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_TRACE(0.00)[0:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.20)[-0.195,0]; RCVD_IN_DNSWL_NONE(0.00)[44.166.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.82)[ip: (-9.06), ipnet: 209.85.128.0/17(-3.58), asn: 15169(-1.37), country: US(-0.08)]; RCVD_TLS_LAST(0.00)[]; FORGED_SENDER(0.30)[jchandra@freebsd.org,cjayachandran@gmail.com]; DMARC_NA(0.00)[freebsd.org]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TAGGED_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[jchandra@freebsd.org,cjayachandran@gmail.com]; TO_DOM_EQ_FROM_DOM(0.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Dec 2018 02:30:13 -0000 Over the last few weeks I have committed changes for a few outstanding items needed for ThunderX2 support in FreeBSD/arm64. Most of the changes were to fix-up support for ACPI based PCI controllers and to enable ACPI based NUMA (thanks to andrew, markj and jhb for reviews). With these, 13-CURRENT works well enough for testing - so if you have access to a ThunderX2, I would like to hear how well it works for you. Also, the same series added support for running FreeBSD on qemu/kvm on Linux with ACPI support. You can test the changes (including NUMA) in a VM if you don't want to do a full install. Few notes: - you will need the latest firmware from support.cavium.com, the older firmware had a bug which resulted in a crash at SATA controller init. - you will need to enable 'options NUMA' in your conf file (most of the systems available are multi-socket) - keep WITNESS & INVARIANTS on - if you are using qemu, use '-M virt,gic-version=3' at qemu command line and pass 'kern.cfg.order=acpi' and 'hw.pci.honor_msi_blacklist=0' to loader JC