Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1310492pxu; Sat, 5 Dec 2020 11:04:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwk237aKwI0wmqyze3PeU2/EU57fVjLKesNDwCjI3recrAeD1d0v1pwLFi6Bsw3YEbp7ACi X-Received: by 2002:aa7:c313:: with SMTP id l19mr13378230edq.293.1607195091994; Sat, 05 Dec 2020 11:04:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607195091; cv=none; d=google.com; s=arc-20160816; b=MuBy3+VeisYlnNg8BqCplIZ37Kp7/P3bRtGaWWbIzx4HD8hjtysW/bLNt6ilrzTT4N ojeLgnVmpgZtZwBQPindbK1EpXVVwC963AGnVzxUI+jTnfR3Yd8nuvPRVxp/DpEg+1i2 vSbp6UtdZCVv/JPG0/KLpSZ1Dm8duXCJRqnYqORKoQR08aGKZrCTMr1/vER+CiNWAW5S ReVGnI8zLOWlzePACae4OPLWK7QiDNfIGK02lIXNSa08E2yfH76R1PijEZutHhX/nGDq FX/4N03+YEHRlEmcGD7grkvZ2P+TrfCC8ukWQ+Q2SAHsXHaVCU9hhBYcuGgA8yUCOAw/ EtAg== 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=xbl9LMP/oVqDIFDVOcKlCnjbUI08vR1reFOa/05TqKI=; b=OZOiuwH353Kpce7eCv8luEwhsL/GHEBy5SjgUZbtBLCLifej90dYUkSk9vQS5ecftW jgrocvH1iMjqla2871kypB/WhpWelXdA6PlyX68YPBze5/Qas5U1f/hQ3SbfTxd8yMqB ezrmVZI+zBdEbmSPXmVgPYz+qCz5p7RNoFDzoVDCcTMqYQVEQFaJ4rz6aBU8Cis4pMee LP8uCMb+xK4NLPPrxdv90SE0HXiO3OJ6ibn/myZzevs/FhEaHLRU/1rrUYrQOaOgBxKM biinvsTagowY47BZUVpWiAyr/Io5Uai5VAH1F/UZcN4ZVQfFyYMlCkuFJtPIFq4frz6t 3itw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=yZdHXAlf; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=0zMUA5cf; 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 dx21si4169385ejb.657.2020.12.05.11.04.28; Sat, 05 Dec 2020 11:04:51 -0800 (PST) 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=yZdHXAlf; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=0zMUA5cf; 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 S1726645AbgLETAb (ORCPT + 99 others); Sat, 5 Dec 2020 14:00:31 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:54542 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725267AbgLETA3 (ORCPT ); Sat, 5 Dec 2020 14:00:29 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1607194787; 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=xbl9LMP/oVqDIFDVOcKlCnjbUI08vR1reFOa/05TqKI=; b=yZdHXAlf13OGlt4BNONvpUNFuOXwzyowcPmES5o5+hwC5yd/Rc0nmAdM5MRfJtzEw16for azVfb75syZGTix4WKso3n4emJySxV2e/TRgtopW+mi6ZsBuGCKpPQueC+rJZbK2+wsEUpv Jn4gDosJQi6h3NrjoAlKqk1v+LHYiWSwdsxAvBwqTnrFf1J9yz8YJL4hvzU7hJ8lDUNXd2 CPscaIh71zdAU70ua/WeuTrbdrhInkm2Qm34/hIFgyQJa0mQjSTFP/SiG9+jIFbiu4N+/w YnciPSIyZoz9S75kp9KQ5TpGTsGQGiEkOgg3Dzc8dYcpPoa2w9Xlt+HxrYme8Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1607194787; 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=xbl9LMP/oVqDIFDVOcKlCnjbUI08vR1reFOa/05TqKI=; b=0zMUA5cfgheI71ds8S+/U8st9ndyc2G5WF9MtlXFp4hDpxo2NJ1oB90dYe5nwMNzufbAdC UaUpd6HOQYSBpFBQ== To: Oleksandr Natalenko Cc: bugzilla-daemon@bugzilla.kernel.org, jdelvare@suse.de, wsa@kernel.org, benjamin.tissoires@redhat.com, rui.zhang@intel.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Marc Zyngier , Peter Zijlstra , Carlos Jimenez Subject: Re: [Bug 202453] TRACE irq/18-i801_smb Tainted when enabled threadirqs in kernel commandline. In-Reply-To: <20201205162403.sey33v2js2cs65q4@spock.localdomain> References: <20201204201930.vtvitsq6xcftjj3o@spock.localdomain> <87zh2s8buh.fsf@nanos.tec.linutronix.de> <20201205162403.sey33v2js2cs65q4@spock.localdomain> Date: Sat, 05 Dec 2020 19:59:46 +0100 Message-ID: <87tut084f1.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 05 2020 at 17:24, Oleksandr Natalenko wrote: > On Sat, Dec 05, 2020 at 05:19:18PM +0100, Thomas Gleixner wrote: >> +/** >> + * generic_dispatch_irq - Dispatch an interrupt from an interrupt handler >> + * @irq: The irq number to handle >> + * >> + * A wrapper around generic_handle_irq() which ensures that interrupts are >> + * disabled when the primary handler of the dispatched irq is invoked. >> + * This is useful for interrupt handlers with dispatching to be safe for >> + * the forced threaded case. >> + */ >> +int generic_dispatch_irq(unsigned int irq) >> +{ >> + unsigned long flags; >> + int ret; >> + >> + local_irq_save(&flags); >> + ret = generic_handle_irq(irq); >> + local_irq_restore(&flags); > > FWIW, for me &flags explodes build on v5.10-rc6. I had to change it to local_irq_save/restore(flags) (without taking an address via &). That's right. Don't know what I was thinking when writing it and then compiling with the patch removed (just checked history ...) Oh, well