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 4171AC433EF for ; Wed, 29 Jun 2022 08:01:48 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EEED883A31; Wed, 29 Jun 2022 10:01:42 +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="QtRs5Co0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3868082064; Wed, 29 Jun 2022 10:01:41 +0200 (CEST) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (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 6CA48838BB for ; Wed, 29 Jun 2022 10:01:38 +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-wm1-x32c.google.com with SMTP id f190so8525957wma.5 for ; Wed, 29 Jun 2022 01:01:38 -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=QtRs5Co0M2Lfj3JXx5/M1kuZvIp5thKHj+PCHvbF5Gn81dvq1O3Mx9VZ5QJ2RSgXl8 HHAnFKJ1qMb7+63RGv5NFrAbDNiGhO4XR3oSK6k+dkEn9UMd7dJkDS0dRpcw8DZUXgb+ 1cg+cHI0M3P0V/CniUaGsLA+XxniWs9WVsdOQZ+emlp2Rc6eqb8XJfnKuPugtMneLN6j 23ylhB3Prk7+ocADywC33yqkYMEH8CA2UTJhcxAwdzHBOIX/Swuds+D8qSOofbRnx01R 74LIVMDolihCyBSmX4P6MF13BO8dhEM8xIqxbPvBASdjzsZTJcTrQacMqOCvLKhjrUzy exvA== 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=JMoa87ghTf2MGB1DEGpN5aCKRUyEzthBzVba+f2mttsHLO06dcT94fjiebunvaYEbM hy5QHLLcDBLaHPREFMfhcQPkT/JhBkkcTRvPpK0zJPWG+2q2GZSj5kMuHoezJJUTc8a1 lN08kjaHH3+8+BDUz82HsIyRbkWWQLTMfEm6siIxFYXZPa28CEzxvtGONSUcyTPbW93a 9drWbAQa6zrG3zK8M1wp+NbUDH+jAP5+894H6Qpi6NdYONdf0ApL6ACh2drNH5UKaKrz GKVmUngB9m+s/Y4+K10/lznfFJNKtv4skhI3g/6RNzMx414Rqw6H0+bBETiO818oKOpw i5iA== X-Gm-Message-State: AJIora/KLBaAO8yBsE7W0MOoXdHodfB2XgRBA+E3H+IO6IW7G1SqIcYe 6v+m6iXDVyrazv1PKyO8sjd+BfQnikzp9KDSSIxkdg== X-Google-Smtp-Source: AGRyM1uCnzU9rgstAt3V5KlyJVTSO13aha0EMl9iui81QK+T1ud7EDmYS1FHQOUirao1R1jAZxqs2w== X-Received: by 2002:a05:600c:b51:b0:3a1:71b0:a115 with SMTP id k17-20020a05600c0b5100b003a171b0a115mr319695wmr.41.1656489697850; Wed, 29 Jun 2022 01:01:37 -0700 (PDT) Received: from jerome-XPS-13-9310.. ([2a01:e0a:3cb:7bb0:592b:5102:88ef:e71d]) by smtp.gmail.com with ESMTPSA id r5-20020a05600c320500b0039db500714fsm2168077wmp.6.2022.06.29.01.01.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 01:01:37 -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 , Aswath Govindraju , Nishanth Menon Subject: [PATCH v2 0/2] spl, rk3399: fix FIT image loading out-of-range Date: Wed, 29 Jun 2022 10:01:09 +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.6 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