From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.149]) (using TLSv1.2 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3rJf9M52K3zDqYf for ; Tue, 31 May 2016 13:29:11 +1000 (AEST) Received: from localhost by e31.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 30 May 2016 21:29:09 -0600 From: "Aneesh Kumar K.V" To: Michael Ellerman , Anton Blanchard , benh@kernel.crashing.org, paulus@samba.org, acsawdey@linux.vnet.ibm.com Cc: linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 3/3] powerpc: Avoid load hit store when using find_linux_pte_or_hugepte() In-Reply-To: <1464650992.16938.8.camel@ellerman.id.au> References: <1464523432-12605-1-git-send-email-anton@ozlabs.org> <1464523432-12605-3-git-send-email-anton@ozlabs.org> <1464650992.16938.8.camel@ellerman.id.au> Date: Tue, 31 May 2016 08:59:01 +0530 Message-ID: <87k2ia29du.fsf@skywalker.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Michael Ellerman writes: > On Sun, 2016-05-29 at 22:03 +1000, Anton Blanchard wrote: > >> From: Anton Blanchard >> >> In many cases we disable interrupts right before calling >> find_linux_pte_or_hugepte(). >> >> find_linux_pte_or_hugepte() first checks interrupts are disabled >> before calling __find_linux_pte_or_hugepte(): >> >> if (!arch_irqs_disabled()) { >> pr_info("%s called with irq enabled\n", __func__); >> dump_stack(); >> } > > Should that be a VM_WARN_ON()? > VM_WARN_ON() put them inside CONFIG_DEBUG_VM. We should be able to use WARN(!arch_irqs_disabled(), "%s called with irq enabled\n", __func__); -aneesh