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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 778CCC61DA4 for ; Thu, 23 Feb 2023 15:46:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SduRsVT5JZMKHckOW1tWmf7jxNdjEO4P1T12xXcXLLE=; b=hJvsvME7Ds8cOz CvnsIGHwO9XOiZCjFzA5qwl5UJHEU8oT891XZLnFgu3qa82VQvWTg4XP6RdxrT4q1ObLQz16ZYwMA G+3MGnmbb5aEozocvJ1xw+LD7iVhEtSIdnpRv/SFHAHKsy39rhlbJgm8KSXk84v+toeYBXNx163DQ E6wgX/pe33C3GAiam4HMx3IxU1ECzHrn6qJYoZq5EAx3BT1a7SPakQPSq+a/g3DlxwRJ62Xlos+bH dWjJ5avk8W43UZHb1AyjV1B8+smoPGQD2O+Qp6rGZrqwZpNlH8fTXr0lqJFaFjCRqLV1iIYO55KM2 rnigt0yHi1YjUdYCgkmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVDmm-00H7ZA-Ui; Thu, 23 Feb 2023 15:45:33 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVDmh-00H7Vp-RK for linux-arm-kernel@lists.infradead.org; Thu, 23 Feb 2023 15:45:29 +0000 Received: by mail-wr1-x42f.google.com with SMTP id c12so11024503wrw.1 for ; Thu, 23 Feb 2023 07:45:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=WUtJHy11n8Y/rq9v+tVThHOQuEU8nOltQBq6+LKXmIk=; b=V1VQBLeFVTmxch5HEcztI6KEJGkyu1+nRlw56ftIe1im+aJWKgbqYdAczH9MK4nC2m VRJKqGb1sNoAUU8J+HpwV/DWY162iNiiLL77tJDM36JkfzuRBNGbVcIGcu41RN/JpyF7 b/qNt2HrhUeVDeuRZZkssDz7xlFAjQ197Ip9bQIKM/O+jnUetREpkeJlbtBRPt2Cz1LJ lxb8nUSYSBGTb20p4Q0SjRsuITeloeoW3tHqnuL/AnB1guCJZ5shwQQeWDI5VQKyIHlF GYaGjPJji34I4D5O5q8mWakY83vQYhaAFtWTJ8yJFnWWBZ4v4ULq0OoA8ipwMjzpn+28 Gokg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WUtJHy11n8Y/rq9v+tVThHOQuEU8nOltQBq6+LKXmIk=; b=uT7uMbVtO3W0FnoTJAsdAJ/ILXtR68ljnfOXLwpqsRHnur7qv6rdN7m+7YPLJ5U76c 4Rn9WmJFkVue/EATYptAhJOwNJ6fM5c3RpbOwyy0zVubfn7THcJxo2+LajzGVCBxPjhj +UVATlFO+N0bZNT3fVq2yuj6cwqk0fYIDkQMrUq6Yu6FeNOI0oTXetlSMWb56nppWKJK aFjCJyto6roPtGxPZM0n191TC7tSJ+pdnY9lWYoKx4tzR+n/tkofzp7KtgQ6wg5EZOfV 3g792C4PnBfSRO5S9Ri3ZBVyaWqZms+T6c/dQ01iEHUaHOYE5kaQRQ1zAez7rBcNIY4T dK5Q== X-Gm-Message-State: AO0yUKVRE80esCVIHlNdg1iRmxvPSrseAY7T9yhHfOusRkMZg/uvkmcO B41SLYKXC6kQj0PhjKR6UoTUZg== X-Google-Smtp-Source: AK7set+vIXFCFewCWF4qBdv5jm6siVTdfVVno5o1udTzlHH2yBZRGnoaUdEWRd1WBIcsio02GMoW9Q== X-Received: by 2002:a5d:4610:0:b0:2c5:561e:808e with SMTP id t16-20020a5d4610000000b002c5561e808emr13069275wrq.12.1677167119643; Thu, 23 Feb 2023 07:45:19 -0800 (PST) Received: from myrica (054592b0.skybroadband.com. [5.69.146.176]) by smtp.gmail.com with ESMTPSA id t6-20020a5d4606000000b002c55306f6edsm13876488wrq.54.2023.02.23.07.45.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 07:45:19 -0800 (PST) Date: Thu, 23 Feb 2023 15:45:20 +0000 From: Jean-Philippe Brucker To: Bjorn Helgaas Cc: Leon Romanovsky , Ganapatrao Kulkarni , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, bhelgaas@google.com, darren@os.amperecomputing.com, scott@os.amperecomputing.com, Will Deacon , Robin Murphy , Joerg Roedel , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev Subject: Re: [PATCH] PCI/ATS: Allow to enable ATS on VFs even if it is not enabled on PF Message-ID: References: <20230221154624.GA3701506@bhelgaas> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230221154624.GA3701506@bhelgaas> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230223_074527_938064_4D79881C X-CRM114-Status: GOOD ( 11.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Feb 21, 2023 at 09:46:24AM -0600, Bjorn Helgaas wrote: > It's weird to me that the SMMU is between PCI and memory, but the > driver seems to insert itself in the middle after PCI enumeration. > And maybe even after some PCI device driver binding? No this shouldn't happen, because device drivers expect DMA to be operational in their probe() function, so at that point the IOMMU must be configured. The core and IOMMU subsystems enforce probe dependency between the SMMU and the PCI device, using links described by ACPI or device tree. Thanks, Jean _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel