Received: by 10.223.164.202 with SMTP id h10csp1025456wrb; Tue, 7 Nov 2017 20:05:25 -0800 (PST) X-Google-Smtp-Source: ABhQp+SglCfHv2ynIMQo/D0GmFZW4yYeuin3Z20oHEnUIB0sWCpal+fdEnjZyCDTJJFmV8W7yEKK X-Received: by 10.99.165.77 with SMTP id r13mr952324pgu.331.1510113925311; Tue, 07 Nov 2017 20:05:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510113925; cv=none; d=google.com; s=arc-20160816; b=oOW+FZodmCWKAjtCJe+M/DWEsxCvFIUu9XkliHUIajhD3k5tXTBhGgI7srUbcR3Kin nlkFKCNYxKv4RAA3gldxesZfiFEGIWeurjvsFz29JLlDrEkOVMHVu6kGSnA0ByK03k04 IoBjRlEQ9NgPmyZrxkAfq6o98SwQoyukaY2xCKSXRxX2WspMX6NZlXchNQxhHJnaEFFs FC+dWOxZK80O8KDxn1DnPyMatFVuT0NvJXz7i3ilnx7HJtJv1YvCG9yqpWvxMuBgK8Gg BMJ4QLzyIhBLfU+nFvhHgeRVTww5BFNKAKmm+1YWQAhvX/a0BgXs9timtmxzS9aVVyAs w1Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=B10yglIrSGnsyNCm9+vOOyNOK0NktQsYh9X8+/xDFK0=; b=peb1ntXxgdx2B3uvprogi0Ug/EKvTybpm3CaX8X9pEXeXYG/jDkaqpRZQrSXCpzR1i URzL4abNN+5JTc02M1GLXkE6IeA+6fw50CHL11DT3CsqqdTzNFStROXZO5heW63ir6S0 uySy+HZ9l6g2obt6/+dsdsC5gJ4uwLy0HOG6lFtMHVd32tJaXraT+RXQkLvzbv0taRBy eNXEWO/Q/47+Q4PTdb7pfTQNvQ1CV/E8osl3FsrELZLCk0Xtp53A2NEHOlAzvYVefozo zsLjlT/emGeC/eYrlXSWI7M3WrtnHsJb/TDg5FQSOY9kO7lZxQlYcKS3kcVsgY2KmC/d 2LsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e9si2667247pga.447.2017.11.07.20.05.12; Tue, 07 Nov 2017 20:05:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752897AbdKHCYF (ORCPT + 90 others); Tue, 7 Nov 2017 21:24:05 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:32948 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752641AbdKHCYE (ORCPT ); Tue, 7 Nov 2017 21:24:04 -0500 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vA82NvAX133693 for ; Tue, 7 Nov 2017 21:24:03 -0500 Received: from e36.co.us.ibm.com (e36.co.us.ibm.com [32.97.110.154]) by mx0b-001b2d01.pphosted.com with ESMTP id 2e3p8gf6p8-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 07 Nov 2017 21:24:03 -0500 Received: from localhost by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 7 Nov 2017 19:24:02 -0700 Received: from b03cxnp08028.gho.boulder.ibm.com (9.17.130.20) by e36.co.us.ibm.com (192.168.1.136) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 7 Nov 2017 19:24:00 -0700 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id vA82Nxrx51642434; Tue, 7 Nov 2017 19:23:59 -0700 Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AFEA26A03B; Tue, 7 Nov 2017 19:23:59 -0700 (MST) Received: from suka-w540.usor.ibm.com (unknown [9.70.94.25]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP id 3D46B6A041; Tue, 7 Nov 2017 19:23:59 -0700 (MST) From: Sukadev Bhattiprolu To: Michael Ellerman Cc: Benjamin Herrenschmidt , mikey@neuling.org, hbabu@us.ibm.com, nicholas.piggin@gmail.com, linuxppc-dev@ozlabs.org, Subject: [PATCH v3 00/18] powerpc/vas: Add support for FTW Date: Tue, 7 Nov 2017 18:23:40 -0800 X-Mailer: git-send-email 2.7.4 X-TM-AS-GCONF: 00 x-cbid: 17110802-0020-0000-0000-00000CF6A943 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008029; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000239; SDB=6.00942691; UDB=6.00475552; IPR=6.00722979; BA=6.00005677; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00017903; XFM=3.00000015; UTC=2017-11-08 02:24:02 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17110802-0021-0000-0000-00005ED15303 Message-Id: <1510107838-15181-1-git-send-email-sukadev@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-07_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1711080027 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The first 10 patches in this set sanitize cpu/chip id to VAS id mapping, improve vas_win_close() performance, add a check for return of credits and cleans up some code. Patch 11 adds debugfs support for the VAS window contexts. Patches 12-18 add support for user space aka Fast thread-wakeup windows in VAS. These include a patch from Michael Neuling to support emulating the paste instruction. Changelog[v3]: - [Michael Ellerman] We don't need to disable/enable pagefaults when emulating paste; - [Michael Ellerman, Aneesh Kumar] Fix retval from emulate_paste() and paste(). - [Nick Piggin] Drop CP_ABORT since set_thread_uses_vas() does that now (in earlier patch) and add a check for return value. - [Michael Ellerman] Fix couple of unininitialized variables - Minor tweak to a debug message Michael Neuling (1): powerpc: Emulate paste instruction Sukadev Bhattiprolu (17): powerpc/vas: init missing fields from [rt]xattr powerpc/vas: Validate window credits powerpc/vas: Cleanup some debug code powerpc/vas: Drop poll_window_cast_out(). powerpc/vas: Use helper to unpin/close window powerpc/vas: Reduce polling interval for busy state powerpc/vas: Save configured window credits powerpc/vas: poll for return of window credits powerpc/vas: Create cpu to vas id mapping powerpc/vas, nx-842: Define and use chip_to_vas_id() powerpc/vas: Export HVWC to debugfs powerpc: have copy depend on CONFIG_BOOK3S_64 powerpc: Add support for setting SPRN_TIDR powerpc: Define set_thread_uses_vas() powerpc/vas: Define vas_win_paste_addr() powerpc/vas: Define vas_win_id() powerpc/vas: Add support for user receive window arch/powerpc/include/asm/emulated_ops.h | 1 + arch/powerpc/include/asm/ppc-opcode.h | 1 + arch/powerpc/include/asm/processor.h | 3 + arch/powerpc/include/asm/reg.h | 2 + arch/powerpc/include/asm/switch_to.h | 5 + arch/powerpc/include/asm/vas.h | 21 +++ arch/powerpc/kernel/process.c | 169 +++++++++++++++++-- arch/powerpc/kernel/traps.c | 67 ++++++++ arch/powerpc/platforms/powernv/Makefile | 3 +- arch/powerpc/platforms/powernv/vas-debug.c | 209 ++++++++++++++++++++++++ arch/powerpc/platforms/powernv/vas-window.c | 242 +++++++++++++++++++++++----- arch/powerpc/platforms/powernv/vas.c | 31 +++- arch/powerpc/platforms/powernv/vas.h | 93 ++++++----- drivers/crypto/nx/nx-842-powernv.c | 18 +-- 14 files changed, 751 insertions(+), 114 deletions(-) create mode 100644 arch/powerpc/platforms/powernv/vas-debug.c -- 2.7.4 From 1584208966966580044@xxx Thu Nov 16 08:03:23 +0000 2017 X-GM-THRID: 1584208966966580044 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread