From patchwork Wed Nov 27 07:12:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 845745 Delivered-To: patch@linaro.org Received: by 2002:a5d:6989:0:b0:382:43a8:7b94 with SMTP id g9csp643339wru; Tue, 26 Nov 2024 23:13:07 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXX499xAeZZAo8y8CwoC0zQGqSuRiuRdkpmB/7/hhf4tXbdDoWIeTvE6NPDVBjX5R8UuWJMvg==@linaro.org X-Google-Smtp-Source: AGHT+IGvo0/ukUu2PRPHlUOo0fzHgKN5ke444rx0c8IkwtMnT44oMpq/L8ujFUZrrmJYOQf1C3rl X-Received: by 2002:a17:906:4ca:b0:aa5:b32:6966 with SMTP id a640c23a62f3a-aa581076b11mr145312266b.50.1732691587559; Tue, 26 Nov 2024 23:13:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732691587; cv=none; d=google.com; s=arc-20240605; b=iU1KSABn3bs/c0XcVu8fEpcfWBtK6KvmwUHws/bVi1VU2dtyExB784NZl2Ovsf1+GR 2poUpY452vSC+dq4EzzlnomwRUn7WbRYFMNrYaEZeXEMqvWnhRYvawKN7Zgkoi2sO+ls yBe/wIHMccW/noIYLar3MLH5+R3PYe49NQHX4uRDy/5Ice6SOK7IRLQhv76KcR7H0cG4 DIagf4/OcCW/bQAD3D8qB9Sb8yWwmyvZ/pEoR6sVMW8q/4/ppSAkh7WTn+Ep/FMayl6f 0J84ySRe8rxFy3w238hRSPLkXyF4CqtChMT4o5/92DxSOMlHOIpnVkaovWO4VBkow8+u Ui/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=dcaihPxv/93OVMX7YXoAa/PNqHJE7F7uB8S5Ba0tofU=; fh=kSuy3J2InqJ46GtoVhQTxcFPo22y2nallv5wAmF9NQ0=; b=KAl6P826GWQikrwF2/MST8raAon39wEqGftfuQkaCousGhJektiI65mw5dYb1xAOUU BtM0WvWBpQ3Z2IVP3LKVHhZmnDUvroU6aGZ5Q7ORJDb9Hu0XkVPGkCMbBt7LxEPE6X+R PXKnx5aLKoU537IX5yGOx5d1Ssd4y9WcRb91jxOUrZmDhRoKbf86XhvltOBZOpNVhnkF IN1l168Sh2MCHoGBTSeN8J+MCgkZdsRP0ZtXJK+zDjERQObjgpyGlyNk2QQSpOuRC9N0 4Bck9eg9AySztENJZMIMbg4maD0LPAJsGw7BT1LS7qNbrPh1cMjSo2S3qW+qe1Y4dR/S gfaw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-aa57a9c88d5si123244366b.961.2024.11.26.23.13.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2024 23:13:07 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6767F8978D; Wed, 27 Nov 2024 08:13:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 789D689789; Wed, 27 Nov 2024 08:13:04 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 6860C896FF for ; Wed, 27 Nov 2024 08:13:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D07DA1480; Tue, 26 Nov 2024 23:13:31 -0800 (PST) Received: from a079122.blr.arm.com (a079122.arm.com [10.162.17.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 46C2A3F58B; Tue, 26 Nov 2024 23:12:59 -0800 (PST) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , E Shattow , Simon Glass , Tom Rini , Minda Chen , Hal Feng Subject: [PATCH 0/2] bouncebuf: Allow allocation from U-Boot heap Date: Wed, 27 Nov 2024 12:42:48 +0530 Message-Id: <20241127071250.736762-1-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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 Certain platforms have IP's which are unable to access memory locations above a particular address. Add a config symbol which forces the bounce buffer to be allocated from U-Boot's heap area, and enable this option on the starfive visionfive2 boards which have this issue. @E Shattow - Since you were observing this issue on your boards even after Heinrich's patches, please test this series on your board. Thanks. Sughosh Ganu (2): bouncebuf: allow for allocating bounce buffer frome heap configs: starfive_visionfive2: allocate bounce buffer from heap common/bouncebuf.c | 2 +- configs/starfive_visionfive2_defconfig | 1 + drivers/core/Kconfig | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-)