From owner-freebsd-hackers@freebsd.org Mon Aug 27 14:13:17 2018 Return-Path: Delivered-To: freebsd-hackers@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 672FB108B1FD; Mon, 27 Aug 2018 14:13:17 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (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 D4456720F4; Mon, 27 Aug 2018 14:13:16 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm0-x236.google.com with SMTP id i134-v6so10100217wmf.0; Mon, 27 Aug 2018 07:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=6FYv7XY/tmWnAIQOwTLCG09MRYbGUysfCqS0rp7gq90=; b=dEtHicpkN8UqzTLDj3o+zUrYbHYE0y8uKK3+gIRPnYxRGWTYfHEvUBOH5ZrpMhV0eE 85iJdCzlnJ8Ft1HlSqjQz3T0IaLUBgC38MyvR6YFLW5FQ+po1+9+L9jBduY8Z7rpX0O4 Kat4ggo/LywCLCN2oqp/cuWp0FWpaOKHASZHqhlo6S5/kt+pitt7Atvd7jKbiuKbBREt JAInK/KPUATyhyqo1WgitN2lYEDbKR39ecmtVF6HSwWsm+Nal7h0MRykoRd5jEf3P7Nu uGLA4ublll753qFelVs6hjGP+k4qCEx4W0xRJA3xmvVrS6UByFSRePsgL9fWevkWbggw +ADA== 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:reply-to:mime-version:content-transfer-encoding; bh=6FYv7XY/tmWnAIQOwTLCG09MRYbGUysfCqS0rp7gq90=; b=D0LFkRttp/SfruDQUvmF/prENA/pVi+UrT2fEWCgdBFCMbp8GYxskQorWsYH2Z9r+S jMa3fH/BHCRZ9O3h3YQTXZv8WSHt7WE+LNFeHHY9b1n4O7blagueN9UJr4VMZF8JW/Sl LNUgwBOJprkAyDzcYqlqlWHBSjoNHHDAfrqoxX2J01eJY6XILcRkC8NYswSTrDWAfa4M x1/tA40qnSf7YJB5wo9AnRRCyia/sm0c5ZIEFVnkF8UmCj1ld00Nk/yN1gCo3zWQc4GX wOrqkAM3VBoQaLdjAHwCdskE4PsNQuYFAz3Amhq3qDZ1MyhuKj2qeTD0Y9WVeRWQXZcB +S9w== X-Gm-Message-State: APzg51DNzWNKMWOTKxM4T51JlN0cpSzlHZkPQQXvfxpH5mKSy/kJZ+wP MyEthaS2I7JllDYnueyGLOWGEUj6 X-Google-Smtp-Source: ANB0VdbIZOKNMq6LR4kyCz/VVwbRsbdLYlOTNs+pxLVrpw/xXmT5GtyV8l+cX63/EaXBoQgiN058lQ== X-Received: by 2002:a1c:4887:: with SMTP id v129-v6mr5415044wma.129.1535379195877; Mon, 27 Aug 2018 07:13:15 -0700 (PDT) Received: from ernst.home (pD9E23C49.dip0.t-ipconnect.de. [217.226.60.73]) by smtp.gmail.com with ESMTPSA id p89-v6sm30962597wrc.97.2018.08.27.07.13.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Aug 2018 07:13:14 -0700 (PDT) Date: Mon, 27 Aug 2018 16:13:13 +0200 From: Gary Jennejohn To: Meowthink Cc: freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Subject: Re: Help diagnose my Ryzen build problem Message-ID: <20180827161313.291d24b7@ernst.home> In-Reply-To: References: <20180827132905.191dbd8c@ernst.home> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Aug 2018 14:13:17 -0000 On Mon, 27 Aug 2018 20:18:46 +0800 Meowthink wrote: > Hi Gary, > > On 8/27/18, Gary Jennejohn wrote: > > On Mon, 27 Aug 2018 10:13:10 +0200 > > Phil Norman wrote: > > > >> Hi. > >> > >> I have a similar setup: Ryzen 3 and Fatal1ty X370 mini-ITX. I had some > >> trouble with instability, although my problems weren't panics, but rather > >> two issues. One was random lockups (with no evidence left in logs), but I > >> *think* this was down to an inadequately cooled graphics card. > >> > > > > I had instability problems with my Ryzen 5 - lockups for no > > apparent reason. The only recourse waas a hard reset. > > > > It turned out that there were two causes > > 1) old CPU microcode > > 2) unhandled errate in the CPU > > > > I installed the /usr/ports/sysutils/devcpu-data port, which > > allowed me to install the latest microcode using cpucontrol(8). > > > > I also used a shell script called amd_errata.sh provided by one of > > the FreeBSD committers. To my shame I can't remember exactly > > who. Note that the errata fixups are now part of the kernel in > > FreeBSD 12. > > That's kib, who has committed things in that script to both 12 [1] and > stable/11 [2]. > > Unfortunately, that's for Ryzens family 17h model 00h-0fh, whereas my > Ryzen 5 2400G's model is 11h. > AMD has also relased a Revision Guide for Family 11h. Lots of errata listed there, but I didn't look at it closely enough to say whether any are relevant to lockups. > On the microcode. It shall be updated through UEFI/BIOS updates. I > think mine is now PinnaclePI-AM4_1.0.0.4 with microcode patchlevel > 0x810100b. > Well, I installed the latest BIOS for my ASUS B350M-A also, but it was no help. The lockups disappear only after I installed the latest microde using the port. > Seems like ... the only thing I can do is sit down and wait? > > > > > After taking these steps about two months ago I have had no more > > lockups and the machine runs very stabily. > > > > [big snip] > > > > -- > > Gary Jennejohn > > > > [1] https://svnweb.freebsd.org/base?view=revision&revision=336763 > [2] https://svnweb.freebsd.org/base?view=revision&revision=337235 -- Gary Jennejohn