Received: by 10.213.65.68 with SMTP id h4csp2113685imn; Sun, 8 Apr 2018 20:03:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx48Z6w1vdqI1VnavrQhhFlYFnIci2vWxv0lS75QorR7dWwpDa2oQeByfL7E4uBMA1YMDNbyg X-Received: by 10.98.10.156 with SMTP id 28mr27841873pfk.33.1523243024367; Sun, 08 Apr 2018 20:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243024; cv=none; d=google.com; s=arc-20160816; b=pjuIYDUmXKcGNzZxyKFiGfmLewJty3CrmITa3K2d4/o4cd4eYYTCLWcmEYlzPrRXWF wnbKdXr3f71i16I+74Ejylv2HyquAlE5Rh6hFQvZfVKOu51vXqAvte5l/AWi0jTlSNr+ vZvMpfI9Zq1/6jNJFu2dTblv4oVv2nNdcVRrXLbXxOFm79W8Ho04FKYUbnvTAT1nRU5b mDhe1YyPLi9p1vMIJqvkogrP4jTDBFeafLapzrPhD91qr8Z63qxxj8j0FSn0uk9ScsBA 50cM9DiW+i2zBPmDHiWUnbKloZpeKIMzKQWBiv01r4TMgyA6Gkf5lfdMZCAUu1JOQFoj 2ZiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=U4xRZDFf17z06AebYzJMPAD/HiSoim2KXoRiGYorqps=; b=jcx4b+eLEapMwOvnTnL/KP3NbfnrsIv0OmzW48igTbYuFHkfTSBCIAi3iAks2RBM/b 6KX8HqfoBF/rWUAJeNcukirGj5jRrsHP1FrvvVqRRc3diQuGzVXn40yDErweI969qpzj 3YMQJhLj1TEz8/0HZidF1nr51L5jP+/ciN/RcKYzYL5QMcItdNj4FzhgJiRvJJFPMzs1 PJc9A12EexxNlCUw1/OWb2XNM3GOXj9wzSorTQ9EDp/Bu5NCVTkgmvRK16f3lcqkPsUz vHGcNoE9F8JtMzjEBT5uQUxH8OAI3Qv9JYHHY90XQBGaasiyZIpbWRWV5YqH7reJrnF7 G3ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=oJX3MDuI; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s21si12068242pfi.87.2018.04.08.20.03.07; Sun, 08 Apr 2018 20:03:44 -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=@microsoft.com header.s=selector1 header.b=oJX3MDuI; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755940AbeDIA2v (ORCPT + 99 others); Sun, 8 Apr 2018 20:28:51 -0400 Received: from mail-bn3nam01on0096.outbound.protection.outlook.com ([104.47.33.96]:38912 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755894AbeDIA2k (ORCPT ); Sun, 8 Apr 2018 20:28:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=U4xRZDFf17z06AebYzJMPAD/HiSoim2KXoRiGYorqps=; b=oJX3MDuIOLhzp4t44aECaxugSP503PvmCCGrtJVgcVk/RPZWNcYeXyDGVWaMo07ut6CTsD0ZGiWdvvjrVOEYhcn8Fun6Mr8GlaoC6MjCANUcsDAZgNlZBIvIbeEIOH9UztQu/fvup08NginZRycQ0sMfDpr9oDZd5cmXxDfHwEo= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0807.namprd21.prod.outlook.com (10.167.110.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.3; Mon, 9 Apr 2018 00:28:33 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:28:33 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Mathieu Larouche , Sean Paul , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 083/293] drm/mgag200: Fix to always set HiPri for G200e4 V2 Thread-Topic: [PATCH AUTOSEL for 4.9 083/293] drm/mgag200: Fix to always set HiPri for G200e4 V2 Thread-Index: AQHTz5kNaUclYo3d9kyKXUHEPIIp1A== Date: Mon, 9 Apr 2018 00:23:58 +0000 Message-ID: <20180409002239.163177-83-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0807;7:FSpea/vt6ykMFTqrkkzq+gTxMfEEUB1MpdXtf84Da1G9E/cc2+l5TC/prwgJa00QLaHDx2A+rB3z793FjpzeE8dkaT4+kttSp0Zp8yRi+vi7Z94fjjFwsgn72xfxCYhbhavqNuw7yWp4jr+jyEeCbLIQDCzs37klS7cbwzmiNINq9ET5iFgGYEJOLeaQ+lVD7B7X0M3N75nWHrynttbb8OQDy1evUYh4OhGfEWvQDrsWD0xGezEjKy/WG7E+xyQA;20:cOnesvIPLoqWMtIwQV8GmjavTWfu/n881PIQ+nazj0DzaI2bscob++7fKsxCRjKwgKAbSVfksHa/6H3mZ72kBQP9VqsqJHWsCA7wMhGEk0NbiBRwulO+uB+8w9pzgkTAB0N5OmxOC+s2eyVdaMucTvDq3/S2/uWVfXmI97Gaw/s= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 8fdc369d-4f86-49ef-9c59-08d59db0d376 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0807; x-ms-traffictypediagnostic: DM5PR2101MB0807: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231221)(944501327)(52105095)(3002001)(6055026)(61426038)(61427038)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB0807;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0807; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6029001)(39380400002)(39860400002)(396003)(366004)(376002)(346002)(199004)(189003)(14454004)(4326008)(54906003)(25786009)(966005)(53936002)(2900100001)(1076002)(3280700002)(6486002)(186003)(2616005)(68736007)(110136005)(11346002)(10090500001)(6116002)(107886003)(3846002)(36756003)(8676002)(72206003)(22452003)(66066001)(26005)(6512007)(478600001)(3660700001)(6306002)(81156014)(86362001)(81166006)(86612001)(7736002)(305945005)(8936002)(10290500003)(6436002)(105586002)(6666003)(316002)(575784001)(59450400001)(76176011)(5660300001)(476003)(106356001)(2906002)(6506007)(446003)(2501003)(99286004)(5250100002)(486006)(102836004)(97736004)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0807;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 539Qyjm/eXpjWpzeF0gojGmFaRbj+CC0EGj9Tko7+j1NqNeCbGtFjHjE1Q+y5fh3Uo+vuKj8xu7XVbhXbhyircGswOQMqufmjdX6jg68Zxb/Y/JQxmapGF02Olmn9heeqv+KZQQXi40TdMYB16FZLvN3xnr4rlJF7l5Dk+MhH5UBYu/x9OUlrl01BObGvmSaHE4HVm0676VB5xQ60n6AG4N/X6DCof6MxGg+PAe4lEpvArkdXOMHpjTqBTcCvF6kkXW7FCyDEONusrR+b6fmrmEaBi571oFSzF1pUjvzgp6TX0u43vbMySfXWxf/KZuLXu/6EDk/d+3WB1O2WkzenaSm4QxOE4YXTrtZ+na175ClEj+H/s0PCT931MaUkv5sNL62OQbOYOLZ18p2qtOcN82aMSlMKSOY7Yz/F3G6DQs= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8fdc369d-4f86-49ef-9c59-08d59db0d376 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:23:58.8156 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0807 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mathieu Larouche [ Upstream commit 0cbb738108927916a659b5b0b96e386fcd7cc6e1 ] - Changed the HiPri value for G200e4 to always be 0. - Added Bandwith limitation to block resolution above 1920x1200x60Hz Signed-off-by: Mathieu Larouche Acked-by: Dave Airlie [seanpaul removed some trailing whitespace from the patch] Signed-off-by: Sean Paul Link: http://patchwork.freedesktop.org/patch/msgid/ec0f8568d7ec41904dfe593c= 5deccf3f062d7bd8.1497450944.git.mathieu.larouche@matrox.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/mgag200/mgag200_mode.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag2= 00/mgag200_mode.c index 6b21cb27e1cc..e27ae5437089 100644 --- a/drivers/gpu/drm/mgag200/mgag200_mode.c +++ b/drivers/gpu/drm/mgag200/mgag200_mode.c @@ -1133,7 +1133,10 @@ static int mga_crtc_mode_set(struct drm_crtc *crtc, =20 =20 if (IS_G200_SE(mdev)) { - if (mdev->unique_rev_id >=3D 0x02) { + if (mdev->unique_rev_id >=3D 0x04) { + WREG8(MGAREG_CRTCEXT_INDEX, 0x06); + WREG8(MGAREG_CRTCEXT_DATA, 0); + } else if (mdev->unique_rev_id >=3D 0x02) { u8 hi_pri_lvl; u32 bpp; u32 mb; @@ -1598,6 +1601,10 @@ static int mga_vga_mode_valid(struct drm_connector *= connector, if (mga_vga_calculate_mode_bandwidth(mode, bpp) > (30100 * 1024)) return MODE_BANDWIDTH; + } else { + if (mga_vga_calculate_mode_bandwidth(mode, bpp) + > (55000 * 1024)) + return MODE_BANDWIDTH; } } else if (mdev->type =3D=3D G200_WB) { if (mode->hdisplay > 1280) --=20 2.15.1