From mboxrd@z Thu Jan 1 00:00:00 1970 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.