Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp335893pxb; Sat, 9 Oct 2021 22:36:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOzQWd20JEsCH2s/7dhIsfufUSGsyAXwLCjgQR+x7GOC9+2XRtep7R0SWDOFm2QspIdx+P X-Received: by 2002:a17:902:6f02:b0:13e:5dce:eb9e with SMTP id w2-20020a1709026f0200b0013e5dceeb9emr17999603plk.64.1633844188202; Sat, 09 Oct 2021 22:36:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633844188; cv=none; d=google.com; s=arc-20160816; b=nIJyvz3TSEvaJU4sLhGXC2iDSvs6t9s990NRHIIIFXpdRxN4EbVVbhhcb/qcJIj8yo HSrmkM4lxgnXNSVQRL/SOVevZ6WFvTrOW/Imc+Z7FDZ4RcGUmPSNoD8UiQrxfahPdUaQ 4fkZDZ1RNhsJ5GiLutQwGag3JPBNS26KVw9J2DhbUMweiluBK31X4C6WfXWcWvXvzI8b peCkDia/MymvwdAJfClo19XvWUaSW++k04sbem7mdZBGjVBNyn3Ah80qT4TmS4cWQzCq EI0ZFJzMEkVnDuFItNJwldgAZSON+nb+z5kKXcbjCBuat5O6+9UqZ+Lf27uJnAi9ojEG jhDg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cz+12kZ2gaxisdihZx/gi4BnFFhcIEiWqj4OKD3DHBc=; b=yyCGFcvQILUgwwOQGpGFkEm5Rxkb0z619s4GQ91nSgkSaWlQs3lwSymol7YhxdlzN1 yw+SHSLKKNGSXWKOY3D9WsvNP+Yj0P2GR8tRQbOJjL2C+mKclXAY6lrz/6TwOifgqAd2 MSuU9jJNNThZT6n7briIoAiWyTg9vb9j1YtvM+SIc4DiiPEYJGjsdzwiAM4yyHbtbmqI DZZFPsBBA6/lD6gwbUkTyMReZJURdRM7z4zKVPkdGMth5IrF47D7ZpwuUwuoLGxDmONW PF5bB/Kjc19r/tva9OJ67ojhamDKXXahqcEsT9C/r4FJzwUFrYtz3cZXIgxmaWGgIEQX v86Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=smXj9SNP; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d14si6809063pfu.313.2021.10.09.22.36.15; Sat, 09 Oct 2021 22:36:28 -0700 (PDT) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=smXj9SNP; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230318AbhJJFfp (ORCPT + 99 others); Sun, 10 Oct 2021 01:35:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:60626 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230215AbhJJFfp (ORCPT ); Sun, 10 Oct 2021 01:35:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 06EC960F57; Sun, 10 Oct 2021 05:33:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633844027; bh=fFtb1mrI1ST0Z8ENmJv/UKksOGpmgzo0n0USEL4Xz6g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=smXj9SNPXY/VYJ7AwIAIvQr4XCStM2hHJtZQ52RReVdA1DR3fY6BMbjoILsiYXcwh LzZBmcysuTwVBN1I7oual3OdQG2egw9nzEpa0t649Lm+Cwnop68l+yIPNjj2bTErdx 9Ws+cgeAupflqf4h+gvutPzjmvOuBurPcGpE1nhM= Date: Sun, 10 Oct 2021 07:33:42 +0200 From: Greg KH To: Xianting Tian Cc: jirislaby@kernel.org, amit@kernel.org, arnd@arndb.de, osandov@fb.com, shile.zhang@linux.alibaba.com, linuxppc-dev@lists.ozlabs.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v10 2/3] tty: hvc: pass DMA capable memory to put_chars() Message-ID: References: <20211009114829.1071021-1-xianting.tian@linux.alibaba.com> <20211009114829.1071021-3-xianting.tian@linux.alibaba.com> <3516c58c-e8e6-2e5a-2bc8-ad80e2124d37@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3516c58c-e8e6-2e5a-2bc8-ad80e2124d37@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 09, 2021 at 11:45:23PM +0800, Xianting Tian wrote: > > 在 2021/10/9 下午7:58, Greg KH 写道: > > Did you look at the placement using pahole as to how this structure now > > looks? > > thanks for all your commnts. for this one, do you mean I need to remove the > blank line?  thanks > No, I mean to use the tool 'pahole' to see the structure layout that you just created and determine if it really is the best way to add these new fields, especially as you are adding huge buffers with odd alignment. thanks, greg k-h