From owner-freebsd-hackers@freebsd.org Mon Aug 27 12:18:48 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 A3B9510877EA; Mon, 27 Aug 2018 12:18:48 +0000 (UTC) (envelope-from meowthink@gmail.com) Received: from mail-oi0-x22f.google.com (mail-oi0-x22f.google.com [IPv6:2607:f8b0:4003:c06::22f]) (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 42A198D409; Mon, 27 Aug 2018 12:18:48 +0000 (UTC) (envelope-from meowthink@gmail.com) Received: by mail-oi0-x22f.google.com with SMTP id p84-v6so26849230oic.4; Mon, 27 Aug 2018 05:18:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=VZ5Gi/lOxPRe7k2qxPxDchYAPQ6GxDP3w/jNHlovBdI=; b=m1LN+GPP1rimYfXSnxJIMAmSI01quK7V8WANQJlZaNA8r4k1cXjfiXWoa8whJ7Ug/r qy8MU5OslbTYpXBxlNSN9Z14NyI/JtSeSmXx8HBMNXB58cwdfJJt953LqJOYcivJbPzn QqC066bLudpzZLZQONN/9a5zTSn7FEpVmdngDpzqWn1V5VsMINhv5MhkBhjWFiS386X9 MSH4FAY6ibzj2y5JH9dhpVxXGtFicnd01mGR403NXciNIhJzhITGlVV1/Fv55sftNkGH kg9gIb5KCcspPa15ol8zmhte8zr2Bs6pOU8pGKaAZ0pioC81MJk9i4ybPi3YekQKPl9N /LHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=VZ5Gi/lOxPRe7k2qxPxDchYAPQ6GxDP3w/jNHlovBdI=; b=BEGRqr4/Y3Fgs2stxBsqWGAQDLyTpUrEAKEWMjo+PGxx/3W2T5PKnjwI1aLyAz4L8Q B7h5BYU/u6dASil1dzMRSnB1ZVU5/XpWm3GWhfyq8+Zyql/Tg/l9t9cuGP3jQ+BG6Jn9 RrBa5TdG6S19bX+Cow1driQ168ooC3u5J+RF8YUbTtud3a96zckdC5wO5yaLH1fS+Eo5 NMlsRVj9fR+YzNRtzc/Vay4rIhtvbMf+IFxt+SkSKrr6q0f0wX20doYz99vKepiSq7du 6FDWP638pYD6oRNGQZr8/ejq3ncE15qxt86zM4gZmBOoksMZGcPU+yV8PAZNzBxxaSlo zBvA== X-Gm-Message-State: APzg51BGXGJybYr7qlbo2sV+68O7f1w/yzFSvLvW+jJqH064mb/+3ANg EDtEioV3KBe81wOJhtorWza+ZMnZDi+TWknObRI= X-Google-Smtp-Source: ANB0VdbxEhAccjQjMEIQt27Vf43BtYaeSN1LeJUZ8QDPsP/VrjhNLhQO9WZQNsdE2R/9mz1UgBJfWD+q9kcsESLBG98= X-Received: by 2002:aca:c2c1:: with SMTP id s184-v6mr11554339oif.117.1535372327455; Mon, 27 Aug 2018 05:18:47 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac9:5ac4:0:0:0:0:0 with HTTP; Mon, 27 Aug 2018 05:18:46 -0700 (PDT) In-Reply-To: <20180827132905.191dbd8c@ernst.home> References: <20180827132905.191dbd8c@ernst.home> From: Meowthink Date: Mon, 27 Aug 2018 20:18:46 +0800 Message-ID: Subject: Re: Help diagnose my Ryzen build problem To: gljennjohn@gmail.com Cc: freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Content-Type: text/plain; charset="UTF-8" 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 12:18:48 -0000 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. 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. 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