Received: by 10.223.185.116 with SMTP id b49csp1024881wrg; Wed, 21 Feb 2018 10:46:07 -0800 (PST) X-Google-Smtp-Source: AH8x227wznF6BcysJuHSNQ3pq9yR7VoMvLc5CcANWgP8imbWGBaV6Kd73khQD/+E8QeFQ6c7LKFb X-Received: by 10.101.82.12 with SMTP id o12mr3432547pgp.126.1519238767664; Wed, 21 Feb 2018 10:46:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519238767; cv=none; d=google.com; s=arc-20160816; b=l9q1QLkWsHf5nZyyLU8VfcSacGxIOmsuyFus9H3wSRcPjiocEq8Mg2FyVpCiRTI8lM nDGhtkq6dv7141MAmGC/RfTZ+3LdVN+RdHI0BLfFspMUXcfNL7KSi53ul2p8jWR9rAlu tqbhQWC5uLaarO5GPJPbVO+Sj4G2laoDGnqAPmnBoJIJmkFGFRD+xdyXu9U+6yZIuvvv zVFKO3iGn/Hfi8r/bzD8lDBxJxylqRrkOE/Q+EuR6uPbaoQnvno4engcwBtPWSM4hOcO Tz8tdmnPKeCNmu5bioJd1juQJPjcKMIlKiBCa08zDEZWLnwBOqt4MEI141+e0fu9CJyn /tfQ== 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=vMT/THJCmOP7fBWPJ5TxEI1BpWrBmLLBqacCY165OMY=; b=VjopbUlU0VMd3Rk7oQlFt2WOqJYHWRRzvG7Ud/os0DoeoK/HZ0dCKEyvF3eVe8DWGf 3DdY1RgJXw5AijubYfGqW4cyQz4g9rBBsvXGnc3WeCS57WBOX/9U03NRFzMHNBoYI2CU +P77tXPP/vcXbu9LTYcWwmQtabw3T2uyR8eGJrTfkbwO92aWyjBxBJR22tgTE21T8Dmq WGr+hbiEp3CsRlR8z6kZj7rPwLY2FF4CFu81OGexvkZ5mveMcHhwSGRyC5sFjRXMkJN5 5axSJEt5stXBPKmptFXZozZIaPOppD9qAMwBC+PAnRH1SxSEmyOmM44ytnEz+jsbPArY cFBA== 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 g2-v6si135103pli.637.2018.02.21.10.45.53; Wed, 21 Feb 2018 10:46:07 -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 S965518AbeBUNnb (ORCPT + 99 others); Wed, 21 Feb 2018 08:43:31 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:41448 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965074AbeBUNHD (ORCPT ); Wed, 21 Feb 2018 08:07:03 -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 BDA92F1D; Wed, 21 Feb 2018 13:07:02 +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.15 035/163] x86/gpu: add CFL to early quirks Date: Wed, 21 Feb 2018 13:47:44 +0100 Message-Id: <20180221124532.202910761@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124529.931834518@linuxfoundation.org> References: <20180221124529.931834518@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.15-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), \