Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp52706imm; Tue, 9 Oct 2018 13:40:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV61VllAKltTc27xo2L0joXJx6Ib6viUISpN1R9iVntVM//EXsaTLhXoD4RniFzQviLPJYOyv X-Received: by 2002:a62:670a:: with SMTP id b10-v6mr31493757pfc.243.1539117633988; Tue, 09 Oct 2018 13:40:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539117633; cv=none; d=google.com; s=arc-20160816; b=unrPMfaxu8Jp5L9HLaXJJ8fOdjsLkI8YZEneGjrOP4OcLHaD1nbQuRUX3mScLcHniN fPscBJtS9osJyqNGuj8NDpBUq/32hlG+kDWkuPD5wp84ipgsUAf8L8Pau5tWJoKiZZjl /wGBKPApUvn9IGQw29m1LDAV2et7lfe3fEt6RxYC4J0KMoZChD9nTteI1daN4AWww0cT yvcIbKGGE7gWXtaZG1E1Reujd+H1DAG1j7vCmGP4it+C0bR9/oUqeGUyIIuHYo3AhPl6 T54DfEDHfTaJtWDU5pWrT1EBR3xGV8e5Yy+jAIeY0i+FEwyrdMfHA1XdeICXIrfkIfNB BlXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:to:subject :from; bh=iCxJ7h8kj2D2KypVsSEvRMm1q2BvEqX0xgfT1Me3How=; b=zfhsUVoPZPIx1cv/GQyVyiu6aPHe7SQFLG7vEh+ta061kLX0ueIDmjrMmqMbDrMFMc zg2hgC7na0H0iy2QjNbOGm6+KAMEkJR5W69nT9VxwxmmQZZKg17CEjlESREHyM9E58FK gU5xnzf9DPmnw0aKrLuQygu2SuC+8wbAG8GjUDHGOAL4k6jJknAXuvr/HXtu+516NG7B QtFDg7j9zgF7vBgD2EPvMbHD5Ys5mfXNFj7OjqoV36t/F9TFUZbLsvgFTNl5jCLx3KE4 ewxm0rsOvVa/IfdXKOqluzY8pw5tcXAQAi7axadk3w8OjauG7XnSgLhI07X88cToEAOW CkhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s130-v6si26335027pfc.81.2018.10.09.13.40.17; Tue, 09 Oct 2018 13:40:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727477AbeJJChi (ORCPT + 99 others); Tue, 9 Oct 2018 22:37:38 -0400 Received: from terminus.zytor.com ([198.137.202.136]:58315 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727427AbeJJChi (ORCPT ); Tue, 9 Oct 2018 22:37:38 -0400 Received: from hanvin-mobl2.amr.corp.intel.com (jfdmzpr04-ext.jf.intel.com [134.134.139.73]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id w99JJ6it1166093 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 9 Oct 2018 12:19:07 -0700 From: "H. Peter Anvin" Subject: Insanely high baud rates To: linux-serial@vger.kernel.org, Linux Kernel Mailing List , Greg Kroah-Hartman , Jiri Slaby , Johan Hovold , Alexander Viro Message-ID: <3fcef1c1-d746-ae82-c0e6-f079b1a53ffb@zytor.com> Date: Tue, 9 Oct 2018 12:19:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Resending to a wider audience] In trying to get the termios2 interface actually implemented in glibc, the question came up if we will ever care about baud rates in excess of 4 Gbps, even in the relatively remote future. If this is something we care about *at all*, I would like to suggest that rather than defining yet another kernel interface, we steal some bits from the MSB of the speed fields, alternatively one of the c_cc bytes (all likearchitectures seem to have c_cc[18] free) or some field, if we can find them, in c_cflags, to indicate an exponent. With 5 bits from the top of the speed fields, the current values would be identical up to 248 Gbps, and values up to ~288 Pbps would be encodable ±2 ppb. In the short term, all we would have to do in the kernel would be erroring out on baud rates higher than 0x0fffffff (2^28-1 due to implicit one aliasing rhe first bit of a 5-bit exponent – less than 2^27 are functionally denorms.) However, I'd like to put the glibc infrastructure for this now if this is something we may ever be interested in. Thoughts? -- Sent from my Android device with K-9 Mail. Please excuse my brevity.