Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1584674pxb; Thu, 4 Mar 2021 15:30:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmTvs2UIoLsnXivYSQCaPTyYdrQUhf59VbAUjD8jQxMK743x2d1nmtcHs9OlQf79FMOxFs X-Received: by 2002:a50:cdd1:: with SMTP id h17mr6841299edj.178.1614900624806; Thu, 04 Mar 2021 15:30:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614900624; cv=none; d=google.com; s=arc-20160816; b=lHXbYvFjYxebPXcjsoIzExUaxe+Sp3xQNZ6m0JhJi7O0RNvrtX6PcBohBRBeIBxbar jcxRt21hUSaxvlJG+hKiPkgZRKTwqpTdpllZgUK3KZlcOXKKWgUgMLtPpIEeyMT8G5C7 w/XHu6w/1uWS/cLaRbQzjqkzCBz5rcX9CO3zAdLgkKXnIlTHTggrdkT32Z4Mg3X8Me0y VunyfsqeBz6Rf6nTgPLjUzteT/K6LrRdRuNv7s5pXo1pavCmQIc1ckSSvX+597gNY5Bp VhQv5vp6xsbYG/7tO+a+cQfMtK5H8wk5cfSZjyrIxCbT0AYG4urWJVIZZsq2VD0Iyf1v +0ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8FK5VYz5QPbwdDXRTaGEvyewywNl6VYgbo2flkbnVPw=; b=fdprrvNIjsMk2EA8oCkjDUmahWgHY+xPkmSkXRQPPhtu1jdBaBGmRlTiYB0OgB0FDj zYk63ZSRtHnTX2uOoPtbOJk9gbBHlACzEgmC6xMnH89hcEXPb8GmfzBDj21imNgX8xrr d2YZS5EBq76y9C/zxLUqkYRQbaMIuCzx5nrP4gurk1n5w6WFfovRTt4zYBUEEcBQiUxX kyS5JKZbxb1b7YDHeLzSolx/L+k1gcX5TLW2TYoIyrtJ89ZlWulHxPqZNdqfx7maNpeX 0GId/Ol/9yPoaPKFJSS+zh0n5/qrHb4jaAVn+uuCvkpEA+9Qdy3EIhpWAZDwAktSydLA YAQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ilTahbzu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o13si584205edi.135.2021.03.04.15.30.02; Thu, 04 Mar 2021 15:30:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ilTahbzu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353700AbhCDAFk (ORCPT + 99 others); Wed, 3 Mar 2021 19:05:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:48192 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388048AbhCCUit (ORCPT ); Wed, 3 Mar 2021 15:38:49 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1FECA64F02; Wed, 3 Mar 2021 20:38:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614803889; bh=Yx0ufyFxY9FEVTOvRklHzuQiZwftomZEk2i7KboNUjY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ilTahbzufAnF5wfy/PgI1ddWsd7Yf90mAJ/nLrg2RSpQiLoe2ArW5xIlQlwCKNcyS HJh4NX38StO3Ro89EqnLc+xybyoVUedyVSRf1t2au0zNzcFEs3lRi896xRI/DTp1zl wJdhWF7hlVUtYtgNsRjw3p7WWU5Kk4fAk9tYd5gx5s5yKuT8+/zzBhYxkJjgqCzh9e 3oMnv5ifzYCjHxDxr0BckBELUnEcpE3KiUZqwRWHvGcoqiFpFMAcZJVriCGVK3NG8I 4RPxqKuR+OH7yrfuWASADO55aMgYu6/CubG9+x+Yyg+FG/y7v89WfIwuSwg/nQ6Vt9 6m8t/n7w9N0jw== Received: by mail-ed1-f50.google.com with SMTP id d13so26827921edp.4; Wed, 03 Mar 2021 12:38:09 -0800 (PST) X-Gm-Message-State: AOAM533hwoBr0h6Q+rBl3dU4aD9hZZvBZeY9p4Lrks1+/LOL+DKfiOz8 juu8ELNXdahk8SwcdbRqf5RWtXYGofP3WmED4w== X-Received: by 2002:aa7:d3d8:: with SMTP id o24mr1029734edr.165.1614803887618; Wed, 03 Mar 2021 12:38:07 -0800 (PST) MIME-Version: 1.0 References: <20210303193305.924384-1-paul@crapouillou.net> In-Reply-To: <20210303193305.924384-1-paul@crapouillou.net> From: Rob Herring Date: Wed, 3 Mar 2021 14:37:55 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] MIPS: boot/compressed: Copy DTB to aligned address To: Paul Cercueil Cc: Thomas Bogendoerfer , od@zcrc.me, "open list:MIPS" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 3, 2021 at 1:33 PM Paul Cercueil wrote: > > Since 5.12-rc1, the Device Tree blob must now be properly aligned. I had checked the other built-in cases as microblaze broke too, but missed some of the many ways MIPS can have a dtb. Appended and built-in DTBs were supposed to be temporary. :( > Therefore, the decompress routine must be careful to copy the blob at > the next aligned address after the kernel image. > > This commit fixes the kernel sometimes not booting with a Device Tree > blob appended to it. > > Fixes: c4d5e638d6e9 ("scripts/dtc: Update to upstream version v1.6.0-51-g183df9e9c2b9") > Signed-off-by: Paul Cercueil > --- > arch/mips/boot/compressed/decompress.c | 8 ++++++++ > arch/mips/kernel/vmlinux.lds.S | 2 ++ > 2 files changed, 10 insertions(+) Acked-by: Rob Herring