Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3866195rwe; Mon, 17 Apr 2023 04:55:52 -0700 (PDT) X-Google-Smtp-Source: AKy350aU+tvU61TwXEvJXiiZHscCC4zIrTrqpxI+lzqf8eGsbDYiav3MgioUbzlgE17jfM/Ykdcx X-Received: by 2002:a17:903:11c5:b0:1a0:450d:a481 with SMTP id q5-20020a17090311c500b001a0450da481mr14187379plh.35.1681732552681; Mon, 17 Apr 2023 04:55:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681732552; cv=none; d=google.com; s=arc-20160816; b=OJv8OwDFKzlnovHdomsbj4uMFZsjN67aYADec0LhVn6i+2ODnWaB8k96lcUkTECjei uOpvAeDo+sIPD6B7MW+YyMuylOrPaqA6gRf4qcFFi9B5gfNs047UW2pZOUZmYMt39g6s WVHCcgz8f9NyukO9Mpz10USnnDoDTC8oH4RkedJcKIS8Uf1G9o/3utoWKINB/MJHMo02 /s33sBdsN3Ma5fFFhnMHlmDn7Vi+9bMvV8kVCZ5DQJZLFW3FcKzbeyYUjChpBFEerdss TJccoI+O4Evs9r58S047Y48U/X6l7EzV4s8WHJF58SnTdOAkHcXVrCi5ZOL7K0U5RBqt DKmw== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=wCi5JE4sFxv9x1/rZhHaIGroum98e5+kvO6B8O8vVPo=; b=0K0I5UiMARF0dCi7B+yZ9zximhgZnaO4OEOb3tX7P6kbVcstPs4pfbeU4+6/S3syFR ZWGLODFRMUp96nuOzgMyuy8ocJiJL0Rn5/hzS8UUxSEPUULetSpnIGhHUuGW9LqFOu2C Zgj4jpIPN2lGQZUYHh6eTgl7JMdCd3GqLEV+cDRKi9u0n6NgMkQNbqC0znsojrh7Qtsb AWbgs/4/59h1K+udoEcoZ6x12VgVr/oGo/bEHnQQJyjT9mNorVAu2q1qFsaFw5XuGo+C iJhUWcEmyaRbfxGJB92CzJvKTdNvkyqULdcd22aX7t4Cr6mNombo3PPMSHmh0XUdJ4Mo iZ9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a16-20020a170902ecd000b001a04212a4b1si12712312plh.439.2023.04.17.04.55.40; Mon, 17 Apr 2023 04:55:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230053AbjDQLtX (ORCPT + 99 others); Mon, 17 Apr 2023 07:49:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230036AbjDQLtV (ORCPT ); Mon, 17 Apr 2023 07:49:21 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 69D575FD0; Mon, 17 Apr 2023 04:48:24 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2CBD71063; Mon, 17 Apr 2023 04:22:47 -0700 (PDT) Received: from [10.57.80.202] (unknown [10.57.80.202]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 858853F6C4; Mon, 17 Apr 2023 04:22:02 -0700 (PDT) Message-ID: <6a775920-9260-f82e-dace-0b792f5371c4@arm.com> Date: Mon, 17 Apr 2023 12:21:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [regression] Bug 217218 - Trying to boot Linux version 6-2.2 kernel with Marvell SATA controller 88SE9235 Content-Language: en-GB To: Christoph Hellwig Cc: Linux regressions mailing list , LKML , Linux PCI , iommu@lists.linux.dev, baolu.lu@linux.intel.com References: <20230328012231.GB21977@lst.de> <01c50370-002d-5e18-3edc-81c9527aedc9@arm.com> <20230416064156.GA6410@lst.de> From: Robin Murphy In-Reply-To: <20230416064156.GA6410@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-04-16 07:41, Christoph Hellwig wrote: > On Thu, Mar 30, 2023 at 01:18:45PM +0100, Robin Murphy wrote: >> FWIW "Marvell SATA" instantly makes me suspect the phantom function quirk. >> What *should* happen is the IOMMU driver sees the PCI DMA aliases correctly >> and sets up context entries for both 07.00.0 and 07.00.1, but it looks like >> that may be what's gone awry. > > Looking at the bug report it seems this is device 9235, which doesn't > need the DMA alias quirks. Indeed that one doesn't appear to be in the quirk list currently. However the symptom of DMA traffic from function 1 which the IOMMU clearly wasn't expecting firmly suggests that it *does* need the quirk. Digging up the original report, the lspci output there suggests that 07:00.1 isn't a real function, which would further confirm it. The other thing which catches my interest is the seemingly-conflicting "iommu=soft" and "intel_iommu=on" arguments - I could well believe that refactoring the x86 IOMMU detection stuff might have subtly changed the interaction there, such that previously it ended up not actually using the IOMMU for DMA ops, but now it is? Robin.