public inbox for linux-nvme@lists.infradead.org
 help / color / mirror / Atom feed
From: Baolu Lu <baolu.lu@linux.intel.com>
To: Paul Menzel <pmenzel@molgen.mpg.de>,
	Keith Busch <kbusch@kernel.org>, Jens Axboe <axboe@fb.com>,
	Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>
Cc: David Woodhouse <dwmw2@infradead.org>,
	iommu@lists.linux.dev, linux-nvme@lists.infradead.org
Subject: Re: Linux error `[DMA Write NO_PASID] Request device [3c:00.0] fault addr 0x0 [fault reason 0x05] PTE Write access is not set`
Date: Thu, 19 Mar 2026 14:06:37 +0800	[thread overview]
Message-ID: <ef328a7e-59a4-4a74-bc72-aa13951b38ff@linux.intel.com> (raw)
In-Reply-To: <3a880676-861b-4447-9775-6197ae74ffd3@molgen.mpg.de>

On 3/18/26 20:55, Paul Menzel wrote:
> 
> Am 18.03.26 um 07:42 schrieb Baolu Lu:
>> On 3/16/26 22:54, Paul Menzel wrote:
>>>>> On the Intel Kaby Lake laptop Dell XPS 13 9360, Linux logs the 
>>>>> error below:
>>>>>
>>>>>      [17959.189315] ACPI: EC: event unblocked
>>>>>      [17959.197876] DMAR: DRHD: handling fault status reg 2
>>>>>      [17959.197882] DMAR: [DMA Write NO_PASID] Request device 
>>>>> [3c:00.0] fault addr 0x0 [fault reason 0x05] PTE Write access is 
>>>>> not set
>>>>>      [17959.198366] DMAR: DRHD: handling fault status reg 2
>>>>>      [17959.198369] DMAR: [DMA Write NO_PASID] Request device 
>>>>> [3c:00.0] fault addr 0x0 [fault reason 0x05] PTE Write access is 
>>>>> not set
>>>>>      [17959.198923] DMAR: DRHD: handling fault status reg 2
>>>>>      [17959.201477] nvme nvme0: 4/0/0 default/read/poll queues
>>>>>
>>>>> 3c:00.0 is the NVMe controller/device.
>>>>>
>>>>>      $ lspci -nn -s 3c:00.0
>>>>>      3c:00.0 Non-Volatile memory controller [0108]: SK hynix PC300 
>>>>> NVMe Solid State Drive 512GB [1c5c:1284]
>>>>>
>>>>> This seems to happen only *sometimes* when resuming from ACPI S3.
>>>>>
>>>>> To my knowledge, this is *not* a new problem. Please find the log 
>>>>> messages attached. (Ignore the other DMAR error for now.)
>>>>
>>>> These IOMMU DMA faults are triggered when the NVMe controller attempts
>>>> DMA writes to system memory address 0x0. The IOMMU hardware blocked
>>>> these accesses because the system software has not granted the device
>>>> permission to write to this specific address. It's unlikely a bug or
>>>> problem in the iommu driver as far as I can see.
>>>
>>> I am seeing the same issue on a Dell XPS 15 7590 with Intel NVMe 
>>> controller:
>>>
>>>      $ lspci -nn -s 3d:00.0
>>>      3d:00.0 Non-Volatile memory controller [0108]: Intel Corporation 
>>> SSD DC P4101/Pro 7600p/760p/E 6100p Series [8086:f1a6] (rev 03)
>>>
>>> Logs from Debian’s Linux 6.19.8:
>>
>> Did you see this warning with the v6.18 kernel or earlier?
> 
> Yes, I did see it with earlier Linux versions. For the Dell XPS 13 9360 
> with SK hynix controller I found logs with Linux 6.16:
> 
>      Okt 14 08:10:02 abreu kernel: Linux version 6.16.11+deb14-amd64 
> (debian-kernel@lists.debian.org) (x86_64-linux-gnu-gcc-14 (Debian 
> 14.3.0-8) 14.3.0, GNU ld (GNU Binutils for Debian) 2.45) #1 SMP 
> PREEMPT_DYNAMIC Debian 6.16.11-1 (2025-10-07)
>      […]
>      Okt 15 21:02:49 abreu kernel: DMAR: DRHD: handling fault status reg 2
>      Okt 15 21:02:49 abreu kernel: DMAR: [DMA Write NO_PASID] Request 
> device [3c:00.0] fault addr 0x0 [fault reason 0x05] PTE Write access is 
> not set
>      Okt 15 21:02:49 abreu kernel: DMAR: DRHD: handling fault status reg 2
>      Okt 15 21:02:49 abreu kernel: DMAR: [DMA Write NO_PASID] Request 
> device [3c:00.0] fault addr 0x0 [fault reason 0x05] PTE Write access is 
> not set
>      Okt 15 21:02:49 abreu kernel: DMAR: DRHD: handling fault status reg 2
>      Okt 15 21:02:49 abreu kernel: nvme nvme0: 4/0/0 default/read/poll 
> queues

The error occurs when the NVMe controller attempts to access system
memory using IOVA 0. The iommu subsystem reserves IOVA 0 and treats it
as an invalid address; therefore, the Linux driver is unlikely to
program a device with IOVA 0 for DMA.

An exception is reserved memory used by firmware, where the regions are
identity-mapped by the iommu core during the probe process. There was a
recent fix addressing an issue with identity mapping at address 0:

https://lore.kernel.org/linux-iommu/20260227080638.208693-1-lkml@antheas.dev/

Could you please test if this patch helps? It has already been merged
into the iommu subsystem tree.

Thanks,
baolu


      reply	other threads:[~2026-03-19  6:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-07 19:10 Linux error `[DMA Write NO_PASID] Request device [3c:00.0] fault addr 0x0 [fault reason 0x05] PTE Write access is not set` Paul Menzel
2026-02-27  2:23 ` Baolu Lu
2026-03-16 14:54   ` Paul Menzel
2026-03-18  6:42     ` Baolu Lu
2026-03-18 12:55       ` Paul Menzel
2026-03-19  6:06         ` Baolu Lu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ef328a7e-59a4-4a74-bc72-aa13951b38ff@linux.intel.com \
    --to=baolu.lu@linux.intel.com \
    --cc=axboe@fb.com \
    --cc=dwmw2@infradead.org \
    --cc=hch@lst.de \
    --cc=iommu@lists.linux.dev \
    --cc=kbusch@kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=pmenzel@molgen.mpg.de \
    --cc=sagi@grimberg.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox