Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1916278pxb; Thu, 16 Sep 2021 20:09:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkPmOqjtKBx1uiO68s1mhhlckkSxfTDVY2712dhtmgJdqkobb6NKJlLxLI4phRKjK1s6RG X-Received: by 2002:a17:906:c20d:: with SMTP id d13mr9930207ejz.259.1631848180630; Thu, 16 Sep 2021 20:09:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631848180; cv=none; d=google.com; s=arc-20160816; b=WgH/mMMqCqBl1VHdVuy2HnXN8XvsCoaf3ZQc59ZE1hCnipaGMguiV1hdJKpYZshDK+ oGf8DwnBE8LIXGmU7/rhnvT2KksUxCUXb3VOg5rwYRqhm+ygHxXIL3BlSVnP9PywRL9u q8lywAz6jYIkzpm1CpKvKza7KiVPI9GO7oYmYP7NLXNC1Z14S7vABMoKp24HvGRV54TP VOEKsHBfP39xl8vprgAkjSIG+2fZt+3OJ+1gyCUUaYmM45D5ShIBdGddqlRbCUSsUVSl HSerdK/lgAjyk+3Pco2Zfx7XEZdmilV/cq2Cgh+g3HDCSI3HbLgQLhU27fktdcRWsSfo /1Zg== 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=xgTHJ3N2ErwMCvV/Y8wyaRHXfhtfQU5ibRfyBvDYa6ihsqP0OXeyjqk9DUlaXekkY6 XO1kJAJB13XoNzOSEQml6yeqdXzHE+Vxcs1y9+0wZk3V5K48X+MoiAduf4fQhtxWvBiM prheLnReng9DRu47PqD2yaVyhSXSoRze016MKJrljOy7JDKtZ17QtcnMhTz893SJEkUQ zE1B3X8/n/pu12+kQGaolYc3Ely+P8nZQ3+LtkhukzOe5+H6wEWS2h7bDZvIq1WIs2ID e54HfQUtya8R0ahcFVI2JvI7Qludn72ZPn4H8AGb41Iy0Wt0piClq8LNpBVxuS3Xi+L8 7dIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VjbuPCRQ; 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 h24si6310132ejt.376.2021.09.16.20.09.17; Thu, 16 Sep 2021 20:09:40 -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=VjbuPCRQ; 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 S1352661AbhIPR07 (ORCPT + 99 others); Thu, 16 Sep 2021 13:26:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:41428 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346402AbhIPRSJ (ORCPT ); Thu, 16 Sep 2021 13:18:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BBFB061A35; Thu, 16 Sep 2021 16:41:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631810474; bh=xy6Pskwf2LsTKup1sy1FUidV65P0qDqckPExucv4B0w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VjbuPCRQGSx7qXPL9xmgiMQXH+ZoiT0jGPo9fIRw2gGnpyruC+vSc6FEXHG0DZCQu roOAAiIDlgrTcHms3vReFE7w5DpkkkSdslywCZ0w6+YAhGUf8XZk6Zyv+TSD2GuGDQ nVFFbjltYBnYYf5OdTbs5OBdDrFCQII2li0geKHU= 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.14 154/432] MIPS: Malta: fix alignment of the devicetree buffer Date: Thu, 16 Sep 2021 17:58:23 +0200 Message-Id: <20210916155815.958310513@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155810.813340753@linuxfoundation.org> References: <20210916155810.813340753@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