From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796390547; b=XRzCV1nfiVOgRa8DaEa2eHhNWCxVm9lBWkMe3xKC7HjrZCa950qTLwlf70g72cGKvtRQ k/915fbcfcS/zOubYdl7HGkzCW0eaBhWNDP/yLDS/t89cbi2ksHSp9h+ozaTDpQG4kgzc 765WJYQKZrRoydzC7r0oJOjgCk/E9v3Jzobn4qwG/2IGtOCaP8v8rFegUDS8vx4ghoIW9 PwfaCC9AsuMkdQV5Yta94Z88iouLxNhPZs2eu47unBh7NaaBFw8YU25tc2NZyvWCNxtb5 MeyMl2qNOGNW3GR0Ufi6vKpBlF1pqd2sYpR6e4fGS2tlIEXUd+70lfUUpX+E+TS4qKA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796390547; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received: X-Received:Received:Message-ID:Subject:From:To:Cc:Date:In-Reply-To: References:Content-Type:Content-Transfer-Encoding:User-Agent: MIME-Version; bh=q8F5Io8SpIKwkNwWxqfEOraa4kOi7PdkNMB0dUddB6M=; b=eTJ/q+3+8MhErknA0HjY50gr3EBt5G35VMZM4+QxrjY84Td+0o9H9KJV7C+91rgWi1bH WLeL8ok+8rnUE9TH6wuffOYLvmW2Xl+UjuRrGhYBOpTE09iWvJLctrrPmhxsYwiNawGr+ oKjkpUkoJFL27wOnzCaVSk1x5IJkSLXJglN8RJ+3OGaBFWA61jqVsc4efaPyAxTpTUbmz 2X6/qXJ+YLmx5zsBDxST8OTfeSYSZf3c96hWJmhoyCq2cMtvIutgMLqInKDjePbMCvm4x fb1Aj9C7akptgM17TNRVxUcPAiHyDwGZjlIeB/2iVpI+nGeMF3hDoeOoB2eu5zmw10g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Mycp3jtp; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b="LC/nb9pt"; arc=none smtp.remote-ip=170.10.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C14B2606A322 for ; Fri, 4 Dec 2026 13:22:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C14B2606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Mycp3jtp; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=LC/nb9pt DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796390545; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=q8F5Io8SpIKwkNwWxqfEOraa4kOi7PdkNMB0dUddB6M=; b=Mycp3jtpqlB7ksbcHW9PHvOM2/tX8qB5M4CXesefgo6veMWuLikbZFCW3+g1Bdd9L21OYJ n4sDN3Xvj8elNyNzXFnzHMD1pJtW1vC+qKIcXO1lZTMf6QHfTNUyDCxubvlo4cEd9Sm8FE O95CwSdSBxlRUXNStftf8TrclM0shnA= Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-655-Vw3G8HMnMueZTnNnz8sZcQ-1; Fri, 4 Dec 2026 13:22:24 +0000 X-MC-Unique: Vw3G8HMnMueZTnNnz8sZcQ-1 X-Mimecast-MFC-AGG-ID: Vw3G8HMnMueZTnNnz8sZcQ_1796390543 Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-2f05b674e3eso9793895ad.0 for ; Fri, 04 Dec 2026 05:22:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1796390543; x=1796995343; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to:content-type; bh=q8F5Io8SpIKwkNwWxqfEOraa4kOi7PdkNMB0dUddB6M=; b=LC/nb9pt0Ik4+s/8d3ODPgfQnm+gj9Mt1Mfbi4HWDYJv8WZYl0MXKZ9RtF7J6VijwS 0mqBdDDIytkDgdXbwZiZqEdqMwlwYcoW4CJTAs/5lPrpd9U3jUqsbgWr+Q7HNvobcZlt QWMDJKGqJljMWHM8BY87Ivt3kz0pxrq4PaOFofjRU4nZy8gFvf+m9IgfSurEncK1dCv+ WeTsB5mziywLAPmNGRZKA8IMEdXU17MtjtLYn8X5aWipdsUScwvW/3H1Cl1TUn0bfqG8 7jJUKggXE2Z6Evrai/+u6v3q5jw5EM4dkAQgBu6/rADVRbgrD6Liz7WHdmvdj5kz3t3v Bvug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796390543; x=1796995343; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=q8F5Io8SpIKwkNwWxqfEOraa4kOi7PdkNMB0dUddB6M=; b=PzASu9SVvMgGcul7GwokYQdCTv2vt55OLMk7kv5ZZFX53RNMmldFs8ZN9XCjpO7xOT tapE0KkydvzqNfTNN+Oum1hnucfTcDo/awQLzELaeRedEHcFXpZhpX4rVmR5vAVHrfd0 YfCAkHrUD9uNiWudsR5sZK3aNlO54rtqB+20WCYQ1uulIQnwi2Uss5OkcsKaoIoZTEQ7 AYUWLOwawH+TPydUkhm1YS9j3IkxSxrxRRMorknIu46KTF3D+VsqeZjU7cgvw7Wr713s 3uJ5883eS8x26HPUCPjKiyociudNNj+l2U7Sh+76rAsN0AGJ7Es1znZr3S0DGQ46fHrq Zn5w== X-Forwarded-Encrypted: i=1; AL+hErFkd5x9zCz6azL1fnxQI774gnI1vBtnTEsCMeBN3HhZ4fIxO6il6WvoGReurpzDWemd5YQ7zFki9SY=@vger.kernel.org X-Gm-Message-State: AB4q+uGCm5iZZYRnZrooHlDU5JL+vWJxRwyd7Ah62JWDlXlxX1tVlOHy oUtpny3OOIfaMSzSGpzKzm1wiECLDzkXBzSq0SGC4Htf+epQsyvRVb4+oB+pBye0KKBLf1WM5vB WkEYPMFLP8sEO4TC7Q1/ainn5RlRsxmnpgF/Zfm7S+5nDprA5YqFZ0ELhXyUZ/g== X-Gm-Gg: AZFdTZcIqdk5OCXmw6OFNgK1kLqGMO/7SHHnVapIk/QOGGPzVgpmGuYYPysyHmiZHpd +2qfC5OFOqROUaBdZrIRbg6Ob2CI3xu9Y1JtO89QrxpijWQuputOYGvOkH/MDqiqwP4NKdFGo1u 3SZ4NPIP0CyB3sozHW81Y+VMkzCCu22F6Jqm0ifBWFSUJF0KRcsogqu7S2pC5V43ZtVBysK9GRs TpuRHvhMNro1p5aw3Pl3YYlFw+DB/T6z0Uf0F3kxMo/RQv9EiUAvvi0D+0VDh4+f67AvplrVxEC zHoSpQe464EQT87pu1ywH4eiIisrUqPEYq/HvC7YPvcTdZ37MQlHuGrDlOqYlJ0IKsjodh1/xeS NiIIOHzILSa40ByN34wQnXt1gTdL8hv0JMshfRxcmbXqiRirNrZqoW++st4KLSNczasILI9g63J N41PUfUCsZiQ/HL7vWZX9GuqXEF+ah13OFNmGW2Vq/B8ASp9vJWuTh937wsBRQAURe0qo/unY= X-Received: by 2002:a17:902:ce82:b0:2ef:ced4:35e8 with SMTP id d9443c01a7336-2f1ba223741mr19169825ad.52.1796390543018; Fri, 04 Dec 2026 05:22:23 -0800 (PST) X-Received: by 2002:a17:902:ce82:b0:2ef:ced4:35e8 with SMTP id d9443c01a7336-2f1ba223741mr19169495ad.52.1796390542494; Fri, 04 Dec 2026 05:22:22 -0800 (PST) Received: from loberman-thinkpadp16gen3.rmtusma.csb ([2600:6c65:2440:d8c:aa2b:ddff:fe88:da74]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f1b78fabcdsm12021375ad.17.2026.12.04.05.22.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 05:22:21 -0800 (PST) Message-ID: Subject: Re: [REGRESSION] DMAR fault by Intel H97 SATA controller since "block: Increase BLK_DEF_MAX_SECTORS_CAP" (6.17-rc1) From: Laurence Oberman To: Tobias Laas , Thorsten Leemhuis , Baolu Lu , Bart Van Assche , Lu Baolu , Jason Gunthorpe , Joerg Roedel Cc: 70sp <70sp@protonmail.com>, Damien Le Moal , Jens Axboe , regressions@lists.linux.dev, linux-block@vger.kernel.org, linux-ide@vger.kernel.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, David Woodhouse , Will Deacon , Niklas Cassel Date: Fri, 04 Dec 2026 08:22:14 -0500 In-Reply-To: <82B1AB2F-EC1F-4A79-B791-9C14FAFD6F62@posteo.de> References: <5ad27a97aafbc08a8702d5b90d09cd59@posteo.de> <87b1bbd8-8113-4890-8623-738b19a9cc7b@leemhuis.info> <2adaf0ef9e1a2fa18590f7d8dbf203c0f7de2be7.camel@redhat.com> <0edb9525-5068-42e6-b6c3-a1dcebcbcea7@acm.org> <672d7d54-a485-4e5b-9d5e-d2fd87fe292f@linux.dev> <82B1AB2F-EC1F-4A79-B791-9C14FAFD6F62@posteo.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.60.2 (3.60.2-3.fc44) X-Mailing-List: linux-ide@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 On Fri, 2026-12-04 at 12:47 +0000, Tobias Laas wrote: >=20 >=20 > Am 4. Dezember 2026 09:51:41 MEZ schrieb Thorsten Leemhuis > : > > On 12/1/26 10:04, Baolu Lu wrote: > > > On 11/26/26 07:27, Bart Van Assche wrote: > > > > On 11/25/26 2:51 PM, 70sp wrote: > > > > > as I mentioned in the referenced regression thread I > > > > > reported, the > > > > > patch I sent out was basically an example to show that it > > > > > works for > > > > > my use case. I wrote that I don't think the patch is ideal > > > > > (in fact, > > > > > I think it's an absolutely terrible solution to fix this). > > > > > This is > > > > > also the reason, why I just sent it as a snippet of code. > > > > >=20 > > > > > Please take a look at the code before the regression started > > > > > to > > > > > occur. It was implemented universally. These vibe coded > > > > > patches are > > > > > horrible compared to the original code. We are literally > > > > > making an > > > > > exemption for a specific CPU in a place where it shouldn't > > > > > be. The > > > > > actual correct solution would be to make a patch which works > > > > > similarly to the pre-regression state. > > > > >=20 > > > > > If we are going to merge something that is made by a LLM we > > > > > should > > > > > at least make it good. Ideally made by an actual human. > > > > (+Lu, Jason and Joerg, signers/reviewers of the patch mentioned > > > > in the > > > > Fixes: tag) > > > >=20 > > > > Is a better solution possible than the patch "iommu/vt-d: > > > > Disable > > > > superpages on Haswell with integrated graphics" I posted here: > > > > https://lore.kernel.org/linux-block/ > > > > uJluFNYGCCrdvnYT3MatN_4Om8UczTJX_dzxumJxyCAC7F- > > > > Ubrekb7LPwlRxhCW0J91UBf- TqeRoJQfgYIYBRvMsPmE- > > > > Qs1eAg5zbDP0s58=3D@protonmail.com/T/ > > > > #mc147f250c5356e3742ab3d30ccf6b4a3a8c4196b ? > > >=20 > > > I noticed that there is a similar fix here > > >=20 > > > https://lore.kernel.org/linux-iommu/20260929151832.80069-1- > > > johnathanc@novasilicon.dev/ > >=20 > > I might have missed something, but it looks like this is stalled > > again. > > And no wonder, even I feel uncertain here, as there are multiple > > threads > > and fixes (some of them similar) for the problem. Will likely be > > similar > > for maintainers, so I suspect none will take a closer look at those > > fixes unless someone re-submits one as the agreed on path forward > > freshly, containing all Reported-by and Links to earlier > > discussions > > (the one from Bart gets close already from what I see, unless I > > missed/misunderstood something, which is quite possible). > >=20 > > Baolu Lu, could you maybe take care of this, given that you > > authored the > > culprit, even if that was quite a while ago? Unless somebody has a > > better idea. > Hi Thorsten, >=20 > I am afraid it is not clear yet whether superpages also need to be > disabled when the iGFX is disabled.=20 > Please bear with me. I would like to test this over the weekend. >=20 > Best regards, > Tobias Laas >=20 > > Ciao, Thorsten Hi Tobias, Thanks, that is a useful thing to settle, because Bart's generalized patch keys on the iGPU being present: with the iGPU disabled in BIOS, 00:02.0 normally disappears and the quirk does not trigger, so superpages stay enabled. A suggested test, so the result answers the question directly: 1. Disable the iGPU in BIOS, boot an unpatched kernel with intel_iommu=3Don (no sp_off) and the default 4 MiB cap. 2. Capture: dmesg | grep -E 'DMAR: (DRHD|dmar[0-9])' lspci -s 00:02.0 It would be interesting to see whether the BIOS then drops the igfx DRHD entirely and/or changes CAP.SLLPS on the remaining unit. 3. Generate large I/O on the SATA SSD (normal boot plus a large sequential read is enough; with hugepages, e.g. fio --name=3Dsp --filename=3D/dev/sdX --direct=3D1 --readonly \ --rw=3Dread --bs=3D2M --iomem=3Dmmaphuge --iodepth=3D8 \ --ioengine=3Dlibaio --runtime=3D30 --time_based after echo 64 > /proc/sys/vm/nr_hugepages) and check for DMAR fault reason 0x0c. If that is clean, the quirk only needs to apply while the iGPU is enabled, which matches the datasheet wording and Bart's v2. If it still faults, the quirk would need to key on the platform rather than on the presence of the iGPU. I'm building Bart's generalized version now and will confirm it is a no-op on a non-affected platform (Coffee Lake, both DRHDs report SLLPS =3D 2M|1G), as I did for the first version. Regards, Laurence