Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp541538rdh; Sun, 24 Sep 2023 00:49:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGr1JXIFcb/t910KNdR0OQY1JqvlZn7SZYutkU8/AZBGYfnT4gbWcx1E2hlb7tbKUyLyPBu X-Received: by 2002:a54:4790:0:b0:3a7:2390:3583 with SMTP id o16-20020a544790000000b003a723903583mr4689560oic.38.1695541797134; Sun, 24 Sep 2023 00:49:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695541797; cv=none; d=google.com; s=arc-20160816; b=Y0ShhIaVs/i+Mj36GKce2N0GXPX3Hf/hm/ZC2nbx0EpPB0l/lQjsPnZpG3yptgnmCU sOWAvkAe02pB3TeDtE3BJVKwqjdh+K3zd9I+yj4wHGuM7VI2wQ1jNskh+OIcFUese+lJ swQm9mziIhutrgC8tCgQTsD0D95ttTNNqxE38qv00VUuix1UrTttd4gSMOx9KlBehMSU Vl1oai5+dqC9dtWKkGKIgMY0RARFFwSG3aTl2UgWND9BxHkPW/sBLB4z6NUGMjJGaRz9 YhT6J0m5uI2Sj/n12swdr37Bn3mkFoxJUwGXCeLAt7pNoRewn3Ma1IK0OGN++ksmsUko TNxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:reply-to :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id; bh=Ac6PMv0zFyyZwNHVcdR2an3unnR/hvH4gCkn/TlPceM=; fh=znF2yjJTsPDAapd3daLCADAwPbFH0TPnjml+TDTKxko=; b=OGa/9U9alomwWka5RT26QCroFJT3JK5XA27D8szMp3Tksx/Q7qZ7RmEjaK1Tams3Wf xaCxOvXsepdgX4bgIDndyJIIkRoJzBcsP2HnkhVNHgQWljKx07SFc6JebEJY+EYXozwJ Mq2ScEDnd55utlEM3e5sHy3Dn9quwF9oXuQmi9GJQddMVdtpmstffUdPL03JEGGvs/VP pwN8vrUWWfI80BA04ubnPPRSBNYAYpeOkIiWrtc3dn6lt6W5BN1NGReuq2o5JL9eoVTJ LMbvAH1Vj9qHSJ/y7Pn4PFWFFbfQYD/Hv6FuMKBxFzLrzNTkHaMeMBFboa+O2wGZ2jvj ZZQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id ky4-20020a170902f98400b001c20db2510asi5448347plb.53.2023.09.24.00.49.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 00:49:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id AE92481A4A30; Sun, 24 Sep 2023 00:49:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbjIXHtz (ORCPT + 99 others); Sun, 24 Sep 2023 03:49:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229699AbjIXHty (ORCPT ); Sun, 24 Sep 2023 03:49:54 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 293B710C; Sun, 24 Sep 2023 00:49:44 -0700 (PDT) Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1qkJrw-0003js-LP; Sun, 24 Sep 2023 09:49:32 +0200 Message-ID: <16f0e113-9103-408f-bf5f-9f90442c99ed@leemhuis.info> Date: Sun, 24 Sep 2023 09:49:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH REGRESSION] iommu: Only allocate FQ domains for IOMMUs that support them Content-Language: en-US, de-DE To: Hector Martin , Joerg Roedel , Will Deacon , Robin Murphy , Jason Gunthorpe , Jerry Snitselaar Cc: Joerg Roedel , Neal Gompa , "Justin M. Forbes" , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, asahi@lists.linux.dev, stable@vger.kernel.org, regressions@lists.linux.dev References: <20230922-iommu-type-regression-v1-1-1ed3825b2c38@marcan.st> From: "Linux regression tracking #adding (Thorsten Leemhuis)" Reply-To: Linux regressions mailing list In-Reply-To: <20230922-iommu-type-regression-v1-1-1ed3825b2c38@marcan.st> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1695541784;b11f5da6; X-HE-SMSGID: 1qkJrw-0003js-LP X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 24 Sep 2023 00:49:54 -0700 (PDT) [TLDR: I'm adding this report to the list of tracked Linux kernel regressions; the text you find below is based on a few templates paragraphs you might have encountered already in similar form. See link in footer if these mails annoy you.] On 22.09.23 15:40, Hector Martin wrote: > Commit a4fdd9762272 ("iommu: Use flush queue capability") hid the > IOMMU_DOMAIN_DMA_FQ domain type from domain allocation. A check was > introduced in iommu_dma_init_domain() to fall back if not supported, but > this check runs too late: by that point, devices have been attached to > the IOMMU, and the IOMMU driver might not expect FQ domains at > ops->attach_dev() time. > > Ensure that we immediately clamp FQ domains to plain DMA if not > supported by the driver at device attach time, not later. > > This regressed apple-dart in v6.5. > [...] Thanks for the report. To be sure the issue doesn't fall through the cracks unnoticed, I'm adding it to regzbot, the Linux kernel regression tracking bot: #regzbot ^introduced a4fdd9762272 #regzbot title iommu: apple-dart regressed #regzbot monitor: https://lore.kernel.org/all/20230922-iommu-type-regression-v2-1-689b2ba9b673@marcan.st/ #regzbot fix: iommu/apple-dart: Handle DMA_FQ domains in attach_dev() #regzbot ignore-activity This isn't a regression? This issue or a fix for it are already discussed somewhere else? It was fixed already? You want to clarify when the regression started to happen? Or point out I got the title or something else totally wrong? Then just reply and tell me -- ideally while also telling regzbot about it, as explained by the page listed in the footer of this mail. Developers: When fixing the issue, remember to add 'Link:' tags pointing to the report (the parent of this mail). See page linked in footer for details. Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr That page also explains what to do if mails like this annoy you.