Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1967067pxu; Sun, 6 Dec 2020 13:51:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPC8QJKn20Rn+i80a+2DyojfutP44RqUidwFuwsVZPAayRP2oZUA8vUT4g3/HF7iRIw7vn X-Received: by 2002:a17:906:b14a:: with SMTP id bt10mr17669167ejb.458.1607291502634; Sun, 06 Dec 2020 13:51:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607291502; cv=none; d=google.com; s=arc-20160816; b=0RMqJjaYgIXIIj9Q1ilA9+60v6gsidMu1TcJ+mR1sNNY2W9PIY8OS2KukxaprJTd6B c1P4FB2W8iECRoqyQdARU4UD+sHU2hVWJkms/CdDrzfEh0bjOVtwgjzjM4dHYOgfUfhq c/lmdg2MPpBv9edBg7JYsOUu8TflSahfzzQOjot8WUre2kc9CPonGe6y21tpZ8BJGHa0 9w/LFEk3b7iXbhCgXl9GH32zRshW6wAfaKa+ONlNxmtqd5KR97/37p9TlQkRqQnugvJw +o0J9Klf0CuEG5bNo3lh2c2hIFqpZOMBuhh8rP9STSmzKIXbKrE7CWB+E1NFVVUHJFPj t3VA== 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:in-reply-to:subject :cc:to:from:user-agent:references:dkim-signature; bh=Pt7TdFB7ulKa/lV+VvFZnu9g+M0yRQxxm6d6lfJIcJQ=; b=Pus8qAfkuareB9WZXOaOGS0SqZNv7C614FpMoiSLHRllrl1sT1vEJ+AsWW48MqPbf0 56OLL8mv++LxPfNfGM0RJVStVAEc/etRDNGMJUW0u5ol/k2fB3iHckL/pZ8GF3iu5Obi Hs2ALUOz+T9gPfVrYRW/8Tkh1shJkCS2INFtD4qs/xcgwp9Bcp/2hyWwapgcfzWQjhaw pdOn6xI9MrKNvHd4SQb5iZT7VB/B1BJVjGlXvUbBuTPI2L3akiqvJ3h7thG740REylfS BIlB6taQa4JFvKXSl4jYDBnDq0jW4pTJfURA7y+if4dwAht948fQKCU+h+t00TXVagDt 8PXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Bc1k0w3m; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p8si5349614eja.494.2020.12.06.13.51.19; Sun, 06 Dec 2020 13:51:42 -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=@redhat.com header.s=mimecast20190719 header.b=Bc1k0w3m; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728192AbgLFVr6 (ORCPT + 99 others); Sun, 6 Dec 2020 16:47:58 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:60413 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727989AbgLFVr5 (ORCPT ); Sun, 6 Dec 2020 16:47:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607291190; 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=Pt7TdFB7ulKa/lV+VvFZnu9g+M0yRQxxm6d6lfJIcJQ=; b=Bc1k0w3mAb/A529LBkRbxp8qD59LX5epU0jFi/6rK+NDUoGTQVPH06vl1rD6QLXwzMTt08 7fsao2LbwcmFzB2PLDnirYEK+9TnT1XIw6U+Dwok+TS24Epm/jaQqSAbPmKckQJ/Cw6QYW CPehOwvAdquEeM2Oau/alQpRWy2mMYA= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-575-zc1NN15mN1SvDNh4JqypCA-1; Sun, 06 Dec 2020 16:46:29 -0500 X-MC-Unique: zc1NN15mN1SvDNh4JqypCA-1 Received: by mail-qk1-f197.google.com with SMTP id 198so10716208qkj.7 for ; Sun, 06 Dec 2020 13:46:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=Pt7TdFB7ulKa/lV+VvFZnu9g+M0yRQxxm6d6lfJIcJQ=; b=dBg5ftbZPBs5ZkmdptpX+1+Hc90ivt1XGMJmoqyJb70pxys9acmgLUTdphmIAraHNM g9lBrb9qaqzbyK5KlrcV6NWl6jJPZfN5iYpTCiGDaa9FAF0ieczL0j+9cfHOQAYicN9l eAEB1maMxYI32HEthqnV9xA8PEtvaGUpeRWikLa9iST/J/tzAJNe8JgE1LIYRw9sZ2e4 is0MPNA+r2glnZexxYVQW+fT5KZCltuwiHbAiXEYgj6ypaHn1HwLU3z3zHHHBcSGURgA mQ5sihoZuqtH7E/5INKxQKJGoBnWuMQ6W3s1BblR8q6aoQsoV14+Ln8X1PUWBLEwV8YF M+IQ== X-Gm-Message-State: AOAM532YU98paGdwntJrkxM82nAzl2UdvUhhECKCePVXBBWJXy5F11Iw //+8+v/Fh1AibTP00LlXwL3vVN6+wUiwCH1kvRnmGD9XDiMebrHAtSmU2KyvzIpFkfX5J9FV/UW n0uC8F8YsjeUG7mtCcPEY6sdi X-Received: by 2002:a37:7143:: with SMTP id m64mr21643204qkc.280.1607291188963; Sun, 06 Dec 2020 13:46:28 -0800 (PST) X-Received: by 2002:a37:7143:: with SMTP id m64mr21643187qkc.280.1607291188745; Sun, 06 Dec 2020 13:46:28 -0800 (PST) Received: from localhost (ip98-179-76-75.ph.ph.cox.net. [98.179.76.75]) by smtp.gmail.com with ESMTPSA id a28sm46494qtm.80.2020.12.06.13.46.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Dec 2020 13:46:28 -0800 (PST) References: <20201205014340.148235-1-jsnitsel@redhat.com> <20201205014340.148235-2-jsnitsel@redhat.com> <87y2ia7rbv.fsf@nanos.tec.linutronix.de> User-agent: mu4e 1.4.10; emacs 27.1 From: Jerry Snitselaar To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, 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: <87y2ia7rbv.fsf@nanos.tec.linutronix.de> Date: Sun, 06 Dec 2020 14:46:26 -0700 Message-ID: <87lfeahakt.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thomas Gleixner @ 2020-12-06 10:54 MST: > 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 I can rework it to use a device local counter.