Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2289886rwb; Mon, 19 Sep 2022 02:52:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4NqRNgv40rRnTICJeiGlKOCgJnk+oEF6YA7OhGx9D8eCf7Pc7jH29CLX7p4TfHreDIcAsA X-Received: by 2002:a17:90b:3843:b0:202:df54:4c10 with SMTP id nl3-20020a17090b384300b00202df544c10mr18646678pjb.100.1663581160065; Mon, 19 Sep 2022 02:52:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663581160; cv=none; d=google.com; s=arc-20160816; b=mqifFVgR64PT3b8eO5oHdg+ov7g79yjAHMtucqo4ymAy/yDO9orWc/chRdJtbQyAJn GQxcJTifp0c01AUiIRg5rOhdXxnqyfr9b+kNuDDDMxE5fnjxqBKuzOxIUhPtH4JjxQ3J Em3+6lYvdilPTTSbM9U4uweawZylvmDhLi3HOPrnAzvvpaubAN0+F+csFqLEd+R8PwPB Ji1OyUy19ZaIZ+cEDPm5YGTufxH+QnUhVdjriJVL5n4Pfr6dXY0Nqm4PFdLyvTj6om03 9JW+IAlSs/bXrIWjT42lADfH3i/Ny7mosbdywQLganGAFKRsONRUJP+KYdgX7CJzQ5vL 6IdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=PcJLJgBrnPMXsGzjXkPY7Pb1M0P65ee6QbjyYcCY3xQ=; b=C8QhgEiy04g2keOLhrUXP3AU+PZkOnA7m9Lv/ZKiSp3ATlM5+LpXMyv9/0v3SGa4jB cZDh6qWzUDHE1U3ZUsHOnHz1d4RvZpqt6S9zgjIzB2GYFCBCdQwjxhx/8qHZ8Ig9z+Yl 3FC6EEGB4GVMuREJLn6zE7LmmPM2P7QJ7j9R9q92JJobZsw1APqZlv4SZIzL5yjkwgQE H6Oi402cZfzKQ56Mmlp0PASxA4oFA3rBTDauCQOzoJL7c4z5CJNDkJpW0KW90k+cx5Th k/xpw2Mblpi91io+v3ZSbe7xU42tyjVHaJlpVWHNevAqtBpJfbBFS5oCtnAsp9grjmjS j+yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=atIaslZf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u5-20020a170902e5c500b001746da9a657si34302696plf.56.2022.09.19.02.52.27; Mon, 19 Sep 2022 02:52:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=atIaslZf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230048AbiISJnY (ORCPT + 99 others); Mon, 19 Sep 2022 05:43:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbiISJnU (ORCPT ); Mon, 19 Sep 2022 05:43:20 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB91721271 for ; Mon, 19 Sep 2022 02:43:18 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id s10so32519772ljp.5 for ; Mon, 19 Sep 2022 02:43:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=PcJLJgBrnPMXsGzjXkPY7Pb1M0P65ee6QbjyYcCY3xQ=; b=atIaslZfr7a2dG6dY4McyfmKlTdPK8wfvhBhS5rWv/98HRPJw/1AwMp+fkCG/PjSLc RXcNQZBO/gZE2dT3wsIRIgZOQliqzguckcp1vAng7kUVGfQoGmn6/sh3vU38gDdvXt4J 9VaKr7oTuPW3tawyEmRanRpqSvuEq6fCU5s1pYKgmjTQ4Fa7Xxx8Uv1e5Gn8O4UXalR9 rqDgnqHfmGDz17merzTzYJ6s1Bb1i7bRJOK60QkuZPWF5A3bElzmcXSrdyvzYT4lmOzV +HRVVjLLkIS83wjwpm8L8LRjMqNs7WFzAGqaOREh4Vtv8eKvcsHgdTMzY2Ec1qBZ2bGz Xtag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=PcJLJgBrnPMXsGzjXkPY7Pb1M0P65ee6QbjyYcCY3xQ=; b=e12r9tjxv6PeiqBRdT6nzo+ikCSDlngdqgDDVdQ+HL/6LjxQBG4qGl6go621R7VUJT efeWq0dOR9d5h5pc5e8g+Aeg9kvsOFAMXfwLGGwplFa1PERhVcPYPzWKXmT3vlowNNMI cDzKA6MMG3iaA6WbgEif+nH84DN2fRaVRe0s8rAgP9WMhGGcKFhEY3rlnSlK4QSVzPw6 +fmxVqUq9dh6kM4EPY4qOp4A5cC/7bFVOOchT+dbm4ljsk6JJib8MECp2tM9Uoydq147 HBFhk4+BPIN3KBOJhJSCQdQ0ioHEnxmTk0FHP0rY6/ISiuF2iyXF1wHkGajjYy/mzaHD rB4g== X-Gm-Message-State: ACrzQf1FZH0PT5+ZGGqmVbU8BVDoHK6+iN5ztjXYpN/p0CfnU2OujHuo JGGLJx728iPjV8NioWlE9qsxDg== X-Received: by 2002:a2e:988a:0:b0:26c:171f:1ecb with SMTP id b10-20020a2e988a000000b0026c171f1ecbmr4632926ljj.105.1663580597222; Mon, 19 Sep 2022 02:43:17 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id g5-20020a19ee05000000b004886508ca5csm5117935lfb.68.2022.09.19.02.43.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Sep 2022 02:43:16 -0700 (PDT) Message-ID: <2ace1136-25e0-ef6b-8960-29fbc7050e22@linaro.org> Date: Mon, 19 Sep 2022 11:43:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH 4/4] spi: s3c64xx: Fix large transfers with DMA Content-Language: en-US To: Vincent Whitchurch , broonie@kernel.org, andi@etezian.org Cc: kernel@axis.com, alim.akhtar@samsung.com, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20220916113951.228398-1-vincent.whitchurch@axis.com> <20220916113951.228398-5-vincent.whitchurch@axis.com> From: Krzysztof Kozlowski In-Reply-To: <20220916113951.228398-5-vincent.whitchurch@axis.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/09/2022 13:39, Vincent Whitchurch wrote: > The COUNT_VALUE in the PACKET_CNT register is 16-bit so the maximum > value is 65535. Asking the driver to transfer a larger size currently > leads to the DMA transfer timing out. Fix this by splitting the > transfer as needed. > > With this, the len>64 KiB tests in spi-loopback-test pass. > > (Note that len==64 KiB tests work even without this patch for some reason. > The driver programs 0 to the COUNT_VALUE field in that case, but it's > unclear if it's by design, since the hardware documentation doesn't say > anything about the behaviour when COUNT_VALUE == 0, so play it safe and > split at 65535.) > > Fixes: 230d42d422e7b69 ("spi: Add s3c64xx SPI Controller driver") > Signed-off-by: Vincent Whitchurch Acked-by: Krzysztof Kozlowski Best regards, Krzysztof