Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1457974ybl; Fri, 10 Jan 2020 19:12:05 -0800 (PST) X-Google-Smtp-Source: APXvYqzE7PFgP54ppm1Fu4I5hwAMRIOWa+18Vdwya+F8Z0O7a39yuRzqn22Xrhw9jr2aOW/CHaJj X-Received: by 2002:aca:4ad5:: with SMTP id x204mr4879332oia.162.1578712325512; Fri, 10 Jan 2020 19:12:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578712325; cv=none; d=google.com; s=arc-20160816; b=Lh8Vc/aDRQvNzyC2O8tiKfQN+Cn9eehRsw5kPmKYtDB21N+yHnOjRbxz1oGQxG1G5J MiGKNh+smuKc6mdq/y4UdTB63RrTwQVixfzw58dqiZvJh7EoTEEp4XXo6feAXyR9W0bf HvnA9dbrc2RoeSIGLMmk9dpL+yCur6ggcEip0FvV54yXAgCeO+/+nUipuy5/FhEW2H2d pqvF2WvPQVentTIgAiJyRj7ipTGXYh8vEbjItJhrNcTZS9kFU3FVwRPOl6pBsEMp7Grq y0GvGXKTrd9G4uM7InMYCZyI5PAyrWyPxLTMlsC0GYfZzsrlcyDZBtZRgJzVPjMz9dIW JbUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=M/ZoX7O65r9RoDMREeFHbbi/7UjHD6Gs6tnRVa1+Kkc=; b=y8aySyPVETmz2IZZsT2ukOt0kP4ENYwdWHU7rcdunNQPFfuioGmCW2iw1Iq+MmlKEf NzO98LAp9GgyMpbAxUxairmK6qYKOCYq4rzlnoaMfL1w/kDC+qAqs4C8tI9gvx44XzNa 6hb66MKn30n/8Dnamd3yYvw7VBmpX+soF63oxIsPfchoxobwSrkzqQugxcUyMLbBM1LL PPqLX7fSL2HqXAvfgydWVohOqbUCmjySJIL8l6jfjaZDLW/JSb8QdIjQG9YSTnzyReOn WM6BFBDa3BS+G6IOBkW7U1kxn3hjokI3POKZfoJn+jQFV8yAldyJOWcm4RdR5IEi7HFW 6GAw== 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 u21si2248975oiv.267.2020.01.10.19.11.43; Fri, 10 Jan 2020 19:12:05 -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 S1728195AbgAKDJO (ORCPT + 99 others); Fri, 10 Jan 2020 22:09:14 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:40726 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728108AbgAKDJO (ORCPT ); Fri, 10 Jan 2020 22:09:14 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 9A8C77ACF034038544C4; Sat, 11 Jan 2020 11:09:12 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Sat, 11 Jan 2020 11:09:03 +0800 From: Tian Tao To: , , , , , , , , , CC: Subject: [PATCH] drm/hisilicon: Enable the shadowfb for hibmc Date: Sat, 11 Jan 2020 11:09:06 +0800 Message-ID: <1578712146-16327-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org set the prefer_shadow as 1,so we use the shadowfb to acceleration. Signed-off-by: Tian Tao Signed-off-by: Gong junjie --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c index dbdeb2b..2883555 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c @@ -93,7 +93,7 @@ static int hibmc_kms_init(struct hibmc_drm_private *priv) priv->dev->mode_config.fb_base = priv->fb_base; priv->dev->mode_config.preferred_depth = 24; - priv->dev->mode_config.prefer_shadow = 0; + priv->dev->mode_config.prefer_shadow = 1; priv->dev->mode_config.funcs = (void *)&hibmc_mode_funcs; -- 2.7.4