Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1784633pxb; Thu, 16 Sep 2021 15:50:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrfNPCpUGFeVZsR9rzO3G5JFoPUfMek+OO4t0cUd1owWdpihwZ4ZG+OyjM6tvyKRKwJKsj X-Received: by 2002:a17:906:1d07:: with SMTP id n7mr8664492ejh.53.1631832634472; Thu, 16 Sep 2021 15:50:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631832634; cv=none; d=google.com; s=arc-20160816; b=ROSZqKNE9d7QJeekcZyGDSmgSgCgufK8pHS7j1HIFOtAXbGac4TUEtIdHH+k+cEiEV 0cfnZldF5N+Rlk1ObzJoPuEuW3Ir16nOWMuvf+DvMI2Rshxc17oe/NA3qRzE0RhkOnqK ISVd0NtCDtS2fcMhBDRxRbSC8tvRQtUYo2Gc9/ANczwybSgXE1FKBV3w3jOkzC0TdAmg tnb1YeF4y3vTJJeFK+AIpE/XM1i2CLxAZYYV3fuUmweXL1SLtrlXJaYPCF3XaVYF6PxJ fj4PVKqFzYrtt6Wf5xWHi8zUDoX0HTft152aopTztO+1l0eEmUe/oA6i+3OkfBIo45xz VYJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=AGgjMDxdqbRElA/2MpHnNcrE31Zg4x1naKY1wRI2WkU=; b=EKukkTbnsS2d8LBX2TbvimsF9EmCIIOi0ZVktsKTm6r8yRRWhsY/Ig/e2UiJWNV0Ye JqmKIkGZLICACHIt0Zbyl8BJnXBS5YGmRUjmKl1T4FYN1osT348U8WU05hEg8OV7KEd5 /8rnZRS5UOgmGyRjSwFvMTxTlXf6RyjHJeLjN5c6UI5/JshT1JUWAuP70LthbMOYOYPF nplHgzYl154evh45duICXC7SLDn+BlfwZcriMglrwf3xcDGNCV+J3h9ETIShmZ3uizUn T3c2kpuhW6TKf5OPMix6tLqslmlw5AZwzon+nRTAx9cBSl+ekoti8RAov4vAueX9EXmo qXbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=K89IifLb; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q16si4913508ejy.322.2021.09.16.15.50.11; Thu, 16 Sep 2021 15:50:34 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=K89IifLb; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241999AbhIPQpW (ORCPT + 99 others); Thu, 16 Sep 2021 12:45:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:51484 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244574AbhIPQjT (ORCPT ); Thu, 16 Sep 2021 12:39:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 08ED06141B; Thu, 16 Sep 2021 16:23:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631809391; bh=xy6Pskwf2LsTKup1sy1FUidV65P0qDqckPExucv4B0w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K89IifLbRF6Clmxdp1MNFIjAa0JhcGdOBr3kXWxrRw/GH/w7E4ce99lVhw1i0JTeQ 1FAy2g1rbBQUb3DMUzBFl8nbi25SDSRM8uXKa7uKK/N/IMKZ3lTd9K3WFqlFK7EPh6 GlyKwgqVcIMeRJrhfQdQ0IxDOwNxVaSXptDEbgqM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Oleksij Rempel , Thomas Bogendoerfer , Sasha Levin Subject: [PATCH 5.13 136/380] MIPS: Malta: fix alignment of the devicetree buffer Date: Thu, 16 Sep 2021 17:58:13 +0200 Message-Id: <20210916155808.664885362@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155803.966362085@linuxfoundation.org> References: <20210916155803.966362085@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Oleksij Rempel [ Upstream commit bea6a94a279bcbe6b2cde348782b28baf12255a5 ] Starting with following patch MIPS Malta is not able to boot: | commit 79edff12060fe7772af08607eff50c0e2486c5ba | Author: Rob Herring | scripts/dtc: Update to upstream version v1.6.0-51-g183df9e9c2b9 The reason is the alignment test added to the fdt_ro_probe_(). To fix this issue, we need to make sure that fdt_buf is aligned. Since the dtc patch was designed to uncover potential issue, I handle initial MIPS Malta patch as initial bug. Fixes: e81a8c7dabac ("MIPS: Malta: Setup RAM regions via DT") Signed-off-by: Oleksij Rempel Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/mti-malta/malta-dtshim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/mti-malta/malta-dtshim.c b/arch/mips/mti-malta/malta-dtshim.c index 0ddf03df6268..f451268f6c38 100644 --- a/arch/mips/mti-malta/malta-dtshim.c +++ b/arch/mips/mti-malta/malta-dtshim.c @@ -22,7 +22,7 @@ #define ROCIT_CONFIG_GEN1_MEMMAP_SHIFT 8 #define ROCIT_CONFIG_GEN1_MEMMAP_MASK (0xf << 8) -static unsigned char fdt_buf[16 << 10] __initdata; +static unsigned char fdt_buf[16 << 10] __initdata __aligned(8); /* determined physical memory size, not overridden by command line args */ extern unsigned long physical_memsize; -- 2.30.2