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=NwsfACCUcM8FLC6ad7Pf+FpkD8Kpk8x/7egmR6+/DbUcvOFchm1DCEpqqtWM+24dIKJp DcnrPgONP1J1BkdXQGhwWRIVp2pTPAwW9/93WpWNBCWvzOiIUSJSmfoMearbidOULsEce gSkabpjLDr7Wu1KQYbcfVyQszyGx2g0YlI+SHcLK36glAFvGCpGN7BRVwrejOS3i1XgCC u7bDDHxs0msTgq8SRA6nQDU0kMjLl/joZhrfDS7l5zSGi/xnTA1Bz3DFzj3oe5E5IK3T8 cCBGL3niW+f6csDTpXSymRMLmmECLL389ZUQdqiikCn6iuJF732yFOM3aoCkF12IWkQ== 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=OepnFv1elT4DwlJI+boMctN1iUUGnulexwcN9+ARc8uCLn1zwMho+Unl23NPaMbaJdpq CXrZRWOrauBEGpZrW42HchOwm8KmvWUy5VzaV6y1DV6wddjNrSwYEArW6RoD4heGG5n0a MU1IipJqY6fZVwFKeRrbPRKzu8s5/SYBxSjgmYK5hWMzsRetUV8jANcyJOH2AxIZNbJ1O H98wm5gnhG3cmenCCKyjr21aQnQ5cZnySLdMaaxKbfKFOr15+Wq5n1qiRFWo4yX0GIMkt TCgIruYMRXLqtqrsH8mAhob53Q1KN69FYIdTBBIZYkEK1A84Kwp8ZqRw+/r1AlKx8PQ== 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=VUFg0Dk5; 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 DA4A4606A330 for ; Fri, 4 Dec 2026 13:22:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DA4A4606A330 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=VUFg0Dk5; 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=1796390546; 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=VUFg0Dk5EH12DmG0xoYnpZXLisJmiyFk7mFzw+XxnnJU75jla90szlxmoNBTi1pu4+RTaY CTSTGcCz2qOh7Ys8ci2kwzfLVuu3Mb/NX2WcaC2Bni7/IhUtyIfIt5AqSG2M5QajlDPZR9 heCCNu4F9Xgz/vAtJib3NHvnWk0qUeU= Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-671-fkXDKyuxO625Ykxs_9NdzA-1; Fri, 4 Dec 2026 13:22:24 +0000 X-MC-Unique: fkXDKyuxO625Ykxs_9NdzA-1 X-Mimecast-MFC-AGG-ID: fkXDKyuxO625Ykxs_9NdzA_1796390543 Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2edd25534afso9108745ad.2 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=Tv9pwt/g3tzmJfKw6pzxMl6qlwZK8/BlGp2HYWpk8au0SUE3aABEflXUZMgmVYeKAS b7FPJiwrt8ssuTvzeeeu3nbMs4GtyO5VKcMt7Kidu36/Vsk37xKxlXOWQ/V3nCIUir+l Xh39Ijm8b3zRXVACOeWv6PO0wKwr+illf8IXpD4VZPx7/R/3JYsxCCyson1p/71n9KRP c9/bnaDbfZtJUeYUAfKLtppdUgk8N4I1t9i8xYBwbUBhH4Xt44xvw6XDCt0+sBKAr6Le 5hPLW5Xd4uTqCByFFbXSyyXp5gT/uEoePvy5XuA7ZR8DfUKhHtzx6Isj6uTqNHBP5VCF /znA== X-Forwarded-Encrypted: i=1; AL+hErGlZiSMiKEm+CpRgaJ9Adb+6ad/gJWH7ymkZG+I5ttG9tcPGkzO0R0EsgRRLcw6pF9E+wZ83L6KpzNpmxg=@vger.kernel.org X-Gm-Message-State: AB4q+uEe+qBY8d53yoXat4tIRLkxV7as/QLZdsoEQTo61t2kCyRtUTid gdKHlyIQQzpor85PFMUl2CxvqmaqiQlezttIkl1dZVuasiXUUM6o4Sr0eY9KqbPCbfYv6eL0lbC wm4fTprdbg2WnxbCOZGQng7B6eL8rSxrM+vkoSymU+2/+1Vcs7cotvzjP0piE+GHOGQ== X-Gm-Gg: AZFdTZfEzrfdWCOol4eQNwJVeCx+cQwQw2tePMmG9tBAz/hxiLbaO/RwFT4XX/3I/9I 94v+B2RLzn4+YCrlsaInSS9v8pwJXiYgL5g4a7IApceXOdIoDZMTmtck6PPFJD+/xZMVzYGLShx 5NsUNGpiRDYoBsO+a2/WNPqQjZA2dsf0lEbSpYyd2Wo807nxtwYberP4PJIg9FBuoAY4MClP34o dd3WDEIjohEYDtwik2qjLPYdk3XwfxrpR7xaezMbD/5gLcfBNNDCzuzbuLmTuQi9Dl9GposZtEd lfznyTPpphOS8QdBYpwN3F4ynvUReRoJgqbzi6f+3d6NE1dwRcI8DmANsbZCLu4C5RrFCaRRFrW NwEWQvoxJr/JKroMurt9JPCOP1Pkh4ADPKb10O2jXi70Q9DRMMjmTJsZQRKeyHfgvXdUSXf1mc3 oVedhJiGdofK9+XiChFtTf+cOjqqsaRv6IB6ymR85GJ+a7LmC5MtaldSAbKyGU5S5SmAvNVHo= X-Received: by 2002:a17:902:ce82:b0:2ef:ced4:35e8 with SMTP id d9443c01a7336-2f1ba223741mr19169875ad.52.1796390543019; 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-kernel@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