Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp843139ybf; Thu, 27 Feb 2020 00:29:03 -0800 (PST) X-Google-Smtp-Source: APXvYqyrAq+tcNXG9nOtAcz95UsS+kYLZVzrt1wtlsCJtpL+xDZ6UgwVFKLsmSD/dPPHZrjUSDQf X-Received: by 2002:a54:468a:: with SMTP id k10mr2477387oic.3.1582792143413; Thu, 27 Feb 2020 00:29:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582792143; cv=none; d=google.com; s=arc-20160816; b=HgHvxNlNRbgePInASpC81hfzgiTgmDzeGksLtggmVbsi/WTpFSYF1TpPdtjljpd8kL H0N+HAnaXlb/Y5c1qBgML948dxXguJvNBgpLeQcPYPp66Rp6gXGrZ90M/VwSHeLtxX4/ MVUIKZG1baYSBk7GbY4EC7K6bSYwk8KRKNA+eU3W7Gl+qanyAJcmCog05CERBGzuKI93 H4T4uz/eU5uFLnQNzqiVZzakY/kQkgOgKmocoUkCudfnG78OaofYbGRVvnSWrLBp6yxa KsSkOWZIiL9HVYZzAyZLLSnz4FIU9u50qzOnLTo13HWT+v9Q9nBqCDO2JYXPK1EwvWE1 QZxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :references:cc:to:from:subject; bh=F3x8pr+MA4c2bDjK/riP1nC/u67lq77fiIr0OA3xvB4=; b=U4e6EgeMr4UIDTrexX2sGMHpUnzrXb7PfHOAOCFI2ChZwtSWQWxAuCTAGEsdtBtLGQ Jp5OwPTsJ3e0in4kYTjlnkXl7vsrbHZX2Ow0P51V89hD0o/6cE8f9HmdO+Mt02T42zme +J+KW1mTFGtMoFsyX+1/ShBOWQknZMMZ65ZCqNOAzDclOYPXXjG+mwNSWEUjEwBBJ3Ya sOKXyZWEYbhj82xkk66KcSd4dveNYhOeDJR8cHK257d0rvWiDP3iiaqnpJCaw8dJCBDv D2MRRfanlTznWkkIhO1RenGQdh3wzoRH7QGWUezj5uIagkNheg4U8SwoL3phMQ3UjYiR aXrw== 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 d8si1083187otp.295.2020.02.27.00.28.51; Thu, 27 Feb 2020 00:29:03 -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 S1728594AbgB0I1c (ORCPT + 99 others); Thu, 27 Feb 2020 03:27:32 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:37784 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728454AbgB0I1c (ORCPT ); Thu, 27 Feb 2020 03:27:32 -0500 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01R8JdaH033821 for ; Thu, 27 Feb 2020 03:27:31 -0500 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ydkfa5g2h-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 27 Feb 2020 03:27:31 -0500 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 27 Feb 2020 08:27:28 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 27 Feb 2020 08:27:20 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01R8RJaa58851568 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Feb 2020 08:27:19 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1E4094C044; Thu, 27 Feb 2020 08:27:19 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BB4D34C046; Thu, 27 Feb 2020 08:27:18 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 27 Feb 2020 08:27:18 +0000 (GMT) Received: from [10.61.2.125] (haven.au.ibm.com [9.192.254.114]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id A5F70A01C0; Thu, 27 Feb 2020 19:27:13 +1100 (AEDT) Subject: Re: [PATCH v3 14/27] powerpc/powernv/pmem: Add support for Admin commands From: Andrew Donnellan To: "Alastair D'Silva" , alastair@d-silva.org Cc: "Aneesh Kumar K . V" , "Oliver O'Halloran" , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Frederic Barrat , Arnd Bergmann , Greg Kroah-Hartman , Dan Williams , Vishal Verma , Dave Jiang , Ira Weiny , Andrew Morton , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Anton Blanchard , Krzysztof Kozlowski , Mahesh Salgaonkar , Madhavan Srinivasan , =?UTF-8?Q?C=c3=a9dric_Le_Goater?= , Anju T Sudhakar , Hari Bathini , Thomas Gleixner , Greg Kurz , Nicholas Piggin , Masahiro Yamada , Alexey Kardashevskiy , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-nvdimm@lists.01.org, linux-mm@kvack.org References: <20200221032720.33893-1-alastair@au1.ibm.com> <20200221032720.33893-15-alastair@au1.ibm.com> Date: Thu, 27 Feb 2020 19:27:16 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 20022708-0028-0000-0000-000003DE6B81 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20022708-0029-0000-0000-000024A389F3 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-27_02:2020-02-26,2020-02-27 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxlogscore=755 suspectscore=0 malwarescore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 bulkscore=0 adultscore=0 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002270067 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/2/20 7:22 pm, Andrew Donnellan wrote: >> +int admin_command_request(struct ocxlpmem *ocxlpmem, u8 op_code) >> +{ >> +    u64 val; >> +    int rc = ocxl_global_mmio_read64(ocxlpmem->ocxl_afu, >> GLOBAL_MMIO_CHI, >> +                     OCXL_LITTLE_ENDIAN, &val); >> +    if (rc) >> +        return rc; > > Ignoring the value here expected, you're just trying to verify that you > don't see an error on the read? I see that in the next patch, in ns_command_request() you check that NSCRA is 1 - did you mean to check that ACRA = 1 here? -- Andrew Donnellan OzLabs, ADL Canberra ajd@linux.ibm.com IBM Australia Limited