Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp297385pxh; Wed, 10 Nov 2021 01:53:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYL2oWAj/RZmMQqw12P2SGDq8Yr0l+E/2iO25s/cSBIGTSiAYDzG7DothrSgS2/MQI3OMH X-Received: by 2002:a05:6402:1ac1:: with SMTP id ba1mr20167801edb.206.1636537993429; Wed, 10 Nov 2021 01:53:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636537993; cv=none; d=google.com; s=arc-20160816; b=foSYlGh4wAT8UTdyVOTN6O5R/0pdDHJm8yAaP3B8dAz6QYgVsmFR0tPEtbtZarEBO8 inrz3Et2GLigePiksT4YffQVdlSCkm3K8RpdY4BOb9NuzMVJ9lAjTf2mzgzlU3l1rIhU ZDf1TrNRByLtENTEzkk8+I5H4LAGZaeK7gqoTaU+fwlD1USdDI08jRHR+ncnuBmI4bEM 7jHnv50H5HYtXhkRa1kmAiAQ8QbMTmlJFbJO6S2BGMHaYOm7xes3Vk0cicTifHobt0mv 6+OubooN9xmzvoG1mnv8ehwtlMcnIdCVNfGPVpg/5MQ/8b60HmUb2Pu/N/eKyqdeb3q3 iz1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=KeIlVKt/9xSQQTs2L6NDOm0eWEpONTN7EdsmQwnJyHM=; b=hGZy8YFjbozmirbINbEFqdM3pXAdy5dI8Ux4trsjrnb4sgiAWePIOLg2Jqii0HgWbn Syb3s44Rd5HcuTzo334d+C4/fWsVxHWehYGnYN7tsrl8pWBu399KTpWMx2AQr/AePZjC wlZ/+ekPL6ZbFeLKWZXp1Iy/Fk5sWCndWrZsl+gZU43u3xxtstZiX5hx6XLNVfDtP4Pm WvxYG8mPQpPt+ExSvjL34HGy6HbR9lNIsPqwUqMumCfAs6LuqBp7DUb5mj9cFqshGTaH crXfheNuWXcE6kleYkdG+Vwlvkp+hxPSk4KyQpAFRfKNz/A0+SYd7W536dbMMzKWJAHc nZsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h19si40477890edt.391.2021.11.10.01.52.49; Wed, 10 Nov 2021 01:53:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230522AbhKJJxa (ORCPT + 99 others); Wed, 10 Nov 2021 04:53:30 -0500 Received: from mail-ed1-f48.google.com ([209.85.208.48]:44809 "EHLO mail-ed1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230505AbhKJJx3 (ORCPT ); Wed, 10 Nov 2021 04:53:29 -0500 Received: by mail-ed1-f48.google.com with SMTP id j21so8064116edt.11 for ; Wed, 10 Nov 2021 01:50:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=KeIlVKt/9xSQQTs2L6NDOm0eWEpONTN7EdsmQwnJyHM=; b=PGP2Na4ZS+lL0pA47xBtjo4cWDLsx5yD2ayc494kfGsFlxTFZymCiDEV6zStH2vw/y MSYcPc+ZPivYqW2nO7mkA4V5nW/RfFNX5j46k33yC0YLzGMEENO84Zc8p9jBDXQzAnhu 07M1IeAfrJzKmYoFiaOrp3U8+SxUax6vE6WVvnCwyVwT/2Vxaeqa7QGqGl74gumyAF3M eHUnCK0pOKgs5q28/mjrS9pWV0RH7UZN8cKXs71Bg7vMD0pH8Pe0AdWyYJA1g2UnsbLr RAzJhEvE7yibhnPFT/hdIpWTiTXtYKyf0MaxKY2p3DQ5OklX6r9F08xuqNlM/sE1D3Os WkBw== X-Gm-Message-State: AOAM532jwbY16ugUgjYBuHa0q0lSzb0MWK18SOgwJAILfCB52CFv4HB2 GpGKtpTnHnoB5PfoCh5+nsI= X-Received: by 2002:a17:907:7f8b:: with SMTP id qk11mr18953761ejc.313.1636537841497; Wed, 10 Nov 2021 01:50:41 -0800 (PST) Received: from ?IPV6:2a0b:e7c0:0:107::49? ([2a0b:e7c0:0:107::49]) by smtp.gmail.com with ESMTPSA id g10sm12304528edr.56.2021.11.10.01.50.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Nov 2021 01:50:41 -0800 (PST) Message-ID: Date: Wed, 10 Nov 2021 10:50:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: [PATCH v12 1/2] tty: hvc: pass DMA capable memory to put_chars() Content-Language: en-US To: Xianting Tian , gregkh@linuxfoundation.org, amit@kernel.org, arnd@arndb.de, osandov@fb.com Cc: shile.zhang@linux.alibaba.com, sfr@canb.auug.org.au, linuxppc-dev@lists.ozlabs.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org References: <20211028150954.1356334-1-xianting.tian@linux.alibaba.com> <20211028150954.1356334-2-xianting.tian@linux.alibaba.com> <55b28b16-33f4-2a69-b2f1-6781d0241b99@kernel.org> <7dde342a-c2b7-32fe-7410-e372c82a4a68@linux.alibaba.com> From: Jiri Slaby In-Reply-To: <7dde342a-c2b7-32fe-7410-e372c82a4a68@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04. 11. 21, 14:06, Xianting Tian wrote: >> OTOH, you need c[N_OUTBUF] in the console case (hvc_console_print), but >> not whole hvc_struct. So cons_hvcs should be an array of structs >> composed of only the lock and the buffer. > It is ok for me. >> ============= >> >> And I would do it even simpler now. One c[N_OUTBUF] buffer for all >> consoles and a single lock. >> >> And "char c" in struct hvc_struct. >> >> No need for the complex logic in hvc_console_print. > > So you will implement this? No, there is a slight difference between "I would" and "I will" :). I don't have anything to test this hvc change on… thanks, -- js suse labs