Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B83EEC61DA4 for ; Mon, 6 Mar 2023 19:49:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7B08784459; Mon, 6 Mar 2023 20:49:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.b="btONIak6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C8A8B84445; Mon, 6 Mar 2023 20:49:11 +0100 (CET) Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AEB5D84459 for ; Mon, 6 Mar 2023 20:49:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=souajih@baylibre.com Received: by mail-wm1-x335.google.com with SMTP id l7-20020a05600c4f0700b003e79fa98ce1so5875604wmq.2 for ; Mon, 06 Mar 2023 11:49:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678132147; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=qluc3khhm1L1SRzDOJGVXueYED9dTx/37WAX7Zzod08=; b=btONIak6K3jln0fMQP35EpzgdN6z7WmWc+3Yp3w2G1XrIi/3DnGDZjNAUuYotXDRWf UHzsNyMe7uDycUI7bZq7UskmOshkDcug6alj2+MMIZ8q234g5owgITsQXPO9AdzwgU4t 0+Wa1TZHLy06d9q4wn00EtO2ZdNnkxBRaTG5+Evlmuz1MrwQnNqM6OjpaoGY5dbXnYLt 1olpcSTK1iz35hLGqVGshMpwnFgBX8VZ4S5sxiGf9LZgpNeqhFMLTTc2qhMoQY0PuJhP xKHWlbHe5Av3jI3Sb5pGBycjd2RHfJ4kW9YSzqVjWEEGNcnuoPpamnZVTb/UFfX4LkZo hhkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678132147; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qluc3khhm1L1SRzDOJGVXueYED9dTx/37WAX7Zzod08=; b=SI521yo3PZWux3whXPDAYJoO2NDVkRKi3LTdwIjbjl9SX/nNGSkfka2+DO8tErVN9z 1JIPgKtPYhbEehTQBMcIipdMkAdBVuhJpLN3yYaObd+uuNeDKARuoSRLm9wh01mbvBDt f664aduKGGdVoras9yRkW8IRih6/Jh4ZDO2Al6t4WGeuoLSUBJD9UZiMI5zTYHnNF8M7 xcVvOQcxaqRCAhw4vBvqU6QPsik7guXyFz1/bLKsZtDR0NWAa1h2FwHWSpRCvhrF5AnO ubaquKYIwerIme4fh5dP5s+jgK2sVWD5cNPnyeJZX/3yt59or7ZDPsnm5WRvCIn3GC2J qQXA== X-Gm-Message-State: AO0yUKXLRiGIyJN/WSG3iB1NfGM2D3KP2W3j1ayx4UlnmQvcrjPeoZzv DXl10GAOnhi37ue9A6sXuHFUqw== X-Google-Smtp-Source: AK7set/AEDguh1aN1fNmdaFFaswwiiS4j3EHVwc1i2U0M/0S7kHgO0Hzwi/GZM+FlsRjQBQKpXg5UQ== X-Received: by 2002:a05:600c:470b:b0:3e0:98c:dd93 with SMTP id v11-20020a05600c470b00b003e0098cdd93mr10796207wmo.29.1678132147096; Mon, 06 Mar 2023 11:49:07 -0800 (PST) Received: from ?IPV6:2a04:cec0:104a:d1fc:84bc:7f34:12f8:ea82? ([2a04:cec0:104a:d1fc:84bc:7f34:12f8:ea82]) by smtp.gmail.com with ESMTPSA id z7-20020a05600c0a0700b003dc434b39c7sm24596994wmp.0.2023.03.06.11.49.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Mar 2023 11:49:06 -0800 (PST) Message-ID: Date: Mon, 6 Mar 2023 20:49:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v3 18/19] test/py: android: extend abootimg test To: Tom Rini Cc: sjg@chromium.org, u-boot@lists.denx.de, sean.anderson@seco.com, r.stratiienko@gmail.com, mkorpershoek@baylibre.com, glaroque@baylibre.com, khilman@baylibre.com References: <20230205235021.355410-1-souajih@baylibre.com> <20230205235021.355410-19-souajih@baylibre.com> <363a0ffd-e00d-7428-5c1c-6ac96c0d948c@baylibre.com> Content-Language: en-US From: Safae Ouajih In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 27/02/2023 15:18, Tom Rini wrote: > On Mon, Feb 27, 2023 at 03:15:31PM +0100, Safae Ouajih wrote: >> On 07/02/2023 20:02, Tom Rini wrote: >>> On Mon, Feb 06, 2023 at 12:50:20AM +0100, Safae Ouajih wrote: >>> >>>> test_abootimg is extended to include the testing of boot images >>>> version 4. For this, boot.img and vendor_boot.img have been >>>> generated using mkbootimg tool with setting the header >>>> version to 4. >>>> >>>> This tests: >>>> - Getting the header version using abootimg >>>> - Extracting the load address of the dtb >>>> - Extracting the dtb start address in RAM >>>> >>>> Running test: >>>> $ ./test/py/test.py --bd sandbox --build -k test_abootimg >>>> >>>> Signed-off-by: Safae Ouajih >>>> Reviewed-by: Simon Glass >>>> --- >>>> test/py/tests/test_android/test_abootimg.py | 136 ++++++++++++++++++-- >>>> 1 file changed, 123 insertions(+), 13 deletions(-) >>> Alright, so I don't know where the failure starts, exactly. And to make >>> testing this easier, there's currently the >>> trini/u-boot-gitlab-ci-runner:jammy-20230126-07Feb2023 container you can >>> use to replicate my problem. The problem is that while this test passes >>> in CI, with GCC, with Clang it fails, consistently: >>> https://source.denx.de/u-boot/u-boot/-/jobs/572239#L284 >>> and I'm not quite sure why. I hope that building sandbox with clang and >>> also just trying these features out interactively will fail too, and so >>> debugging this will be less of a problem. >>> >> Hello Tom, >> >> I have investigated this issue, clang has a strange behavior in: >> >> * abootimg_get_dtb_load_addr() : cmd/abootimg.c >> * android_image_get_dtb_by_index() : boot/image-android.c >> >> That is probably linked to some sort of optimization clang does. >> >> However, The fail is not reproducible using clang-15 and clang-16 and also >> not reproducible when turning off clang optimizations. >> >> I suggest using clang-15 to run the test or I can remove all optimizations >> >> on the related functions if clang-14 is used. > Thanks for investigating. I see that 15 is now considered stable, so > I'll update the next branch for that, then re-take this series. > Hello Tom, Thank you. I am a bit confused, do you mean that you will apply this series after clang-15 update? Best regards, Safae