From patchwork Tue May 8 10:17:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juerg Haefliger X-Patchwork-Id: 910091 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]) by ozlabs.org (Postfix) with ESMTP id 40gFmm0sZXz9ryk; Tue, 8 May 2018 20:17:59 +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 1fFzgt-0007mU-Ih; Tue, 08 May 2018 10:17:51 +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 1fFzgs-0007mJ-0N for kernel-team@lists.ubuntu.com; Tue, 08 May 2018 10:17:50 +0000 Received: from mail-wr0-f200.google.com ([209.85.128.200]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1fFzgr-000739-PH for kernel-team@lists.ubuntu.com; Tue, 08 May 2018 10:17:49 +0000 Received: by mail-wr0-f200.google.com with SMTP id w14-v6so21050505wrk.22 for ; Tue, 08 May 2018 03:17:49 -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; bh=rfBh9vxYaFQn4jfpta5/VkzP9dTZ6lgMrFj37troFPk=; b=Ov91/KjMIpRN6v7KOkDBiGS9DU/51sSq3FvGJCKeEfpRd3H+8Q5ma84KJ2Ovm97sfJ cpwFGjGubrYlWRxXCOxdQimOtY+QIkSEFiPVgLO8Xwf7R+IddNpHHyVIdARo+AYlbG5B DKpeTpD32ZeMA8E4Dkww/UdVbn6KUH9Yqf1aSYSZboUh6ehYu76bS5TsKnNWsE0hiSl5 cfRdFPstXOP8+KrHmlhPHCCtm/J5ZcyTvWGY7es3Sk9LvzXUwW+KnJ2TyPottLHDGQOh CSTT13UR0E9yKTzZlsYevwoIArQWFsm4QShqYjhx10nd6UEXQ7PqjVmGV1jCY0den1gC PbYg== X-Gm-Message-State: ALQs6tAgrsXLpaSuj5pRidjcAwsMAN9OPlzMfwOsLFyMSKi3mfZnDsXT 8F1wwF7DAm9JIjeEU6qpBNJGkZ3B9yHq0D2EOZnotNQDVIhguOmfqWTvfJU+xJOKI4UDFngVhtw JPeJm/ur0aYu28Ai+IE9LwXidV4GNhCRgQTucl83ptQ== X-Received: by 2002:a50:f4ca:: with SMTP id v10-v6mr54627272edm.162.1525774669304; Tue, 08 May 2018 03:17:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrZshD3F0XGLYvvkZ+14T9civtMR1c8AsH9w2+cvEFqgfqyQTmoEl+DmGFaUwWYpnsf40hHPQ== X-Received: by 2002:a50:f4ca:: with SMTP id v10-v6mr54627262edm.162.1525774669135; Tue, 08 May 2018 03:17:49 -0700 (PDT) Received: from gollum.fritz.box ([81.221.205.149]) by smtp.gmail.com with ESMTPSA id v22-v6sm13170275edq.15.2018.05.08.03.17.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 03:17:48 -0700 (PDT) From: Juerg Haefliger X-Google-Original-From: Juerg Haefliger To: kernel-team@lists.ubuntu.com Subject: [SRU][Artful][PULL] rfi-flush: Switch to new linear fallback flush Date: Tue, 8 May 2018 12:17:47 +0200 Message-Id: X-Mailer: git-send-email 2.17.0 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" BugLink: https://bugs.launchpad.net/bugs/1744173 [Impact] Change flush from congruence-first with dependencies to linear with no dependencies, which increases flush performance by 8x on P8, and 3x on P9 (as measured with null syscall loop, which will have the flush area in the L2). 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 --- The following changes since commit 4b552a65f2cd5f8a4660072330c0cba67a30f647: UBUNTU: Ubuntu-4.13.0-40.45 (2018-04-25 02:44:49 +0000) are available in the Git repository at: git://git.launchpad.net/~juergh/+git/artful-linux lp1744173 for you to fetch changes up to c6dcffc36846e5b766689689892e3c5f666bc77f: UBUNTU: SAUCE: rfi-flush: Switch to new linear fallback flush (2018-05-08 12:12:05 +0200) ---------------------------------------------------------------- Michael Ellerman (7): UBUNTU: SAUCE: rfi-flush: Factor out init_fallback_flush() UBUNTU: SAUCE: rfi-flush: Make setup_rfi_flush() not __init UBUNTU: SAUCE: rfi-flush: Move the logic to avoid a redo into the sysfs code UBUNTU: SAUCE: rfi-flush: Make it possible to call setup_rfi_flush() again UBUNTU: SAUCE: rfi-flush: Call setup_rfi_flush() after LPM migration UBUNTU: SAUCE: rfi-flush: Move rfi_flush_fallback_area to end of paca UBUNTU: SAUCE: rfi-flush: Mark DEBUG_RFI as BROKEN Nicholas Piggin (1): UBUNTU: SAUCE: rfi-flush: Switch to new linear fallback flush arch/powerpc/Kconfig.debug | 2 +- 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 | 73 +++++++++++++++-------------- arch/powerpc/kernel/sysfs.c | 9 +++- arch/powerpc/platforms/pseries/mobility.c | 3 ++ arch/powerpc/platforms/pseries/pseries.h | 2 + arch/powerpc/platforms/pseries/setup.c | 4 +- 10 files changed, 95 insertions(+), 85 deletions(-)