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=-6.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS 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 3F986C4646B for ; Wed, 26 Jun 2019 03:19:03 +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 82C4C2146E for ; Wed, 26 Jun 2019 03:19:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Vn60NhOU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 82C4C2146E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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 45YStC6c3TzDqTx for ; Wed, 26 Jun 2019 13:18:59 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::d41; helo=mail-io1-xd41.google.com; envelope-from=oohall@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Vn60NhOU"; dkim-atps=neutral Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 45YSrH3NXTzDqXW for ; Wed, 26 Jun 2019 13:17:19 +1000 (AEST) Received: by mail-io1-xd41.google.com with SMTP id k20so1756225ios.10 for ; Tue, 25 Jun 2019 20:17:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iDaxZ2oDFXNBAYZ6jhw0j4lVi52hkng3WRc/YvzdVwE=; b=Vn60NhOUJkgNWfEmAKAdnlFhjODRzjbKpbVP1VYlTFROZS5HGKT47e1xysVPJIcfTA pZ4oCo8gN+pz4ZONVKQrOV74bbWTPYbMpvcCgCujIz5KoqV+7hPqHWDCWZPU2dnxigge dDsDktlVpKoRTtgK5vagMUZWgx6EksxkATpAOl2aeaO7EW4a3q5hZ5paqkdT89+uvnnH zliNq5bBESwmynHwLG7efjTFsVfyv2+szp6qdaUH/oVO/hpyPy5gQ7regezYb4cTS0cF mg42MkZlUWzjRv+iGnUAs7/oY0LqMWyvrdPrIwtNfyBMWdOsENfNp0CnT46+bjiP3Oa3 ereg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iDaxZ2oDFXNBAYZ6jhw0j4lVi52hkng3WRc/YvzdVwE=; b=dJLznwShxuncNAg4BsEyj+wlCWUI2NYwNyI7um6MCximhhlTABkgslcvwLNwVPAZCV PMuGkLRjQPqmaoZdcUYhH+m4MB94fAa0s9l2hHspP5SzV9uPItIgWYejL+o8+y3IUBxu 16/vBAcNgRLbshj0DpOUoo3dZ+g+/jfWU7skFBKsrpyCJSaEhhE9nSrXvUZbD6LLGDD7 4lBXlONcHK0zV/BKt+RnH2ZF2d5cHHuRrwghxKc6FSZpiM2oXWfAm6fVbN2dwT2JWH0+ IR8z9a6/CUFBK5XbZrjqxC8BWi/pwubVU84PSUvEal9A+1oVA1CKcAv6jgEixM8In0Iz Nv2g== X-Gm-Message-State: APjAAAVRePR/zB7fECwERAUl5LSlJtp1yRiyijSUVRurVtAS45jex5vk I3CSjSA/osQ4F+sZKycpALa/35rcT3NykSVgBy85IeWB X-Google-Smtp-Source: APXvYqxkhx0llAYDUIO95F4fr1oimPdUOJTrdli/3FZ3eNKt0/gubklpxc3X1vSLUfY5zGqgL/CBZU73MDVoteA/E8Q= X-Received: by 2002:a5d:8404:: with SMTP id i4mr2354620ion.146.1561519036262; Tue, 25 Jun 2019 20:17:16 -0700 (PDT) MIME-Version: 1.0 References: <20190625122709.11846-1-vaibhav@linux.ibm.com> <20190625122709.11846-2-vaibhav@linux.ibm.com> In-Reply-To: <20190625122709.11846-2-vaibhav@linux.ibm.com> From: "Oliver O'Halloran" Date: Wed, 26 Jun 2019 13:17:05 +1000 Message-ID: Subject: Re: [PATCH v2 1/3] powerpc/pseries: Update SCM hcall op-codes in hvcall.h To: Vaibhav Jain Content-Type: text/plain; charset="UTF-8" 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: Laurent Dufour , linuxppc-dev , "Aneesh Kumar K . V" , David Gibson Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Tue, Jun 25, 2019 at 10:27 PM Vaibhav Jain wrote: > > Update the hvcalls.h to include op-codes for new hcalls introduce to > manage SCM memory. Also update existing hcall definitions to reflect > current papr specification for SCM. > > Signed-off-by: Vaibhav Jain > --- > Change-log: > > v2: > * None new patch in this series. > --- > arch/powerpc/include/asm/hvcall.h | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/arch/powerpc/include/asm/hvcall.h b/arch/powerpc/include/asm/hvcall.h > index 463c63a9fcf1..1f5f917dae8c 100644 > --- a/arch/powerpc/include/asm/hvcall.h > +++ b/arch/powerpc/include/asm/hvcall.h > @@ -302,9 +302,14 @@ > #define H_SCM_UNBIND_MEM 0x3F0 > #define H_SCM_QUERY_BLOCK_MEM_BINDING 0x3F4 > #define H_SCM_QUERY_LOGICAL_MEM_BINDING 0x3F8 > -#define H_SCM_MEM_QUERY 0x3FC > +#define H_SCM_UNBIND_ALL 0x3FC > #define H_SCM_BLOCK_CLEAR 0x400 The BLOCK_CLEAR hcall was removed from the spec and the 0x400 hcall number is now used by H_SCM_HEALTH. > -#define MAX_HCALL_OPCODE H_SCM_BLOCK_CLEAR > +#define H_SCM_PERFORMANCE_STATS 0x418 > +#define MAX_HCALL_OPCODE H_SCM_PERFORMANCE_STATS > + > +/* Scope args for H_SCM_UNBIND_ALL */ > +#define H_UNBIND_SCOPE_ALL (0x1) > +#define H_UNBIND_SCOPE_DRC (0x2) > > /* H_VIOCTL functions */ > #define H_GET_VIOA_DUMP_SIZE 0x01 > -- > 2.21.0 >