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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B78A8EB64D7 for ; Mon, 26 Jun 2023 14:37:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Mime-Version:References:In-Reply-To: Date:To:From:Subject:Message-ID:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sBXuEvAgY1JBujXu3j8qx4qnXbL8S+MjSg77o2VCijQ=; b=1ON8UWBRhKfo4C mOM7xocm2c7U1Zb+has+904inKg6dmjltuAYNo+qyfNGyd3Df1oeBBV4adzU3VXrjxM5Ts6qd7YdC v7vpERSaDZeSJDNpF6xZ9dQxXWw2L197amcnr52CXTdy7u9IxfncR3vhxbh3KCdZnosPX85FEE4yO 6unIexx6LFYaGJY7uYppwipxBL5FCmqLSV3/v8Y1lWPQBkNuxdhUWMrT1HR5hRthFrj38RkukKzGu by7dDyOyT2uUKgbozErPSy5v9x2TiipZ4tKsGKUDnfCBAGjQkXG4lwQqmhE32HZGuoNHs9y8vJcaZ XbSO4fPtiQk/KdzLIAfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qDnKs-00AP9B-1z; Mon, 26 Jun 2023 14:36:58 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qDnKq-00AP8X-0z for linux-arm-kernel@lists.infradead.org; Mon, 26 Jun 2023 14:36:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687790215; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tvcSqXCnz9zVXylEiOugaJe8PBAXaMauU+4YTqF2Kks=; b=T331CjVcWEBswpJocqC7Mn9GEK1Ec+lnzPFGFuDocUm3EOZDXb3T+qbAMmZo3IO7jqtikb oHqbqLLJnpSBcpHn0EINkwN77ll5eCAE+DOOXtiY1tMWmzFi72bWw4PdOlfOK6R/49I0wS JKNsyhmtuFnq8xywI9bbexzM3Yjyg08= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-456-CU07aAbpN1uLGo_7oYxZSg-1; Mon, 26 Jun 2023 10:36:53 -0400 X-MC-Unique: CU07aAbpN1uLGo_7oYxZSg-1 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-763a397a3ceso385384785a.1 for ; Mon, 26 Jun 2023 07:36:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687790198; x=1690382198; h=content-transfer-encoding:mime-version:references:in-reply-to:date :to:from:subject:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=tvcSqXCnz9zVXylEiOugaJe8PBAXaMauU+4YTqF2Kks=; b=Wnt8k0Kdd16sj7qysfNxRCA6KD3kwGT2mqL/nI1834YgxfblCo+pX9pn0taK3q5NsY q/hHo+XErFCTlAP1rCB61LoV7M1WpYZsqkGD+GvU7dY+kppfepHHMbboUgqfEi+KQrPZ 8/tOQqX0mbdlyLJtHHdLd2oAvKCpCYoBsyONy8keBM7b74tDkREmHZDb2IRl7SdTrpgA PRWpTQT0wCPbFZsNDIGwJlatSm/74ELhX/A0yRFqGjItWxwCv3t0XBuP4DRtyp7iIlff LmjSaMwNcDVxcRa/2vSQz04F/MdkYBHJtWuk4giAUc0G8PMjea63Xk7lJtEFnF1XkI77 ICPA== X-Gm-Message-State: AC+VfDy3UsnMaWVjReM7lnXKJ7LPycL01HTD9orW8nKHG5d60ci+BGWi fqEDXM4SIl1SFF9GNd/ztANs/WtENgfqJfmh9OL+N8pPIdyXHEN7kasGhK6XNvB4NXWjeGxLh3c GordRo+myQOktQG3m11YrWOI31OBYYt2pfkw= X-Received: by 2002:a05:620a:2b88:b0:762:5179:5d97 with SMTP id dz8-20020a05620a2b8800b0076251795d97mr26896726qkb.12.1687790197720; Mon, 26 Jun 2023 07:36:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ79/JfP3Hny6V9tnqkHShvsxIy9E8rAkOfBtz9lcAvMdQVNdzhuBr1C3eS+Bxuk3VP5Pg8PBg== X-Received: by 2002:a05:620a:2b88:b0:762:5179:5d97 with SMTP id dz8-20020a05620a2b8800b0076251795d97mr26896682qkb.12.1687790197466; Mon, 26 Jun 2023 07:36:37 -0700 (PDT) Received: from ypodemsk.tlv.csb (IGLD-84-229-250-192.inter.net.il. [84.229.250.192]) by smtp.gmail.com with ESMTPSA id pe34-20020a05620a852200b00765a71e399bsm1204141qkn.55.2023.06.26.07.36.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 07:36:37 -0700 (PDT) Message-ID: Subject: Re: [PATCH v2 2/2] mm/mmu_gather: send tlb_remove_table_smp_sync IPI only to MM CPUs From: ypodemsk@redhat.com To: Dave Hansen , mtosatti@redhat.com, ppandit@redhat.com, david@redhat.com, linux@armlinux.org.uk, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, davem@davemloft.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, keescook@chromium.org, paulmck@kernel.org, frederic@kernel.org, will@kernel.org, peterz@infradead.org, ardb@kernel.org, samitolvanen@google.com, juerg.haefliger@canonical.com, arnd@arndb.de, rmk+kernel@armlinux.org.uk, geert+renesas@glider.be, linus.walleij@linaro.org, akpm@linux-foundation.org, sebastian.reichel@collabora.com, rppt@kernel.org, aneesh.kumar@linux.ibm.com, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Date: Mon, 26 Jun 2023 17:36:28 +0300 In-Reply-To: References: <20230620144618.125703-1-ypodemsk@redhat.com> <20230620144618.125703-3-ypodemsk@redhat.com> <680fadba-9104-3914-5175-e207fd3d9246@intel.com> <79f29f99fa07c46dbaee7b802cdd7b477b2d8dd1.camel@redhat.com> X-Mailer: Evolution 3.28.5 (3.28.5-22.el8) Mime-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230626_073656_416178_2BDFA548 X-CRM114-Status: GOOD ( 16.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 2023-06-22 at 06:37 -0700, Dave Hansen wrote: > On 6/22/23 06:14, ypodemsk@redhat.com wrote: > > I will send a new version with the local variable as you suggested > > soon. > > As for the config name, what about CONFIG_ARCH_HAS_MM_CPUMASK? > > The confusing part about that name is that mm_cpumask() and > mm->cpu_bitmap[] are defined unconditionally. So, they're *around* > unconditionally but just aren't updated. > I think your right about the config name, How about the CONFIG_ARCH_USE_MM_CPUMASK? This has the right semantic as these archs use the cpumask field of the mm struct. > BTW, it would also be nice to have _some_ kind of data behind this > patch. > > Fewer IPIs are better I guess, but it would still be nice if you > could say: > > Before this patch, /proc/interrupts showed 123 IPIs/hour for an > isolated CPU. After the approach here, it was 0. > > ... or something. This is part of an ongoing effort to remove IPIs and this one was found via code inspection. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel