Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp940543pxp; Wed, 16 Mar 2022 22:02:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2gZ8EeN6rwb57exbyRNm0AqQcmuyboWir4bkQM5JpKOfNwR8bThso5+xBFobmebMAyFJ1 X-Received: by 2002:a65:45c8:0:b0:380:352e:825b with SMTP id m8-20020a6545c8000000b00380352e825bmr2241007pgr.509.1647493377791; Wed, 16 Mar 2022 22:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647493377; cv=none; d=google.com; s=arc-20160816; b=BT4pqJ9Jl8KCJ5eAvJHQQCKx6UpMNLllw7oUFgag/7LXbBJ53ejw/RXX6I+3/Lw/an lMiooXogzxIj/O9Lw5HMDICU4ETyYCshjowZF78kx7QeiJMkdNbH5WILoSLWg1A2fokl wza5Lz7MiZU/L54PL5etgxlWixmOy6ljwo6fsTCKruWluioDY5lDGMBXHDgezrZNvy/y 14wAY/wAQTnmXzJxVCBAb6gUNV1Nj08toRYyxnGs6L1My1i8A7hYfUpo4G5PAkvqmEIe IRKkvlGxD9vuloGOKOmppq5w0nvBEqtTONi8V0X/4wsj3mf891Vuzab1/+26jh5YcAuM IUbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=6qchl1xPZKkI22z6HG25wN3z1aoxLWwh3XLu0lL2RMo=; b=B3YjDPI8qqIMptx2FWasYzlOfnxGd/JibIXokgapinRqV3L3UyAmJft0IOeeCJEZTq jdHIYvGzEt7FVwCQWPjEzZbP4S8m+W4mylYEnPz/lgFk+AI+8lQBMQfTKSA3mxrywTJ+ 4jlNBIeweMJ1IfWVreRpMsQ788hp05xEheS40ZHAwFtzRu/mU3g8O1lsLFi5EVhfgUc3 NCYU/d3xO2sSxT4AYrEqQCVdJNaJACX6RUp3RBr8/LwvOTA9Wx8i5dmYAeFOxOVuFUtl So5XR0BNaTAVbsODFYHG5Tnsa52E3KmiWu+TAvHp/ZIil2PJLxDdsmfdLlE58tEk1Lo7 3k7A== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d11-20020a056a0024cb00b004f72031baaasi4229149pfv.370.2022.03.16.22.02.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 22:02:57 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E7ADB198EE8; Wed, 16 Mar 2022 21:16:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347487AbiCPP2r convert rfc822-to-8bit (ORCPT + 99 others); Wed, 16 Mar 2022 11:28:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbiCPP2p (ORCPT ); Wed, 16 Mar 2022 11:28:45 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D45A4673D5 for ; Wed, 16 Mar 2022 08:27:30 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-38-f6wgHKZ6OgqCN6WP2rtJ0g-1; Wed, 16 Mar 2022 15:27:27 +0000 X-MC-Unique: f6wgHKZ6OgqCN6WP2rtJ0g-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Wed, 16 Mar 2022 15:27:26 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.033; Wed, 16 Mar 2022 15:27:26 +0000 From: David Laight To: 'Wander Lairson Costa' , Greg Kroah-Hartman , Jiri Slaby , Johan Hovold , "Maciej W. Rozycki" , Serge Semin , Lukas Wunner , =?iso-8859-1?Q?Pali_Roh=E1r?= , "open list:SERIAL DRIVERS" , open list CC: "rostedt@goodmis.org" , "senozhatsky@chromium.org" , "andre.goddard@gmail.com" , "sudipm.mukherjee@gmail.com" , "andy.shevchenko@gmail.com" , "jonathanh@nvidia.com" , "phil@raspberrypi.com" Subject: RE: [PATCH v4 1/5] serial/8250: Use fifo in 8250 console driver Thread-Topic: [PATCH v4 1/5] serial/8250: Use fifo in 8250 console driver Thread-Index: AQHYOUNg+UxO79+xmUuDTD6Kl8POG6zCIVEg Date: Wed, 16 Mar 2022 15:27:26 +0000 Message-ID: References: <20220316143646.13301-1-wander@redhat.com> <20220316143646.13301-2-wander@redhat.com> In-Reply-To: <20220316143646.13301-2-wander@redhat.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Wander Lairson Costa > Sent: 16 March 2022 14:37 > > Note: I am using a small test app + driver located at [0] for the > problem description. serco is a driver whose write function dispatches > to the serial controller. sertest is a user-mode app that writes n bytes > to the serial console using the serco driver. > > While investigating a bug in the RHEL kernel, I noticed that the serial > console throughput is way below the configured speed of 115200 bps in > a HP Proliant DL380 Gen9. I was expecting something above 10KB/s, but > I got 2.5KB/s. > > $ time ./sertest -n 2500 /tmp/serco > > real 0m0.997s > user 0m0.000s > sys 0m0.997s > > With the help of the function tracer, I then noticed the serial > controller was taking around 410us seconds to dispatch one single byte: Did you verify the baud rate? Or is there some horrid serial redirection going on. It is even possible there is a bios smm interrupt chugging through on another cpu core. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)