Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4091528pxj; Mon, 21 Jun 2021 13:21:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2To+1Juie+0Or2+eezdsC+UxRA5Z7nacYK9S1O9lfpJLncsXS2g+XPGYSh1mH4z2YJNWj X-Received: by 2002:a17:906:3d3:: with SMTP id c19mr14000385eja.202.1624306905415; Mon, 21 Jun 2021 13:21:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624306905; cv=none; d=google.com; s=arc-20160816; b=R7RNIXggI5zhjO+1zAnssJ8ikOfgEklZWbdSlrJ7IJnCHraBjwroSxF5+xBaabXFJC az8SK8D6FqRMVCYM+tioyuRVE2Fka7KE1We2+EvE7l6OHK15qX2LYVLV+79tMmhxPg1K cmPkG/YR+Dkdy+PNLB5iV1Br9IUZo9kfGMg8qi/cNR5yVLdHN6qlhUaLxtKdXER5eAfZ LbTDtNYDS+avx4XFfuLowrXN+2yRrVYRuUsiZBgP0xAFpg6Up2IohbKUzCdOHyfihz6i rK090SzsFMpr1N5VALZhi07OzuXfJHfyweGbC7/YGEzqpVxB0/lahd+7npBsoNsbO3RQ Y+Dg== 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=QO3Yqgvz61I1bmH26sJRWhQDZch4Htu7ASujRvg6mtg=; b=gpwpRhANzBNN0tP3h06jjdTmlNfgVI7ndQDe7DgDDlKtmfNYad24KQTxr/HkZimu1x FiC31I/Yr7Hv8bEL1asavE/m0In8X7tOyHrhGKn/ZtQqvrg4Kmu36kVy+0lr68KmZOib let1h+/KD6UUd54BU3r3nVMfkBBdFssZCUxUEIFMV1PgpBl72lVmVw4Jg1Bz28Lm4xhX 9cC8AM5xmn7fJLVlvVgjVqi/Pc9vYJ0r7MNfCnP/WxqDFcG3++KXjAFJaynxYK6oQJ6z rIQ0juuSJ+121zvFxJ3pA6WW49oFMksgLg/V8yUlbkMKw9HCvtsH9qbQqfWQFr/x/AX+ hldg== 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 j29si11312571ejj.60.2021.06.21.13.20.59; Mon, 21 Jun 2021 13:21:45 -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; 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 S231181AbhFUUWH (ORCPT + 99 others); Mon, 21 Jun 2021 16:22:07 -0400 Received: from verein.lst.de ([213.95.11.211]:43813 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230028AbhFUUWG (ORCPT ); Mon, 21 Jun 2021 16:22:06 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id AC60868B05; Mon, 21 Jun 2021 22:19:46 +0200 (CEST) Date: Mon, 21 Jun 2021 22:19:46 +0200 From: Christoph Hellwig To: Stefano Stabellini Cc: Christoph Hellwig , Tom Lendacky , Claire Chang , Rob Herring , mpe@ellerman.id.au, Joerg Roedel , Will Deacon , Frank Rowand , Konrad Rzeszutek Wilk , boris.ostrovsky@oracle.com, jgross@suse.com, Marek Szyprowski , benh@kernel.crashing.org, paulus@samba.org, "list@263.net:IOMMU DRIVERS" , Robin Murphy , grant.likely@arm.com, xypron.glpk@gmx.de, Thierry Reding , mingo@kernel.org, bauerman@linux.ibm.com, peterz@infradead.org, Greg KH , Saravana Kannan , "Rafael J . Wysocki" , heikki.krogerus@linux.intel.com, Andy Shevchenko , Randy Dunlap , Dan Williams , Bartosz Golaszewski , linux-devicetree , lkml , linuxppc-dev@lists.ozlabs.org, xen-devel@lists.xenproject.org, Nicolas Boichat , Jim Quinlan , Tomasz Figa , bskeggs@redhat.com, Bjorn Helgaas , chris@chris-wilson.co.uk, Daniel Vetter , airlied@linux.ie, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, jani.nikula@linux.intel.com, Jianxiong Gao , joonas.lahtinen@linux.intel.com, linux-pci@vger.kernel.org, maarten.lankhorst@linux.intel.com, matthew.auld@intel.com, rodrigo.vivi@intel.com, thomas.hellstrom@linux.intel.com Subject: Re: [PATCH v13 01/12] swiotlb: Refactor swiotlb init functions Message-ID: <20210621201946.GA13822@lst.de> References: <20210617062635.1660944-1-tientzu@chromium.org> <20210617062635.1660944-2-tientzu@chromium.org> <741a34cc-547c-984d-8af4-2f309880acfa@amd.com> <20210618143212.GA19284@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 21, 2021 at 10:59:20AM -0700, Stefano Stabellini wrote: > Just as a clarification: I was referring to the zeroing of "mem" in > swiotlb_late_init_with_tbl and swiotlb_init_with_tbl. While it looks > like Tom and Christoph are talking about the zeroing of "tlb". Indeed. > > The zeroing of "mem" is required as some fields of struct io_tlb_mem > need to be initialized to zero. While the zeroing of "tlb" is not > required except from the point of view of not leaking sensitive data as > Christoph mentioned. > > Either way, Claire's v14 patch 01/12 looks fine to me. Agreed.