From patchwork Mon Nov 19 21:47:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yu-cheng Yu X-Patchwork-Id: 10689535 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 585166C5 for ; Mon, 19 Nov 2018 21:54:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A4162A583 for ; Mon, 19 Nov 2018 21:54:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E61D2A6EC; Mon, 19 Nov 2018 21:54:46 +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=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA7E42A583 for ; Mon, 19 Nov 2018 21:54:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E98CF6B1C96; Mon, 19 Nov 2018 16:54:24 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id DF48E6B1C98; Mon, 19 Nov 2018 16:54:24 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C6CE86B1C99; Mon, 19 Nov 2018 16:54:24 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by kanga.kvack.org (Postfix) with ESMTP id 84E876B1C96 for ; Mon, 19 Nov 2018 16:54:24 -0500 (EST) Received: by mail-pf1-f197.google.com with SMTP id v79so4405701pfd.20 for ; Mon, 19 Nov 2018 13:54:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=d/wTFUPAs+KlOihPh9SXXZ7HI7k2d1EFWCjRpMRif20=; b=QfTlf48FJW00K6ftWLUMDvBcHayDU6dP7hsG5u8FuqtFvXbsVJczqqoOlDal1yktVV 78//Ya3YzYz0jSQSU9by7VZ1z/a+KXXGlOKdaTsJeG9LvnBWryjf6LWOeuCRb9F6IKFa J25nCIz78uXfz4z4xdRR99u2l8YGD5bfS9Uga528IS1iRbbhxXivglLYdh7QVCA6eeLn Cv0aV026PaAwtZ1uf0vDtsf3kp8BoeExYxqGohCMgub4N4jezRTgGJ6bmsAj5FJwI4Up nVSb4ujLDCPCIMZO73RS8kL4mCKfrxj92bPYo4cxrKE7T5Va4ZoQ26T+q7hRpzL7zj2J DknQ== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of yu-cheng.yu@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=yu-cheng.yu@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Gm-Message-State: AGRZ1gJI/0dQet26a6XeNAhKULnKLdovf38YvJ8A2OTIMZ2LJuTgnsGx 7UdNxx6rcQL/SnqhN1yrG4lcq9dnodhbJEq9eeaFdtv9huOnFEvL2+6BcsTIpPDpMpMS7/GZkJl K2vSomWzgQbmyYGki5dbZEvFuM1nc3MnglQJVRX4NPJmivw4NLZ6USYpg+/aVqF3aRw== X-Received: by 2002:a17:902:3e3:: with SMTP id d90-v6mr24008958pld.118.1542664464224; Mon, 19 Nov 2018 13:54:24 -0800 (PST) X-Google-Smtp-Source: AJdET5fzfLwndU5U6d47kjCimP7EPR5nT6wgluuVAWPfOfcGZK+1tm1htbpa9qwCbi16PaAd5VHr X-Received: by 2002:a17:902:3e3:: with SMTP id d90-v6mr24008914pld.118.1542664463449; Mon, 19 Nov 2018 13:54:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542664463; cv=none; d=google.com; s=arc-20160816; b=G/FT9usYgHU+Mhqul8hr5p6JCrc0h1NuHmJUdNwis9VbfW0yjN/Gsx0k+oKZ720nbS OZhIoI5rG9UCB32nxWho1s17z5b+D1MvYXhsx8VLmP6RHkxpdFROm2XKmykBDXb7QHeT HHU8IT60AUfSvf7k+54msZtzXWyEFAU+78jrdPx+sIGMRSVLI1jwUvrY8y43eFabLZ2b IQ2MUPa52qSbclvCL43SFSvUs4CP64Hjn6zdh/9a1/brhAEh1TfXtuqgetMgmY3l3q0h vCuHN0FUnvPKnUafV71Y+2J2iCl/5GM2FNo7ozzr2V1G9zsAomeQC+8lQKeHeFicdrum 3zSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=d/wTFUPAs+KlOihPh9SXXZ7HI7k2d1EFWCjRpMRif20=; b=Iu8ZE/fz7UcS+bAgClBMP7ScZXh8/CjiXs7lVzEyueySsoNjFBYcB4n+dq2GKB6uTq 7UNJD9C2kOj9CMrjk115pqs28YABdvaGAFp54tGZ324PUbAOHklwff1ktDZVFV0BenxP 4mh+H+svRzpIOo1zT3qc9iSgNNaDcYP569iUhBnNJNmW0hzKqhIrXeH5Cu6ZVFnH05yD g5+szLZhvLOX6b3clWKGgNP/eakn2k55+skJhKHkyxpsu3USrC+ToDrI5/5BREhCHA4n BnawK+5YSH2+fI70e693VZkY0TA8O2nFiem8W2oRiuC65EnKAEHqGB5KSZrefIeFKnmp cq4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of yu-cheng.yu@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=yu-cheng.yu@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from mga11.intel.com (mga11.intel.com. [192.55.52.93]) by mx.google.com with ESMTPS id o12-v6si32492543plg.114.2018.11.19.13.54.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 13:54:23 -0800 (PST) Received-SPF: pass (google.com: domain of yu-cheng.yu@intel.com designates 192.55.52.93 as permitted sender) client-ip=192.55.52.93; Authentication-Results: mx.google.com; spf=pass (google.com: domain of yu-cheng.yu@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=yu-cheng.yu@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Nov 2018 13:54:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,254,1539673200"; d="scan'208";a="93319872" Received: from yyu32-desk1.sc.intel.com ([143.183.136.147]) by orsmga008.jf.intel.com with ESMTP; 19 Nov 2018 13:54:22 -0800 From: Yu-cheng Yu To: x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue Cc: Yu-cheng Yu Subject: [RFC PATCH v6 12/26] drm/i915/gvt: Update _PAGE_DIRTY to _PAGE_DIRTY_BITS Date: Mon, 19 Nov 2018 13:47:55 -0800 Message-Id: <20181119214809.6086-13-yu-cheng.yu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181119214809.6086-1-yu-cheng.yu@intel.com> References: <20181119214809.6086-1-yu-cheng.yu@intel.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP Update _PAGE_DIRTY to _PAGE_DIRTY_BITS in split_2MB_gtt_entry(). In order to support Control-flow Enforcement (CET), _PAGE_DIRTY is now _PAGE_DIRTY_HW or _PAGE_DIRTY_SW. Signed-off-by: Yu-cheng Yu --- drivers/gpu/drm/i915/gvt/gtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gvt/gtt.c b/drivers/gpu/drm/i915/gvt/gtt.c index 58e166effa45..6e94e27d810e 100644 --- a/drivers/gpu/drm/i915/gvt/gtt.c +++ b/drivers/gpu/drm/i915/gvt/gtt.c @@ -1174,7 +1174,7 @@ static int split_2MB_gtt_entry(struct intel_vgpu *vgpu, } /* Clear dirty field. */ - se->val64 &= ~_PAGE_DIRTY; + se->val64 &= ~_PAGE_DIRTY_BITS; ops->clear_pse(se); ops->clear_ips(se);