Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2564810lkm; Mon, 20 Sep 2021 18:50:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzobRoSFhcqi9ZgkyII+XaXebGHxEODq14GWzgECsEsNpXL+wPNtimix18fN0UCazVzksYi X-Received: by 2002:a05:6638:25cd:: with SMTP id u13mr21327798jat.114.1632188944334; Mon, 20 Sep 2021 18:49:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188944; cv=none; d=google.com; s=arc-20160816; b=uy4pKAgEw3V+RvVKaqBZAT6l0g4Dl71KJxUq1sUgg2H+QcxYk8ZkxN0SlG6iw6PLG7 0jhkAG1TXLkJJAcasbB0V86UWYSgKywXOIfPaqCFbRHS4EOxJHemqFiX+fhrZT5kI7gA spmLTV6GbpXJWigkC4WBkxKtQCyhDnvvOsCwR2P9YzUyFbG2UusKxZbiYhbV0gKaGt9C RHbkfSJ/ygcYPSUZkZvFfn60u3gbLZQE/Qq6NmmvGK3CwjnOLU4CxR1WDglx/G6/9j5j 4++/qYn3KE888pLBwSIQa2p1yf6EUkhOMxtAYiCJ8W6tKRAWXWoEUoCj+zMWK3NBkbUD w85w== 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=4dICIEjTI9AxPIoa2VIXVRngzDgzQPbPkukaQLaAUhU=; b=UyiR+xaoac2SKGJ4u0X+ROEDNZGwFRG2qbpWIVGJcUsTU0t5zRdSN7zX9nEu5RNqzI 7qLh5YAjdOcUti0lrVnGyPz3WT0EHIXemX2sE+WOsPXqEkcFgvcHJz9cgbVMPQWGI1/j 4mw3jfy9+V8YBTn/MnY6whc2pqcdVzTvYFBGQfv4afgYbMHAkncy5SRxA6cD2gL+YVUo 0KT1HnFoi/RCNtYP/hDjMVy5uEvSI5iyjMW5zkve1ozrq3CtPRZgPnQT5mrVI3I/VscG F0k9N4thY6vgecVwVEFw4u6I01GncE7dl+o9jAM9tLPR5dawo4I67SuqnCiJqor6N4J3 MWbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Imy6g277; 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 u3si16970100iom.82.2021.09.20.18.48.50; Mon, 20 Sep 2021 18:49:04 -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=Imy6g277; 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 S1354110AbhITRsy (ORCPT + 99 others); Mon, 20 Sep 2021 13:48:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:52810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343789AbhITRqw (ORCPT ); Mon, 20 Sep 2021 13:46:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9C155617E3; Mon, 20 Sep 2021 17:10:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632157831; bh=X7FP2Fj0bKKDeKQlga/svbnU86ocAnDdN+DJdKh3Y4w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Imy6g277kqaivpiZQlL92q+jzteAUf9Zx9/tmPA2v60wIsW2yhHriGVrX5Ev2C/Os a+btJ78kXTvyBDFfWc3r+7wni77aIxAPxPlkcXMN6tsUiGC+OvEIBtr+rdizmPl4Yi TGO+zdGc/XBWUI4nj9vpfAJST799nmXcKZ92Y7SU= 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 4.19 170/293] MIPS: Malta: fix alignment of the devicetree buffer Date: Mon, 20 Sep 2021 18:42:12 +0200 Message-Id: <20210920163939.105755190@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163933.258815435@linuxfoundation.org> References: <20210920163933.258815435@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 7859b6e49863..5b5d78a7882a 100644 --- a/arch/mips/mti-malta/malta-dtshim.c +++ b/arch/mips/mti-malta/malta-dtshim.c @@ -26,7 +26,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