From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C94F5C9832A for ; Fri, 25 Sep 2026 07:39:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 43F8510F939; Fri, 25 Sep 2026 07:39:30 +0000 (UTC) Received: from mail.8bytes.org (mail.8bytes.org [85.214.250.239]) by gabe.freedesktop.org (Postfix) with ESMTP id 0280B10F8C3 for ; Fri, 25 Sep 2026 07:20:04 +0000 (UTC) Received: from 8bytes.org (p200300f6af404a000b03c3c046b119f0.dip0.t-ipconnect.de [IPv6:2003:f6:af40:4a00:b03:c3c0:46b1:19f0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.8bytes.org (Postfix) with ESMTPSA id 8E2571C7759; Fri, 25 Sep 2026 09:20:03 +0200 (CEST) Date: Fri, 25 Sep 2026 09:20:02 +0200 From: Joerg Roedel To: Jason Gunthorpe Cc: Mario Limonciello , Alex Deucher , amd-gfx@lists.freedesktop.org, Suravee Suthikulpanit , Vasant Hegde , Will Deacon , Robin Murphy , "open list:AMD IOMMU (AMD-VI)" , Jatin Kataria , Boqun Feng , "Derek J . Clark" Subject: Re: [PATCH v2 1/2] iommu/amd: Add PerfOpt IOMMU performance optimization support Message-ID: References: <20260908041207.38113-1-mario.limonciello@amd.com> <20260908041207.38113-2-mario.limonciello@amd.com> <20260924225018.GB16465@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260924225018.GB16465@ziepe.ca> X-Mailman-Approved-At: Fri, 25 Sep 2026 07:39:28 +0000 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" On Thu, Sep 24, 2026 at 07:50:18PM -0300, Jason Gunthorpe wrote: > Why does the GPU driver have to request this? Why can't the iommu > driver know that this is a special device that can use this magic fast > path and then auto set it when identity is asked for? This is a layering violation either way. Either the IOMMU driver needs to poke into device details and their relations or the device driver needs to poke into IOMMU details. This is not perfect but to some degree unavoidable with these highly integrated SOCs. -Joerg