Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752368AbdHNTOR (ORCPT ); Mon, 14 Aug 2017 15:14:17 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:39409 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752337AbdHNTOQ (ORCPT ); Mon, 14 Aug 2017 15:14:16 -0400 Date: Mon, 14 Aug 2017 12:14:09 -0700 From: Sukadev Bhattiprolu To: Nicholas Piggin Cc: Michael Ellerman , Benjamin Herrenschmidt , mikey@neuling.org, stewart@linux.vnet.ibm.com, apopple@au1.ibm.com, hbabu@us.ibm.com, oohall@gmail.com, linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 01/17] powerpc/vas: Define macros, register fields and structures References: <1502233622-9330-1-git-send-email-sukadev@linux.vnet.ibm.com> <1502233622-9330-2-git-send-email-sukadev@linux.vnet.ibm.com> <877ey6sp03.fsf@concordia.ellerman.id.au> <20170814160522.4f9b517a@roar.ozlabs.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170814160522.4f9b517a@roar.ozlabs.ibm.com> X-Operating-System: Linux 2.0.32 on an i486 User-Agent: Mutt/1.7.1 (2016-10-04) X-TM-AS-GCONF: 00 x-cbid: 17081419-0052-0000-0000-0000024FAC9E X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007544; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000220; SDB=6.00902309; UDB=6.00451904; IPR=6.00682524; BA=6.00005531; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016692; XFM=3.00000015; UTC=2017-08-14 19:14:14 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17081419-0053-0000-0000-000051AB9C67 Message-Id: <20170814191409.GA24096@us.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-08-14_16:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1706020000 definitions=main-1708140314 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1131 Lines: 33 Nicholas Piggin [npiggin@gmail.com] wrote: > On Mon, 14 Aug 2017 15:21:48 +1000 > Michael Ellerman wrote: > > > Sukadev Bhattiprolu writes: > > > > arch/powerpc/include/asm/vas.h | 35 ++++ > > > arch/powerpc/include/uapi/asm/vas.h | 25 +++ > > > > I thought we weren't exposing VAS to userspace yet? > > > > If we are then we need to get things straight WRT copy/paste abort. > > No we should not be. This might be just a leftover hunk that should > be moved to a future series. Yes, I should have posted patches 14..17 separately as an RFC that goes on top of the VAS kernel patches 1..13. > > At the moment (as far as I understand) it should be limited to > preempt-disabled, process context, kernel users which avoids any > concern for switch_to. > In the FTW case, there is no data transfer from user space to the hardware. i.e the copy/paste submit a NULL CRB and hardware will be configured (see ->fifo_disable setting in winctx) to ignore any data they specify in the CRB. Would we be able to allow copy/paste from user space in that case? Sukadev