Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3959025imm; Mon, 20 Aug 2018 07:33:13 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxzJgJOJFMcJhK8Sn2B2S8VaBirRZY5+tkf50F03YflxI8MaWV99DbVQHb2oPg1WDzJxbnd X-Received: by 2002:a62:669b:: with SMTP id s27-v6mr49060882pfj.224.1534775593356; Mon, 20 Aug 2018 07:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534775593; cv=none; d=google.com; s=arc-20160816; b=nQJDM/mwgcCKg3IhFl3FooV4G6RT2dSUTnkF39QdNyTrFBNeVW6KgcCjC+3iBMywD4 sEFz8yIr7/HTeY4jNgsz3gAfX9d9vZ8AtE4ahGE0Ga6DtpsI+QJ4Y2wuhpaGzcVYzSTE pGr+4zAi4HqvGJ2w7dmikAAIxGaySsP0b96wRu0aDblJP7TgiEafWI+QYZ27593S9qqM DPeOrpZkijKs3rZJsV0uaOTvb0BWneCZddzRpiDCcfPOCmoCk3y5v+KjsVGrK50xRU5x tpo0hHUm8Tldi7mVBYZKU1FtnLA+2UZHXnkqCe2YxUSGmM8Y/SIaVH13zA7FIV8IpeK0 aVfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=97+7I5LpP7hQtLPSBFQ6vAeC4u6iF+44YAJw9pQCFsE=; b=Ap4kQgGoZrfcN9VINT9IiOXS4xqig+0OfCc/P1gkPrtJIX6168cEkKOoqbzhGLq3cU BAHYvFSHy5nWduksaq3HD8KAYmMQELH/rYOlMpicyPKX2Z19lAyEp9e1fyhZAjUbqlNi 3AVcjnqlzBPZp60m5xZVFCnzHrahVQ0QTJRgastH+SlY7Qbkb3KuXtDhqxwMIX8bk6dg eyiDyhW+DmAARnHBg3NDq1YzgDUxyXjkIpc1x1IXR3VGzGG4vhyAv0bEh/9ZmkhO//Yn qN75E64Zn0k1dpsjQsUKYFUf4y2d5xrUp3+xAYcz1mCFmlqOuA+d9NSPw/e9E7ZBKBwX +fxA== 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 f190-v6si10081420pfc.327.2018.08.20.07.32.58; Mon, 20 Aug 2018 07:33:13 -0700 (PDT) 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 S1727279AbeHTRpj (ORCPT + 99 others); Mon, 20 Aug 2018 13:45:39 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:36782 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726778AbeHTRpi (ORCPT ); Mon, 20 Aug 2018 13:45:38 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w7KETaiA133836 for ; Mon, 20 Aug 2018 10:29:45 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0b-001b2d01.pphosted.com with ESMTP id 2kywr1cqgx-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 20 Aug 2018 10:29:45 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 20 Aug 2018 15:29:43 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 20 Aug 2018 15:29:40 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w7KETdaX13959352 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 20 Aug 2018 14:29:39 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 49D5C5204F; Mon, 20 Aug 2018 17:29:40 +0100 (BST) Received: from nimbus.lab.toulouse-stg.fr.ibm.com (unknown [9.145.155.131]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id B2DB152052; Mon, 20 Aug 2018 17:29:39 +0100 (BST) From: Laurent Dufour To: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: aneesh.kumar@linux.ibm.com, mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, npiggin@gmail.com Subject: [PATCH v2 1/3] powerpc/pseries/mm: Introducing FW_FEATURE_BLOCK_REMOVE Date: Mon, 20 Aug 2018 16:29:34 +0200 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534775376-22480-1-git-send-email-ldufour@linux.vnet.ibm.com> References: <1534775376-22480-1-git-send-email-ldufour@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18082014-4275-0000-0000-000002AC47DB X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18082014-4276-0000-0000-000037B57A97 Message-Id: <1534775376-22480-2-git-send-email-ldufour@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-08-20_05:,, 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=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1808200156 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This feature tells if the hcall H_BLOCK_REMOVE is available. Cc: "Aneesh Kumar K.V" Cc: Nicholas Piggin Cc: Michael Ellerman Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Reviewed-by: Aneesh Kumar K.V Signed-off-by: Laurent Dufour --- arch/powerpc/include/asm/firmware.h | 3 ++- arch/powerpc/platforms/pseries/firmware.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/firmware.h b/arch/powerpc/include/asm/firmware.h index 7a051bd21f87..2aca2655fe30 100644 --- a/arch/powerpc/include/asm/firmware.h +++ b/arch/powerpc/include/asm/firmware.h @@ -52,6 +52,7 @@ #define FW_FEATURE_PRRN ASM_CONST(0x0000000200000000) #define FW_FEATURE_DRMEM_V2 ASM_CONST(0x0000000400000000) #define FW_FEATURE_DRC_INFO ASM_CONST(0x0000000800000000) +#define FW_FEATURE_BLOCK_REMOVE ASM_CONST(0x0000001000000000) #ifndef __ASSEMBLY__ @@ -69,7 +70,7 @@ enum { FW_FEATURE_SET_MODE | FW_FEATURE_BEST_ENERGY | FW_FEATURE_TYPE1_AFFINITY | FW_FEATURE_PRRN | FW_FEATURE_HPT_RESIZE | FW_FEATURE_DRMEM_V2 | - FW_FEATURE_DRC_INFO, + FW_FEATURE_DRC_INFO | FW_FEATURE_BLOCK_REMOVE, FW_FEATURE_PSERIES_ALWAYS = 0, FW_FEATURE_POWERNV_POSSIBLE = FW_FEATURE_OPAL, FW_FEATURE_POWERNV_ALWAYS = 0, diff --git a/arch/powerpc/platforms/pseries/firmware.c b/arch/powerpc/platforms/pseries/firmware.c index a3bbeb43689e..1624501386f4 100644 --- a/arch/powerpc/platforms/pseries/firmware.c +++ b/arch/powerpc/platforms/pseries/firmware.c @@ -65,6 +65,7 @@ hypertas_fw_features_table[] = { {FW_FEATURE_SET_MODE, "hcall-set-mode"}, {FW_FEATURE_BEST_ENERGY, "hcall-best-energy-1*"}, {FW_FEATURE_HPT_RESIZE, "hcall-hpt-resize"}, + {FW_FEATURE_BLOCK_REMOVE, "hcall-block-remove"}, }; /* Build up the firmware features bitmask using the contents of -- 2.7.4