From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (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 371FE3ADB99 for ; Wed, 13 May 2026 21:52:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778709150; cv=none; b=S/GbxZCkBtn+PDnAGDip9TxbHXHMSKBVeV6o7liBpppVpElX6vSxKfG+V0e9ZZ+k2nVdXU+fzSbDUoi+gQcXhTaLDOkOj+5tFsih/9xTJ+WO+I8PAwk4iTCIDCx0g5yeLtd3O5luqKgvE+6awNMuU/XmfQvBWvfIPHVgp5rwlJI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778709150; c=relaxed/simple; bh=bGvl/sBLosKFzDQ031MCLr2XVfTKKUbB0cXKdlZx5zk=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=M9Ey3EfGc2XQimehiukI+rowUiT8pXuU++1GDE5XKfrxHJHHrrJ+XOYprLmVJ4nwCP4aDF/CZHl2Nq0C6E010SUol7W+HM3gqHDgPnNjPYwPJBhPt0eauzgwtUqWWXiPEXnfj8vRGq8dVpFxgTcVbcNkkeqVJAeAU4lpezZX468= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--smostafa.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=KAbDcDY7; arc=none smtp.client-ip=209.85.128.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--smostafa.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="KAbDcDY7" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-488d3eec9bcso52350495e9.3 for ; Wed, 13 May 2026 14:52:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1778709147; x=1779313947; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=xiR080QbM62s8vT4MbmTv04ZkR7uTTVOpbLdEGUZspk=; b=KAbDcDY7Szqz2EDKmVs6biVLbRO9+5jqnOt7admYj+vE3A2uGGqR1vJy3+5gSU4CA/ ZrJn9p7R1akepJT4R4kH6XI3emgdDOZ1bB06MeBz8Ntuv5QQvERqcTK5UIn9Shwf0fUF B0MijCPzZzsBVW8QAEQjr5yevWEHR6f3IY8NBedGojsd/ztOpqsq5OLQBzI/7Piw+eHf pOTdzgtMsoKmYX0JsYdTkFY6fbSPjvj01Gd7YKEhyv8zmLF1g6XgiBeDGyL998H3YJfQ Rjf2o72vrjN1JaNkZhggGAh/OSl2WmCcnono1NcktGRbbZtw5POC++3XgsqBPoHhFYDZ 8m5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778709147; x=1779313947; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=xiR080QbM62s8vT4MbmTv04ZkR7uTTVOpbLdEGUZspk=; b=jQoC0jQZX0TUvicBefcbvEWWdqeldnh0wyFtnw3H7QFMqU0Iy+ZbBMmGo5mQn8hdVf ibXJNlaFZLrcdnSmw0E1a8yYmEujvC52MY603lKSkfNDbrXcfsmVat7ZUTNyRpAyX+Xj K6AUixoFBTLUhJpJYAXkAm63rNMmGZEGnNdfgS9Y6EmLt4N6BuI3T1gDDdpfjRw7zXAk hLZwU7E9W3xc7yGX5Wropakeo+SDKjFGJI1mCXwdWjwOi1+ns9hLZDtDE16nGx6JXNIV uf11WRn/xEX8u0VuPUcaH1B/3OcyyB5q9lJW9IllCT9/PWdyz08xFHCgZ/ld81FRtLLc XYkA== X-Forwarded-Encrypted: i=1; AFNElJ//YfccSQShvRyP9dddb7Au6isQPLMFvJamEoo3OtadkAT1965A4pkOvNGu6hbZJEFIg4jiwh0Ktv3G8t0=@vger.kernel.org X-Gm-Message-State: AOJu0YzdcUn4Iv6vFR4m2sMFNwygij/n4Kv/KYhmo7+Abta7gMi+dt0d gWsdtbCqTejWT3xGtZEd+MjUGLEHHDtBRumI6GeKNxA/S1c1+Uq/+kO0+cnWVaIu1J0TceaUpCa QTlt3RnV1zVQfjQ== X-Received: from wmdi7.prod.google.com ([2002:a05:600c:2907:b0:485:c45a:fcc2]) (user=smostafa job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:a48:b0:48a:52ee:5776 with SMTP id 5b1f17b1804b1-48fc9a0ef80mr77492595e9.11.1778709147564; Wed, 13 May 2026 14:52:27 -0700 (PDT) Date: Wed, 13 May 2026 21:52:00 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.54.0.563.g4f69b47b94-goog Message-ID: <20260513215203.3852661-1-smostafa@google.com> Subject: [PATCH 0/3] iommu/io-pgtable-arm: iommu-pages and cleanup From: Mostafa Saleh To: iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: robin.murphy@arm.com, will@kernel.org, joro@8bytes.org, jgg@ziepe.ca, Mostafa Saleh Content-Type: text/plain; charset="UTF-8" This is a small cleanup coming from the pKVM SMMUv3 support [1]. However, they are not pKVM specific and useful in general. The first patch is to fix a theoretical issues with alloc/free size. The second patch is the main one to convert the code to iommu-pages. The third patch is a cleanup to use address conversion consistently. [1] https://lore.kernel.org/linux-iommu/20260501111928.259252-1-smostafa@google.com/ Mostafa Saleh (3): iommu/io-pgtable-arm: Use consistent sizes for page allocation and freeing iommu/io-pgtable-arm: Rework to use the iommu-pages API iommu/io-pgtable-arm: Use address conversion consistently drivers/iommu/io-pgtable-arm.c | 88 +++++++++++++++++++++++----------- 1 file changed, 61 insertions(+), 27 deletions(-) -- 2.54.0.563.g4f69b47b94-goog