Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp242390iob; Mon, 2 May 2022 18:16:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0IoV4hOQqIRvJatVC7OoB7qADkPLwBf+MYPdpaQgVN8zs1OATGdidIL08ThYPuZx0vVGp X-Received: by 2002:a17:90b:502:b0:1d9:a907:d845 with SMTP id r2-20020a17090b050200b001d9a907d845mr2140867pjz.162.1651540582926; Mon, 02 May 2022 18:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651540582; cv=none; d=google.com; s=arc-20160816; b=Vz5WdurKpPdw9KNxLX4dUJ9xD3zpTOhoOEHNs8MNBCJjOVkRcq3KAJbfdl/0A8XSB9 d2PqTN8ZB/eVtmlZLDjjEoMO62tCSAyHrqb831vdfLpOB1ssPQ/vfQgaWIBPLNb9S/v6 vTFl+Knd6O79kdH906GU4O3Qx1ArmhMYmBGZMHWheDHRza9XzVQmdA4Me2JVT8hc+2xu 5T35aYUDGVhywqJg3zWurBysAbC/RjPm1bftOeMKacD/To8ijxIbaSBP0U+E/gRGaFhM h5zB5TATlsAWKfgNT2mIRXuOO+yLmJrCPUmiHG50R+fKMJeoNeRq7kughVBP8tDmkPZz 2g5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=AGY4CVS//Cd51RpEFYmg5JyDhOouWYthTY1/Nr0uweY=; b=x20foWKk45ruobJiFncFJ1cz919lTCoVmi/k2wKvJ8TbGWgW/50m0aMgI4qOSett5D ouQbn+S5xsFNtd9182APAYMPBNURf8B8E1cn6Jfa6x0l4n0WTX67nufMFu4xTDqsmvPt txssr776lSizYwoGhdn3Oykoyoq9Il8c5pBqF3xodcEdIWMNVb6nYqfGkHGUZyJ8e+Xp PZe6Q3FADW8ZhQuoxueB9FGn6jXVvWHGrpBP3ucqWMt2AnfIDe9p59HccpANvju72+ke bnm9Z85F4fF560sdGaCyMih/NwXSxe3gCW1HgjKiV8kMJg8azdU0U3cgK8SZt2SE821S uOrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=njbWhNN8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s9-20020a056a00194900b0050a92f7d228si4316685pfk.143.2022.05.02.18.16.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:16:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=njbWhNN8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 89ED26006F; Mon, 2 May 2022 17:56:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385977AbiEBPtn (ORCPT + 99 others); Mon, 2 May 2022 11:49:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385983AbiEBPtk (ORCPT ); Mon, 2 May 2022 11:49:40 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F71611166 for ; Mon, 2 May 2022 08:46:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id C0EE2CE1B33 for ; Mon, 2 May 2022 15:46:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A1D8C385A4; Mon, 2 May 2022 15:46:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651506367; bh=AGY4CVS//Cd51RpEFYmg5JyDhOouWYthTY1/Nr0uweY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=njbWhNN8ibMkjRTDPRZcGaDo7SemHKG5XJ6k9wLgMbYLJj8XobJmklrPDBgj38+PH bt5b/rckNEx151/bvYIMZ/vcvkDM+QNmIZ3hDKAcg/Ipc5KglkeLQjdeT+hX94VJ9a Q0ygkTieOXvdgtFzmrQ0OfUy5puN5pmBhsjbMcm2rF+QnN57u34SchHIRcl9DfNZ6u qLDRjc9509SemOj4SZ4g3NBSq+Qph9sk8clZUQybLTw/+tRov5pNdJdZBgQ7GCP+uX HXVgiMOZEWQq/eGSa/P5H4IRwanN77L33P920KgfXuiUkUpVenFhZ2zogJ2jXI008I hLVuLc+nr5BVQ== Date: Mon, 2 May 2022 17:45:59 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Marc Zyngier Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , pali@kernel.org Subject: Re: irqdomain API: how to set affinity of parent irq of chained irqs? Message-ID: <20220502174559.78f5cbc0@dellmb> In-Reply-To: <87mtg0i8m8.wl-maz@kernel.org> References: <20220502102137.764606ee@thinkpad> <87mtg0i8m8.wl-maz@kernel.org> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Mon, 02 May 2022 10:31:11 +0100 Marc Zyngier wrote: > On Mon, 02 May 2022 09:21:37 +0100, > Marek Beh=C3=BAn wrote: > >=20 > > Dear Marc, Thomas, > >=20 > > we have encountered the following problem that can hopefully be put > > some light onto: What is the intended way to set affinity (and possibly > > other irq attributes) of parent IRQ of chained IRQs, when using the > > irqdomain API? =20 >=20 > Simples: you can't. What sense does it make to change the affinity of > the parent interrupt, given that its fate is tied to *all* of the > other interrupts that are muxed to it? Dear Marc, thank you for your answer. Still: What about when we want to set the same affinity for all the chained interrupts? Example: on Armada 385 there are 4 PCIe controllers. Each controller has one interrupt from which we trigger chained interrupts. We would like to configure each controller to trigger interrupt (and thus all chained interrupts in the domain) on different CPU core. Moreover we would really like to do this in runtime, through sysfs, depending on for example whether there are cards plugged in the PCIe ports. Maybe there should be some mechanism to allow to change affinity for whole irqdomain, or something? Marek