From patchwork Thu Jun 23 08:24:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 12891924 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id B017DC433EF for ; Thu, 23 Jun 2022 08:25:39 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.354577.581746 (Exim 4.92) (envelope-from ) id 1o4I9M-0005V3-Md; Thu, 23 Jun 2022 08:25:16 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 354577.581746; Thu, 23 Jun 2022 08:25:16 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o4I9M-0005Uw-Jv; Thu, 23 Jun 2022 08:25:16 +0000 Received: by outflank-mailman (input) for mailman id 354577; Thu, 23 Jun 2022 08:25:15 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o4I9K-0005Uq-MO for xen-devel@lists.xenproject.org; Thu, 23 Jun 2022 08:25:15 +0000 Received: from esa1.hc3370-68.iphmx.com (esa1.hc3370-68.iphmx.com [216.71.145.142]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id fecc906a-f2cd-11ec-bd2d-47488cf2e6aa; Thu, 23 Jun 2022 10:25:11 +0200 (CEST) Received: from mail-dm6nam12lp2175.outbound.protection.outlook.com (HELO NAM12-DM6-obe.outbound.protection.outlook.com) ([104.47.59.175]) by ob1.hc3370-68.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 23 Jun 2022 04:25:08 -0400 Received: from DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) by MN2PR03MB5008.namprd03.prod.outlook.com (2603:10b6:208:1ac::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Thu, 23 Jun 2022 08:25:07 +0000 Received: from DS7PR03MB5608.namprd03.prod.outlook.com ([fe80::40af:d5f4:95eb:d534]) by DS7PR03MB5608.namprd03.prod.outlook.com ([fe80::40af:d5f4:95eb:d534%7]) with mapi id 15.20.5353.022; Thu, 23 Jun 2022 08:25:07 +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" X-Inumbo-ID: fecc906a-f2cd-11ec-bd2d-47488cf2e6aa DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1655972711; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=IELzLEEcLQqTiUa/SGuozgRncB3NPp4bYarUlY1m4ko=; b=hiQFhmnP5gpWGy+3B2/9YVKNc+9EDFi+zLjIanvcbesdjSpCDWpoLa3n jm7RtQIczMNRH5zdfZBKjt1W5yVUR0M/4BzR/fS9+mL/mw8SWOAC7vpvV mDYN3C8jKKo9IldIEZsNe4vqrvA+H2X9QdHcxZz5yuvvZaxy8IBiPZ/vV E=; X-IronPort-RemoteIP: 104.47.59.175 X-IronPort-MID: 74660987 X-IronPort-Reputation: None X-IronPort-Listener: OutboundMail X-IronPort-SenderGroup: RELAY_O365 X-IronPort-MailFlowPolicy: $RELAYED IronPort-Data: A9a23:2Q9qqavYT/a7t/zlgeh5J2+PWOfnVEpfMUV32f8akzHdYApBsoF/q tZmKW3UOPeNa2fwfd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YrPr37tuElbhHXziq4boVoXLOP+BgzveGU8V4v1O LBph8xVv4DmU/5TyWQm1/AygPg2DEh5zvJ0lmDm0bupsT/WXYTF9dBrZgxSGqV12MQ+PVHlI 5b1WOQsJRaSTnamj7m2tTOXxZ20mKpvHsZl/IJhXA3a/pVVFZol/1RwKppKuZPIMqjg7pXUd WGTfusr8q+SGnqI0ww5QJUsZyRtndaJGb0fqFNgL3X79FspgEH86Ip/r1iop4+zuNCd3A93Z WjDk1JrsA6ciZEV9MIOA8+KfHHe1DlcFbrDF+4B2jBOeUuB0/twqSHkIndotvaMKA18A== X-IronPort-AV: E=Sophos;i="5.92,215,1650945600"; d="scan'208";a="74660987" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gvE3DmcvBDlDk9MuabAx6sH76/26KnK2IUspBj7orUosy1SzrSl189Va8febC/IeQ1QZyRjMAnH5WZyG4JBvLHBYbJK1mPswkfJV0I9kglDRTF1xMFm+jtXQW4vDtPPi+zAZFVBrl0OH065Zdwln7r7HEuCqAJ3I5tIkmaTSbqtlS/UFmDJ+8l+ThmAILis/AheiJlOPTmOUUpmr3jYKKl4pPgH5Ve/pXopz7tArWyP8OWAldyAT3dDqFa6q4oKMoTsQCcg26fObgwMMuZQijJ5KV4QoRGuQ7dQmxh6iZmHz308ez800TGTdCX7hBf1RF95MAIheQ+vnYN8TLL9DxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=34i3CXDk1TptQVT7grwKaTQ6s2KDkyL3tOrtsxFaFFw=; b=Mq62sujjvkZRNahYthFbP9vJzHSOGvN1tKPGIgKqg4fcW34SzBwAOvIr3Szdo8oOtxDE6O6DU5aIM7hZji2s+y+sxvAq0CKiyBDvvk4rDQk0kBCT6CJ2FAjtA3f2A0xYOYASr+X1CNNVJrW8A/wHfGJjdMQ2qRahR2dzBRDwmhonG5pRflAV2yqlg3kkeibs+g2Z4iSicf4QGN2LtIVxq8u41O+LjeZlShxnAqU9bQ6BYIabD1PiemzdCv57QRBGXcOMI5dJtyuAczXoX8zLjbwv+euPErK6IGorX+pQXNKq8QZAlVjiebv9e/WBknsupV97uPkPkpA11Ys8gp52Bg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=34i3CXDk1TptQVT7grwKaTQ6s2KDkyL3tOrtsxFaFFw=; b=GR08wd7mV4EuXCa//wSGW/nPCgyLpLUSeHfAd4rqWbdI3mp6M9MFHK5OXmIFd2sxiMJ4NJ4MZD2fFvLZwv05+1zx0OxQnzmisOB0cyQX+Qa8FLmu2QV9abCi5i1o4aW5tGxQl6WycUxP1qSxiQeziTLj6U5ZPZn4aO/n9qgjTQg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com; From: Roger Pau Monne To: xen-devel@lists.xenproject.org Cc: Roger Pau Monne , Jan Beulich , Andrew Cooper , Wei Liu , George Dunlap , Julien Grall , Stefano Stabellini Subject: [PATCH 0/6] x86/irq: switch x2APIC default destination mode Date: Thu, 23 Jun 2022 10:24:22 +0200 Message-Id: <20220623082428.28038-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.36.1 X-ClientProxiedBy: LO4P123CA0026.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:151::13) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 18bd3a84-fbba-42ab-c5e7-08da54f1e128 X-MS-TrafficTypeDiagnostic: MN2PR03MB5008:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hlAvJu2liI56PiPhRK5SfZWomfv22P99aBjHTqPefT4qV6OQCySu6h6HS/BzVVxJ8FTXhuym47pPouBXc80lZFmVuiGSjQ6sblILrWHGsrGysA3JIneMHrCyyRh0mjdA3ehLmEbGNzG60FiGnVSVFJFZXc4kcTnb4ymAjFOZcYnWVci/i6pCDZxCQyE6dzpfJcPfXURvAdidG0tGTVgfzqoOlzUu8hX3Ep+ey50ZBU8kyvY7QDrPMWnOCQ9x9H6w6Oik68bPjs4m4pQhwZZjQa/JvqfsjXnuLRQ2bXoPrh22+G82qQbqA77J5LoRDVbD2hQ4J6CE3tzgGzie4vw0JxS8eMvaUZjvNiMxLcDfyhaVeI3mZ2iLpbQmq/zSje5WupQWYvdC+1MGnl/rMfNwoK/ggyu6BiS8/zLHq6v9J43cWZbF8X6AhsDJQsVhC9jWvGKOadZ66uy33r+AZj+Hc9oVqwfrRj209XMGSzeRJsPcqsI1pZCIeDDxG4EPr0fzXUnD1PTuO/k7QtsXGleu1/+mfZ8v0wKJ0eGrl6LV/V262FxzQEwuzp/Imd5v/pMDwKCSdpk6alCREWU0N+aaxqMT32T1oRg+1pd1HXUnnCWmJVx9GEgdY6MKSeQ0wnmfj40OlNTEorTfp1iwHVN3FS8mslaW5/hkgYzRkyRMSYVCIvb1lUPWyXyYJnz8a7mxE0rVJl7fxoSkBEidQAi1mA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR03MB5608.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(136003)(366004)(376002)(396003)(346002)(39860400002)(82960400001)(6916009)(2906002)(6486002)(38100700002)(5660300002)(316002)(86362001)(8936002)(6512007)(66556008)(8676002)(36756003)(54906003)(2616005)(4326008)(66946007)(6506007)(83380400001)(1076003)(26005)(41300700001)(478600001)(66476007)(186003)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?7ADyM0ae9dpMICNV47YBdXkRAew/?= =?utf-8?q?pp0JNwGpi1gMlVcMhJ0aLVBZbX20kCbNL20B3GBkrVB2k6vQUZfa1//53iZX85zgb?= =?utf-8?q?f0jMpxQ5eB2OLVt7sy8699pEog8be31qpSDOvQuXPhI8EVVQjSeAsy+gUiGqVPe3G?= =?utf-8?q?7OZX83KIJ+vwCWYlCBAece8BaSw/2K2LvDbAYlOneJsiTrT0bVIZRSzT7Bt76nzoF?= =?utf-8?q?OzOkKVYrZSiKAQr/wNAHIkonMryi/vJ2ZclPfeG+QFuaxvKCcHBiP0F5RcGOUIDUt?= =?utf-8?q?OsbFJbg6c0hMaKeSgeJdlgoLvLpj7IjOBsjWhZnY0gdGEJb5FHAhHoNbFvcMbhIxq?= =?utf-8?q?ekXSeNSAQQk8QfSq9K09MJJlZW2oMtJ3fAQQhBpAjsHkSYAmgPrYfzeFq1xfnbmpp?= =?utf-8?q?+3UO20Fy2ik9uMVSsBIFnXcX8kyZl1WXh+yvMKrPPi/cYYSnEcxzW4Sdy/o9zTRuH?= =?utf-8?q?PqE1veH8/wjMsmPP9plIfs4uhZ8od5Lg126Cufhtmj+lBkvsxBzBj3Rjk9Pi/dsHg?= =?utf-8?q?Ox+eJON+79m2NZKzCyNc+UAkuvG/O3vPiuFXZ7NPFv9j9DyEgL6c0ARRw190KNdXF?= =?utf-8?q?Mw1shSPEIuHP9/NSonAZErIqottujLTdw9q46seVCNLofNv9d3yeC0AUpeopzFfdH?= =?utf-8?q?+bcCtp9iyWuu0/fACf+tvXkJpkUu/c9ByFbzXM7y1gk1nfSZDO5OxRKDWmeD6bS9x?= =?utf-8?q?l5lk2IeM8/uDdOnkAcy9cqhqzCwngN79/lw3m1YMpKWYRdVGJgtOgUwINCkv9I9TW?= =?utf-8?q?KsqsXHh91zMwUXHi7hAldhirh6WKoYteXDmOrbz6hMPD/dQgXxugzXcuwzgLlB+0D?= =?utf-8?q?cHGR/+SPBDATAKiHBGf2++EpYs2kGFz7TmvtBAE/vVuK8IHBOsySg71/rND22BYqt?= =?utf-8?q?uRbqOyeb0t5zs6piJCEZe81pVfYbOIUlbm3bZAfUslrRZ0MwFEDERwggf6ds965Q+?= =?utf-8?q?6YdphDMjBSwxloS0uOygoM4d4nsc/RVIX4LCGh8OD5Ch+y/aaYKOIva2yRthAbdcK?= =?utf-8?q?u477UmIogKpdwR27bPvzI2jNZBNsTQQ8TrSeZbWxqTlhUXvroxl2R5Yr2itVEB78N?= =?utf-8?q?ZXLYeBOFNArBpaW4VHpyK9CyYjjcEQscKITegFVh8YKm29KD72/QM1auhhM5ejHuW?= =?utf-8?q?IXe+x0+j84OVr5m0s0nSfnWE/5K3MQWfUdnrisAFr3kv1voBcc64SlN/KaYy9nuUO?= =?utf-8?q?yF+3rhzsVWDz2balJL3IkVgpjrVtR2oHckCdaJMJyNIZcA6FulOChOZ+pT/lcCZ9B?= =?utf-8?q?NurmPxSH/Osg+bnbMzZMIzPYcKpUHCqB15X4oa1oraUfoTHtjRWpThhnZkL3otXtP?= =?utf-8?q?A6PfvkGEZyJ1BP4m6warBDRguGjQbSMyJeY3gBior3WOhFGqrJDb1cIEEMB2feL/1?= =?utf-8?q?ziVAgASFFdLU0XCJiYHIy4WnQBz2q36zNVU45RsdWvn6hJZJuCbpM5KRsXlImldLX?= =?utf-8?q?oIyJoA6fnZMTn5xJae+qHjybuovV3PMPASTb6y832wYxz+f5eFQ3/E0FxL7NbTUA5?= =?utf-8?q?w9ugkPiEpRaa?= X-OriginatorOrg: citrix.com X-MS-Exchange-CrossTenant-Network-Message-Id: 18bd3a84-fbba-42ab-c5e7-08da54f1e128 X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2022 08:25:06.9774 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cp/tKhkMCM07vJGFSPR0m5qKnJzSu9ywzbipnVae1oOyaZr/aCV4hmsXl4s67HI1dFktJA9EVoZp9o51sPj8Wg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR03MB5008 Hello, The following series aims to change the default x2APIC Destination mode from Logical to Physical. This is done in order to cope with boxes that don't have a huge amount of CPUs, but do have a non trivial amount of PCI devices using MSI(-X). The default x2APIC destination mode can now be set from Kconfig, and will default to phys in order to reliable boot on all boxes. Further patches are a bit of cleanup related to the interrupt limits reported at boot, and making those values more realistic. Thanks, Roger. Roger Pau Monne (6): x86/Kconfig: add selection of default x2APIC destination mode x86/x2apic: use physical destination mode by default x86/setup: init nr_irqs after having detected x2APIC support x86/irq: fix setting irq limits x86/irq: print nr_irqs as limit on the number of MSI(-X) interrupts x86/irq: do not set nr_irqs based on nr_irqs_gsi in APIC mode docs/misc/xen-command-line.pandoc | 5 ++--- xen/arch/x86/Kconfig | 29 +++++++++++++++++++++++++++++ xen/arch/x86/genapic/x2apic.c | 6 ++++-- xen/arch/x86/include/asm/apic.h | 2 ++ xen/arch/x86/io_apic.c | 10 ---------- xen/arch/x86/irq.c | 15 +++++++++++++++ xen/arch/x86/mpparse.c | 5 +++++ 7 files changed, 57 insertions(+), 15 deletions(-)