Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp600886rwb; Fri, 7 Oct 2022 01:17:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5D/Ew2VPWGz7ASUI7VYpVIqE5xnsGqmMyzTssdgQmtHclaO7yigfJ4swPzLWojujghlIVh X-Received: by 2002:a17:906:5d16:b0:787:a9ee:3c9c with SMTP id g22-20020a1709065d1600b00787a9ee3c9cmr3120733ejt.467.1665130641933; Fri, 07 Oct 2022 01:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665130641; cv=none; d=google.com; s=arc-20160816; b=OP52iHL57kaXZnV7DAv6sbiL40B/C1Im0EpRRNjAJpFqL0VTotVq1gUwZ/aPado6Un HxytROz2+wqJF7qHLGm/n0Mw/mdQetxiMNbXNQ26KMYrDyJ6b3fkgbcH7Vx9t08NKEYF 7UGNWujaiuNTQfYs8kzCkdKJdDY0GuI147DJGVOW8ll9F2ErmKqDUgT6vH1lpddIFtWP i1hiNDufQygQo4uVhpbkz5hfLGNlDvy+5B18J4jWroo0Yp+X4xgfJAT0SWBLWjCNwK33 dTawDXhR3N/Q23uZK5sf8C2akxjD6IFA9M8fHZ7ubAi7HOG82wVMQAhx09YIhdqDyJ2T yJZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zcPl9KgcpXYKUblAA4rEXVtBe9ygdceZREEWM2A1+Is=; b=Ad/p3RvzRmI3sBMEpErcIdmkYlLVDR2lRMmNO1rmKrgMTKDrC0l3XuqfyKJ0xlS73x QYu92pY/zlixMSKmgGGvAnmc6kqd0+fdL8+3jQSMH4Iwd7CtUkQpW6YX6ST3AjJpU+g6 c5wcTaFn9i25mxbftAuMbp78zS5DmzgticaJFvo9tfybRNr3sSeJYzlG5mfCxSZMyPAr h+G0KiOLHbe9HpnmjqJ/lISDm0zMw+AOFFnNbLmluVK5Yw3+H+U/WG9jGsfHV5HDzZap 6BgjIsiJFJAeTWvzLsTZhlAg+KSEobQH89Gii4mEUuktPIkts56frSK4mNTNlylAiUYs meRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GZ9K3KUL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ci19-20020a170906c35300b00777be437681si1325750ejb.984.2022.10.07.01.16.56; Fri, 07 Oct 2022 01:17:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GZ9K3KUL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbiJGHkP (ORCPT + 99 others); Fri, 7 Oct 2022 03:40:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbiJGHkN (ORCPT ); Fri, 7 Oct 2022 03:40:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 188253FA16; Fri, 7 Oct 2022 00:40:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A079461C0A; Fri, 7 Oct 2022 07:40:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BCCEC433D6; Fri, 7 Oct 2022 07:40:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665128411; bh=GKlx4XpC4V4eNmFalCE62eQxE/iy5Kh4EpFqqS1kpA4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GZ9K3KULO5a/jrGADpCK92s3OF1ZGtLpoouHlBzykdZSDl0a2f+PvoVCMOjyp6M1m gRhvzgyze5T4gAMbmuIN2Rbf55/EcfXwHIOLLEBo7YdDr2wCeDU692KjAriyVZTObK bg1lFSw6AE8+Y1jZPiql6aBLW7DexwIQyoABzIrc= Date: Fri, 7 Oct 2022 09:40:52 +0200 From: Greg Kroah-Hartman To: Elliot Berman Cc: Bjorn Andersson , Jiri Slaby , Murali Nalajala , Trilok Soni , Srivatsa Vaddagiri , Carl van Schaik , Andy Gross , Dmitry Baryshkov , Jassi Brar , linux-arm-kernel@lists.infradead.org, Mark Rutland , Lorenzo Pieralisi , Sudeep Holla , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , Will Deacon , Catalin Marinas , Arnd Bergmann , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 14/14] tty: gunyah: Add tty console driver for RM Console Services Message-ID: References: <20220928195633.2348848-1-quic_eberman@quicinc.com> <20220928195633.2348848-15-quic_eberman@quicinc.com> <14d0ff9f-60f3-71cc-ea42-ceee389298ac@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14d0ff9f-60f3-71cc-ea42-ceee389298ac@quicinc.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Thu, Oct 06, 2022 at 10:59:51PM -0700, Elliot Berman wrote: > > > + */ > > > +#define RSC_MGR_TTY_ADAPTERS 16 > > > > We can have dynamic tty devices, so I don't understand this comment. > > What really is the problem here? > > > > Yes, I see the confusion. Dynamic device addition of tty devices is > supported. As I understand, you need to know the maximum number of lines > that could be added, and that is limitation I was referring to. What do you mean by "lines"? That's not a tty kernel term. > Is this comment better? > > The Linux TTY code requires us to know ahead of time how many lines we > might need. Each line here corresponds to a VM. 16 seems like a > reasonable number of lines for systems that are running Gunyah and using > the provided console interface. Again, line? Do you mean port? > > > + cons_data->tty_driver->driver_name = "gh"; KBUILD_MODNAME? > > > + cons_data->tty_driver->name = "ttyGH"; > > > > Where did you pick this name from? > > > > Where is it documented? > > > > "GH" is the shorthand we've been using for "Gunyah". I didn't find > documentation for dynamically assigned char devices, but if it exists, I can > add entry for ttyGH. Why use a new name at all? Why not stick with the existing tty names and device numbers? thanks, greg k-h