Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1868167pxu; Sun, 6 Dec 2020 09:59:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvvP+ubDfbmuHmVpMtJpOsNeFTkxnZcEAAC2ptEEDY3xnXAMPaC2C0rebaFKc+b6eMidg4 X-Received: by 2002:a17:906:6a8a:: with SMTP id p10mr1155410ejr.169.1607277578721; Sun, 06 Dec 2020 09:59:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607277578; cv=none; d=google.com; s=arc-20160816; b=AyTPq+OJsMHL1uQvSRBpINUq2S01JjxKvMqtCvObRoLXqLMg1i/LuuRO43MKIB7twZ uzIJydZVOBGGSjsYk5In57ou+Bv484/SQ3s3/JTivTK4gs5pTRMhyyfe46xFboQmXrtE n6DddG23azgCyE7nerALRfbE3t0aOoy9HSa2IvfdpFmvV4okxJFhHCeS/00YYdiLDL8m ks8cc6paTmehVPBAcEiWEESvYylJucFix8WqoLqCFZtaNy555mLfkLcc0Ue5z8AgowFu A9NoG5MUS3N4V8LC9lAoXAT4am/0RgE8uR5KbflRY2uatVpdSDNC/mFqvdn8WamNk4+2 Im0Q== 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=07War4FnpacwFh1YaF/5joszhDH3pMW7WlC56is9w4I=; b=WJCNd/9yDq1flyLkt3r4y8TapCE1vg46+H9cw+InHFvwppGtTUt4FNIvBbJHbjbch+ hpsqadsEjBLV2tZBl8/AfOFiTFUWe76yEtvBupubwxYgbMSuAhTiPggJKnwGCHhOv3n2 IEt/xIjnPsRF7xfIYH+MYUp2v3GY9dpVCww/E5z2wSurwWSyLfsbZhhWipXTwQZTEzeV CSpChgnK3p7AVDqwfU5HOdgzcTM2+TJFQU4AKuv2dtvpoUxjNB8yzEuZwJ4zFod6pxdU 1sYArrXGfYYbiWJoVbKoJkMyoDNYvckVkv+3uleKD3n0yaAbEJRxKePOGHCsj7cXSNS+ YC2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=q1LwrbiD; dkim=neutral (no key) header.i=@linutronix.de; 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 zn8si4821109ejb.24.2020.12.06.09.59.14; Sun, 06 Dec 2020 09:59:38 -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=q1LwrbiD; dkim=neutral (no key) header.i=@linutronix.de; 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 S1727264AbgLFRz1 (ORCPT + 99 others); Sun, 6 Dec 2020 12:55:27 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:59354 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726043AbgLFRz0 (ORCPT ); Sun, 6 Dec 2020 12:55:26 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1607277285; 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=07War4FnpacwFh1YaF/5joszhDH3pMW7WlC56is9w4I=; b=q1LwrbiDzWFlcihybyILl6urNUUlW3xoBHDW2gCbvkfnkEPMrsJZsZxh/u3wITbzLbrzsP muFiLKraQSlM6tmzlPpbkAra17ztgm20WOUD8w3h4bcn5gRFbnzKyPIjnEPubhplt2u4fx 9Q+sEZJLg4KDNIj8Dwm+rrY7hUHRnJEu8dHN0lJLxPoLarEd6FJ3y0rzv7EllFhJCToaJU te848un/yV8u6K3ZeXL94SlrBnMb4v53QoV3v0yVtOJ2XNMOIo17w+IjymH+AeTP7kjaWJ 9lO2rzwwoGDJAkNSoSmcP98uT/dNDppnGFTEHkThFMH5lzXPtOdoIT5Asm8Cjg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1607277285; 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=07War4FnpacwFh1YaF/5joszhDH3pMW7WlC56is9w4I=; b=yKxLEMiFuaSYO1WtTlFlvn2N71he2D9R3O/UuYqLb68HVEC9MGqjskvFkXhbXCAC/YUhO3 Ya9c1fGGjdMVKDCA== To: Jerry Snitselaar , linux-kernel@vger.kernel.org Cc: linux-integrity@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, kernel test robot , Jarkko Sakkinen , Jason Gunthorpe , Peter Huewe , James Bottomley , Matthew Garrett , Hans de Goede Subject: Re: [PATCH v3 1/4] irq: export kstat_irqs In-Reply-To: <20201205014340.148235-2-jsnitsel@redhat.com> References: <20201205014340.148235-1-jsnitsel@redhat.com> <20201205014340.148235-2-jsnitsel@redhat.com> Date: Sun, 06 Dec 2020 18:54:44 +0100 Message-ID: <87y2ia7rbv.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 Jerry, On Fri, Dec 04 2020 at 18:43, Jerry Snitselaar wrote: The proper prefix is 'genirq:' git log kernel/irq/irqdesc.c would have told you. > To try and detect potential interrupt storms that > have been occurring with tpm_tis devices it was suggested > to use kstat_irqs() to get the number of interrupts. > Since tpm_tis can be built as a module it needs kstat_irqs > exported. I'm not really enthused about exporting this without making it at least safe. Using it from an interrupt handler is obviously safe vs. concurrent removal, but the next driver writer who thinks this is cool is going to get it wrong for sure. Though I still have to figure out what the advantage of invoking a function which needs to do a radix tree lookup over a device local counter is just to keep track of this. I'll reply on the TPM part of this as well. Thanks, tglx