Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2053331lqt; Sun, 21 Apr 2024 22:58:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXDBcqORm4yT0V2QsyqPnCZ6XB6tyeM8bdEfn3gFx3DiKok63fLRKJv0ucFwsVNCDwLwEvMZqaLcWd9Bvgmmg17TKxvj2VxCmJ0c2cokA== X-Google-Smtp-Source: AGHT+IE7HBRYXVjSKhb0oJnMlayGC+w1raSu6JyENiLCer/AE5FeureqAyDJGn6UOnlVgRUGnjJo X-Received: by 2002:a05:6870:d6a3:b0:22e:c1ff:303c with SMTP id z35-20020a056870d6a300b0022ec1ff303cmr11704835oap.37.1713765491816; Sun, 21 Apr 2024 22:58:11 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u20-20020a634554000000b005e44b47f272si7389988pgk.410.2024.04.21.22.58.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Apr 2024 22:58:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152761-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=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-152761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152761-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 DD80FB218A3 for ; Mon, 22 Apr 2024 05:52:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E29018B04; Mon, 22 Apr 2024 05:52:00 +0000 (UTC) Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 4623E18EA1; Mon, 22 Apr 2024 05:51:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713765119; cv=none; b=BQ5GRsug/vtJU+IJd04IQ+Z+yeP94Uym89XSTxeto2hXENoTAGt4h9+uydNi6Jy5+3WYKgbGweizVeFCCSJhPm7QCAQUJusPNg4m03qD5wAPWAbdpARwVr6O36N3MrMgcELkU5kRa8IdGje/W4GMggc5C6+olKxoeC5SQGbYZfc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713765119; c=relaxed/simple; bh=mO8C0+DnaefprQAj5qHiLjNWa7ajQUzDbr/Y+36xOAg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qk7+Rse+M50Gke5M+7OCVzudT5OSat5WneWdPn3qQhV7Co8y5yIvQi21lSZWAbQsthvE6g8ZC9XGIHv9eF4FyWNqqgWsfT7S5cQYi9iv6X62Y964MFxl2lk/big+rljG68lbZ9PKprOaVMyPmYMYm8TncKjPgLK0tEVBoBHbOd4= 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.47 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-f47.google.com with SMTP id a640c23a62f3a-a55ab8e8766so99167866b.3; Sun, 21 Apr 2024 22:51:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713765116; x=1714369916; 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=T1xC9IH1uhHctutEG+h6tW/1KnsOeke58MLcXUfvXz8=; b=WtzoMhuFNASrp7TKnjzsnVOtATughtjJ165teHCkR+b3idhOmgLBDOuynSwkbtKr2H +g+lYXz1ID5dyLygkyeCmY9iJhPn2GqExqIihFtBYGnk1pJ9Vfg0jRImV1oMguB+RXzr mKHXUgm2mES4jQW47NhdNw6DWR4SVUQoMecEOxvjipV7fKmh0dbyXsehWbN5gj9iUuha NlVCrhA9jOtXW8FROBwMcSnK+1aurKNZwZwBF91Z1GFsqsHh3CXxuKfc9ve4azvFQ49G HJK4OQ9k4ocbhCZGypYnBGnbVjZLoHD7qspwd0SSj+2v+04MdlAGJ+bOx2P9AgldJvZn CETw== X-Forwarded-Encrypted: i=1; AJvYcCW1uJtwng5YzPNbv8kBt8o7zKLUWFAh2T0TOyo6VzJrLkJCgqgRKftlFP/2W/OVILBPwvuCQu4+myaZxByNY/4V9ug6ooW4Y4ZmvXmbGFb56OCnkvdmBVoG3mwiMGbQ4Ei2i2n8uL+pSoPH/A== X-Gm-Message-State: AOJu0YwpCJ6ZtggFAEdr3g2a7MJCYKFYcY2Lhc819W+dZ+0430Lvvof8 adbhhEKf9PNSA7u6WWu1llLUE0Ph0gA6cD2A3hdsRKPpP9cDRjOG X-Received: by 2002:a17:906:e91:b0:a51:cc20:9116 with SMTP id p17-20020a1709060e9100b00a51cc209116mr4948595ejf.68.1713765116249; Sun, 21 Apr 2024 22:51:56 -0700 (PDT) Received: from ?IPV6:2a0b:e7c0:0:107::aaaa:69? ([2a0b:e7c0:0:107::aaaa:69]) by smtp.gmail.com with ESMTPSA id bi10-20020a170906a24a00b00a54c12de34dsm5280037ejb.188.2024.04.21.22.51.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Apr 2024 22:51:55 -0700 (PDT) Message-ID: Date: Mon, 22 Apr 2024 07:51:52 +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: 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> Content-Language: en-US From: Jiri Slaby Autocrypt: addr=jirislaby@kernel.org; keydata= xsFNBE6S54YBEACzzjLwDUbU5elY4GTg/NdotjA0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Gu2KLJ18G07q0fpz2ZPk2D53Ww39VNI/J9ABEBAAHCwV8EGAECAAkFAk6S 54YCGwwACgkQvSWxBAa0cEk3tRAAgO+DFpbyIa4RlnfpcW17AfnpZi9VR5+zr496n2jH/1ld wRO/S+QNSA8qdABqMb9WI4BNaoANgcg0AS429Mq0taaWKkAjkkGAT7mD1Q5PiLr06Y/+Kzdr 90eUVneqM2TUQQbK+Kh7JwmGVrRGNqQrDk+gRNvKnGwFNeTkTKtJ0P8jYd7P1gZb9Fwj9YLx jhn/sVIhNmEBLBoI7PL+9fbILqJPHgAwW35rpnq4f/EYTykbk1sa13Tav6btJ+4QOgbcezWI wZ5w/JVfEJW9JXp3BFAVzRQ5nVrrLDAJZ8Y5ioWcm99JtSIIxXxt9FJaGc1Bgsi5K/+dyTKL wLMJgiBzbVx8G+fCJJ9YtlNOPWhbKPlrQ8+AY52Aagi9WNhe6XfJdh5g6ptiOILm330mkR4g W6nEgZVyIyTq3ekOuruftWL99qpP5zi+eNrMmLRQx9iecDNgFr342R9bTDlb1TLuRb+/tJ98 f/bIWIr0cqQmqQ33FgRhrG1+Xml6UXyJ2jExmlO8JljuOGeXYh6ZkIEyzqzffzBLXZCujlYQ DFXpyMNVJ2ZwPmX2mWEoYuaBU0JN7wM+/zWgOf2zRwhEuD3A2cO2PxoiIfyUEfB9SSmffaK/ S4xXoB6wvGENZ85Hg37C7WDNdaAt6Xh2uQIly5grkgvWppkNy4ZHxE+jeNsU7tg= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, On 19. 04. 24, 17:12, Neil Armstrong wrote: > On 05/04/2024 08:08, Jiri Slaby (SUSE) wrote: >> This series switches tty serial layer to use kfifo instead of circ_buf. >> >> The reasoning can be found in the switching patch in this series: >> """ >> Switch from struct circ_buf to proper kfifo. kfifo provides much better >> API, esp. when wrap-around of the buffer needs to be taken into account. >> Look at pl011_dma_tx_refill() or cpm_uart_tx_pump() changes for example. >> >> Kfifo API can also fill in scatter-gather DMA structures, so it easier >> for that use case too. Look at lpuart_dma_tx() for example. Note that >> not all drivers can be converted to that (like atmel_serial), they >> handle DMA specially. >> >> Note that usb-serial uses kfifo for TX for ages. >> """ .. > This patchset has at least broken all Amlogic and Qualcomm boards so > far, only part of them were fixed in next- So are there still not fixed problems yet? > but this serie has been > merged in v1 Ugh, are you saying that v1 patches are not worth taking? That doesn't fit with my experience. > with no serious testing Sadly, everyone had a chance to test the series: https://lore.kernel.org/all/20240319095315.27624-1-jirislaby@kernel.org/ for more than two weeks before I sent this version for inclusion. And then it took another 5 days till this series appeared in -next. But noone with this HW apparently cared enough back then. I'd wish they (you) didn't. Maybe next time, people will listen more carefully: === This is Request for Testing as I cannot test all the changes (obviously). So please test your HW's serial properly. === > and should've been dropped > immediately when the first regressions were reported. Provided the RFT was mostly ignored (anyone who tested that here, or I only wasted my time?), how exactly would dropping help me finding potential issues in the series? In the end, noone is running -next in production, so glitches are sort of expected, right? And I believe I smashed them quickly enough (despite I was sidetracked to handle the n_gsm issue). But I might be wrong, as usual. So no, dropping is not helping moving forward, actions taken by e.g. Marek Szyprowski do, IMNSHO. thanks, -- js suse labs