From patchwork Tue May 29 12:30:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juerg Haefliger X-Patchwork-Id: 922040 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40wCjz3tbGz9s0W; Tue, 29 May 2018 22:30:31 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1fNdlf-00005Y-70; Tue, 29 May 2018 12:30:23 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1fNdld-00005R-LV for kernel-team@lists.ubuntu.com; Tue, 29 May 2018 12:30:21 +0000 Received: from mail-wr0-f199.google.com ([209.85.128.199]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1fNdld-0001g5-EA for kernel-team@lists.ubuntu.com; Tue, 29 May 2018 12:30:21 +0000 Received: by mail-wr0-f199.google.com with SMTP id z7-v6so12555617wrg.11 for ; Tue, 29 May 2018 05:30:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=K2QYmQkqEck/cde02Pm4ADpWJF0NhgYZalzVVbzLulw=; b=DfhYtK/XVj5Lq7PGfapEU/y/3cWccpZCHMHCp+ibSw2eM5KLgJaDG4vDEOCcvuKhSg poSaULkQIw9wS6rO2qzk7iC/aIWI0FfpIYLM44J8yuCpLqcSnP0uvT+rQnuURbK1C7zX mXVNJIQY4/H3aG/CTGH5EZEKI92jGa2E9qqkizEmh5zI9ctue2LCR7bbCGvTFDXozLMA sIRCfEDYw2dSvB3cyHb/1yALFNLhy1n7nNyX1ROpjePsZPqCRUNHkbgzTFxUzKoUbccv q2JFZP+0sGURyhAgxa8xbRY2kiIPNyXoe1DQNjYtoI3gJCLUssUOznJuGh89fRMryiQi TzyA== X-Gm-Message-State: ALKqPwd2NSQDKuFO4R//d8Zb0sg2gc/HW9zv6oe2gv2BcSBtIjTjnl9E 9i8D3DdYPX8OUwszgKTC1M0F/xohTM3hkhfTlRowOiyFi6JyzBv/ab4Gb8ot9ya7hNd14WNx3Pl 2LEOZIYioJBUpmAKKgb7NHM1GnLJ9EGFvKJG/VUWI0g== X-Received: by 2002:a50:9007:: with SMTP id b7-v6mr18892316eda.279.1527597020967; Tue, 29 May 2018 05:30:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqbjIL3e9dWRwbZ2zrvqtKUxQ+xrB7tTgO3kA+Bpm3DJ6q98lUGn+gSkpbSfHE11ehWIvTRbA== X-Received: by 2002:a50:9007:: with SMTP id b7-v6mr18892300eda.279.1527597020777; Tue, 29 May 2018 05:30:20 -0700 (PDT) Received: from localhost.localdomain ([81.221.205.149]) by smtp.gmail.com with ESMTPSA id z44-v6sm4305097edb.72.2018.05.29.05.30.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 05:30:20 -0700 (PDT) From: Juerg Haefliger X-Google-Original-From: Juerg Haefliger To: kernel-team@lists.ubuntu.com Subject: [SRU][Artful][PULL v2] rfi-flush: Switch to new linear fallback flush Date: Tue, 29 May 2018 14:30:18 +0200 Message-Id: <59b29ce04397578d5e38547e4e42d21448f58136.1527596768.git.juergh@canonical.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: References: X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" v2: Updated patchset from IBM. BugLink: https://bugs.launchpad.net/bugs/1744173 [Impact] Change flush method from "congruence-first with dependencies" to "linear with no dependencies", which increases flush performance by 8x on P8, and 3x on P9. Measured with null syscall loop, which will have the flush area in the L2 cache. The flush also becomes simpler and more adaptable to different cache geometries. [Test Case] TBD. [Regression Potential] The risk is deemed low since the changes are confined to POWER only and the provided test kernels have been tested by IBM. Signed-off-by: Juerg Haefliger Acked-by: Kleber Sacilotto de Souza Acked-by: Stefan Bader --- The following changes since commit 32f2fe36d1166cbd4ec673e4eb65321b14a564f7: UBUNTU: SAUCE: Set generic SSBD feature for Intel cpus (2018-05-28 16:11:59 +0200) are available in the Git repository at: git://git.launchpad.net/~juergh/+git/artful-linux lp1744173-wave2 for you to fetch changes up to 59b29ce04397578d5e38547e4e42d21448f58136: powerpc/rfi-flush: Call setup_rfi_flush() after LPM migration (2018-05-29 14:01:55 +0200) ---------------------------------------------------------------- Gustavo Walbon (1): UBUNTU: SAUCE: rfi-flush: Factor out init_fallback_flush() Mauricio Faria de Oliveira (1): powerpc/rfi-flush: Differentiate enabled and patched flush types Michael Ellerman (3): UBUNTU: SAUCE: rfi-flush: Move rfi_flush_fallback_area to end of paca powerpc/rfi-flush: Make it possible to call setup_rfi_flush() again powerpc/rfi-flush: Call setup_rfi_flush() after LPM migration Nicholas Piggin (1): powerpc/64s: Improve RFI L1-D cache flush fallback arch/powerpc/include/asm/paca.h | 6 +-- arch/powerpc/include/asm/setup.h | 2 +- arch/powerpc/kernel/asm-offsets.c | 3 +- arch/powerpc/kernel/exceptions-64s.S | 76 +++++++++++++++---------------- arch/powerpc/kernel/setup_64.c | 59 ++++++++++++------------ arch/powerpc/platforms/pseries/mobility.c | 3 ++ arch/powerpc/platforms/pseries/pseries.h | 2 + arch/powerpc/platforms/pseries/setup.c | 2 +- 8 files changed, 74 insertions(+), 79 deletions(-)