Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5950672ybl; Tue, 14 Jan 2020 18:28:08 -0800 (PST) X-Google-Smtp-Source: APXvYqwApiPxkVjiVNiYJLqd/BtiRNf7h1nIttAnQs4wPCEss48Jtgzk7usNUaKQ50wBVhNlx5HX X-Received: by 2002:a9d:7f11:: with SMTP id j17mr1176332otq.281.1579055288763; Tue, 14 Jan 2020 18:28:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579055288; cv=none; d=google.com; s=arc-20160816; b=jXgvhWEdeUNzxxFLOANa/H++cVSnlPHmekUoVYxPoBSGyZxLESODCpipxaVJOIP4XP oGhrbivhwe9rFca9oJgwzhOYnmltVnZBrrdLqaXnVDxXi9qBOflmLJoXWKRTxYzeNfo3 eczI9ziEmancLcjG+e/ifp1YHKVk7XeC8Z8kul1E3ivfi/g36OiiAjKxLFgQDKjya4UM z7fCVWxxKMxBk025UJemBb5rLYhvSz/BYl3JXnVOOAZio/34gFwWYuF7MLxbJAhG12hE OKZpdKE6/iNscSpelFbxlfcKgHaZmn4UqmvNqiOaWPXKyuv8d7e3bmUmWi7mGzJo6M+A jrZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=eSVEWssYTpiV5Eqi/FIfWIR/4RrREqVoEKeDwn2EhZ8=; b=vupslLQYuqs/uyYSjJOf7fpVpwTPehUgx+o/I8JJhvyg8g6j9xFhaYoyZ42RmRXMFk mNklzpgOFJBx10556aGH2nKRTPaT5zSoPJausNDn2htGXOujAYD31TxryJqmOsNqLqyz 7/p2JCjx1gjqSrG67ueJF6HC2Teg42fgBNs3JxUUfJ3bhJg1MBeEP5ljy8pIxM3Mhige UfZbtS1FbsZ6EjHYicm+K1Ih7UtaVkO2ygXcvti545BV9CaBth5j/RBsYmsVyJ00IP7S UsBHlTQbAR5V4/DLwpdS7qgHvNW4cKmSD6A4g5IKOaj3En2bSmbLiXlR3tn3PiC5COhR EY5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l16si9494624otj.59.2020.01.14.18.27.57; Tue, 14 Jan 2020 18:28:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728897AbgAOC1I (ORCPT + 99 others); Tue, 14 Jan 2020 21:27:08 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:56226 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728862AbgAOC1I (ORCPT ); Tue, 14 Jan 2020 21:27:08 -0500 Received: by mail-pj1-f68.google.com with SMTP id d5so6687230pjz.5; Tue, 14 Jan 2020 18:27:07 -0800 (PST) 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=eSVEWssYTpiV5Eqi/FIfWIR/4RrREqVoEKeDwn2EhZ8=; b=CIVg+EauJZpoibrMdwJkF0laAx6091v9BVb2wt0pGzRRFWQBGrcTdb8Wp6jYAUO3NW ASJxCdxJhd3x8vr2qqPSdJYHjf7dRB6d4jAgL8EaoXoyo7jmWFbYVXvIfPJ52L7lvuCO itbDzHA9e7dvvf3xFhg9NrmlEQeml8iR0kZo+DwuwrNrj1HLgJ9j6mRH4ssObnaU/Mq8 31WO/HzBxbZ2xng2ARh0XSMwJ2UOfwXg6Pq6/IbdNc5dXSp5gqR/PNKHkZY58aISJ38x 1xf0rM0TaN6YUgnOL4YSmpM/NlaQ+JoyVOVqSN6pjgIB1iRRsuW7hzEndqtXe5KMZZ1f luCA== X-Gm-Message-State: APjAAAWoqWNXdIdolRG/hQyiliQkopPhF/ZII6Zny2SJ6LliHAApP9Pi 0IgiCqWspDud/lSLvogj30g= X-Received: by 2002:a17:90a:9f04:: with SMTP id n4mr32799571pjp.76.1579055227298; Tue, 14 Jan 2020 18:27:07 -0800 (PST) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id c68sm19745446pfc.156.2020.01.14.18.27.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2020 18:27:06 -0800 (PST) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id 7DA3940244; Wed, 15 Jan 2020 02:27:05 +0000 (UTC) Date: Wed, 15 Jan 2020 02:27:05 +0000 From: Luis Chamberlain To: Linus Torvalds Cc: Jari Ruusu , Borislav Petkov , Fenghua Yu , johannes.berg@intel.com, Linux Kernel Mailing List , stable , Andy Lutomirski , Hans de Goede , Ohad Ben-Cohen , Bjorn Andersson , linux-remoteproc@vger.kernel.org Subject: Re: Fix built-in early-load Intel microcode alignment Message-ID: <20200115022705.GE11244@42.do-not-panic.com> References: <20200113154739.GB11244@42.do-not-panic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 13, 2020 at 11:44:25AM -0800, Linus Torvalds wrote: > On Mon, Jan 13, 2020 at 7:47 AM Luis Chamberlain wrote: > > > > So I'd like to determine first if we really need this. Then if so, > > either add a new global config option, and worst comes to worst > > figure out a way to do it per driver. I don't think we'd need it > > per driver. > > I really don't think we need to have a config option for some small > alignment. Increasing the alignment unconditionally to 16 bytes won't > hurt anybody. Since you are confident in that, then simply bumping it to 16 bytes seems fine by me. > Now, whether there might be other firmware loaders that need even more > alignment, that might be an interesting question, and if such an > alignment would be _huge_ we might want to worry about actual memory > waste. I can only envision waste being considered due to alignent for remote proc folks, who I *doubt* use the built-in stuff given the large size of their blobs... but since you never know, better poke. So I've CC'd them. > But 16-byte alignment for a fw blob? That's nothing. Fine by me if we are sure it won't break anything and we hear no complaints by remote proc folks. Luis