From mboxrd@z Thu Jan 1 00:00:00 1970 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 496D4C43334 for ; Thu, 9 Jun 2022 15:24:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4C820843B9; Thu, 9 Jun 2022 17:24:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="EsAyufq5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7A616843C9; Thu, 9 Jun 2022 17:24:17 +0200 (CEST) Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (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 BBAF2843AF for ; Thu, 9 Jun 2022 17:24:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jerome.forissier@linaro.org Received: by mail-ej1-x62a.google.com with SMTP id o7so14878990eja.1 for ; Thu, 09 Jun 2022 08:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3nU4J3SCjIlgPm3n2F7dBvlIeyrEI/4uVIvqh7uWB+k=; b=EsAyufq5PA7/g5ex+1EL+dDP8v01oBKC960nYX0ktPkV1RoA7h57uwyyErCUwFGcCh yIxyRzl5fJfwMj2tx3M+VtsWjrTKcw1Y3rUr5R6nGi1dtdv5L0t/zyJqEHCRLc+uHPXR DxgsUJ2McqeLBGcmVHek9Zohz4mt5XSdz7yZTThV0wls8zI1Az9bOi292OOLwcOrUQMs 3vqPtt9+whWIRRvg0DgqWx62qQCxZF5gwhRvzl6ygFHT/r+r7xghV6UMBji9qsRW7FaE M3KGVcsDi/yu7KnZLLZol7DNSJ2ZK7iLI+M9cX5osBVEW6GgBQ2a7v3JHe8A7cXiuPS4 r31A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3nU4J3SCjIlgPm3n2F7dBvlIeyrEI/4uVIvqh7uWB+k=; b=RK+ofkYIZd7/60tGFPR/AWe8QlWdyxmHCj5/7uppszvR/oOtj9jwhKUQynnHsQ1Hfe /TuCqb9nh8lK2AAFYcb7G8+vZ+mIPGe/1vX90g0SUuOpfF6hEFpBIo/6wuoTAa6V/P0M izscLE62puWBR2P+SOBe/oA9xeB6WB6S5y7R40T6DLlyDyZ3bEUmO7/YFnd8iNjCeAOK aOugE3nBK34f64vFZDUn1Ut2m5evBRXzD1A0VLoE7c7zaD77z5l8GmicY+egTMIje2y6 +APeAVl9xtQCF/D4NnFp2+4GsVV3p37pQB7tUyXMj7xTXpFpg9mSqLSV2KpS5DU1dm8F Nr6w== X-Gm-Message-State: AOAM532sazKvBDvuCVVVVrGibfixIFjLrBJOuBR4cpQWSXvH7SBwEEGJ 3IaBCEXcDgpyLqbguI7ME4Z7FAjyjSDB0J1XQq1kcA== X-Google-Smtp-Source: ABdhPJzriOLdTQYeikLs/EGDsoizqGDeADYqyWNmWJzBEH+g74bGOkqWBE6cI59AaOXVUPopXJM8Uw== X-Received: by 2002:a17:907:16a5:b0:710:7e87:465a with SMTP id hc37-20020a17090716a500b007107e87465amr26602804ejc.137.1654788254247; Thu, 09 Jun 2022 08:24:14 -0700 (PDT) Received: from jerome-XPS-13-9310.. ([2a01:e0a:3cb:7bb0:6613:a502:b11e:5ada]) by smtp.gmail.com with ESMTPSA id c10-20020a056402120a00b0042dd1d3d571sm14422646edw.26.2022.06.09.08.24.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 08:24:13 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Jerome Forissier , Jagan Teki , Simon Glass , Philipp Tomsich , Kever Yang , Alexandru Gagniuc , Jaehoon Chung , Heiko Schocher , Xavier Drudis Ferran , Michal Simek , Aswath Govindraju , Nishanth Menon , Lokesh Vutla Subject: [PATCH 0/2] spl, rk3399: fix FIT image loadingg out-of-range Date: Thu, 9 Jun 2022 17:23:20 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.5 at phobos.denx.de X-Virus-Status: Clean The patches in this series address an issue I met when trying to enable FIT signature verification by SPL on a RockPi4B board. - The first patch avoids a buffer overflow when writing to INTMEM1 SRAM - The second one addresses reliability issues I had with back-to-back MMC reads from the microSD card. By allowing DMA operation, the issue is gone and generally speaking DMA is preferred over FIFO mode anyways. Jerome Forissier (2): spl: fit: add config option for temporary buffer when loading image rockchip: rk3399: enable spl-fifo-mode for sdmmc only when needed arch/arm/dts/rk3399-u-boot.dtsi | 2 + common/spl/Kconfig | 45 +++++++++++++++++++ common/spl/spl_fit.c | 79 ++++++++++++++++++++++++++++++--- 3 files changed, 120 insertions(+), 6 deletions(-) -- 2.34.1