Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7274837rwb; Wed, 23 Nov 2022 04:40:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf4GthiNunY3gM6ByeAuFGX6niCKugtyJsRvAh6wRGNgoIDLwjr3YIglc+5aHW17e/iH6ptJ X-Received: by 2002:a17:906:2bd9:b0:7ad:934e:d542 with SMTP id n25-20020a1709062bd900b007ad934ed542mr11292547ejg.20.1669207213185; Wed, 23 Nov 2022 04:40:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669207213; cv=none; d=google.com; s=arc-20160816; b=Yn7BeFsAW5mVp//y+1YSeHs0xa2Nec7ZOPV2VrjroocRnS1Oxz64jjHPyfP6NKNFJP 350/tvohSzOB5v/qTvL4P4m2wU8c5xy7QmzzNPu7G4UUAYpqNyuOpgha0LrdQk5xHlkj ei9PXA47NiQJOXIu92zqSCA+y2fiqig0DtMdonovxN+TmfBbbrA9cduH6VlEYeqvA6ax geqd7lcpEYqeZf+Rr9GYXbn6/BSGvUzwspoPXwK2o6ZMXz9AzoAB5Qml4sdFI4mdOETy Mcdu0Z0TKYIRHnBAB4zr+FWNk0TeS20qgVM9xjlzlUJoWgWPsuW8t+HCRmuEDw3siPva 9xAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=L7fuM0rr64qY+X/Z1scEYp+Nkr3OluGehBmXbPVIKos=; b=M1s12ueYyG2gK16Fbep0OEZylfdVxyk+b+5voXT1YtE2OU5aD7zF1FLBl0AClfWt9Y BbDm7OxxPIWCotpN8DZ3EOv90Oz7sLZAEqG6EzSnyCcJHS/N43WT8uXXbmjVj/CEb6qG 1mn3oeIOAZhQPzIF4XRhXY7n4r+VOzcWHtWCA5Liz1R0O5s0kJrbojqxFvAx3AKZ9Xdk FLxZdxyVhkXkXBnGR56pAJrPCy0JFt3K8E7UZn7yRgLSbUzA0rBmjSWxD62Ek8uwGoiW nO8vXAFsRYaWqu/dT1WcjQFaAzrR8JZqNxK0Ia5/ZmBgMflbuzPV3WBmwnB+B95Xg+9f vSHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=KdIoArcu; dkim=neutral (no key) header.i=@linutronix.de header.b=ivHAioTs; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e22-20020a17090658d600b007b2a6aaff06si16951776ejs.50.2022.11.23.04.39.49; Wed, 23 Nov 2022 04:40:13 -0800 (PST) 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=@linutronix.de header.s=2020 header.b=KdIoArcu; dkim=neutral (no key) header.i=@linutronix.de header.b=ivHAioTs; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237117AbiKWLaL (ORCPT + 89 others); Wed, 23 Nov 2022 06:30:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236842AbiKWL3b (ORCPT ); Wed, 23 Nov 2022 06:29:31 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B03EAF1DA6; Wed, 23 Nov 2022 03:29:01 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669202940; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=L7fuM0rr64qY+X/Z1scEYp+Nkr3OluGehBmXbPVIKos=; b=KdIoArcuq7T4jBPsKvAEhVYH+QaHYh5TM8g5fqZgwxpOmh0t4H9vabSKB/ChLyQ/FGrtly vuPzj5rQTxzyWUEO3ZDJLZC8MfzpYs1qnXsvbQgK62ScVbrzz00drbUal5OwF2TCIsglkK gs6sDjoPAMsXyS1ma50zcb4NtmTd6lZLtbuuaK3CEkJZ6CJb7pI94m25b/a0YqR6Rasn4W Kib5C9bhjyczhgooraZtmKZ1QoOCbaGSM5xtBkpg5NnIm/SDe2kYvmVWYWMCh+O5fV2GDN qyktXX5k/fXlT2lu5J0d635SxmEanGNTkFLIyEN1YsggBZZMlwIfpRqROfSAIQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669202940; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=L7fuM0rr64qY+X/Z1scEYp+Nkr3OluGehBmXbPVIKos=; b=ivHAioTsT3h2ONpuHwI5UY8yzQ8oaxLtWMkZhfGDTA6u2SsfAgHi6zczbzQaYPIfGalgTU 2TrQoLus0kp4jhCw== To: "Tian, Kevin" , LKML Cc: "x86@kernel.org" , Joerg Roedel , Will Deacon , "linux-pci@vger.kernel.org" , Bjorn Helgaas , Lorenzo Pieralisi , Marc Zyngier , Greg Kroah-Hartman , Jason Gunthorpe , "Jiang, Dave" , Alex Williamson , "Williams, Dan J" , Logan Gunthorpe , "Raj, Ashok" , Jon Mason , Allen Hubbe Subject: RE: [patch V2 02/33] genirq/msi: Provide struct msi_parent_ops In-Reply-To: References: <20221121083657.157152924@linutronix.de> <20221121091326.604272160@linutronix.de> Date: Wed, 23 Nov 2022 12:28:59 +0100 Message-ID: <878rk1gb9g.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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, Nov 23 2022 at 07:57, Kevin Tian wrote: >> From: Thomas Gleixner >> + * One solution is to let the root domain handle the initialization that's >> + * why there is the @domain and the @msi_parent_domain pointer. > > This is the part which I don't quite understand (sorry with limited knowledge > in this area). > > In concept a hierarchical model has restrictions added up when moving > down to lower layers i.e. presumably the root domain decides the minimal > supported capabilities. In this case there is no need of a real parent pointer > as long as every domain in the stack incrementally adds its restrictions to > info->flags. > > I can see why this is required for x86 given that MULTI_MSI is supported > only with IR. and we cannot make vector domain inclusively claiming > MULTI_MSI since it's completely broken when the vector domain becomes > the parent itself, in absence of IR. > > Just be curious whether this intermediate-parent-deciding-restrictions > is generic instead of x86 specific, e.g. is it possible to have a 4-layers > hierarchy where the root parent wants to check both two intermediate > parents? Sure. Nothing prevents you from doing so: dom4: .init... = dom4_init dom4_init() do_stuff() invoke parent init dom3: .init... = parent_init dom2: .init... = dom2_init dom2_init() do_stuff() invoke parent init .... See? Thanks, tglx