Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752925AbdFUALJ (ORCPT ); Tue, 20 Jun 2017 20:11:09 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:55456 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752648AbdFUALH (ORCPT ); Tue, 20 Jun 2017 20:11:07 -0400 Date: Tue, 20 Jun 2017 17:10:55 -0700 From: Ram Pai To: Anshuman Khandual Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, dave.hansen@intel.com, paulus@samba.org, aneesh.kumar@linux.vnet.ibm.com Subject: Re: [RFC v2 12/12]selftest: Updated protection key selftest Reply-To: Ram Pai References: <1497671564-20030-1-git-send-email-linuxram@us.ibm.com> <1497671564-20030-13-git-send-email-linuxram@us.ibm.com> <126766e1-070c-7072-1bc8-ebdf6e22db43@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <126766e1-070c-7072-1bc8-ebdf6e22db43@linux.vnet.ibm.com> User-Agent: Mutt/1.5.20 (2009-12-10) X-TM-AS-GCONF: 00 x-cbid: 17062100-0036-0000-0000-000002315068 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007263; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000214; SDB=6.00877668; UDB=6.00437236; IPR=6.00657806; BA=6.00005432; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00015904; XFM=3.00000015; UTC=2017-06-21 00:11:05 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17062100-0037-0000-0000-000040CD6351 Message-Id: <20170621001055.GE5845@ram.oc3035372033.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-06-20_12:,, 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-1703280000 definitions=main-1706210001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 865 Lines: 21 On Tue, Jun 20, 2017 at 11:56:04AM +0530, Anshuman Khandual wrote: > On 06/17/2017 09:22 AM, Ram Pai wrote: > > Added test support for PowerPC implementation off protection keys. > > > > Signed-off-by: Ram Pai > > First of all, there are a lot of instances where we use *pkru* > named functions on power even the real implementations have > taken care of doing appropriate things. That looks pretty > hacky. We need to change them to generic names first before > adding both x86 and powerpc procedures inside it. I have abstracted out the arch-specific code. References to pkru should now be constricted to x86 code only. The patch, i acknowledge, is not easily reviewable. As Michael Ellermen mentioned I will break them into two patches. One moves the file and the second does the code changes. That way it will be easy to review. RP