Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1183279lqj; Mon, 3 Jun 2024 12:47:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtjwJCaG0FRTT1xZK0YRLfxuUQUOI/rdEYH2plzJdZLOR4qzYKNkK2gky0cuERVhH4pXuH7wotXJ4TNZ7TzNeS5bjFwtaUkQlvJoODTA== X-Google-Smtp-Source: AGHT+IHOq6usFIyhfdfecU6tYK0ayuT/HKN8WPC5CBu6hYM+Zq9T4h54RS+Eqcu126weauLvRxgd X-Received: by 2002:a50:c30a:0:b0:57a:2430:d14d with SMTP id 4fb4d7f45d1cf-57a364355d6mr5698290a12.24.1717444029332; Mon, 03 Jun 2024 12:47:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717444029; cv=pass; d=google.com; s=arc-20160816; b=C9zat2UZsTnnTM2SWd1lwFCPEVzY9J2OI+AG3854CdytfpKm2BElS91edUwH6SC+SZ H9ZhBx49r1qXvrVkX5b6o/oPSLD20Z44ACr2D/760fZJw3FqGAPIIsZaNi5YdiVJ50Yy 59FpYFMFlAJQtMjzSqpbg3l0FbZ+W13jJuND8r6wRVoUNHyypDG4FVQWofAw8Uy2g6cB wMn89JeWhfd5oQJ37TrQ/6PVLHZ+SMdmgZ49Gd/Wb6ckEhYih80dh2YbrOPxMRVdo7fT xCg8LX+tUFOvUTObKCa+MLB2Scb6u8Y8FU1B2dNSJenIKGJd69YIUJEvbfn/MAg4Bu9u EIvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=2W0kA41KKFRk/2BaBe1F9WzewuFiuhhlYxzCu7L5GBk=; fh=Z/rlG1OpNqlzT8xdWoNRW8myisb7Q2/V1VAj2u7cN6Q=; b=EWlT1y8d+HvTaWeZ5sTLAa6WiyrnE2A06sulUg9+/eqintn2OBU11NpBpTN0HgwoX6 c5i4LHqkOeAFe0jA/dh06/mv8DXNNwVBCwsOdIod3tdSR3Lp9QLp8ddhCUt5n5moLMMJ buGBiPYsWfugWfbd+w5vXXTHQBgvHZHke9N2NtJ86AK/+EbxDGJqBsTlnPV4HihAHXya czcY2Nbn2oiZrzOQwdO+PuJBdOuvFGoDmHfFniK4sjGGMSkOqA57DbI4hM/c7UmWtohL Qqjc9eb4lyVevW4U0iARV3uTLK1JZcg2lSiXgm3nOyDTuNUcXbC2u3uqqxcuanAlvUph lDaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-199655-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199655-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 4fb4d7f45d1cf-57a589ebb8fsi2067135a12.139.2024.06.03.12.47.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 12:47:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199655-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-199655-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199655-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 127D11F259B9 for ; Mon, 3 Jun 2024 19:47:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8FC9313A878; Mon, 3 Jun 2024 19:47:00 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F01320ED; Mon, 3 Jun 2024 19:46:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717444020; cv=none; b=Ego+edtw53PTFSQO6wO9D92Wm76RRuLBR2SwrhDFgTob4SzgACjMCxaHWkwlAOBO7MVDbh4cvphaEGtOxsGNuKEQFjcqGq/7Ka4O7PWge0VJNbGcfMh9pOp3uOmRer1knPIeKzVjKC8ybZB2MwuMWtCF2pb8b+PRDhjVuxWNpYA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717444020; c=relaxed/simple; bh=D8qS2P6s0c2Xb/N2Iq0bMwfDy0LCuH+Ng0vJhxlUKmg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Irz0LuMOh+JSIUsIl9RGZVsHZk37IKLTUm+Z/GHhTL6PZpZV4LcsLURcRkg8SaHc7aonUhEfgUwYISjFWH6ZG6tE/0FyrwBfnk15FqN7+TVvskuzvm89w2s9JobCXK4VLfqrVPUSvmsH8TYIkg2yjzvFPpypQV+X6hmT1TKNTh8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A99C11042; Mon, 3 Jun 2024 12:47:20 -0700 (PDT) Received: from [10.57.71.49] (unknown [10.57.71.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BB91F3F64C; Mon, 3 Jun 2024 12:46:49 -0700 (PDT) Message-ID: Date: Mon, 3 Jun 2024 20:46:48 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 5/7] iommu/dma: Make limit checks self-contained To: Jens Glathe , Joerg Roedel , Christoph Hellwig Cc: Vineet Gupta , Russell King , Catalin Marinas , Will Deacon , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Paul Walmsley , Palmer Dabbelt , Albert Ou , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Suravee Suthikulpanit , David Woodhouse , Lu Baolu , Niklas Schnelle , Matthew Rosato , Gerald Schaefer , Jean-Philippe Brucker , Rob Herring , Frank Rowand , Marek Szyprowski , Jason Gunthorpe , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, Jason Gunthorpe References: From: Robin Murphy Content-Language: en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Jens, On 2024-06-03 8:37 pm, Jens Glathe wrote: > Hi Robin, > > an observation from 6.10-rc1: On sc8280xp (Lenovo X13s, Windows Dev Kit > 2023), when booted to EL2 with the arm-smmuv3 under control of Linux, it > fails to set up DMA transfers to nvme. My box boots from nvme, so I only > got a black screen. @craftyguy booted from USB, and got this: Indeed, I see there's a dma-ranges property with a base of 0 in that DT, so all manner of hilarity may ensue. The fix is here, just waiting to be picked up: https://lore.kernel.org/linux-iommu/159193e80b6a7701c61b32d6119ac68989d457bd.1716997607.git.robin.murphy@arm.com/ Thanks, Robin.