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=R+rjqN0it6Z/eDhT2Dd8NyOKG+/8lz6IN8QW4bbEZTnpeYziC1Tb06bM0BBZj8c6JwXZ eGssOlTGuDCskNtOhRxtZ+EwhCh6Khdx1BDu6AGgImiwRCobKaqlk8njr7bA1Ukvd8egD fKchOnl4Uq8By0UY6TfDd9CR/uaM3P9hdoCnXvp6tkWjOr0fb8pou/8MXrfguDaaY9Zx8 sZKLiNVqB1Fhc+o1Q2lqN2alDXBQHOBTiSK2i2VLgNUadUe40Hp2m5DVMOZb7kIMvrSkU +iFcvlJVLx9Isjvx2Cx8WhXmRzdQPdZz9iBQuxaBJEBg/HwobYF81d/ONYQ6ssEVTfw== 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=sOPpXGX182ltM+Rqk5c5vPrLsyeYzP3rqbPi0f+0kudl9XH+uOEVEnA7hqq3Bm5O3Jxe C7AhRxAuTc2NIZ3p8WkmUBYw5H3uXfPKXTPZjNzpfJbCIep2ODxiNQeCCXDIDAp97/lVC qy8KlkMPWUWyf7cQT8xuPpCZsjRtjimj9jCMALmElqYqjTVDlnXF38A1ms1rdEDz8FLSJ NMq2BpjspSxcYL81vnjdupQ+V1Jk2B/dPlg9qfD0BWowuMT7AUI0IEPWWa9pTXMFCmmNS jzQg/SeHQYYK/+pIoQOwXw1zN8XzwPji9qjvGB0uShem6gqYMZm2FXBymvVXvMvdqHw== 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 E2097606A332 for ; Fri, 4 Dec 2026 13:22:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E2097606A332 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-643-u4NLOjO0P3K4VUZGLduAxw-1; Fri, 4 Dec 2026 13:22:24 +0000 X-MC-Unique: u4NLOjO0P3K4VUZGLduAxw-1 X-Mimecast-MFC-AGG-ID: u4NLOjO0P3K4VUZGLduAxw_1796390543 Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2f14314e32eso6977175ad.1 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=WFtBX3WQfueuQoyOgYKRNWtaYuVNf7FuOIcYUvjWyeKh216ESQuQuaEHcmEyryVUsy ZF9Dx+3x6vNfZ6brXXaqWDi+EHTRD+oCoe1l/s0AV9lzdl/jTvpPDhjg+8Bi7NJAqYvB aiWdj4k1oSarZXrJr98knp6VJNjOP6Btj/64UtIaykADH9cNU1amsXTKlLQyn4c7GYcx Xjm6sT052T0zxZ1RzLhZdPxlOJAxAuV/YTwoyh1IU3g3P3v+FnYVfH5pc9wbIZvt00xZ 8iMgfNujQr2ndKaDqMWw5gmHDsiW6BdvGLlO2oZ42EBZ4VS6Pi310CBodI+eBx0Wntkj rdfA== X-Forwarded-Encrypted: i=1; AL+hErGobROFUnKENg8H4VCvQh/own9pNUHVqw02Dsrnz+vcBacF6Ov3CwkwkVVJTg42MadfhZYl7hEtcJ58YA==@vger.kernel.org X-Gm-Message-State: AB4q+uHZ4SyV2qHuhTG47nujKdP8dP2h+joU29AjKhcepU6msJ1KbXpN Xis6DxsEe74SlUvHE54tnggFYEJci8HF5qaJBidFKfB/DpA4Ps5NLJmokvxJFa2AbZAxtLsqJLC BotlwpDYaWpKeY8Fn5+fNhCtV+MUZ28DGoOCXTfvBMlHHA6BNL0g8q6Y1aCvu3VRq X-Gm-Gg: AZFdTZdezjU0ABMtgK0s3jurpOnvTfspE8mjgBiiSP4ONF5ClDdu7Kvg7la8awANrlJ jH+d+2b4v83/3q/KdrScnHbxHMJ4yvDgsmx2EToReDCoAd805l37JKRzMrSU0GWtH+JaU9vj7Zh M3zb5P74oBpTW2IDZ8RBMFVg+3yqSEZVP88PBsML2HB5hjpiv+m+Nicai6i1MqSdX3EtP0dFYPh EzgpHRTFuBFa4UZkGazPSO91zduS/+bSlWcRvjfPbP5rS1mnD9/gvAQKdhGHaquZkcJVCx2gcHt ft+ewAzdZo/LcIIH1Vh8W/8mqj903sZTlapI1eQjrxD6iEOjAbO5CsYqNWL/5u0HnFI/axMQtqZ WfKCNyGlGgX7kHmW0kRb6DdiphEwYDUOdpePMnK2H5JMqaDp7GT5lkpa+QVQuB2cppN1QjKN43l 3tqahmWsZs6HNwJN1NKUvJl/ohumRMAtWc6M+PnvWkQCso+5yio0fmznhIN88TZ7Q+NiMmNIA= X-Received: by 2002:a17:902:ce82:b0:2ef:ced4:35e8 with SMTP id d9443c01a7336-2f1ba223741mr19169735ad.52.1796390542991; Fri, 04 Dec 2026 05:22:22 -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-block@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