Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750984AbbD2SYB (ORCPT ); Wed, 29 Apr 2015 14:24:01 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:54618 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750714AbbD2SX7 (ORCPT ); Wed, 29 Apr 2015 14:23:59 -0400 X-Sasl-enc: EcqWRq/mtgW/XJUDTtrhmD5f5qDoA//U3u+7pOV8O4mN 1430331837 Date: Wed, 29 Apr 2015 15:23:57 -0300 From: Henrique de Moraes Holschuh To: Borislav Petkov Cc: Daniel J Blueman , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Quentin Casasnovas , Steffen Persvold , linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH] x86: Unbreak early processor microcode loading Message-ID: <20150429182357.GB14218@khazad-dum.debian.net> References: <20150318184249.GC3249@pd.tnic> <1426750223.3578.2@cpanel21.proisp.no> <20150319092703.GA10860@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150319092703.GA10860@pd.tnic> X-GPG-Fingerprint: 4096R/39CB4807 C467 A717 507B BAFE D3C1 6092 0BD9 E811 39CB 4807 User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1784 Lines: 43 On Thu, 19 Mar 2015, Borislav Petkov wrote: > On Thu, Mar 19, 2015 at 03:30:23PM +0800, Daniel J Blueman wrote: > > Neat; I added the 'amd-ucode/' directory prefix to the string and adjusted > > the buffer size, and the microcode is loaded, > > We shouldn't need to do that though for obvious reasons. > > IOW, you need to type in only the filenames of the microcode blobs in Kconfig > option: > > CONFIG_EXTRA_FIRMWARE="microcode_amd.bin microcode_amd_fam15h.bin microcode_amd_fam16h.bin" > > and then add the absolute path to them with: > > CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware/amd-ucode" > > That worked here yesterday. I apologise for the late reply. Please disregard it if it is outdated. That would obviously work, but people often have other firmware built-in, so the likehood of CONFIG_EXTRA_FIRMWARE_DIR pointing to the root of a linux-firmware work tree or to "/lib/firmware" is not low at all. In fact, it is natural to expect that CONFIG_EXTRA_FIRMWARE should point to something that will result in the same filenames as the kernel would want to use for regular firmware loading. The current text of the Kconfig help for CONFIG_EXTRA_FIRMWARE even says so. So, FWIW, I do think we should always use the same path for builtin and regular firmware requests, based on the least-surprise principle. -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/