Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7835092rdb; Thu, 4 Jan 2024 09:04:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpubi5i4Qq8cR+2TIXipH7TzUzzaerTQMllTn/V9RI5Bv3cR7oiC+Gi0DysoRvMCSKdRPk X-Received: by 2002:a50:c04a:0:b0:554:877e:b7f with SMTP id u10-20020a50c04a000000b00554877e0b7fmr657996edd.39.1704387889463; Thu, 04 Jan 2024 09:04:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704387889; cv=none; d=google.com; s=arc-20160816; b=REuZrfb6mDgY1tDlWczZ68T7WDPmPKzIEiz7PFGd/cbfSs9Q12PsXF47SE2/5XfsX+ FA9oVqYYLoAftuB0Q6oMbMgkC6s7Xv/FPUUV7jy754pm/mH74RFBSEa/k2hQDDH02/4Z 8uMVICByveIGDCUx1BnlKONiB+ETgpTm0IV3ldA9JlkYQeqKEGPGH+lYLXBrdgphgNQl kzwbwtnxY9xhX7DorrDS2RozNHAbsLjWzvUZjswbEwnZcFC18Z9Zb4BPOfWOTr704v1l OX43TzISR9WnWn3P/4V/8rGQp8Sqt5tvBxjgMtL+e4cAzq+ygyheo9K257ODbgnV9VlL /Pcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=ipK/226LRJDTM3FDOd68E2idK7q9JRqvu+4u/g3wH50=; fh=trliAlNXWkLDmUVwfOn1g8DZWJhis83xOGWPpfgfJdg=; b=W+fa+q9Jg986dRlThnmBxNJEJDfA8DxbDHZUcAkVI0tU8+SDy3K0FYce91dj0jP+Y1 rb1iuq4oFreVPq133hTAwbQafIgdhWypapL4r1M7yH3AQWGYfUOtiOwXAp5Intp6ebQz cJMi37ylDheaMPXVVCBQw49eN1ocr0gRf358y/iOdJcAyxMrjMacPQwG3sX5WglnVmlN NEAfL7J/cx2p2Ga/7scOp22kiQT0UXo6jH011ahEOkyKOn29sycssUYktCLYTUtoWVva rH+4eiCqYISHTozle0ceo0gfxrOr7/lBcwx4kX0nTUo2pzBzHkyxGPEt4axuhb9pK0yA qMuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=K3Rgv7W7; dkim=pass header.i=@suse.com header.s=susede1 header.b=t7RtALx4; spf=pass (google.com: domain of linux-kernel+bounces-16983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dg2-20020a0564021d0200b00552346b02f5si13504962edb.501.2024.01.04.09.04.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 09:04:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=K3Rgv7W7; dkim=pass header.i=@suse.com header.s=susede1 header.b=t7RtALx4; spf=pass (google.com: domain of linux-kernel+bounces-16983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id DE92D1F2506D for ; Thu, 4 Jan 2024 17:04:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E6CB288D7; Thu, 4 Jan 2024 17:04:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="K3Rgv7W7"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="t7RtALx4" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D88E28699; Thu, 4 Jan 2024 17:04:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id A22F01F821; Thu, 4 Jan 2024 17:04:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1704387859; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ipK/226LRJDTM3FDOd68E2idK7q9JRqvu+4u/g3wH50=; b=K3Rgv7W7sta/rNDtR0eZIZmZNKZUs0KubO9/2GP3vpEH7iAUILQfJvyKtKMy6kd/voBYGU BgK5F8KgWvEAUx4gmMDTSX+gF09v9SZxutGU/aR8dqTee7V8PS/jkZ9U/flaNILNZC0EoL V5CaUtevifWroaAiZir/Abo2a+5JkNk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1704387857; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ipK/226LRJDTM3FDOd68E2idK7q9JRqvu+4u/g3wH50=; b=t7RtALx4OLAwYM1NSnnPIxj9u/urq88xoeMObBg2yBueCWbTplQCDwM9XjKaKTlCZNXWSb 8UvcDmIESZxi2Pw4v1s1yqzQRAaW2t4k3Dss65JDw5QjtwUxXXp9gRl3D1T+jt99x7U8C4 0fdzJJvtaZzf2609O9HT7+10cFgFQc8= Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 726B213722; Thu, 4 Jan 2024 17:04:17 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id MsmyGxHllmWDaAAAD6G6ig (envelope-from ); Thu, 04 Jan 2024 17:04:17 +0000 Date: Thu, 4 Jan 2024 18:04:16 +0100 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Pasha Tatashin Cc: akpm@linux-foundation.org, alim.akhtar@samsung.com, alyssa@rosenzweig.io, asahi@lists.linux.dev, baolu.lu@linux.intel.com, bhelgaas@google.com, cgroups@vger.kernel.org, corbet@lwn.net, david@redhat.com, dwmw2@infradead.org, hannes@cmpxchg.org, heiko@sntech.de, iommu@lists.linux.dev, jernej.skrabec@gmail.com, jonathanh@nvidia.com, joro@8bytes.org, krzysztof.kozlowski@linaro.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, lizefan.x@bytedance.com, marcan@marcan.st, mhiramat@kernel.org, m.szyprowski@samsung.com, paulmck@kernel.org, rdunlap@infradead.org, robin.murphy@arm.com, samuel@sholland.org, suravee.suthikulpanit@amd.com, sven@svenpeter.dev, thierry.reding@gmail.com, tj@kernel.org, tomas.mudrunka@gmail.com, vdumpa@nvidia.com, wens@csie.org, will@kernel.org, yu-cheng.yu@intel.com, rientjes@google.com Subject: Re: [PATCH v3 00/10] IOMMU memory observability Message-ID: References: <20231226200205.562565-1-pasha.tatashin@soleen.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="22fntkpk3vilmqk6" Content-Disposition: inline In-Reply-To: X-Spam-Level: Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -1.43 X-Spamd-Result: default: False [-1.43 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; URIBL_BLOCKED(0.00)[soleen.com:email]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; BAYES_HAM(-0.03)[55.23%]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_TWELVE(0.00)[44]; DBL_BLOCKED_OPENRESOLVER(0.00)[soleen.com:email]; SIGNED_PGP(-2.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_NOT_FQDN(0.50)[]; FREEMAIL_CC(0.00)[linux-foundation.org,samsung.com,rosenzweig.io,lists.linux.dev,linux.intel.com,google.com,vger.kernel.org,lwn.net,redhat.com,infradead.org,cmpxchg.org,sntech.de,gmail.com,nvidia.com,8bytes.org,linaro.org,kvack.org,lists.infradead.org,bytedance.com,marcan.st,kernel.org,arm.com,sholland.org,amd.com,svenpeter.dev,csie.org,intel.com]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Flag: NO --22fntkpk3vilmqk6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 04, 2024 at 11:29:43AM -0500, Pasha Tatashin wrote: > Thank you for taking a look at this. The two patches [1] [2] which add > GFP_KERNEL_ACCOUNT were sent separate from this series at request of > reviewers: Ah, I didn't catch that. Though, I mean the patch 02/10 calls iommu_alloc_pages() with GFP_KERNEL (and not a passed gfp from iommu_map). Then patch 09/10 accounts all iommu_alloc_pages() under NR_IOMMU_PAGES. I think there is a difference between what's shown NR_IOMMU_PAGES and what will have __GFP_ACCOUNT because of that. I.e. is it the intention that this difference is not subject to limiting? (Note: I'm not familiar with iommu code and moreover I'm only looking at the two patch sets, not the complete code applied. So you may correct my reasoning.) Thanks, Michal --22fntkpk3vilmqk6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQpEWyjXuwGT2dDBqAGvrMr/1gcjgUCZZblDgAKCRAGvrMr/1gc jiwfAQCSCpFQriEKwkEB8UUxOA9LFBhZfPl+l6lvTbTvghQXmQEAh2ukMdYInk9Z KYebGDty+dxGKeNxW6aKFLuxo9UKywg= =e+tC -----END PGP SIGNATURE----- --22fntkpk3vilmqk6--