Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2047590rwl; Thu, 30 Mar 2023 05:26:53 -0700 (PDT) X-Google-Smtp-Source: AKy350Y2DswpLu+e70K5KOrWnPQUCSdhXvT+uFKLZMZhXmJJez5D1Uxb86sjiskSfryZJwbtTIJG X-Received: by 2002:a05:6402:2803:b0:502:e50:3358 with SMTP id h3-20020a056402280300b005020e503358mr2472472ede.3.1680179212852; Thu, 30 Mar 2023 05:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680179212; cv=none; d=google.com; s=arc-20160816; b=eIqMRxUNQg05+tzCpUSbWNHImQRx1rEVwImbM0yWs/+HIa7/TT1JlJY9TDZnmdmteC ol8F7gZjdv1CjFVrxt8VyOM3hUyxrxWECo/bfTydI7FhZpVq5suakZdlt+VKOALOCrDz Y61ylo5cTLrAFzllldbynAM+sEX7v7dWDZrUZmFAWZFgZtBpZddMX2GVyWm2v1MmlaUv RK4cwYl1oh4JdS1p5boRMPUa6WV5dC9g0l8Ew7kXlmeV3iMsIGQYirvk+UzcBgjGnwGV RYacnlUiC0BcrLokDJDIpA7BrDMqAd5X/I0WVTrXvIpHXrTAyS38s/5rtWGDuELJ77RV +dWg== 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=yZ8xTspfqGTlJJP/4okwpr7ytt7LQaVaQHZxT6aA/vU=; b=WnST9X/BTLhPv28qJ3BldIB5f4jAzPEtGjOvEY+e9K6vsirCSHRgsa2y2l4nEBr1wf Yc/G8og52sf+zHr4zHGrHyxZ7H7fZ4JRvTtzQNe8yMUGWHTfmZyvVZZHc3a0hCIVOtjE MTgMLwctrPwKly5U1+VTHirs6l7RxYaNXJqyQrjTsnCe5SJHx8fHiKwnntU2p2cjBzB0 iY4kAlb9tpos4uHeFAsVmOLBGXODy2WJ/tKeBzaj6y28OW5RlHtsNmu62LM/Ao1jUgpa nI1xC3sahpLNhzCGxbRTU00IABpZJGmVr3s6J0F4wOPTH2kKemBzWrs8piz63+M5FbNM p88g== 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 o17-20020a056402039100b004acc137fdd5si35682707edv.48.2023.03.30.05.26.27; Thu, 30 Mar 2023 05:26: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 S231529AbjC3MS4 (ORCPT + 99 others); Thu, 30 Mar 2023 08:18:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231535AbjC3MSz (ORCPT ); Thu, 30 Mar 2023 08:18:55 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2988B7A8F; Thu, 30 Mar 2023 05:18:54 -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 ECBE42F4; Thu, 30 Mar 2023 05:19:37 -0700 (PDT) Received: from [10.57.54.254] (unknown [10.57.54.254]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A06793F73F; Thu, 30 Mar 2023 05:18:52 -0700 (PDT) Message-ID: <01c50370-002d-5e18-3edc-81c9527aedc9@arm.com> Date: Thu, 30 Mar 2023 13:18:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 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 , Linux regressions mailing list Cc: LKML , Linux PCI , iommu@lists.linux.dev, baolu.lu@linux.intel.com References: <20230328012231.GB21977@lst.de> From: Robin Murphy In-Reply-To: <20230328012231.GB21977@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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-03-28 02:22, Christoph Hellwig wrote: > > I finally found some real time to look into this: > > On Tue, Mar 21, 2023 at 02:52:00PM +0100, Linux regression tracking (Thorsten Leemhuis) wrote: >>> The man errors I am getting are >>> >>> dmar_fault 8 callbacks suppressed >>> DMAR : DRHD: handling fault status req 2 >>> DMAR : [DMA Write NO_PASID] Request device [07.00.1] fault addr >>> 0xfffe0000 [fault reason 0x82] Present bit in contect entry is clear > > This clearly indicates that my original idea about the AMD gart was > completely bonkers, as we're obviously on an Intel platform. > > And this indicates that the device is trying to do a DMA write to > something that isn't IOMMU mapped. Getting this from an initialization > change (commit 78013eaadf6 (x86: remove the IOMMU table infrastructure") > feels very strange to me. > > Can you maybe post the full dmesg? I wonder if there is interesting > initialization error in here. 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. Robin.