Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1119098pxa; Thu, 13 Aug 2020 00:34:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsJ8a7hbcjNLXtBBEYiZf2lDYF7W+yD5E2WXtki1gLDPVepXZSe8bvlQvFHcpfb95sl5pI X-Received: by 2002:a17:906:a206:: with SMTP id r6mr3482913ejy.70.1597304072759; Thu, 13 Aug 2020 00:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597304072; cv=none; d=google.com; s=arc-20160816; b=DGT/kY01A/zOBz+0AuNiLx4pl8gOEKQcWn1LIOKoz+ydQ3wbxsRxBt5LfOKLC3B1yb VlpUxU1S1PPEuqwKOEFIUs2Zw488ycLTL5b/Fclxi2DOKsR4JhjMkXgScGWWSoSjGNzq xlPQwNLn+6hhxRMEHpKqMV8cqVrMf+GjcF+hFSP7gSR0r7l3ReMsUdh7phi8oAC7CU7r ykyAsk92DGv6kFm/xfgwmluMibAXGfZn1OJxER8tsuOB3ystkxEsIx9/OXNJ+VNZORK2 QlIij1CkjTHmiSTsN7C9b4XeW4L80MUmM1vGbBpF9qGeeKh9B1QwePOKUPy+Dqg9Ucqz fwgA== 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=tbGNOc0NhQlgScUYSHrpvG2LTitDuXz5jjuVBcU84Wc=; b=DHi/BlxjAxL+JhKG+oht0k5tVI6XdPu76AOJyjGREveHSHUPq3wXn/OInM6hYjfvR5 giBAU3B18Fgz1r3Wcwpijmsm9i/7dvUzc3MAvQO02NtNFz85MqgYysBnP+0CuVZxJV0A 1g9eB7P6DYTRNwvVeC1drjdH9tVJGPgQ3j4g1oIsrluRGGJO8536CSStV6CNeNvDOU4U QNw3PQ6IBFGxPXQpCBuy6MA396viyIKqn5StJf+ZewTzVwbxdjepsuJBHtvTQBsupfMv hnhUxnYG/YbgiAwikgZ3S9dmfWsLKq2PlfcuhV89FkbW6Qo3JPnR04NyXKLAzBQ8Do// uQRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="MYo8X8/X"; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e header.b=UaBJ5EdU; 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 r26si2735811edy.137.2020.08.13.00.34.09; Thu, 13 Aug 2020 00:34:32 -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="MYo8X8/X"; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e header.b=UaBJ5EdU; 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 S1726604AbgHMHde (ORCPT + 99 others); Thu, 13 Aug 2020 03:33:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726072AbgHMHde (ORCPT ); Thu, 13 Aug 2020 03:33:34 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 042B2C061757; Thu, 13 Aug 2020 00:33:33 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1597304012; 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=tbGNOc0NhQlgScUYSHrpvG2LTitDuXz5jjuVBcU84Wc=; b=MYo8X8/Xl6Ybn21MrKqRt2x/2iGXEIdOdn+XjOMISckOyfKjX53VuCyTi9+U0TGwR+xVk8 seFBtglj+BaBCmu0nBdIV3emZyRDJvJ3rEbSWpctdqv5jCFoQx8D9xgDMiVVNPLNpmN++I 7SbIDDv2IYtRi29Qgv0969DVrzRoLqmHjmYIHun+SYfqK1B0sdBYiX3SIyzcrOFOeAAabQ gVCdPq9cw5xSKGJz8TF7UMp0GQubj3MYRwUWdOFsYSNMrYbrUWkF+mdWb2vJKTRfdLKjVz ZV7T6bO7ONOfrArRbHNSYA1YDq5aURtZdxJZsCJSBTzqfNsBrYHtl45dRtA5zA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1597304012; 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=tbGNOc0NhQlgScUYSHrpvG2LTitDuXz5jjuVBcU84Wc=; b=UaBJ5EdU4jb/ZnyCzVoPqLjNPUCod5irswDdXHkG9POUhIu54M4g8cGlmipQFdxUfKC5cm 4/rgvcPU+Eo3wtBQ== To: Jiafei Pan , peterz@infradead.org, mingo@kernel.org, rostedt@goodmis.org, romain.perier@gmail.com, will@kernel.org Cc: linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, jiafei.pan@nxp.com, leoyang.li@nxp.com, vladimir.oltean@nxp.com, Jiafei Pan Subject: Re: [PATCH] softirq: add irq off checking for __raise_softirq_irqoff In-Reply-To: <20200806040729.39186-1-Jiafei.Pan@nxp.com> References: <20200806040729.39186-1-Jiafei.Pan@nxp.com> Date: Thu, 13 Aug 2020 09:33:31 +0200 Message-ID: <87bljf57as.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 Jiafei Pan writes: > __raise_softirq_irqoff will update per-CPU mask of pending softirqs, Please write __raise_softirq_irqoff() so it's clear that this is about a function. > void __raise_softirq_irqoff(unsigned int nr) > { > + /* This function can only be called in irq disabled context, > + * otherwise or_softirq_pending will be interrupted by hardware > + * interrupt, so that there will be unexpected issue. > + */ > + WARN_ON_ONCE(!irqs_disabled()); Please use lockdep_assert_irqs_disabled() instead. Thanks, tglx