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 6341CC433EF for ; Fri, 5 Nov 2021 15:48:07 +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 233906008E for ; Fri, 5 Nov 2021 15:48:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 233906008E Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=xenproject.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.222510.384747 (Exim 4.92) (envelope-from ) id 1mj1Rd-0003yW-Ly; Fri, 05 Nov 2021 15:47:57 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 222510.384747; Fri, 05 Nov 2021 15:47:57 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mj1Rd-0003yP-Ik; Fri, 05 Nov 2021 15:47:57 +0000 Received: by outflank-mailman (input) for mailman id 222510; Fri, 05 Nov 2021 15:47:55 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mj1Rb-0003yJ-Ty for xen-devel@lists.xenproject.org; Fri, 05 Nov 2021 15:47:55 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mj1Rb-0001sN-P9 for xen-devel@lists.xenproject.org; Fri, 05 Nov 2021 15:47:55 +0000 Received: from iwj (helo=mariner.uk.xensource.com) by xenbits.xenproject.org with local-bsmtp (Exim 4.92) (envelope-from ) id 1mj1Rb-0005he-Na for xen-devel@lists.xenproject.org; Fri, 05 Nov 2021 15:47:55 +0000 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.89) (envelope-from ) id 1mj1RW-0006TW-9J; Fri, 05 Nov 2021 15:47:50 +0000 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" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenproject.org; s=20200302mail; h=References:In-Reply-To:Subject:Cc:To:Date :Message-ID:Content-Transfer-Encoding:Content-Type:MIME-Version:From; bh=WK95rS3U7D7PlYqAjxWco2D1Q6J5eJ8pU+e/1MfMVf0=; b=yaoHUC+M2m7kYv1JQZypxVVeTF ilG+Jo+JsU2lD/L8No2Hi/Ow2X2qB7EAYqel+NSMSjkESvcBj3EDxFGQmsOc1p4MJh8EGoZZbKefW pOwS1Yp5qNM2TyGvDkoa6j5EqTQvLCx8kdcB+Sg+igKW3YLC+b98UfDVgY40ENZWMdbI=; From: Ian Jackson MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <24965.21029.795504.152439@mariner.uk.xensource.com> Date: Fri, 5 Nov 2021 15:47:49 +0000 To: Roger Pau =?iso-8859-1?Q?Monn=E9?= Cc: Jan Beulich , "xen-devel\@lists.xenproject.org" , Andrew Cooper , Wei Liu Subject: Re: [PATCH v2 1/6][4.16?] x86/x2APIC: defer probe until after IOMMU ACPI table parsing In-Reply-To: References: <43d8cc88-aae0-5a82-7b4b-756dd54dd223@suse.com> X-Mailer: VM 8.2.0b under 24.5.1 (i686-pc-linux-gnu) Roger Pau Monné writes ("Re: [PATCH v2 1/6][4.16?] x86/x2APIC: defer probe until after IOMMU ACPI table parsing"): > > 4.16: While investigating the issue addressed by the referenced commit, > > a variant of that problem was identified when firmware pre-enables > > x2APIC mode. Whether that's something sane firmware would do when > > at the same time IOMMU(s) is/are disabled is unclear, so this may > > be a purely academical consideration. Working around the problem > > also ought to be as simple as passing "iommu=no-intremap" on the > > command line. Considering the fragility of the code (as further > > demonstrated by v1 having been completely wrong), it may therefore > > be advisable to defer this change until after branching. Thanks for the frank analysis. > The main issue here would be missing a dependency between > acpi_iommu_init and the rest of acpi_boot_init, apart from the > existing dependencies between acpi_iommu_init and generic_apic_probe. I have been thinking about this. I'm still not sure. > > Nevertheless it will then be a backporting candidate, so > > considering to take it right away can't simply be put off. This part confused me. Under what circumstances would we backport this ? AIUI it would be backporting a potentially-fragile and not-readily-testable bugfix, for a theoretical scenario with a straightforward workaround. Ian.