Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3298050pxb; Fri, 12 Feb 2021 14:50:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0Zo5DJc0QF1YDwl1dJxu1PKcf9R4eLfPx8OZcDaEjJrfyIfJ4nLlHhHrqapijOaji5WAx X-Received: by 2002:a17:906:c0cd:: with SMTP id bn13mr4947942ejb.368.1613170212416; Fri, 12 Feb 2021 14:50:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613170212; cv=none; d=google.com; s=arc-20160816; b=J/HhalwkYSqTIMp+JCwy6uhOZcQTMH5fiAm1kFxSn0aQrnxv/mTFTJZ3xSZ/GGehVD wB6Cv0HasugVyr+imPsuQG6fHoq6xarbiMLQ87ODmq9ah7vzeVIt5Kp/W/o8MULh2Tka UIB0WhxAWcrqVp1P7/ZrhK0XycMfl+npvUy4cAxNBVic0mKXoe7RFavcQ3kuUpFr2ifb Ko8w2JLRrPl3HYFxOlKC3yrov0ik9hCZ8EtOpc9N3918hFPG2uAXdv0Ke3kby61Nvpa4 1dEB2bZlqZDC73X5shUnggNO5Idp2WFCmhakGWxKURSqIJGYNrC5WKV4eX9eU0942ISC YJaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :dkim-signature; bh=xbNtLELg1RtFG5KjcFUY5MwAGwBpJT01ZUSEWMmRYHs=; b=dukPWaawgZfWV+FxJxnfFB/lV4JrdduNqGApQRgxF7uaDg0dwGhTrT9pwLlmwA08gT fLnwR5JpU7i+cTOGG43n+phGS5/3fpjKdl138B+06yJ6QWdxMPe7u0rY12TUjohsocAB CPSIKrYsEo4reopi7HDVsEGHB4pjCWH+bPhRlcNlAhwWf/0Bm/nIo2CPPy1y3KlZpvHO s/jiBKUnNxSMU/uLV8qTFxoxtcxXn0BYt2rsHu2ygEJRfYjzaa9A4Y5Q6TqPcOdYC5Eg eYTd6Fh6/CW6FoPoUDEiXqpHPIOm5KNWg87XET6ct5NKOqavyBZGKHdz0Oa9e6Q8D1fg S9FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ktkbrRhy; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r23si4099715edy.410.2021.02.12.14.49.49; Fri, 12 Feb 2021 14:50:12 -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=@gmail.com header.s=20161025 header.b=ktkbrRhy; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232346AbhBLWsp (ORCPT + 99 others); Fri, 12 Feb 2021 17:48:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232426AbhBLWot (ORCPT ); Fri, 12 Feb 2021 17:44:49 -0500 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7ED1BC061574; Fri, 12 Feb 2021 14:44:09 -0800 (PST) Received: by mail-ot1-x32f.google.com with SMTP id d7so704304otq.6; Fri, 12 Feb 2021 14:44:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=xbNtLELg1RtFG5KjcFUY5MwAGwBpJT01ZUSEWMmRYHs=; b=ktkbrRhy3LgCj38onsFfpS89UiTL8Robqcs849yOWncrnJ0yIJMs30uR/0fpy1oGed Ofs2HfOtEIXkXz6z8Z8Gkom246Zmg2OkOyDNwgmYJjig6YMaBLoVAHpzzlIZUdFHSXa/ DuveQeu/u+rHtHUEU2EHDU2qSBnw75eNSV1u/xAMYl/1w78Zk29wU7LvBXYVie04QLt0 VzeWG5q63tksvXlXBr8S6L2bSbiq+zQ4X7UpwF0rkpxgEgaNtPR6cN9LIwC3yarZ1ccW RI2S7mdlEkyT/hz93omwejlS+l35VOadKCDOWyEYvJ3Jv5KKBZvD/jzx4wZ/QQjP+mrY UdqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=xbNtLELg1RtFG5KjcFUY5MwAGwBpJT01ZUSEWMmRYHs=; b=etNmsj2kvXzSIW94Io7lvP1FUxHOVT7AFiKj2qvEwJr1JNxyeIK1tURQPTn9k+b4AT cPdttbZvGE8W9CTZ/hO/+KO7afb+CFGN3wGUZgpIx6wEwFJSVfIkOUMw7ZNDuUjvOqQw 2DbalK3M5o7RzD8TLYVlleI1v3VC82zkEGlZJXBDA2khsE04enzosMHElpY0PhROyPrm WhBSpJRP9gBbDAJJtJek+wmrX0KELfIBxDqnCfav89clWg3QZm2dOEMhHIY+lT4l1grO x+/vGGHgv0F1Aiy9wFw3+8ueNKwyH/wMF/OEwNsPcq90LKJ3aEm4WN+QihMt/ywGSq4D gfBA== X-Gm-Message-State: AOAM533Yt9ufH2PlHzk8HIVBnOX5MMbh6B7vSFJKyx3dAoud3WiUuywJ 7ZjD69vjjVzpOGfX4mQRpZk= X-Received: by 2002:a9d:74c6:: with SMTP id a6mr3692163otl.369.1613169848900; Fri, 12 Feb 2021 14:44:08 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id 18sm1934991oti.30.2021.02.12.14.44.07 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Feb 2021 14:44:08 -0800 (PST) Sender: Guenter Roeck Date: Fri, 12 Feb 2021 14:44:06 -0800 From: Guenter Roeck To: Rob Herring Cc: "linux-kernel@vger.kernel.org" , Frank Rowand , devicetree@vger.kernel.org Subject: Re: [PATCH] scripts/dtc: Update to upstream version v1.6.0-51-g183df9e9c2b9 Message-ID: <20210212224406.GB115630@roeck-us.net> References: <20210212033120.GA100407@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 12, 2021 at 08:16:04AM -0600, Rob Herring wrote: > On Thu, Feb 11, 2021 at 9:31 PM Guenter Roeck wrote: > > > > Hi Rob, > > > > On Wed, Feb 03, 2021 at 03:26:03PM -0600, Rob Herring wrote: > > > This adds the following commits from upstream: > > > > > > 183df9e9c2b9 gitignore: Ignore the swp files > > > 0db6d09584e1 gitignore: Add cscope files > > > 307afa1a7be8 Update Jon Loeliger's email > > > ca16a723fa9d fdtdump: Fix gcc11 warning > > > 64990a272e8f srcpos: increase MAX_SRCFILE_DEPTH > > > 163f0469bf2e dtc: Allow overlays to have .dtbo extension > > > 3b01518e688d Set last_comp_version correctly in new dtb and fix potential version issues in fdt_open_into > > > f7e5737f26aa tests: Fix overlay_overlay_nosugar test case > > > 7cd5d5fe43d5 libfdt: Tweak description of assume-aligned load helpers > > > a7c404099349 libfdt: Internally perform potentially unaligned loads > > > bab85e48a6f4 meson: increase default timeout for tests > > > f8b46098824d meson: do not assume python is installed, skip tests > > > 30a56bce4f0b meson: fix -Wall warning > > > 5e735860c478 libfdt: Check for 8-byte address alignment in fdt_ro_probe_() > > > 67849a327927 build-sys: add meson build > > > 05874d08212d pylibfdt: allow build out of tree > > > 3bc3a6b9fe0c dtc: Fix signedness comparisons warnings: Wrap (-1) > > > e1147b159e92 dtc: Fix signedness comparisons warnings: change types > > > 04cf1fdc0fcf convert-dtsv0: Fix signedness comparisons warning > > > b30013edb878 libfdt: Fix kernel-doc comments > > > > > > Signed-off-by: Rob Herring > > > > This patch causes my little-endian microblaze qemu emulations to fail > > silently (no console output) in next-20210211. Reverting this patch > > together with "scripts: dtc: Build fdtoverlay tool" fixes the problem. > > My guess would be something in libfdt. Maybe 7cd5d5fe43d5 or > a7c404099349, though that should return to historical behavior. > 7cd5d5fe43d5 is just a comment change, so that won't be it. Reverting a7c404099349 didn't help, but reverting 5e735860c478 did the trick. This does the trick as well: index 3e893073da05..6ab627e52a21 100644 --- a/scripts/dtc/libfdt/fdt.c +++ b/scripts/dtc/libfdt/fdt.c @@ -23,8 +23,9 @@ int32_t fdt_ro_probe_(const void *fdt) return totalsize; /* The device tree must be at an 8-byte aligned address */ - if ((uintptr_t)fdt & 7) - return -FDT_ERR_ALIGNMENT; + if ((uintptr_t)fdt & 7) { + // return -FDT_ERR_ALIGNMENT; + } with some debugging ... aha: Compiled-in FDT at c043f804 and in arch/microblaze/kernel/vmlinux.lds.S: . = ALIGN (4) ; __fdt_blob : AT(ADDR(__fdt_blob) - LOAD_OFFSET) { _fdt_start = . ; /* place for fdt blob */ So the fix is to either remove the 8-byte alignment check or: diff --git a/arch/microblaze/kernel/vmlinux.lds.S b/arch/microblaze/kernel/vmlinux.lds.S index df07b3d06cd6..fb31747ec092 100644 --- a/arch/microblaze/kernel/vmlinux.lds.S +++ b/arch/microblaze/kernel/vmlinux.lds.S @@ -45,7 +45,7 @@ SECTIONS { _etext = . ; } - . = ALIGN (4) ; + . = ALIGN (8) ; __fdt_blob : AT(ADDR(__fdt_blob) - LOAD_OFFSET) { _fdt_start = . ; /* place for fdt blob */ *(__fdt_blob) ; /* Any link-placed DTB */ Thanks, Guenter