Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1345453ybp; Thu, 17 Oct 2019 11:22:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGgZALrYH7ZvoiOqhu+iWE3dK2z+AWBziNNXNUd/2iOyM4NGeDJmtfgck9LLszZ75/r0gV X-Received: by 2002:a50:cc43:: with SMTP id n3mr5385319edi.287.1571336543103; Thu, 17 Oct 2019 11:22:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571336543; cv=none; d=google.com; s=arc-20160816; b=OQu4p3b4nkVYHSvBJ1GSc1fViCrlVu/lQKC/p45VvmblriBhCTXTxP1zo8ZmyZmpRz ebFNK9U6q/vre14aGhfy6aZvwIKe7eNp7xzoUtkIKmxAzgNxamHTGDgTDv4VmWJqyWOo VxMKcRHWW/XdTAYdg4zuHadHzPltUKcQH6VOC5VH9kLARDY3RqyTsfJeYcQzNsLv5+bN 4ktOJFb8kLTDl3TxfHORv/JwJLNOPLHM3O1ViODTiSqspknHUP617qHGTb0++AYA3Be5 YC7A31S2fVb6D+Pn+VfExvVEhqEJnVLoTohj2tH1Zb8FUpdMYPcWIN4XttHazc5C/wb0 kItg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+vnB5INWeNijpwolksq6dX7Z40kZr36oN+U00Qgrlvw=; b=H6KylsPHobFo6Oji375kHeRtrKVA8HeQh9PQrVW7X02BLls+itDCcuyfNzre59YGYp zTXCjmo4lclDwsi3spU2kepbxFgzbkrG2KoP1ekP9pPvEMdPnb2VHUv21v4aabk1lH0L XTjKYY8AChz3w7xstiTKmmNOw5/x8Gdc2bZNih0ymlcgLa1n1ZbJnX2RH6ZfsfVh7ej0 VekS1iZ+iRrEUfFNyxejqWeHbMFQJjb0ve7rpRwfvvHfPTNRYMnkmeOfFN5rzj7NnOqQ E8DmXtEwtp48gApUPDOAchtv6VkjSBFgmeMlVX6Qi6HAzQ11f09bt8OASqo5rgI+xQC7 cqzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ecYO2DUN; 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 gz26si1806503ejb.65.2019.10.17.11.22.00; Thu, 17 Oct 2019 11:22:23 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ecYO2DUN; 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 S2438843AbfJPWAk (ORCPT + 99 others); Wed, 16 Oct 2019 18:00:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:54354 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438521AbfJPV73 (ORCPT ); Wed, 16 Oct 2019 17:59:29 -0400 Received: from localhost (unknown [192.55.54.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 38610218DE; Wed, 16 Oct 2019 21:59:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571263169; bh=HCHL/0b7wsmiqEtQgSxAV7TiQ81FqSzff9r9X6rGXcU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ecYO2DUNllefL2QgnUUuXp+/B2AdMHl/onEUGWDoMbqmof7sYIhmh37WghTe7y9cJ GhdmK5sXYnvw+Keki4hMd69HcAfImtqVVE13KkmNrLYMW2nxNrMSD+8YGqMIzrY0im VllLuaiuLJHhuM8qnaQkFoPCxH45ZBpEoO7QpKd8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sean Paul , =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= , Leho Kraav , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Maarten Lankhorst , Rodrigo Vivi Subject: [PATCH 5.3 097/112] drm/i915: Bump skl+ max plane width to 5k for linear/x-tiled Date: Wed, 16 Oct 2019 14:51:29 -0700 Message-Id: <20191016214906.115287254@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191016214844.038848564@linuxfoundation.org> References: <20191016214844.038848564@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ville Syrjälä commit dc7890995e04bacb45ab21e0daaeae1e7c803eb3 upstream. The officially validated plane width limit is 4k on skl+, however we already had people using 5k displays before we started to enforce the limit. Also it seems Windows allows 5k resolutions as well (though not sure if they do it with one plane or two). According to hw folks 5k should work with the possible exception of the following features: - Ytile (already limited to 4k) - FP16 (already limited to 4k) - render compression (already limited to 4k) - KVMR sprite and cursor (don't care) - horizontal panning (need to verify this) - pipe and plane scaling (need to verify this) So apart from last two items on that list we are already fine. We should really verify what happens with those last two items but I don't have a 5k display on hand atm so it'll have to wait. In the meantime let's just bump the limit back up to 5k since several users have already been using it without apparent issues. At least we'll be no worse off than we were prior to lowering the limits. Cc: stable@vger.kernel.org Cc: Sean Paul Cc: José Roberto de Souza Tested-by: Leho Kraav Fixes: 372b9ffb5799 ("drm/i915: Fix skl+ max plane width") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111501 Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20190905135044.2001-1-ville.syrjala@linux.intel.com Reviewed-by: Maarten Lankhorst Reviewed-by: Sean Paul (cherry picked from commit bed34ef544f9ab37ab349c04cf4142282c4dcf5d) Signed-off-by: Rodrigo Vivi Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/display/intel_display.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/i915/display/intel_display.c +++ b/drivers/gpu/drm/i915/display/intel_display.c @@ -3291,7 +3291,20 @@ static int skl_max_plane_width(const str switch (fb->modifier) { case DRM_FORMAT_MOD_LINEAR: case I915_FORMAT_MOD_X_TILED: - return 4096; + /* + * Validated limit is 4k, but has 5k should + * work apart from the following features: + * - Ytile (already limited to 4k) + * - FP16 (already limited to 4k) + * - render compression (already limited to 4k) + * - KVMR sprite and cursor (don't care) + * - horizontal panning (TODO verify this) + * - pipe and plane scaling (TODO verify this) + */ + if (cpp == 8) + return 4096; + else + return 5120; case I915_FORMAT_MOD_Y_TILED_CCS: case I915_FORMAT_MOD_Yf_TILED_CCS: /* FIXME AUX plane? */