From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93FD4C2D0A3 for ; Tue, 3 Nov 2020 18:30:53 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CB06C2071A for ; Tue, 3 Nov 2020 18:30:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="1mtdK2dS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CB06C2071A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4CQddN6KnkzDqmq for ; Wed, 4 Nov 2020 05:30:48 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=198.145.29.99; helo=mail.kernel.org; envelope-from=arnd@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=default header.b=1mtdK2dS; dkim-atps=neutral Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4CQTXF2rTpzDqKZ for ; Tue, 3 Nov 2020 23:25:49 +1100 (AEDT) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E4A1E2416E for ; Tue, 3 Nov 2020 12:25:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604406346; bh=JnG9AEM3urtQJZbyh27ncRK5xtNjXhkMpT9pLY6ruAw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=1mtdK2dSQdS/K56+WquRZ8OWcsGdMtHmqIVFEMzZQi4+6uzgYEqYBwm+18gTL0/sS b59ZZ2pDtOE21j/UNcPbpblqLEOIaPKuGZCQHZmbdojGfOXKR1R7EH2TxZ9KkuU3wq iHFZuvtgo7ShOczv8vAXd79g6XKfxQVOX3Rurk14= Received: by mail-lj1-f173.google.com with SMTP id o13so10513760ljj.11 for ; Tue, 03 Nov 2020 04:25:45 -0800 (PST) X-Gm-Message-State: AOAM533mMf6f9SE+nQURwFGkcWG/ynsBx0DPD2mGQa54mrfpn3ViZw/u ddeFBKxXPBZgZjZqFANRQZD4Khgd59VcTIfBVjs= X-Google-Smtp-Source: ABdhPJzaMTU0V4sDEP7WFi1D19pueRl5ySNY/GA/QmiGvW8mi19ZpCI6gDmcGIwe2rHXpOPoRB6cN5TL6gD3Vvt/QEU= X-Received: by 2002:adf:eb4f:: with SMTP id u15mr19654094wrn.165.1604406343518; Tue, 03 Nov 2020 04:25:43 -0800 (PST) MIME-Version: 1.0 References: <20201103092712.714480842@linutronix.de> <20201103095857.078043987@linutronix.de> In-Reply-To: <20201103095857.078043987@linutronix.de> From: Arnd Bergmann Date: Tue, 3 Nov 2020 13:25:27 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch V3 05/37] asm-generic: Provide kmap_size.h To: Thomas Gleixner Content-Type: text/plain; charset="UTF-8" X-Mailman-Approved-At: Wed, 04 Nov 2020 05:22:54 +1100 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Juri Lelli , linux-aio , Peter Zijlstra , Sebastian Andrzej Siewior , Joonas Lahtinen , dri-devel , "open list:BROADCOM NVRAM DRIVER" , Ben Segall , Chris Mason , Huang Rui , Paul Mackerras , Gerd Hoffmann , Daniel Bristot de Oliveira , sparclinux , Rodrigo Vivi , Vincent Chen , Christoph Hellwig , Vincent Guittot , Paul McKenney , Max Filippov , the arch/x86 maintainers , Russell King , linux-csky@vger.kernel.org, Ingo Molnar , David Airlie , VMware Graphics , Mel Gorman , ML nouveau , Dave Airlie , "open list:SYNOPSYS ARC ARCHITECTURE" , Ben Skeggs , linux-xtensa@linux-xtensa.org, Arnd Bergmann , Intel Graphics , Roland Scheidegger , Josef Bacik , Steven Rostedt , Linus Torvalds , Alexander Viro , spice-devel@lists.freedesktop.org, David Sterba , virtualization@lists.linux-foundation.org, Dietmar Eggemann , Linux ARM , Jani Nikula , Chris Zankel , Michal Simek , Thomas Bogendoerfer , Nick Hu , Linux-MM , Vineet Gupta , LKML , Christian Koenig , Benjamin LaHaise , Daniel Vetter , Linux FS-devel Mailing List , Andrew Morton , linuxppc-dev , "David S. Miller" , linux-btrfs , Greentime Hu Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Tue, Nov 3, 2020 at 10:27 AM Thomas Gleixner wrote: > > kmap_types.h is a misnomer because the old atomic MAP based array does not > exist anymore and the whole indirection of architectures including > kmap_types.h is inconinstent and does not allow to provide guard page > debugging for this misfeature. > > Add a common header file which defines the mapping stack size for all > architectures. Will be used when converting architectures over to a > generic kmap_local/atomic implementation. > > The array size is chosen with the following constraints in mind: > > - The deepest nest level in one context is 3 according to code > inspection. > > - The worst case nesting for the upcoming reemptible version would be: > > 2 maps in task context and a fault inside > 2 maps in the fault handler > 3 maps in softirq > 2 maps in interrupt > > So a total of 16 is sufficient and probably overestimated. > > Signed-off-by: Thomas Gleixner Acked-by: Arnd Bergmann