Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4855120pjb; Mon, 27 Jul 2020 06:56:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhuyLvBSgh0XdjZDCOvVSPSScK1pSzYFc9l0HFW7mT2Qrb+fCMNfU9RfV/zhBQ+4aJy5Ql X-Received: by 2002:a05:6402:3137:: with SMTP id dd23mr5671879edb.230.1595858205345; Mon, 27 Jul 2020 06:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595858205; cv=none; d=google.com; s=arc-20160816; b=bw4+1Xt8O/yINc/btw5JKyEmLQ7bexmRfZ6oQdmDJI3s0rd35Rm6zLPcvx6Zh4mWnq GRUFw/AMUDPqGSXoxnHFW2rOO7kQ8K0D4lsYcEPhw8Cani1HA81wKJldLxRMyvHezSWF VpjJSKbFfnHDfMJ4K90F5bgki3xQoGldhTLY8VO8lfb229yOra43bDs+TOX4ImsVYVf2 3ucFwnuv4gGRVMldyJ6y+sWlxsZdkuU5bHXIGnYT0uhZVmuATsOmWTXCmrZ5xmJNnq2r cDapDtliDr+G0rHyLRbRCG6Ucbk1PVD3UMzGGlZtgeQeHAbuC3c7JeU3XZjhBqAI2IUI QumQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=eG1kw9cByLDLba+9JXhHfz3Jq5+C2noEAEOZxdZDOEk=; b=Ao4BJsx/4omDE4oY6Gad0zhpBPNP591CIVzeUrC11i+ylPyczZx/oRMWu4Ld47JWy1 RQvv/jg3MjKWZhVfhm847XfmUdBtUG8Roj8IB0bN0MI6pofNQWyVEa8k2zFvJWqTz7Et oJEVBSL4eOF5I8eYOSMQBrZQiiMoFZU8FvS4o3APMnN2n3yRnOrORBU6puW8qf9lAjCd 0GPIlat+vRUjFJue+9UnyKJBBFTXCBkhVy0wxKn/VbuI02ivvOHLoS4/FeoCOMR0Ldw5 0NyDHhnHs0DitQiQcIEpZKHeO1tTuaVuWErueyUOP/Kte+Ld844kDwLgrWJ0T7/SDGMM KjJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=zSAzepY+; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j8si5491472ejs.237.2020.07.27.06.56.22; Mon, 27 Jul 2020 06:56:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=zSAzepY+; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727988AbgG0Nfs (ORCPT + 99 others); Mon, 27 Jul 2020 09:35:48 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:55718 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726298AbgG0Nfr (ORCPT ); Mon, 27 Jul 2020 09:35:47 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1595856945; 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=eG1kw9cByLDLba+9JXhHfz3Jq5+C2noEAEOZxdZDOEk=; b=zSAzepY+nxICGlsy0aLvGhyY5To3CUHknHJ+PYLwz3xhhDjTn/M/t5l0PHdLorbbFiSjuE l3rYTa+u9l9omHyIKN1yvGLxgL54UhdTHBxyeJpMy3RR/XYF1kr7gC1vnVIPc3biZJOZ84 AyJK7KR3dhWCZ10aS2NQWCerLL2D+ILCgxkqSd9TKPltc5uibBxgZxWxRjwDeQfGNsBO+j u+ibZY7AchpxvcI+aQVKu2Po5+iQD64ITqEoSM1N7gpRkMbTomfy5I+xTfkZwaAdE75upb oizpDHlIyMuSUnkBtqfvNlxn+5ZQAXrfssVOgXGqSaw+UgF+o2N1KBJpWgyUng== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1595856945; 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=eG1kw9cByLDLba+9JXhHfz3Jq5+C2noEAEOZxdZDOEk=; b=JPnziurFtgLjN9iHatLlqALT8UOFEdyfw7cnRhaokIoLIZppTqDerD6CLISSjJ2RBfECW7 qFNPAjxy7f19vQBg== To: Marc Zyngier Cc: John Keeping , LKML , x86@kernel.org, Ben Herrenschmidt , Ali Saidi , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH V2] genirq/affinity: Handle affinity setting on inactive interrupts correctly In-Reply-To: <875zabyeyo.wl-maz@kernel.org> References: <87k0z2s2q3.fsf@nanos.tec.linutronix.de> <877dv2rv25.fsf@nanos.tec.linutronix.de> <20200724182422.27ddced6.john@metanate.com> <87h7twu1cp.fsf@nanos.tec.linutronix.de> <875zabyeyo.wl-maz@kernel.org> Date: Mon, 27 Jul 2020 15:35:44 +0200 Message-ID: <874kptcc7j.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Marc, Marc Zyngier writes: > On Fri, 24 Jul 2020 21:03:50 +0100, > Thomas Gleixner wrote: >> Right. My brain tricked me to believe that we made activation mandatory, >> but that's not. >> >> I have some ideas for a trivial generic way to solve this without >> undoing the commit in question and without going through all the irq >> chip drivers. So far everything I came up with is butt ugly. Maybe Marc >> has some brilliant idea. > > Not really. We have contradicting behaviours here, where some > interrupts want to see the set_affinity early (the above case), and > some cannot handle that (x86 vectors and the GICv3 ITS). We could key > it on the presence of an activate callback, but it feels fragile. Yes, I thought about that briefly, but yeah, it's fragile and bound to break in weird ways. That said, we should make activate mandatory and actually set up the affinity during activation correctly. Thanks, tglx