Received: by 10.223.185.116 with SMTP id b49csp1004956wrg; Wed, 21 Feb 2018 10:25:23 -0800 (PST) X-Google-Smtp-Source: AH8x225lRjEPD75+z9dI+Jxy71EJvNP+mAhyg/uAzw+BSjIEpQus0hxHW4JPXV7ewyF3q+kvNJfY X-Received: by 2002:a17:902:9a01:: with SMTP id v1-v6mr3831280plp.76.1519237523396; Wed, 21 Feb 2018 10:25:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519237523; cv=none; d=google.com; s=arc-20160816; b=OfKCABemBUquDzb46lTZVTOmmheSkTIOJUoSP5HbL0HEqgLLn5JN+knGf6BClkgAHM 9M0G8LNdtzukH0FgEJR6D843vK1i8Zi4w7E11XY5UmJ0XDcbUD5zEVta7YrCDOQN7ZR/ Ax6N9d3t5UdwV1DSXCM9+3notLZLnevfX83DnWJZ2nTPoAWmQeKDL6aI6CadHtbU0Dva NMUHxLlYUyU4a8jKsDN4ckRTbdBuphW7QLYf8Uq4IXiL7mNl1Wi9ph336UH4VTImsur3 p4uxC1nFo6tnRLRpZzhc8C5aqGWBAn9DGsPzSjO9L1J8ADs2zevr2Y37DVtOGJOkoY9I YxzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=BczM1cTkz2XzOSRQLlzJ40ntiwG+aZz1HgwufIYjYyI=; b=Pbp/SQp1F0UDQbJnYmIzYsPtMljLSj/BdG44FbvWfPgH78I4wl9UtBXH/lnpP7h+a0 TQLOIinUNw+BmELLfec4dQPza3lzYGAndcRFygSUSg7QTmghhQ42rAsq+z1ZOWWA2//8 flvzxCQMADHXXp9IaJGTNb23YhA8ECHvQHAc2Q9ODXD/YY6HOCwWukFUn7B9XNqdwcK/ T5Nxp8zWRoVdSmPhDEpBEu/jUV+6NqISr9wn5XPukn3lqJHeVTYmB93enTD1Fz0R/TDY X3CRE/Qs/BOJFj5VS/mRuM9GWFEhi4wndVK+ySVeiPk38wkbv3Cd57ovd5ZmXuyrn4bF GRzg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l62si10012134pfl.160.2018.02.21.10.25.09; Wed, 21 Feb 2018 10:25:23 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935419AbeBUNBN (ORCPT + 99 others); Wed, 21 Feb 2018 08:01:13 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:37740 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935403AbeBUNBJ (ORCPT ); Wed, 21 Feb 2018 08:01:09 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 226DD10F1; Wed, 21 Feb 2018 13:00:48 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lucas De Marchi , Rodrigo Vivi , Anusha Srivatsa , Jani Nikula , Joonas Lahtinen , David Airlie , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , x86@kernel.org, Jani Nikula Subject: [PATCH 4.14 036/167] x86/gpu: add CFL to early quirks Date: Wed, 21 Feb 2018 13:47:27 +0100 Message-Id: <20180221124526.577054863@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124524.639039577@linuxfoundation.org> References: <20180221124524.639039577@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Lucas De Marchi commit 33aa69ed8aacd92dea12671e52eb3ca6ac2d7a49 upstream. CFL was missing from intel_early_ids[]. The PCI ID needs to be there to allow the memory region to be stolen, otherwise we could have RAM being arbitrarily overwritten if for example we keep using the UEFI framebuffer, depending on how BIOS has set up the e820 map. Fixes: b056f8f3d6b9 ("drm/i915/cfl: Add Coffee Lake PCI IDs for S Skus.") Signed-off-by: Lucas De Marchi Cc: Rodrigo Vivi Cc: Anusha Srivatsa Cc: Jani Nikula Cc: Joonas Lahtinen Cc: David Airlie Cc: intel-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: Ingo Molnar Cc: H. Peter Anvin Cc: Thomas Gleixner Cc: x86@kernel.org Cc: # v4.13+ 0890540e21cf drm/i915: add GT number to intel_device_info Cc: # v4.13+ 41693fd52373 drm/i915/kbl: Change a KBL pci id to GT2 from GT1.5 Cc: # v4.13+ Reviewed-by: Rodrigo Vivi Acked-by: Jani Nikula Acked-by: Ingo Molnar Signed-off-by: Rodrigo Vivi Link: https://patchwork.freedesktop.org/patch/msgid/20171213200425.2954-1-lucas.demarchi@intel.com Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/early-quirks.c | 1 + include/drm/i915_pciids.h | 6 ++++++ 2 files changed, 7 insertions(+) --- a/arch/x86/kernel/early-quirks.c +++ b/arch/x86/kernel/early-quirks.c @@ -527,6 +527,7 @@ static const struct pci_device_id intel_ INTEL_SKL_IDS(&gen9_early_ops), INTEL_BXT_IDS(&gen9_early_ops), INTEL_KBL_IDS(&gen9_early_ops), + INTEL_CFL_IDS(&gen9_early_ops), INTEL_GLK_IDS(&gen9_early_ops), INTEL_CNL_IDS(&gen9_early_ops), }; --- a/include/drm/i915_pciids.h +++ b/include/drm/i915_pciids.h @@ -392,6 +392,12 @@ INTEL_VGA_DEVICE(0x3EA8, info), /* ULT GT3 */ \ INTEL_VGA_DEVICE(0x3EA5, info) /* ULT GT3 */ +#define INTEL_CFL_IDS(info) \ + INTEL_CFL_S_GT1_IDS(info), \ + INTEL_CFL_S_GT2_IDS(info), \ + INTEL_CFL_H_GT2_IDS(info), \ + INTEL_CFL_U_GT3_IDS(info) + /* CNL U 2+2 */ #define INTEL_CNL_U_GT2_IDS(info) \ INTEL_VGA_DEVICE(0x5A52, info), \