From patchwork Mon Oct 12 18:18:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1381087 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=k21T0WlJ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C96Pb20nQz9sT6 for ; Tue, 13 Oct 2020 05:18:43 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9F08182478; Mon, 12 Oct 2020 20:18:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="k21T0WlJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1EE8A82494; Mon, 12 Oct 2020 20:18:39 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) (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 C539182462 for ; Mon, 12 Oct 2020 20:18:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qk1-x741.google.com with SMTP id b69so18511004qkg.8 for ; Mon, 12 Oct 2020 11:18:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1DU1a9UF5QJ5NGDJ3V04+k68dpeDLMQn1TzCSJwg70I=; b=k21T0WlJhM0sPI3uBiyNuVxS6b574Ga1mXY+xT+DU9VoalZM2IkhNIrOuG6t94eMYc Co5AD7jvYQFJSCCeyxHhsk2BF8FLmWWukhUCGwFTbk5UlbhlgnxdDAu6SjbOKwSEmcez U//WfjJIRmLHjPjC/OI5Fua304JjjIAdK2gDqe199KZjCHNt0qIRKl7gi3TcnTYhtuFZ ynEQ1NePJ1Z44/o9yar6VejdyCVorJE2tPu2PARL5rGMckcDy90TzRSJdzmFPud31S71 rnAmAzZ5yhDRMKW0i9474H0ZY0DYtio7S0GKSWmi1AufIu3k/g62QrNQrRwaGjFXzSn7 pNow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1DU1a9UF5QJ5NGDJ3V04+k68dpeDLMQn1TzCSJwg70I=; b=O1c9JDr7vhgy3/Xs7ieCQ5jj8KzTH3932k/ZEDsygiOMBYp1ZOrTyLcnKfQZgZSp8c lfd76FAbTeo3XSL+V31kDpp7B5DPvlC65+vTjtZaS9gZhix0S/vGtBk/eXNFkdai9rdx 2C9iUylugwgl8oohyrPLzFUCYOZVohwSuLgaPF2tbmQVihLSu/ehXXuXcCizQXkidm3L jHWI6vVBVie7p4j+vmVEkaw70iD9aR4ocw+bXugW/tAGnhxOVMPwSAqiuF4nJ+PHncpY Yx5fC0dcIRPnGQxRCwiTwiLjgzMc57tG2PmINAl8yF/0liAjqb8VewpwMNI8YtzbSGRz MWew== X-Gm-Message-State: AOAM532pC9isvP1CCog6fqQqPmq/LqNGdsLnklYV/RbgBteTFQVX2uV3 kdcSL4BB8VdPKZwbjJNsDWD+PZ8+Aj7Cug== X-Google-Smtp-Source: ABdhPJzbKiAGEAQi2efgz4ev9EeiYGN2HsKB0i0u1dXe6AHRdsKNzuI2QDa+6FBad+3Eo1w8zhy88g== X-Received: by 2002:a05:620a:809:: with SMTP id s9mr11038472qks.57.1602526715565; Mon, 12 Oct 2020 11:18:35 -0700 (PDT) Received: from godwin.fios-router.home (pool-108-51-35-162.washdc.fios.verizon.net. [108.51.35.162]) by smtp.gmail.com with ESMTPSA id k17sm7160139qki.5.2020.10.12.11.18.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Oct 2020 11:18:35 -0700 (PDT) From: Sean Anderson To: u-boot@lists.denx.de Cc: Bin Meng , Rick Chen , Sean Anderson , Damien Le Moal Subject: [PATCH] riscv: k210: Reduce DMA block size Date: Mon, 12 Oct 2020 14:18:15 -0400 Message-Id: <20201012181815.339056-1-seanga2@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean Although the max DMA size supported by the hardware register is 22 bits (or 4M), the Linux driver for this device only supports transfers of up to 2M. On a device with 8M total memory, I don't think it will make too much of a difference. Reported-by: Damien Le Moal Signed-off-by: Sean Anderson Reviewed-by: Rick Chen --- arch/riscv/dts/k210.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/dts/k210.dtsi b/arch/riscv/dts/k210.dtsi index 84cff51c36..2e1e2683c1 100644 --- a/arch/riscv/dts/k210.dtsi +++ b/arch/riscv/dts/k210.dtsi @@ -199,8 +199,8 @@ dma-channels = <6>; snps,dma-masters = <2>; snps,data-width = <5>; - snps,block-size = <0x400000 0x400000 0x400000 - 0x400000 0x400000 0x400000>; + snps,block-size = <0x200000 0x200000 0x200000 + 0x200000 0x200000 0x200000>; snps,axi-max-burst-len = <256>; status = "disabled"; };