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=-2.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 CEC47C00449 for ; Wed, 3 Oct 2018 18:54:08 +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 25F2D21470 for ; Wed, 3 Oct 2018 18:54:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="m8r1tlc/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 25F2D21470 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 42QQCx62BpzF3BB for ; Thu, 4 Oct 2018 04:54:05 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=nvidia.com Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nvidia.com header.i=@nvidia.com header.b="m8r1tlc/"; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nvidia.com (client-ip=216.228.121.143; helo=hqemgate14.nvidia.com; envelope-from=mhairgrove@nvidia.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=nvidia.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=nvidia.com header.i=@nvidia.com header.b="m8r1tlc/"; dkim-atps=neutral Received: from hqemgate14.nvidia.com (hqemgate14.nvidia.com [216.228.121.143]) (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 42QQ9S6k59zF37y for ; Thu, 4 Oct 2018 04:51:56 +1000 (AEST) Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 03 Oct 2018 11:51:50 -0700 Received: from HQMAIL101.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 03 Oct 2018 11:51:52 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 03 Oct 2018 11:51:52 -0700 Received: from localhost.localdomain (10.110.48.80) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 3 Oct 2018 18:51:52 +0000 From: Mark Hairgrove To: Subject: [PATCH v2 0/3] powerpc/powernv/npu: Improve ATSD invalidation overhead Date: Wed, 3 Oct 2018 11:51:31 -0700 Message-ID: <1538592694-18739-1-git-send-email-mhairgrove@nvidia.com> X-Mailer: git-send-email 1.7.2.5 X-NVConfidentiality: public MIME-Version: 1.0 X-Originating-IP: [10.110.48.80] X-ClientProxiedBy: HQMAIL103.nvidia.com (172.20.187.11) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1538592710; bh=O/FBAxBKqdc4uohycGTEsM2gl3vX0I0yl2zmZ4Jg5e4=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: X-NVConfidentiality:MIME-Version:X-Originating-IP: X-ClientProxiedBy:Content-Type; b=m8r1tlc/ufHRP6/IzxRGrMacf22jKpeu1ieIVyJ9BqCrSJ1+ZVSGcXRX33HVIaUQ+ lv++2XqTu5zdeDYAoRXrGQV/XBM8wuN9tMThqqOZEBnvUeyT4+NL0/4wDZPdwW8nVa UbWnb5kJqWHJQDaPx6s1eHD5P0SVVT8yFHJQR/7FZ6RVd1gQZQLp1skNbWIIBK3a5d +tav6ZO9iJRTGAnGNrJhez13Q3XJ4L4ixGnpQ+OduUbK05p5YBrJBDCv1Wr2ijcGYM A2v1oIhSx636EJqT+GKsRZhHrQRxfKGhzOEBdeVY/cqbgLDktAXA5f7bT/0oOutmVf m/KaKwG6lRtJA== 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: Alistair Popple , Mark Hairgrove , Reza Arbab Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" When ATS is used in a process, all CPU TLB invalidates in that process also trigger ATSD invalidates via mmu_notifiers. This additional overhead is noticeable in applications which do heavy memory allocation or page migration among nodes, particularly to and from GPUs. This patch set reduces that overhead by rearranging how the ATSDs are issued and by using size-based ATSD invalidates. Mark Hairgrove (3): powerpc/powernv/npu: Reduce eieio usage when issuing ATSD invalidates powerpc/powernv/npu: Use size-based ATSD invalidates powerpc/powernv/npu: Remove atsd_threshold debugfs setting arch/powerpc/platforms/powernv/npu-dma.c | 198 ++++++++++++++---------------- 1 files changed, 94 insertions(+), 104 deletions(-) -- 1.7.2.5