Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp125710pxj; Thu, 3 Jun 2021 02:33:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy41KE3rO6njF3cCN6C9CtEJyL1gUv1za5jsdWsVLNT4Hi9+eYHkiO7GAKPn1OrHrAmwTPe X-Received: by 2002:a17:907:961e:: with SMTP id gb30mr39490632ejc.58.1622712838712; Thu, 03 Jun 2021 02:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622712838; cv=none; d=google.com; s=arc-20160816; b=ubRq/bHfrsLUMhHn1Up/eCssMqu92fhNc5fSt8Wso5F2JU99yfm2J6KDg7LE5lRcAo HwQ3vez3qGr1kdHboL1IxI/GyPspzXEEGUpALNcS91dx4YUMzPfzisvuNU9DQuXtIYpI gVoc5gqyWQj1wVzEeQPdbjLiMychEUiCi7o9F72VSSob1qepODGTCt9ZlVyrrCnl9V0l tKVrrJYMLBqtef/vimBeIY2WA+lttEiZ1yV/wgjxQXlkzrLV9ESoB+Kmt8wchkikMzWe rFcM7LzNr82mvP6OTHnFQr1ueZEi/myyNzquhgHToLe0hfKDpicABp5koLpdkC5HR93b jB1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:cc:to:subject:from:references:in-reply-to :message-id; bh=b8w+qbzHbqTz8eXH6XXZxEiTAP8MTYyDrTy0ZIyCOT0=; b=0G14xPpoEnEmnr2XWt8+bpDbPRNU+V+G8ZdgadPbSMJm8tc1OyRoEkcI/RiiQFBVwJ xCj8s7pbEKZbkCjYxIyEWpnnMbmN16h2OddcAsUqo6Pom+sFlBz1HLj7awBitQX1EEa9 yVayP69nbOQet/QJrMbmE5i3tHfrHwd9a8H23A/AZL9YWCiEWhSaofHjVIlPFAUaK4A6 AfOte0gP1vf4Z0E/223cJ6Xo0xR5aVTifh2L5vvH5bOzGwJeM98bfsmBR0iN0y332qR8 t7zJtGhIVGaOWMuiV1EDGm187F0HLOWHh7zjpkbMc7Bhc45Fr2SkdOJIo+30NYmjz/oX WlTA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r9si1869786ejr.730.2021.06.03.02.33.36; Thu, 03 Jun 2021 02:33:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229854AbhFCJbA (ORCPT + 99 others); Thu, 3 Jun 2021 05:31:00 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:29766 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbhFCJa7 (ORCPT ); Thu, 3 Jun 2021 05:30:59 -0400 Received: from localhost (mailhub3.si.c-s.fr [192.168.12.233]) by localhost (Postfix) with ESMTP id 4FwgZY1n27zBCW7; Thu, 3 Jun 2021 11:29:09 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u1vUvj-3ih22; Thu, 3 Jun 2021 11:29:09 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4FwgZX4KxCzBCVQ; Thu, 3 Jun 2021 11:29:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 519708B849; Thu, 3 Jun 2021 11:29:08 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id NZ9C6Wng-c58; Thu, 3 Jun 2021 11:29:08 +0200 (CEST) Received: from po15610vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 0366D8B848; Thu, 3 Jun 2021 11:29:08 +0200 (CEST) Received: by po15610vm.idsi0.si.c-s.fr (Postfix, from userid 0) id D3C616493B; Thu, 3 Jun 2021 09:29:07 +0000 (UTC) Message-Id: <0f25109b0e12fdd1e6541dedbb2212cc53526a57.1622712515.git.christophe.leroy@csgroup.eu> In-Reply-To: <4c54997edd3548fa54717915e7c6ebaf60f208c0.1622712515.git.christophe.leroy@csgroup.eu> References: <4c54997edd3548fa54717915e7c6ebaf60f208c0.1622712515.git.christophe.leroy@csgroup.eu> From: Christophe Leroy Subject: [PATCH v3 6/6] powerpc/nohash: Remove DEBUG_HARDER To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Thu, 3 Jun 2021 09:29:07 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DEBUG_HARDER is not user selectable. Remove it together with related messages. Also remove two pr_devel() messages that should likely have been pr_hard(). Signed-off-by: Christophe Leroy --- arch/powerpc/mm/nohash/mmu_context.c | 32 ---------------------------- 1 file changed, 32 deletions(-) diff --git a/arch/powerpc/mm/nohash/mmu_context.c b/arch/powerpc/mm/nohash/mmu_context.c index d9f590b9e636..920b5b8c770d 100644 --- a/arch/powerpc/mm/nohash/mmu_context.c +++ b/arch/powerpc/mm/nohash/mmu_context.c @@ -21,19 +21,6 @@ * also clear mm->cpu_vm_mask bits when processes are migrated */ -//#define DEBUG_HARDER - -/* We don't use DEBUG because it tends to be compiled in always nowadays - * and this would generate way too much output - */ -#ifdef DEBUG_HARDER -#define pr_hard(args...) printk(KERN_DEBUG args) -#define pr_hardcont(args...) printk(KERN_CONT args) -#else -#define pr_hard(args...) do { } while(0) -#define pr_hardcont(args...) do { } while(0) -#endif - #include #include #include @@ -127,7 +114,6 @@ static unsigned int steal_context_smp(unsigned int id) id = FIRST_CONTEXT; continue; } - pr_hardcont(" | steal %d from 0x%p", id, mm); /* Mark this mm has having no context anymore */ mm->context.id = MMU_NO_CONTEXT; @@ -169,8 +155,6 @@ static unsigned int steal_all_contexts(void) /* Pick up the victim mm */ mm = context_mm[id]; - pr_hardcont(" | steal %d from 0x%p", id, mm); - /* Mark this mm as having no context anymore */ mm->context.id = MMU_NO_CONTEXT; if (id != FIRST_CONTEXT) { @@ -202,8 +186,6 @@ static unsigned int steal_context_up(unsigned int id) /* Pick up the victim mm */ mm = context_mm[id]; - pr_hardcont(" | steal %d from 0x%p", id, mm); - /* Flush the TLB for that context */ local_flush_tlb_mm(mm); @@ -251,14 +233,10 @@ void switch_mmu_context(struct mm_struct *prev, struct mm_struct *next, /* No lockless fast path .. yet */ raw_spin_lock(&context_lock); - pr_hard("[%d] activating context for mm @%p, active=%d, id=%d", - cpu, next, next->context.active, next->context.id); - if (IS_ENABLED(CONFIG_SMP)) { /* Mark us active and the previous one not anymore */ next->context.active++; if (prev) { - pr_hardcont(" (old=0x%p a=%d)", prev, prev->context.active); WARN_ON(prev->context.active < 1); prev->context.active--; } @@ -303,7 +281,6 @@ void switch_mmu_context(struct mm_struct *prev, struct mm_struct *next, next_context = id + 1; context_mm[id] = next; next->context.id = id; - pr_hardcont(" | new id=%d,nrf=%d", id, nr_free_contexts); ctxt_ok: @@ -311,10 +288,6 @@ void switch_mmu_context(struct mm_struct *prev, struct mm_struct *next, * local TLB for it and unmark it before we use it */ if (IS_ENABLED(CONFIG_SMP) && test_bit(id, stale_map[cpu])) { - pr_hardcont(" | stale flush %d [%d..%d]", - id, cpu_first_thread_sibling(cpu), - cpu_last_thread_sibling(cpu)); - local_flush_tlb_mm(next); /* XXX This clear should ultimately be part of local_flush_tlb_mm */ @@ -326,7 +299,6 @@ void switch_mmu_context(struct mm_struct *prev, struct mm_struct *next, } /* Flick the MMU and release lock */ - pr_hardcont(" -> %d\n", id); if (IS_ENABLED(CONFIG_BDI_SWITCH)) abatron_pteptrs[1] = next->pgd; set_context(id, next->pgd); @@ -338,8 +310,6 @@ void switch_mmu_context(struct mm_struct *prev, struct mm_struct *next, */ int init_new_context(struct task_struct *t, struct mm_struct *mm) { - pr_hard("initing context for mm @%p\n", mm); - /* * We have MMU_NO_CONTEXT set to be ~0. Hence check * explicitly against context.id == 0. This ensures that we properly @@ -387,7 +357,6 @@ static int mmu_ctx_cpu_prepare(unsigned int cpu) if (cpu == boot_cpuid) return 0; - pr_devel("MMU: Allocating stale context map for CPU %d\n", cpu); stale_map[cpu] = kzalloc(CTX_MAP_SIZE, GFP_KERNEL); return 0; } @@ -398,7 +367,6 @@ static int mmu_ctx_cpu_dead(unsigned int cpu) if (cpu == boot_cpuid) return 0; - pr_devel("MMU: Freeing stale context map for CPU %d\n", cpu); kfree(stale_map[cpu]); stale_map[cpu] = NULL; -- 2.25.0