Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5997838rwd; Wed, 24 May 2023 09:25:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5owHz0tyV4KI0uIYcf+6Cz3ttMxNPclTpfgaSC4/ROGg/J3RdytGHmWD+Sp2syo6Zkt1vM X-Received: by 2002:a05:6a21:7888:b0:10b:f331:d1c0 with SMTP id bf8-20020a056a21788800b0010bf331d1c0mr9403467pzc.30.1684945555702; Wed, 24 May 2023 09:25:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684945555; cv=none; d=google.com; s=arc-20160816; b=gDqn3lfAY65msOYJKicu7kK5/dUUCY5mKeRIWjzQZ8ONfN2xzq57YS95Aol2mk93dw btEEV5XryDuD8JZawy1IBCEATOGf8/LffTgiFqfsx5vryFGAh+/eLz+RhgxIbJGxmaOQ JqYxCufnKG6zofWpcR86ZICbmtODlW1hg41JI6E5Cs7DULfAaIYbydIohHcZpNJSuNcz pyiLAr/WAS1YRsihi/VBd8JHpAVS5Rnmj1xNeKzDV5Uo6j29UC4GhHxmwdBnnbxLIFtZ T7RB8pGdJ/f55rqLGtJz0oQ6hsSuR3sLtDbp6mR0mpoxjTHG2dkK0Yt+25enE+yGvMmS OQrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=9/BFiR9WjSZPq/EuaxN0jvRDDD5ugdAe5QjD82M1rfs=; b=QqBOD91V2ulNW395J6FuYxOIf45DIZtn38wVsp40bAa0Za/Oai07v23RwDqCKjcmK1 x6f6RPeNTrth0OLhNWX12m5x6YvUcy5hoCi3XHQljGNcDgRnvSRszbLI9CPfWIUip4C0 /OsFbx/1Cy19ZSosBesz/Il63u9dKRm3VUtClrr5Q3qczaRkhYogtHdQYcPK/blM07RP szLUUFzDEHNO5cx5gl9rPxFatKdmmemI2+6HDVEzuuiI0FWUzWHglh7jyOX8s+Fmpy4Z 4ZRSHQjGezE7ncrcuIxM7Pv96WLxqD7iLm8SATzUqOfmKzP/V0gB3S8b/bZoGDinZxdY P83g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=O60Pvw1E; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q38-20020a17090a1b2900b00250365255b9si735578pjq.116.2023.05.24.09.25.43; Wed, 24 May 2023 09:25:55 -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; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=O60Pvw1E; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230017AbjEXPqf (ORCPT + 99 others); Wed, 24 May 2023 11:46:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235414AbjEXPqe (ORCPT ); Wed, 24 May 2023 11:46:34 -0400 Received: from smtp-fw-6001.amazon.com (smtp-fw-6001.amazon.com [52.95.48.154]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6B06197; Wed, 24 May 2023 08:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1684943166; x=1716479166; h=date:from:to:subject:message-id:references:mime-version: in-reply-to; bh=9/BFiR9WjSZPq/EuaxN0jvRDDD5ugdAe5QjD82M1rfs=; b=O60Pvw1Ek6Uc10Ipb9KQ79aWuq4fhWNZnxvG/TA6keMjY6rZEKG58zin jhZNVQ3WD3ZuP5m5nMZyOEuXl2cUjx+7WFm6en8ds/al8JxM/90CstFEg Xtyugw71+2TUoh5Bv0al6L3T4W184TVCJ7BZFLpavhmRcKZ3qRIH1G3Jf Q=; X-IronPort-AV: E=Sophos;i="6.00,189,1681171200"; d="scan'208";a="335305194" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-iad-1a-m6i4x-93c3b254.us-east-1.amazon.com) ([10.43.8.2]) by smtp-border-fw-6001.iad6.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2023 15:43:32 +0000 Received: from EX19MTAUWC002.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan2.iad.amazon.com [10.40.163.34]) by email-inbound-relay-iad-1a-m6i4x-93c3b254.us-east-1.amazon.com (Postfix) with ESMTPS id C180AE4889; Wed, 24 May 2023 15:43:31 +0000 (UTC) Received: from EX19MTAUWA001.ant.amazon.com (10.250.64.204) by EX19MTAUWC002.ant.amazon.com (10.250.64.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Wed, 24 May 2023 15:43:31 +0000 Received: from dev-dsk-mheyne-1b-c1362c4d.eu-west-1.amazon.com (10.15.57.183) by mail-relay.amazon.com (10.250.64.204) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Wed, 24 May 2023 15:43:31 +0000 Received: by dev-dsk-mheyne-1b-c1362c4d.eu-west-1.amazon.com (Postfix, from userid 5466572) id C18DD964; Wed, 24 May 2023 15:43:30 +0000 (UTC) Date: Wed, 24 May 2023 15:43:30 +0000 From: Maximilian Heyne To: Juergen Gross , Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , , "H. Peter Anvin" , Marc Zyngier , Kevin Tian , Jason Gunthorpe , Ashok Raj , "Ahmed S. Darwish" , Greg Kroah-Hartman , , , Subject: Re: [PATCH] x86/pci/xen: populate MSI sysfs entries Message-ID: <20230524154330.GA52988@dev-dsk-mheyne-1b-c1362c4d.eu-west-1.amazon.com> References: <20230503131656.15928-1-mheyne@amazon.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230503131656.15928-1-mheyne@amazon.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,T_SPF_PERMERROR 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 Wed, May 03, 2023 at 01:16:53PM +0000, Maximilian Heyne wrote: > Commit bf5e758f02fc ("genirq/msi: Simplify sysfs handling") reworked the > creation of sysfs entries for MSI IRQs. The creation used to be in > msi_domain_alloc_irqs_descs_locked after calling ops->domain_alloc_irqs. > Then it moved into __msi_domain_alloc_irqs which is an implementation of > domain_alloc_irqs. However, Xen comes with the only other implementation > of domain_alloc_irqs and hence doesn't run the sysfs population code > anymore. > > Commit 6c796996ee70 ("x86/pci/xen: Fixup fallout from the PCI/MSI > overhaul") set the flag MSI_FLAG_DEV_SYSFS for the xen msi_domain_info > but that doesn't actually have an effect because Xen uses it's own > domain_alloc_irqs implementation. > > Fix this by making use of the fallback functions for sysfs population. > > Fixes: bf5e758f02fc ("genirq/msi: Simplify sysfs handling") > Signed-off-by: Maximilian Heyne Any other feedback on this one? This is definitely a bug but I understand that there might be different ways to fix it. Amazon Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B Sitz: Berlin Ust-ID: DE 289 237 879