Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp186195lqp; Tue, 11 Jun 2024 00:55:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCpTbB49nMsSe2C1YKgnPD/Z0/LNvndqV9JHjzeWNar4GRd3jxLeMrJEuGrwCc6lnvupfxTR20PVNJNWo5mbLUhzBp0r4qIgxORJXpSg== X-Google-Smtp-Source: AGHT+IGZ2prVU3l3a4JNe5dcg8g+0DUBreQZ/iXRNincFvOiQaL3By+06/zqeoK/+lAIOoV0+NPk X-Received: by 2002:a62:ea16:0:b0:704:177f:e3a4 with SMTP id d2e1a72fcca58-704177fe77fmr10176677b3a.15.1718092523357; Tue, 11 Jun 2024 00:55:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718092523; cv=pass; d=google.com; s=arc-20160816; b=rXltHtspol+UWJDSV3X7Jt422i5nece0I9cymdKtxYN7uJx2zzTr2Ef5MjOTbn2Xkj Rc9f9ExHZXIoBMGe2A8hA5E1FZPWVy/IT9li9Fj/LX/IMnvyUsiPiO4OquoEli5x3LrX jtLv1sXMtgjRHnUoK/Fwh3dvVoL9kokrcK+y6ESPQ33A4zvCtsj+sUlIrNNvBkhE1+zI YC+lhX1KdqR2PX13WsTUMPbT0ZafZOl8Hx9bsqoSVCngm+xKn3oLdAHt3Vu678bhtbcB rC+fGsCvohs0R2iZ7BSr5hFKawhfj5usiOVahxdxMth81ofQS9d/03PczdEp2mx95tT9 NSRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id; bh=zARE2ykaZLKe2LSa6sB/L8tQ+x3s44Gn7f7syKk8L1k=; fh=DQIR5/vv7AWJv3qZwzFhG37cAmhnIWKy2QQP04KEEPk=; b=KyfWmA6GCBZ47/AWkyFvMzLrihsrA+yByhaYFxZXBcEN9sgHERdJC+ob0OS/RHcS7W MgdvxQcp57dmx8uoVjOtiSZLDtOATDeMqRmcCTCdonUm4VD7mfTddUfVvOWXMlSSMOSa eB4cDL4N07FOEh4Btf2Alb6mukfFB61ZKaRGN3vIPlmMxwGTXaTPuAiBeFHSbM7J+sDi 5Gml5vohqxshxX2VTwJWXwb6kTfC541DWbo97qG6Bzip6t7GUBz22nNNPlJdbruF9XR9 OnWejnJ79EyPMB9v7s8KN7C0K36gluEt/cEapclmU+oce/3DxTf/xF9vM8REJSMup00i lX9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-209383-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209383-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-70423a7f1efsi5511610b3a.83.2024.06.11.00.55.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 00:55:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209383-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-209383-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209383-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 29B1DB25D2C for ; Tue, 11 Jun 2024 07:36:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43AC1172794; Tue, 11 Jun 2024 07:36:16 +0000 (UTC) Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 E8B39171E7C; Tue, 11 Jun 2024 07:36:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718091375; cv=none; b=hz2PrdguC9HSQM2o2r+70q/+vw5lznaXOPLFdBq+MxfBmLl5rx1yzgjY3ZcG9giJoPngPxpK5lEqaPL1c4ohFBI5XI+3PHzQPSNtlCyyLYsFUWoxHeylU5cKXwXSfuPDJATaqgOGi0sil3S2Pv01CwKHqk2P5kjCzXkoWa59E1A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718091375; c=relaxed/simple; bh=ARZe1loMVP74ruyMn8+10+hSh8A6o2hBc6fLxjaGuTA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MYg5YZKrAVal/FzZr9d5AmE4fuH1fdno9m9eA9KUyDJvKRVHXvNVjPuYXV2eqxCAPvHZgLMCpXhDIPAlfU5OObablyl+IeGuKB6t4Vo941VEZtxWIzn6CLf9nIzlElYUz2l1SF0kWqYX0JadIyEMw/fxq4ozu/6yFxXiYh/kEjM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a6e43dad8ecso594600566b.1; Tue, 11 Jun 2024 00:36:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718091372; x=1718696172; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zARE2ykaZLKe2LSa6sB/L8tQ+x3s44Gn7f7syKk8L1k=; b=foLsM6UlNRXv87BpSHSJxCC7g93rfxfVUd5/NJ/CYblOa/GsjV0GappyfHaakKdhto XCSQaXjb5mTyaoDoQw49DsZ2+E+Mbp57EJo28wtjUN11FMD2AX9DYo5vYMgcMNgOA23J IXjqssL+Thk0XKDi2eAj/KDh1fQpkOAZoRBjQes+tUk0iBXOKH5AUtLVS5DV41mWMf60 EJEKgqZiOA5BtKKwNMAtpGsTT5ABr+Xjv7ssZVgPh+i5wTLGog7lKvNreH4M5kdq4oib VGElMvlder9KttrdRuLjCgl5QQrUHNTz7e+Tdt3vWUoh0GIC9pudYqK9iR7pj4/jxKzS WfrA== X-Forwarded-Encrypted: i=1; AJvYcCXd/mUoQF8n7h1bmkTvHiO5RLThD2zEubtI74BWzGmS7qevbtDG7nODmlgjhVqLNhvwZWgYhFvGOSwG7pqzmnQfN3lS1d3eOU+s/+sER3ZMpCkmp4jhLEBaYaqVERJlHtKPNxnyr3wz5N/PZQ== X-Gm-Message-State: AOJu0YyXRi1M3jwAzcfYSBYknVFjsIoLWbjjz1XRXIVIxR7b3Co5cNLo jlRYIbQj5KYxxtyOklWh8dovX035/ahsFfjE93TN7+YCP/oNylTZ X-Received: by 2002:a17:906:b885:b0:a6e:fdc8:ae42 with SMTP id a640c23a62f3a-a6f34cb468bmr116133866b.12.1718091371938; Tue, 11 Jun 2024 00:36:11 -0700 (PDT) Received: from ?IPV6:2a0b:e7c0:0:107::aaaa:69? ([2a0b:e7c0:0:107::aaaa:69]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6c80727e04sm721596766b.188.2024.06.11.00.36.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jun 2024 00:36:11 -0700 (PDT) Message-ID: <5e46e5dc-cb38-4851-875f-732c99c5f34f@kernel.org> Date: Tue, 11 Jun 2024 09:36:08 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 00/15] tty: serial: switch from circ_buf to kfifo To: Ferry Toth , neil.armstrong@linaro.org, gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Al Cooper , Alexander Shiyan , Alexandre Belloni , Alexandre Torgue , Alim Akhtar , Andrew Morton , "Aneesh Kumar K.V" , AngeloGioacchino Del Regno , Baolin Wang , Baruch Siach , Bjorn Andersson , Claudiu Beznea , "David S. Miller" , Fabio Estevam , Hammer Hsieh , =?UTF-8?Q?Christian_K=C3=B6nig?= , Christophe Leroy , Chunyan Zhang , Jerome Brunet , Jonathan Hunter , Kevin Hilman , Konrad Dybcio , Krzysztof Kozlowski , Kumaravel Thiagarajan , Laxman Dewangan , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, "Maciej W. Rozycki" , Manivannan Sadhasivam , Martin Blumenstingl , Matthias Brugger , Maxime Coquelin , Michael Ellerman , Michal Simek , "Naveen N. Rao" , Nicolas Ferre , Nicholas Piggin , Orson Zhai , =?UTF-8?Q?Pali_Roh=C3=A1r?= , Patrice Chotard , Peter Korsgaard , Richard Genoud , Russell King , Sascha Hauer , Shawn Guo , Stefani Seibold , Sumit Semwal , Taichi Sugaya , Takao Orito , Tharun Kumar P , Thierry Reding , Timur Tabi , Vineet Gupta , Marek Szyprowski References: <20240405060826.2521-1-jirislaby@kernel.org> <364fbb96-006f-4582-a0f8-a0f9edd50f6f@gmail.com> Content-Language: en-US From: Jiri Slaby Autocrypt: addr=jirislaby@kernel.org; keydata= xsFNBE6S54YBEACzzjLwDUbU5elY4GTg/NdotjA0jyyJtYI86wdKraekbNE0bC4zV+ryvH4j rrcDwGs6tFVrAHvdHeIdI07s1iIx5R/ndcHwt4fvI8CL5PzPmn5J+h0WERR5rFprRh6axhOk rSD5CwQl19fm4AJCS6A9GJtOoiLpWn2/IbogPc71jQVrupZYYx51rAaHZ0D2KYK/uhfc6neJ i0WqPlbtIlIrpvWxckucNu6ZwXjFY0f3qIRg3Vqh5QxPkojGsq9tXVFVLEkSVz6FoqCHrUTx wr+aw6qqQVgvT/McQtsI0S66uIkQjzPUrgAEtWUv76rM4ekqL9stHyvTGw0Fjsualwb0Gwdx ReTZzMgheAyoy/umIOKrSEpWouVoBt5FFSZUyjuDdlPPYyPav+hpI6ggmCTld3u2hyiHji2H cDpcLM2LMhlHBipu80s9anNeZhCANDhbC5E+NZmuwgzHBcan8WC7xsPXPaiZSIm7TKaVoOcL 9tE5aN3jQmIlrT7ZUX52Ff/hSdx/JKDP3YMNtt4B0cH6ejIjtqTd+Ge8sSttsnNM0CQUkXps w98jwz+Lxw/bKMr3NSnnFpUZaxwji3BC9vYyxKMAwNelBCHEgS/OAa3EJoTfuYOK6wT6nadm YqYjwYbZE5V/SwzMbpWu7Jwlvuwyfo5mh7w5iMfnZE+vHFwp/wARAQABzSFKaXJpIFNsYWJ5 IDxqaXJpc2xhYnlAa2VybmVsLm9yZz7CwXcEEwEIACEFAlW3RUwCGwMFCwkIBwIGFQgJCgsC BBYCAwECHgECF4AACgkQvSWxBAa0cEnVTg//TQpdIAr8Tn0VAeUjdVIH9XCFw+cPSU+zMSCH eCZoA/N6gitEcnvHoFVVM7b3hK2HgoFUNbmYC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transfer-Encoding: 7bit On 10. 06. 24, 22:16, Ferry Toth wrote: >> One question though: in 8250_dma.c serial8250_tx_dma() you mention "/* >> kfifo can do more than one sg, we don't (quite yet) */". >> >> I see the opportunity to use 2 sg entries to get all the data out in >> one dma transfer, but there doesn't seem to be much documentation or >> examples on how to do that. It seems just increasing nents to 2 would >> do the trick? > > Nevertheless I got this to work. Very nice. Thanks for this series. > I am seeing only 2 interrupts (x2 as each interrupt happens twice), one > for dma complete. The 2nd, not sure but likely, uart tx done. > In any case the whole buffer is transferred without interchar gaps. > >> So, what was the reason to "don't (quite yet)"? > > Before considering to send out a patch for this, are there any caveats > that I'm overlooking? Not any I am aware of. It just needed testers. Please send a patch. thanks, -- js suse labs