From owner-freebsd-current@freebsd.org Wed Jun 13 11:17:28 2018 Return-Path: Delivered-To: freebsd-current@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 1BC111021CD7 for ; Wed, 13 Jun 2018 11:17:28 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A27397BD2E for ; Wed, 13 Jun 2018 11:17:27 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: by mailman.ysv.freebsd.org (Postfix) id 5D2F11021CD4; Wed, 13 Jun 2018 11:17:27 +0000 (UTC) Delivered-To: current@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 4AD451021CD2 for ; Wed, 13 Jun 2018 11:17:27 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-yw0-x231.google.com (mail-yw0-x231.google.com [IPv6:2607:f8b0:4002:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C83B27BD2B for ; Wed, 13 Jun 2018 11:17:26 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: by mail-yw0-x231.google.com with SMTP id r19-v6so730793ywc.10 for ; Wed, 13 Jun 2018 04:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=W3/8H8VdXIrj/RAElT9NgInp8RcbP4lKr/SMlYzdM9M=; b=tyC9UDg/Kc7uz9vWSHxhUswktuTVWw9q4Pv2wetKgxeUqRyEVME50Dv+ALtUIAt0uy aWRbb1JrwkYmPRkxJClr/FEVOye6//Ifv04bcVUELJ6J1TDnOaGpvIdNUP2dM4VMOKfH DnDuO5p4Hun+oag6uQ2hkC8ppLKB6/MPVXKs0= 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=W3/8H8VdXIrj/RAElT9NgInp8RcbP4lKr/SMlYzdM9M=; b=SLqdoEluLmI7UFbROZGlLr6aO2CJ5qHnKyaDK42OUeSJiOgnkd0duDf/PGJPqRAnNp CFgCshQQx9+xtb4rSKRkdxIin3bUcrF6P/OU9NOFLxTgYyir+8UiQBJIvWIeUwi515i9 rhVvwNWkrKWHZEH424n3e/CULZzB3nxtDpczr8T2gSTE6wewOM/Sx6I1R6q4OEPlop4P OqXnp0ZtegHpv9Mjt+8Z/iXyBr/BWTLpQe9j3Fo6xLcAvHtFMXHe60TgMZq0voLYIQKy v1LUkQWmKDmAO+BwzQ1fpF5Ps2dAsTinQ1hrq4O3n3OKWNUBtkhwvLPTthNXx6J4IlS9 778Q== X-Gm-Message-State: APt69E24RHZgOD47x/VBgKTOPQXmC1J72Qxa4Yzqs4jBdVlvyJL9pze0 p2eG0C2uKMbEnWc8BGyg7o2r4pOzrbX3deJMjxW2AQ== X-Google-Smtp-Source: ADUXVKLQXb51TC+K2Au8pl887/0caZyGMm8iiLHtK8zWFJVU/QRe8c+fbP8yLS001Geqi/SjbuIbLQQKJHHV7CR/TLY= X-Received: by 2002:a81:6d52:: with SMTP id i79-v6mr2030141ywc.141.1528888646173; Wed, 13 Jun 2018 04:17:26 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:ef50:0:0:0:0:0 with HTTP; Wed, 13 Jun 2018 04:16:55 -0700 (PDT) In-Reply-To: <20180613103535.GP2493@kib.kiev.ua> References: <20180613103535.GP2493@kib.kiev.ua> From: Eitan Adler Date: Wed, 13 Jun 2018 04:16:55 -0700 Message-ID: Subject: Re: Ryzen public erratas To: Konstantin Belousov Cc: "current@freebsd.org" , amd64@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2018 11:17:28 -0000 On 13 June 2018 at 03:35, Konstantin Belousov wrote: > Today I noted that AMD published the public errata document for Ryzens, > https://developer.amd.com/wp-content/resources/55449_1.12.pdf > > Some of the issues listed there looks quite relevant to the potential > hangs that some people still experience with the machines. I wrote > a script which should apply the recommended workarounds to the erratas > that I find interesting. > > To run it, kldload cpuctl, then apply the latest firmware update to your > CPU, then run the following shell script. Comments indicate the errata > number for the workarounds. > > Please report the results. If the script helps, I will code the kernel > change to apply the workarounds. > > #!/bin/sh > > # Enable workarounds for erratas listed in > # https://developer.amd.com/wp-content/resources/55449_1.12.pdf > > # 1057, 1109 > sysctl machdep.idle_mwait=0 > sysctl machdep.idle=hlt Is this needed if it was previously machdep.idle: acpi ? -- Eitan Adler