From patchwork Wed Aug 10 03:35:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiang Biao X-Patchwork-Id: 9272625 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BEA436022E for ; Wed, 10 Aug 2016 03:51:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9AADA26CF9 for ; Wed, 10 Aug 2016 03:51:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8E71B28413; Wed, 10 Aug 2016 03:51:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B1B9026CF9 for ; Wed, 10 Aug 2016 03:51:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F11A26E6C6; Wed, 10 Aug 2016 03:51:18 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 967 seconds by postgrey-1.35 at gabe; Wed, 10 Aug 2016 03:51:18 UTC Received: from zte.com.cn (mx7.zte.com.cn [202.103.147.169]) by gabe.freedesktop.org (Postfix) with ESMTP id 06C0B6E6C6 for ; Wed, 10 Aug 2016 03:51:17 +0000 (UTC) Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Websense Email Security Gateway with ESMTP id 8D9D01D246475; Wed, 10 Aug 2016 11:35:07 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id u7A3YoVS083564; Wed, 10 Aug 2016 11:34:50 +0800 (GMT-8) (envelope-from jiang.biao2@zte.com.cn) MIME-Version: 1.0 Importance: Normal X-Priority: 3 (Normal) Reply-By: Expiry-Date: Subject: [RESEND PATCH] drm/gma500: Fix comments in gtt.c X-KeepSent: 2BC5E4E2:B7EF943A-4825800B:000B3B61; type=4; name=$KeepSent To: dri-devel@lists.freedesktop.org, patrik.r.jakobsson@gmail.com X-Mailer: Lotus Notes Release 8.5.3 September 15, 2011 Message-ID: From: jiang.biao2@zte.com.cn Date: Wed, 10 Aug 2016 11:35:14 +0800 X-MIMETrack: Serialize by Router on notes_smtp/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2016-08-10 11:34:31 X-MAIL: mse01.zte.com.cn u7A3YoVS083564 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Fix some comment faults in gtt.c. Signed-off-by: Jiang Biao Signed-off-by: Daniel Vetter --- drivers/gpu/drm/gma500/gtt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.1.0 diff --git a/drivers/gpu/drm/gma500/gtt.c b/drivers/gpu/drm/gma500/gtt.c index 8f69225..9f9f588 100644 --- a/drivers/gpu/drm/gma500/gtt.c +++ b/drivers/gpu/drm/gma500/gtt.c @@ -76,6 +76,7 @@ static u32 __iomem *psb_gtt_entry(struct drm_device *dev, struct gtt_range *r) * psb_gtt_insert - put an object into the GTT * @dev: our DRM device * @r: our GTT range + * @resume: on resume * * Take our preallocated GTT range and insert the GEM object into * the GTT. This is protected via the gtt mutex which the caller @@ -321,6 +322,7 @@ out: * @len: length (bytes) of address space required * @name: resource name * @backed: resource should be backed by stolen pages + * @align: requested alignment * * Ask the kernel core to find us a suitable range of addresses * to use for a GTT mapping. @@ -440,7 +442,6 @@ int psb_gtt_init(struct drm_device *dev, int resume) PSB_WVDC32(dev_priv->pge_ctl | _PSB_PGETBL_ENABLED, PSB_PGETBL_CTL); (void) PSB_RVDC32(PSB_PGETBL_CTL); - /* The root resource we allocate address space from */ dev_priv->gtt_initialized = 1; pg->gtt_phys_start = dev_priv->pge_ctl & PAGE_MASK;