Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5759091iog; Thu, 23 Jun 2022 04:58:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1szp1rHGMZEEcKo20wX1vmtGUpsWUJsFU6Rsq2r9uHnymqqeCdNG8cymD/FC50GvwA9v6k7 X-Received: by 2002:a17:906:9750:b0:722:e84a:b6f2 with SMTP id o16-20020a170906975000b00722e84ab6f2mr7924322ejy.430.1655985491222; Thu, 23 Jun 2022 04:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655985491; cv=none; d=google.com; s=arc-20160816; b=XvaIP64478KkxEFgplNzAjRDkR5MPjaZlep9BBb6j4b0twQABb35oHN/HkfXSun4Kj I+dRRNvl4wvoZZudZFAbGtb75MpaJa6m3DwbLJevj9jf+UkExjHmshUDklOGqQXGYUfc sRtB2f+9lPodL9GHkA5NxtoxfPd+Sp9BSnlhBW+qUPD8sSNQOix209gewTcijw9xwHED 4UEZoG2uaK/xJY1fZrYrFOZf//43TKRAhbQeZ0kka+G9Pm42q06skP4dTs034koBU3iA oBHtbfCxm8WQPLBuewrY8D5KPIeOzFYhPXeibieiaif4Zc1NY5ckFar2JhwJVpIlgJnS /12A== 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=F9nnzc31pFf0uw/h5dJ/1hs1Cet732lfW7NYP6uhJGg=; b=BUFMeIuvkemN/2q5Z+293JZj4gImzame6Jcck3lFndVLg44mhdwI3Xbpw/L/viQJsc a2p5JhgdJeukvC7/gvGVhZMe3KcZYBB6Tr+VHQUfLNZ6JoAWCZ2rVE7Uc5KtYGFqLoTU G+Ia+z+vQSq3DvZ2uWg1FRQb4oO0Nxf4gqkkG9SSxT4Ba8ma+498vc6QJF5JXfT5DSmG BjNJmcmVSKJ/egIesP5f9NqWpj+IpJ4zQW10AIuBeNjl+JLyOoHufPtdsIg4+/PVZbwm lb87aacuii7+VYNV9+lXBntCPj1mgizW93L81g+8Y41nZ7XxUnGN4ZAfh+5qZAVFGkVd Zn0Q== 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 b20-20020a056402351400b004314e4f40b3si2580476edd.604.2022.06.23.04.57.45; Thu, 23 Jun 2022 04:58:11 -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 S231346AbiFWLlO (ORCPT + 99 others); Thu, 23 Jun 2022 07:41:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230373AbiFWLlK (ORCPT ); Thu, 23 Jun 2022 07:41:10 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6AC0D4BFD5 for ; Thu, 23 Jun 2022 04:41:09 -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 24B8112FC; Thu, 23 Jun 2022 04:41:09 -0700 (PDT) Received: from [10.57.85.4] (unknown [10.57.85.4]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 092363F534; Thu, 23 Jun 2022 04:41:07 -0700 (PDT) Message-ID: <653fba02-7eef-5f0d-66dd-7599af84db86@arm.com> Date: Thu, 23 Jun 2022 12:41:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v2] iommu/dma: Add config for PCI SAC address trick Content-Language: en-GB To: Joerg Roedel Cc: will@kernel.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, hch@lst.de, john.garry@huawei.com References: <3f06994f9f370f9d35b2630ab75171ecd2065621.1654782107.git.robin.murphy@arm.com> From: Robin Murphy In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 2022-06-23 12:33, Joerg Roedel wrote: > On Wed, Jun 22, 2022 at 02:12:39PM +0100, Robin Murphy wrote: >> Thanks for your bravery! > > It already starts, with that patch I am getting: > > xhci_hcd 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000f address=0xff00ffffffefe000 flags=0x0000] > > In my kernel log. The device is an AMD XHCI controller and seems to > funciton normally after boot. The message disappears with > iommu.forcedac=0. > > Need to look more into that... Given how amd_iommu_domain_alloc() sets the domain aperture, presumably the DMA address allocated was 0xffffffffffefe000? Odd that it gets bits punched out in the middle rather than simply truncated off the top as I would have expected :/ Robin.