From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 718D41A23B6 for ; Sun, 21 Dec 2025 15:57:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766332632; cv=none; b=To+K6ICqVikvNwsWCIXuXhTu5aFe3aGS2emyd5hDhzhuoxrUsXu3YqWEGxInypeLeZ45vhNlKbJ0HtmvPwF7mMur6bb7OUxf++Zs4TemSErNPa45Msw1USlroYeZR5+yf96YRWDrDU+U8jpSLv8kZjP7c1oPlsBJQQBbLYSzkf8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766332632; c=relaxed/simple; bh=mrMOQdDsAyBJL5Fgn/G2OhbffuTYYry72mzdpWhvbCI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=vFqmTcR5mSgZN3IyxhdAl4fvOZl9rdoudb7lRgFnTFTFs4UfgIitaDmHnG2pcFtY88gr/OJzrz+4rrOgSJ1DYhJoJAtmjpoBesRHGTdMoUlo86dt0+f4g7kqoA3/O2yigdJTWuwwueeGy+ewxg+7QNXjY6XnXVh9pMXwoEGXjzU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Ni/bg7ps; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ni/bg7ps" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4775ae5684fso11406635e9.1 for ; Sun, 21 Dec 2025 07:57:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1766332629; x=1766937429; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mrMOQdDsAyBJL5Fgn/G2OhbffuTYYry72mzdpWhvbCI=; b=Ni/bg7psCSUyErsoea9IjsITMxN04bm44C4CpaE1rGtK4etMFEvaNojWjYiJ6iG/Yx EuyOl6JGsmrsMSJlzpb6/CN8OCiHK+QxxvWmj4YT8q+F+SI1wAW6RZpMUI9hdAhe8NW7 WUWpGAX/DKkhN71hMy3k8f1P67jRcKnOTzdnt7+gjv6K9yW4C789Vuv194KzKID7+NXv 1tK9pbp1Be6rK7WHAPRd+lMnaTGVkdXUJ/RkvMVhyJq99wmXK5iF853F7/9/bSMR/V9T XcSN4O6MsCoR9lirgeLuHI7WguIbmNY58cCf5leDpAH4d8ptVQAcC1s7opSkc3aWGO8b QK5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766332629; x=1766937429; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=mrMOQdDsAyBJL5Fgn/G2OhbffuTYYry72mzdpWhvbCI=; b=ikoGwKeyTYbY7cm0TaO0yO4/DoOc5fapeP9s+L/I2g2JWH3xrQoAl4BaTaODSghuZH o2eVo8VRniu5Q/siR8/IddHwfWELHpQn2dH+XS6El9F1a/p/lfhc7gp5RRSDAvrC3MWB xiAGfd5lp1nPQUEkt1UQnS4Gc10RmwqLxwyemdXq4+3OMaoTRtVcIw0tX5MG33o94vKt E3zZRxXaWhnWexadkAMHB2yrEjbzPhwhCfYlwni2WeYCJXN2PCuIp18fyLnkDo1yplWC +JoTVirQy0P5me17yP2oXJj1UbRQHY+oTHRBTSuhzXzzqEHNmb7AI0pdAhjTGWzTdB3m wAcg== X-Forwarded-Encrypted: i=1; AJvYcCUenLrel73jdcU59zCDExdGQLl3FEU8D82tT475/1rnMjvlF+9NMm2zBjGB+B8RkQjyf1Gs4lwLIJdhSfI=@vger.kernel.org X-Gm-Message-State: AOJu0Yws3ajhdlyfL0bxIZciS9XlOOiddG1MmNswaL0pj0tJ9O9lS1Rw olouG4mzG1AvNEFCRn7VJHeKAj697/z2GfQcNpV8gCb6oKqq1HS9KzTk X-Gm-Gg: AY/fxX4KNYzZho5rmErovzdG6A1CGcuOIMSaGU0SxGR0JYK1jqns/3kfrZKhCeKynox f5rB6wEaolENFX0lGKiF/wFeLe4kRuMU9kHJE845P/O9bEhrgExkxlZZzfGQecqhadtVUDiQL7f N3VFnN6E2CtcHB2qz6zMjdxK0JP8e7fseWOnQ3QWI7tUFSyTEkV5N8qBf/xSAu9ZyU4Wbo2Haky J/osoEAcEwN65j8BiMCTxsusAObaGoMyQ7dsaz8wOp2spHK6N/JYwo/9c3STNoDJlFAim8F1YAp T3p0f6qEol6VtW8fpq9ZqSbccmRqjAuO9EZMw2CHg8PZDByHWEWbIBe2ExH3nglMJP6giE7OTUb sAs5+2tXWo4lvbqa3QALalz/Mu5sm2PlSa58wQ1iCU8lufcMvs/1zRFhUwVuxq5teT6YobSl1hA 8DKA1sHVLGYYMCXZkrpHA4crHZDaDj+8CGDOnKBrntH3mulkPqgLfNkgQm6WPHf2c6NEx3 X-Google-Smtp-Source: AGHT+IExEA0mdDUqUtqXOeUL++O53ldVOc/C42cZHo7ZCg0+/iRgPqjs3JCL6tqxJgQuhZDXsn6nRw== X-Received: by 2002:a05:600c:6388:b0:477:63db:c718 with SMTP id 5b1f17b1804b1-47d19557cd2mr82943635e9.16.1766332628749; Sun, 21 Dec 2025 07:57:08 -0800 (PST) Received: from jernej-laptop.localnet (82-192-45-213.dynamic.telemach.net. [82.192.45.213]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47be3ac5409sm75866275e9.15.2025.12.21.07.57.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Dec 2025 07:57:08 -0800 (PST) From: Jernej =?UTF-8?B?xaBrcmFiZWM=?= To: Vinod Koul , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Chen-Yu Tsai Cc: Andre Przywara , dmaengine@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: sun6i: Choose appropriate burst length under maxburst Date: Sun, 21 Dec 2025 16:57:07 +0100 Message-ID: <3385264.aeNJFYEL58@jernej-laptop> In-Reply-To: <20251221080450.1813479-1-wens@kernel.org> References: <20251221080450.1813479-1-wens@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Dne nedelja, 21. december 2025 ob 09:04:48 Srednjeevropski standardni =C4= =8Das je Chen-Yu Tsai napisal(a): > maxburst, as provided by the client, specifies the largest amount of > data that is allowed to be transferred in one burst. This limit is > normally provided to avoid a data burst overflowing the target FIFO. > It does not mean that the DMA engine can only do bursts in that size. >=20 > Let the driver pick the largest supported burst length within the > given limit. This lets the driver work correctly with some clients that > give a large maxburst value. In particular, the 8250_dw driver will give > a quarter of the UART's FIFO size as maxburst. On some systems the FIFO > size is 256 bytes, giving a maxburst of 64 bytes, while the hardware > only supports bursts of up to 16 bytes. >=20 > Signed-off-by: Chen-Yu Tsai Reviewed-by: Jernej Skrabec Best regards, Jernej