Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1210C433EF for ; Tue, 28 Sep 2021 07:12:46 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5F29960240 for ; Tue, 28 Sep 2021 07:12:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5F29960240 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.197608.350752 (Exim 4.92) (envelope-from ) id 1mV7I0-0003MO-GE; Tue, 28 Sep 2021 07:12:32 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 197608.350752; Tue, 28 Sep 2021 07:12:32 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mV7I0-0003MH-Ca; Tue, 28 Sep 2021 07:12:32 +0000 Received: by outflank-mailman (input) for mailman id 197608; Tue, 28 Sep 2021 07:12:31 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mV7Hz-0003MB-8j for xen-devel@lists.xenproject.org; Tue, 28 Sep 2021 07:12:31 +0000 Received: from mail-wr1-x433.google.com (unknown [2a00:1450:4864:20::433]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 46f61a1f-09da-4549-9cc3-3a05dd2271d0; Tue, 28 Sep 2021 07:12:30 +0000 (UTC) Received: by mail-wr1-x433.google.com with SMTP id t8so56299225wri.1 for ; Tue, 28 Sep 2021 00:12:30 -0700 (PDT) Received: from ?IPV6:2a00:23c5:5785:9a01:ad9a:ab78:5748:a7ec? ([2a00:23c5:5785:9a01:ad9a:ab78:5748:a7ec]) by smtp.gmail.com with ESMTPSA id r6sm2032203wrp.41.2021.09.28.00.12.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Sep 2021 00:12:29 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 46f61a1f-09da-4549-9cc3-3a05dd2271d0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:reply-to:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=GaYYYFgnPlLR3k+/irQBsFsyl5Li0H3pN+dzpabEdF4=; b=EcS5Yt22pkp+j9/fwmecfi/V6S/6356P/dLrjU6yYABKDoEvmG+fWG6Yn89JaVcMTX BS7k6HO7vB/vcPcTiZQ1PIf5e22heEFF+2Fm8iHnRpJYdWH5DGAggqYC6trz2PIkk4ZY dZ4V9G2WTC8+sfYBN4IdXo5hcWfwFWDxIqoW8usWU0nVGJUYBvjVVE9omZigTi+OINxe l9nyBmQuwV+XkxRGtOgqqZHGW1/x+wMI1Hc0SEos+40+AYk517DdCCwaXb9Kdsyq692S Y0Bjrxudo8vmyWV4DYfLbn3Cm+NCanFjeA9aDpx+icKWYtptMmJo0efr97bh9EbreEAN yyPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:reply-to :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=GaYYYFgnPlLR3k+/irQBsFsyl5Li0H3pN+dzpabEdF4=; b=PnGJGzjFHfFIqhRW5JtF7vaIndo2kKTr92VrKGfEeOsbnJv7pbk58szgIz9RKLTr1P RRCO8fehavd50YGs9EhNzOyWg66qwrnTAeZtsyWxoYZLe8rNVF5rRbhGr2GdTHX6AnA7 4SVi+TN2L+ZdQcan9bXekUNbtkDrbCzIy/gwKfieoHV7hsY/EPFCWFlfcOL6UFKuuCCu 11HeqwACJuAFUcXSsp+N3eo7zcRRPK4Cpp6+Ga0lXDgGeqnHW96aS0NYdNrksIpGCO/t 5SP94aalTf4u80h8XIfxwuowYBJAlX4uw/e+0T+cAOKqIJExHFYW0sTwX6bLp/jDdabX 3JeA== X-Gm-Message-State: AOAM531a9y86Cz2lEIO+pTrznrRErLLvofN5lWPUdMtGDQyn71Vg/rtg 9FS6lwYRQVykL9NAjO8ngeQ= X-Google-Smtp-Source: ABdhPJyTtWBvdFtmruKesMEj/0t+gM9zzmpxxjy8MbSrdKRzujo67CTP/NR4DY/UNnrjrLTXa975ww== X-Received: by 2002:adf:e30d:: with SMTP id b13mr4592901wrj.438.1632813149466; Tue, 28 Sep 2021 00:12:29 -0700 (PDT) Message-ID: Date: Tue, 28 Sep 2021 08:12:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.1.1 Reply-To: paul@xen.org Subject: Re: [PATCH v8 1/6] AMD/IOMMU: obtain IVHD type to use earlier Content-Language: en-US To: Jan Beulich , "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , Paul Durrant References: From: "Durrant, Paul" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 22/09/2021 15:36, Jan Beulich wrote: > Doing this in amd_iommu_prepare() is too late for it, in particular, to > be used in amd_iommu_detect_one_acpi(), as a subsequent change will want > to do. Moving it immediately ahead of amd_iommu_detect_acpi() is > (luckily) pretty simple, (pretty importantly) without breaking > amd_iommu_prepare()'s logic to prevent multiple processing. > > This involves moving table checksumming, as > amd_iommu_get_supported_ivhd_type() -> get_supported_ivhd_type() will > now be invoked before amd_iommu_detect_acpi() -> detect_iommu_acpi(). In > the course of doing so stop open-coding acpi_tb_checksum(), seeing that > we have other uses of this originally ACPI-private function elsewhere in > the tree. > > Signed-off-by: Jan Beulich Reviewed-by: Paul Durrant