Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1519585pxb; Thu, 4 Feb 2021 15:30:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJznrK1PKqFtBj2t5/ahWKIbrDzfRk2aBVmpnMQ9u+r3P7/TbfncguUsKUXQKt20qLWPafVS X-Received: by 2002:a05:6402:95a:: with SMTP id h26mr895695edz.288.1612481442700; Thu, 04 Feb 2021 15:30:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612481442; cv=none; d=google.com; s=arc-20160816; b=0zbowjtyILwM6KnYN24tNL6Me5hk4zZIsLGKTQeACi2KxNNxbd1jO0HypONf2ixR9+ CVZCBHnAkCF3aPOEEEtylH3GiRsMgG+6vpQWyQlmaKvyrZJgG2yWK4EC7+cnezpwtsp0 H5dNl917ZQvGPxladtnVkXQdfmlC8dD2awIcskVHCgnpUIA1IZdmkePPrLiYDo6CeIUp 2q7XaO+0OV5qBp9NgISLdvzhxYcBxKKLj8jd7oWxEqqPYTrk7BB9FXC9MNbXGiiKVeNj kSn12D++SG7ufIlERYyDT2KZ/yxP83aoAT/lEYZeuKPyVGn/oCCK/LyziTm+jzMph7m+ pnPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=2Eu76GZEdqhCIcXfLRZZOBqord8wTLIuEPF+MWq6fJk=; b=faDKwegx2PrqBwOsVWtzlKmgjWEFtlFgfkuqXVj7W1V10z7YEkXc99N78op3k7ZbLa R4bcqDNulXFdcw1/Ik1UXNEo6m4LZ+gHgl4VBY2HCaBZys0/ldU5dpUCoRNwSRPVtcoe svuFFVx0ns1vMmu1OmC607GtFCGlhaDtM5qgUAp6CmQU1G8T2ggGP171yKwg3dB/xj7b +F57rr0Q/W8UBoOS+mT8qFk5ThhViVC7ntYE+/pjdwU3NmmrPDgablraJ5H3GDIuwvhn 7niF8yGWIUCm+shSYuq7PQB+zOyYX4xsCEBrmUEJKS3PAQM07vTDIjQEUTDfSgQQ8yjO YpBQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ak17si4492773ejc.215.2021.02.04.15.30.18; Thu, 04 Feb 2021 15:30:42 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234452AbhBDHah (ORCPT + 99 others); Thu, 4 Feb 2021 02:30:37 -0500 Received: from verein.lst.de ([213.95.11.211]:54722 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232977AbhBDHaf (ORCPT ); Thu, 4 Feb 2021 02:30:35 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id DD16068AFE; Thu, 4 Feb 2021 08:29:47 +0100 (CET) Date: Thu, 4 Feb 2021 08:29:47 +0100 From: Christoph Hellwig To: Dongli Zhang Cc: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, iommu@lists.linux-foundation.org, linux-mips@vger.kernel.org, linux-mmc@vger.kernel.org, linux-pci@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, nouveau@lists.freedesktop.org, x86@kernel.org, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, adrian.hunter@intel.com, akpm@linux-foundation.org, benh@kernel.crashing.org, bskeggs@redhat.com, bhelgaas@google.com, bp@alien8.de, boris.ostrovsky@oracle.com, hch@lst.de, chris@chris-wilson.co.uk, daniel@ffwll.ch, airlied@linux.ie, hpa@zytor.com, mingo@kernel.org, mingo@redhat.com, jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, jgross@suse.com, konrad.wilk@oracle.com, m.szyprowski@samsung.com, matthew.auld@intel.com, mpe@ellerman.id.au, rppt@kernel.org, paulus@samba.org, peterz@infradead.org, robin.murphy@arm.com, rodrigo.vivi@intel.com, sstabellini@kernel.org, bauerman@linux.ibm.com, tsbogend@alpha.franken.de, tglx@linutronix.de, ulf.hansson@linaro.org, joe.jin@oracle.com, thomas.lendacky@amd.com, Claire Chang Subject: Re: [PATCH RFC v1 2/6] swiotlb: convert variables to arrays Message-ID: <20210204072947.GA29812@lst.de> References: <20210203233709.19819-1-dongli.zhang@oracle.com> <20210203233709.19819-3-dongli.zhang@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210203233709.19819-3-dongli.zhang@oracle.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 03, 2021 at 03:37:05PM -0800, Dongli Zhang wrote: > This patch converts several swiotlb related variables to arrays, in > order to maintain stat/status for different swiotlb buffers. Here are > variables involved: > > - io_tlb_start and io_tlb_end > - io_tlb_nslabs and io_tlb_used > - io_tlb_list > - io_tlb_index > - max_segment > - io_tlb_orig_addr > - no_iotlb_memory > > There is no functional change and this is to prepare to enable 64-bit > swiotlb. Claire Chang (on Cc) already posted a patch like this a month ago, which looks much better because it actually uses a struct instead of all the random variables.