dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND PATCH] drm/gma500: Fix comments in gtt.c
@ 2016-08-10  3:35 jiang.biao2
  2016-08-10  8:35 ` Daniel Vetter
  0 siblings, 1 reply; 6+ messages in thread
From: jiang.biao2 @ 2016-08-10  3:35 UTC (permalink / raw)
  To: dri-devel, patrik.r.jakobsson


Fix some comment faults in gtt.c.

Signed-off-by: Jiang Biao <jiang.biao2@zte.com.cn>
---
 drivers/gpu/drm/gma500/gtt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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;
--
2.1.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [RESEND PATCH] drm/gma500: Fix comments in gtt.c
@ 2016-08-10  2:18 jiang.biao2
  0 siblings, 0 replies; 6+ messages in thread
From: jiang.biao2 @ 2016-08-10  2:18 UTC (permalink / raw)
  To: dri-devel, patrik.r.jakobsson

Fix some comment faults in gtt.c.

Signed-off-by: Jiang Biao <jiang.biao2@zte.com.cn>
---
 drivers/gpu/drm/gma500/gtt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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;
-- 
2.1.0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-08-11  0:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-10  3:35 [RESEND PATCH] drm/gma500: Fix comments in gtt.c jiang.biao2
2016-08-10  8:35 ` Daniel Vetter
2016-08-10  8:52   ` jiang.biao2
2016-08-10  9:22     ` Daniel Vetter
2016-08-11  0:45       ` 答复: " jiang.biao2
  -- strict thread matches above, loose matches on Subject: below --
2016-08-10  2:18 jiang.biao2

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox