Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6604377rdb; Fri, 15 Dec 2023 03:32:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZ98W4Nt8gjcnqXQiVcQZd/qEYP8rAgVMjUR0E2ePzqN9CXvUFZBT35jwcT7ynpRbKoSZ+ X-Received: by 2002:a17:902:ec84:b0:1cf:ffd7:7425 with SMTP id x4-20020a170902ec8400b001cfffd77425mr13597356plg.41.1702639967181; Fri, 15 Dec 2023 03:32:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702639967; cv=none; d=google.com; s=arc-20160816; b=HLk834kyPzsEv3qD/U3BllOAPrlYjYHHO+8JImqqww+f+4kLhR+xE6Zz7hQqXT7TV0 rYaWsEM25G7o7aENYyWjOmOMwf8r4aGtiYEwZKDEJqkt2gyginDRG29k1dkkf78Txv59 k9WawHQX/0Zukt2z2amGDxf3GRSDIdNQItcakLXWJ6F3znxxnbEt4V3zDxNHzGRJYuKP EnkzRLenMjJWsAWLvUxfdKZYi+43UYFlW5/XKm87m2l8hEoniG8+15roZwLco8G/HI5/ 7Wpyg0k0YYGrBOHUtT29INHrtEOfSki/UJ3GM2wrsJQfMYYBxro0buoS3urtBsdcW1kv 6aMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=gv7dxfhsg0jjSzG9P0mSHPFX4ApyIcYBQbpS0bIKzkM=; fh=UXAy5HhJC1K/Dmol8KYbhaw3NL55h604UYnuialXJ5I=; b=VGPO+NfMKq/U5PFzq5KMFy0E/6PMrMtpDBTB3eTwJDA9Ze6mmqnZwb0J8/EIS8BdRs njMnNgrOjf8V3eBBCx0B6V/PyGmy7AfG0G/646BVH9hxdybVpEnojMtbcEIma3pqXRNT NWLJzq69eFTyGGhlaDNBQply00dAUKZ/63820qkJnC4Z5mVspLWTTWYhGZSQmQMYDtK6 xu9go/EZUOJ9aLW42nsytqcE2g/xhwnDd23nlGy52QyQsX+h1PoaMZhtnfJa+dPMe/V0 I633ycbicckU4fwIZmP2Uo/SYCRpXwpW51jUJVTxiKQIkSmRDyzwe1GgFI31Wt/G0LfI cTtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-844-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-844-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i15-20020a17090332cf00b001d355d0f60fsi4129789plr.258.2023.12.15.03.32.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 03:32:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-844-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-844-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-844-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8C1D1B22484 for ; Fri, 15 Dec 2023 11:32:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C46DF24B57; Fri, 15 Dec 2023 11:32:35 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB4AC24B37 for ; Fri, 15 Dec 2023 11:32:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 6C65668B05; Fri, 15 Dec 2023 12:32:27 +0100 (CET) Date: Fri, 15 Dec 2023 12:32:26 +0100 From: Christoph Hellwig To: joakim.zhang@cixtech.com Cc: hch@lst.de, m.szyprowski@samsung.com, robin.murphy@arm.com, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, cix-kernel-upstream@cixtech.com Subject: Re: [PATCH V2] dma-mapping: Set dma_mem pointer as NULL after it's freed Message-ID: <20231215113226.GC6479@lst.de> References: <20231214082526.1212264-1-joakim.zhang@cixtech.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231214082526.1212264-1-joakim.zhang@cixtech.com> User-Agent: Mutt/1.5.17 (2007-11-01) I've applied this after fixing the whitespace errors. But we really need to get remoteporc off messing with the reserved regions itself and retire this API entirely.