From patchwork Fri Aug 4 18:07:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 9881885 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DEF9760360 for ; Fri, 4 Aug 2017 18:07:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDD77288DD for ; Fri, 4 Aug 2017 18:07:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C21F52899E; Fri, 4 Aug 2017 18:07:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A346288DD for ; Fri, 4 Aug 2017 18:07:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751323AbdHDSHt (ORCPT ); Fri, 4 Aug 2017 14:07:49 -0400 Received: from mout.gmx.net ([212.227.15.15]:63992 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751300AbdHDSHt (ORCPT ); Fri, 4 Aug 2017 14:07:49 -0400 Received: from p100.box ([193.159.17.37]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LaGJa-1dEm2b1Wc2-00m2WN; Fri, 04 Aug 2017 20:07:43 +0200 Date: Fri, 4 Aug 2017 20:07:41 +0200 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [PATCH] parisc: Add MADV_HWPOISON and MADV_SOFT_OFFLINE Message-ID: <20170804180741.GA29755@p100.box> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:IVPYZ4y+k8W7bZZKM9PgjWV8vPbc6UMZOfuN7lGSamr9EjtRPy3 UUabPp1BOoxSVtkvnbyZc+pAW/BtbYB0dx0T8Yk2axBSdP3BLQ5LDrc14e3qfE9jntZPmIx pgUekiwgbc+Z2fsOV06A9ZUKb+GiMWHf8/ghAsVrj9xBiJgW68kmN46cZWI1z4e/E0JaCVD p5fFaPC+YBgn67qZHOTkQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:zv8kmpdp/Pk=:ZMYzOEDOzrkNk9pB+fiJ+z WMRQQ16uNGe7oj8tj2j8kKn1/k+tr4zpUFUVO25cDWs7N0wwae9L/XG/51xmrDShc5z/nPRFm UXS0pPpCs0iEI44YudW9Kr2d2VNYS3Qd1puwkmxDzgGSwO4uUaWCqTHHU+FgEOuDL0RZ+/wSp WstX0Nh1iZr20WETZWIpnczT948r124EO4NxTTS/WByIPs46Xs4AAnPeyz1I88cTX05Av4tOQ UwpCzPoIaNWN/KnhIqrfShWL+jxb5zW/9I6GYM6N+gxFog2KBXyuaV6HT9r8qydIffqfJoBIo uTNvfa/LV0KlwwT8HZbtOWqJawO0eL5dR2lS2gleKVJjNz3gbNGkMby/tNz/lyYNY3tGWbibs 2Zo8cZZ/HAZWqirrO/ByvCQR5+32xbNXE38AdpZ6EAciamYOigjGXWC6/fYPej5TqZnSiVSuB mp+rUlpZRIM8uPlv/4nU6AewSEHmXB4bKnriXugQ5L8i6lvWGQjL+jGHzNY46BCgd/pcauXPY kPqGcj/zm+NfwHMOug7Ek0ihEpX1eaotqu5sSY4qn8ZdZG+IH+U0mspVkrBx1M5/iBKAIY4rm q6uh6tCoqpZTnGPPGPiUzFChYxOa5KNoOuEC9Xy3Hb709EKR4fYheVqSv4JaqCYD2VpEUxUlu qLp0JNNMcIiCo/hDdJxGDIGvQt+Bns+s9JrmyKba83b5k8lw6CHDn2fj8WTxrnjzV5w4EiP/Z Q1qQ7BtRWiqJZEYrQC6PDipin4lRpXLGCWYzhnPxxN7oqRK/pzYtW62GX0LmgoZ5NOHvsFuSk Y0bBI09cyClDg4IcbZ8dHgamceaqQ== Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the missing MADV_HWPOISON (100) and MADV_SOFT_OFFLINE (101) defines which are needed for an upcoming patch which adds page-deallocation for parisc. Signed-off-by: Helge Deller --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/parisc/include/uapi/asm/mman.h b/arch/parisc/include/uapi/asm/mman.h index 5979745..2e7b8c2 100644 --- a/arch/parisc/include/uapi/asm/mman.h +++ b/arch/parisc/include/uapi/asm/mman.h @@ -60,6 +60,9 @@ overrides the coredump filter bits */ #define MADV_DODUMP 70 /* Clear the MADV_NODUMP flag */ +#define MADV_HWPOISON 100 /* poison a page for testing */ +#define MADV_SOFT_OFFLINE 101 /* soft offline page for testing */ + /* compatibility flags */ #define MAP_FILE 0 #define MAP_VARIABLE 0 diff --git a/tools/arch/parisc/include/uapi/asm/mman.h b/tools/arch/parisc/include/uapi/asm/mman.h index 03d8d5b..286c0bd 100644 --- a/tools/arch/parisc/include/uapi/asm/mman.h +++ b/tools/arch/parisc/include/uapi/asm/mman.h @@ -36,9 +36,7 @@ #define PROT_READ 0x1 #define PROT_SEM 0x8 #define PROT_WRITE 0x2 -/* MADV_HWPOISON is undefined on parisc, fix it for perf */ #define MADV_HWPOISON 100 -/* MADV_SOFT_OFFLINE is undefined on parisc, fix it for perf */ #define MADV_SOFT_OFFLINE 101 /* MAP_32BIT is undefined on parisc, fix it for perf */ #define MAP_32BIT 0