From: "Souza, Jose" <jose.souza@intel.com> To: "ville.syrjala@linux.intel.com" <ville.syrjala@linux.intel.com>, "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org> Cc: "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org> Subject: Re: [Intel-gfx] [PATCH 2/5] drm/i915: s/intel_crtc/crtc/ in intel_crtc_init() Date: Tue, 10 Dec 2019 02:06:19 +0000 [thread overview] Message-ID: <b9d0c0b61ede6cd73048bd9ed3eb5c4793aaeab5.camel@intel.com> (raw) In-Reply-To: <20191107142417.11107-2-ville.syrjala@linux.intel.com> On Thu, 2019-11-07 at 16:24 +0200, Ville Syrjala wrote: > From: Ville Syrjälä <ville.syrjala@linux.intel.com> > > Let's get rid of the redundant intel_ prefix on our variables. > Reviewed-by: José Roberto de Souza <jose.souza@intel.com> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> > --- > drivers/gpu/drm/i915/display/intel_display.c | 32 ++++++++++------ > ---- > 1 file changed, 16 insertions(+), 16 deletions(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_display.c > b/drivers/gpu/drm/i915/display/intel_display.c > index 551de2baa569..8b889c9f29b5 100644 > --- a/drivers/gpu/drm/i915/display/intel_display.c > +++ b/drivers/gpu/drm/i915/display/intel_display.c > @@ -15838,14 +15838,14 @@ static const struct drm_crtc_funcs > i8xx_crtc_funcs = { > static int intel_crtc_init(struct drm_i915_private *dev_priv, enum > pipe pipe) > { > const struct drm_crtc_funcs *funcs; > - struct intel_crtc *intel_crtc; > + struct intel_crtc *crtc; > struct intel_crtc_state *crtc_state = NULL; > struct intel_plane *primary = NULL; > struct intel_plane *cursor = NULL; > int sprite, ret; > > - intel_crtc = kzalloc(sizeof(*intel_crtc), GFP_KERNEL); > - if (!intel_crtc) > + crtc = kzalloc(sizeof(*crtc), GFP_KERNEL); > + if (!crtc) > return -ENOMEM; > > crtc_state = kzalloc(sizeof(*crtc_state), GFP_KERNEL); > @@ -15853,15 +15853,15 @@ static int intel_crtc_init(struct > drm_i915_private *dev_priv, enum pipe pipe) > ret = -ENOMEM; > goto fail; > } > - __drm_atomic_helper_crtc_reset(&intel_crtc->base, &crtc_state- > >uapi); > - intel_crtc->config = crtc_state; > + __drm_atomic_helper_crtc_reset(&crtc->base, &crtc_state->uapi); > + crtc->config = crtc_state; > > primary = intel_primary_plane_create(dev_priv, pipe); > if (IS_ERR(primary)) { > ret = PTR_ERR(primary); > goto fail; > } > - intel_crtc->plane_ids_mask |= BIT(primary->id); > + crtc->plane_ids_mask |= BIT(primary->id); > > for_each_sprite(dev_priv, pipe, sprite) { > struct intel_plane *plane; > @@ -15871,7 +15871,7 @@ static int intel_crtc_init(struct > drm_i915_private *dev_priv, enum pipe pipe) > ret = PTR_ERR(plane); > goto fail; > } > - intel_crtc->plane_ids_mask |= BIT(plane->id); > + crtc->plane_ids_mask |= BIT(plane->id); > } > > cursor = intel_cursor_plane_create(dev_priv, pipe); > @@ -15879,7 +15879,7 @@ static int intel_crtc_init(struct > drm_i915_private *dev_priv, enum pipe pipe) > ret = PTR_ERR(cursor); > goto fail; > } > - intel_crtc->plane_ids_mask |= BIT(cursor->id); > + crtc->plane_ids_mask |= BIT(cursor->id); > > if (HAS_GMCH(dev_priv)) { > if (IS_CHERRYVIEW(dev_priv) || > @@ -15900,32 +15900,32 @@ static int intel_crtc_init(struct > drm_i915_private *dev_priv, enum pipe pipe) > funcs = &ilk_crtc_funcs; > } > > - ret = drm_crtc_init_with_planes(&dev_priv->drm, &intel_crtc- > >base, > + ret = drm_crtc_init_with_planes(&dev_priv->drm, &crtc->base, > &primary->base, &cursor->base, > funcs, "pipe %c", > pipe_name(pipe)); > if (ret) > goto fail; > > - intel_crtc->pipe = pipe; > + crtc->pipe = pipe; > > /* initialize shared scalers */ > - intel_crtc_init_scalers(intel_crtc, crtc_state); > + intel_crtc_init_scalers(crtc, crtc_state); > > BUG_ON(pipe >= ARRAY_SIZE(dev_priv->pipe_to_crtc_mapping) || > dev_priv->pipe_to_crtc_mapping[pipe] != NULL); > - dev_priv->pipe_to_crtc_mapping[pipe] = intel_crtc; > + dev_priv->pipe_to_crtc_mapping[pipe] = crtc; > > if (INTEL_GEN(dev_priv) < 9) { > enum i9xx_plane_id i9xx_plane = primary->i9xx_plane; > > BUG_ON(i9xx_plane >= ARRAY_SIZE(dev_priv- > >plane_to_crtc_mapping) || > dev_priv->plane_to_crtc_mapping[i9xx_plane] != > NULL); > - dev_priv->plane_to_crtc_mapping[i9xx_plane] = > intel_crtc; > + dev_priv->plane_to_crtc_mapping[i9xx_plane] = crtc; > } > > - intel_color_init(intel_crtc); > + intel_color_init(crtc); > > - WARN_ON(drm_crtc_index(&intel_crtc->base) != intel_crtc->pipe); > + WARN_ON(drm_crtc_index(&crtc->base) != crtc->pipe); > > return 0; > > @@ -15935,7 +15935,7 @@ static int intel_crtc_init(struct > drm_i915_private *dev_priv, enum pipe pipe) > * crtcs/planes already initialized. > */ > kfree(crtc_state); > - kfree(intel_crtc); > + kfree(crtc); > > return ret; > } _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
WARNING: multiple messages have this Message-ID (diff)
From: "Souza, Jose" <jose.souza@intel.com> To: "ville.syrjala@linux.intel.com" <ville.syrjala@linux.intel.com>, "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org> Cc: "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org> Subject: Re: [Intel-gfx] [PATCH 2/5] drm/i915: s/intel_crtc/crtc/ in intel_crtc_init() Date: Tue, 10 Dec 2019 02:06:19 +0000 [thread overview] Message-ID: <b9d0c0b61ede6cd73048bd9ed3eb5c4793aaeab5.camel@intel.com> (raw) In-Reply-To: <20191107142417.11107-2-ville.syrjala@linux.intel.com> On Thu, 2019-11-07 at 16:24 +0200, Ville Syrjala wrote: > From: Ville Syrjälä <ville.syrjala@linux.intel.com> > > Let's get rid of the redundant intel_ prefix on our variables. > Reviewed-by: José Roberto de Souza <jose.souza@intel.com> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> > --- > drivers/gpu/drm/i915/display/intel_display.c | 32 ++++++++++------ > ---- > 1 file changed, 16 insertions(+), 16 deletions(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_display.c > b/drivers/gpu/drm/i915/display/intel_display.c > index 551de2baa569..8b889c9f29b5 100644 > --- a/drivers/gpu/drm/i915/display/intel_display.c > +++ b/drivers/gpu/drm/i915/display/intel_display.c > @@ -15838,14 +15838,14 @@ static const struct drm_crtc_funcs > i8xx_crtc_funcs = { > static int intel_crtc_init(struct drm_i915_private *dev_priv, enum > pipe pipe) > { > const struct drm_crtc_funcs *funcs; > - struct intel_crtc *intel_crtc; > + struct intel_crtc *crtc; > struct intel_crtc_state *crtc_state = NULL; > struct intel_plane *primary = NULL; > struct intel_plane *cursor = NULL; > int sprite, ret; > > - intel_crtc = kzalloc(sizeof(*intel_crtc), GFP_KERNEL); > - if (!intel_crtc) > + crtc = kzalloc(sizeof(*crtc), GFP_KERNEL); > + if (!crtc) > return -ENOMEM; > > crtc_state = kzalloc(sizeof(*crtc_state), GFP_KERNEL); > @@ -15853,15 +15853,15 @@ static int intel_crtc_init(struct > drm_i915_private *dev_priv, enum pipe pipe) > ret = -ENOMEM; > goto fail; > } > - __drm_atomic_helper_crtc_reset(&intel_crtc->base, &crtc_state- > >uapi); > - intel_crtc->config = crtc_state; > + __drm_atomic_helper_crtc_reset(&crtc->base, &crtc_state->uapi); > + crtc->config = crtc_state; > > primary = intel_primary_plane_create(dev_priv, pipe); > if (IS_ERR(primary)) { > ret = PTR_ERR(primary); > goto fail; > } > - intel_crtc->plane_ids_mask |= BIT(primary->id); > + crtc->plane_ids_mask |= BIT(primary->id); > > for_each_sprite(dev_priv, pipe, sprite) { > struct intel_plane *plane; > @@ -15871,7 +15871,7 @@ static int intel_crtc_init(struct > drm_i915_private *dev_priv, enum pipe pipe) > ret = PTR_ERR(plane); > goto fail; > } > - intel_crtc->plane_ids_mask |= BIT(plane->id); > + crtc->plane_ids_mask |= BIT(plane->id); > } > > cursor = intel_cursor_plane_create(dev_priv, pipe); > @@ -15879,7 +15879,7 @@ static int intel_crtc_init(struct > drm_i915_private *dev_priv, enum pipe pipe) > ret = PTR_ERR(cursor); > goto fail; > } > - intel_crtc->plane_ids_mask |= BIT(cursor->id); > + crtc->plane_ids_mask |= BIT(cursor->id); > > if (HAS_GMCH(dev_priv)) { > if (IS_CHERRYVIEW(dev_priv) || > @@ -15900,32 +15900,32 @@ static int intel_crtc_init(struct > drm_i915_private *dev_priv, enum pipe pipe) > funcs = &ilk_crtc_funcs; > } > > - ret = drm_crtc_init_with_planes(&dev_priv->drm, &intel_crtc- > >base, > + ret = drm_crtc_init_with_planes(&dev_priv->drm, &crtc->base, > &primary->base, &cursor->base, > funcs, "pipe %c", > pipe_name(pipe)); > if (ret) > goto fail; > > - intel_crtc->pipe = pipe; > + crtc->pipe = pipe; > > /* initialize shared scalers */ > - intel_crtc_init_scalers(intel_crtc, crtc_state); > + intel_crtc_init_scalers(crtc, crtc_state); > > BUG_ON(pipe >= ARRAY_SIZE(dev_priv->pipe_to_crtc_mapping) || > dev_priv->pipe_to_crtc_mapping[pipe] != NULL); > - dev_priv->pipe_to_crtc_mapping[pipe] = intel_crtc; > + dev_priv->pipe_to_crtc_mapping[pipe] = crtc; > > if (INTEL_GEN(dev_priv) < 9) { > enum i9xx_plane_id i9xx_plane = primary->i9xx_plane; > > BUG_ON(i9xx_plane >= ARRAY_SIZE(dev_priv- > >plane_to_crtc_mapping) || > dev_priv->plane_to_crtc_mapping[i9xx_plane] != > NULL); > - dev_priv->plane_to_crtc_mapping[i9xx_plane] = > intel_crtc; > + dev_priv->plane_to_crtc_mapping[i9xx_plane] = crtc; > } > > - intel_color_init(intel_crtc); > + intel_color_init(crtc); > > - WARN_ON(drm_crtc_index(&intel_crtc->base) != intel_crtc->pipe); > + WARN_ON(drm_crtc_index(&crtc->base) != crtc->pipe); > > return 0; > > @@ -15935,7 +15935,7 @@ static int intel_crtc_init(struct > drm_i915_private *dev_priv, enum pipe pipe) > * crtcs/planes already initialized. > */ > kfree(crtc_state); > - kfree(intel_crtc); > + kfree(crtc); > > return ret; > } _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-12-10 2:13 UTC|newest] Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-11-07 14:24 [PATCH 1/5] drm: Add __drm_atomic_helper_crtc_state_reset() & co Ville Syrjala 2019-11-07 14:24 ` [Intel-gfx] " Ville Syrjala 2019-11-07 14:24 ` Ville Syrjala 2019-11-07 14:24 ` [PATCH 2/5] drm/i915: s/intel_crtc/crtc/ in intel_crtc_init() Ville Syrjala 2019-11-07 14:24 ` [Intel-gfx] " Ville Syrjala 2019-11-07 14:24 ` Ville Syrjala 2019-12-10 2:06 ` Souza, Jose [this message] 2019-12-10 2:06 ` [Intel-gfx] " Souza, Jose 2019-11-07 14:24 ` [PATCH 3/5] drm/i915: Introduce intel_crtc_{alloc,free}() Ville Syrjala 2019-11-07 14:24 ` [Intel-gfx] [PATCH 3/5] drm/i915: Introduce intel_crtc_{alloc, free}() Ville Syrjala 2019-12-10 2:09 ` [PATCH 3/5] drm/i915: Introduce intel_crtc_{alloc,free}() Souza, Jose 2019-12-10 2:09 ` [Intel-gfx] [PATCH 3/5] drm/i915: Introduce intel_crtc_{alloc, free}() Souza, Jose 2019-11-07 14:24 ` [PATCH 4/5] drm/i915: Introduce intel_crtc_state_reset() Ville Syrjala 2019-11-07 14:24 ` [Intel-gfx] " Ville Syrjala 2019-12-10 2:12 ` Souza, Jose 2019-12-10 2:12 ` Souza, Jose 2019-11-07 14:24 ` [PATCH 5/5] drm/i915: Introduce intel_plane_state_reset() Ville Syrjala 2019-11-07 14:24 ` [Intel-gfx] " Ville Syrjala 2019-12-10 2:12 ` Souza, Jose 2019-12-10 2:12 ` Souza, Jose 2019-11-07 17:38 ` [PATCH 1/5] drm: Add __drm_atomic_helper_crtc_state_reset() & co Daniel Vetter 2019-11-07 17:38 ` [Intel-gfx] " Daniel Vetter 2019-11-07 17:38 ` Daniel Vetter 2019-11-07 18:28 ` ✗ Fi.CI.BAT: failure for series starting with [1/5] " Patchwork 2019-11-07 18:28 ` [Intel-gfx] " Patchwork 2019-12-12 17:14 ` [Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/5] drm: Add __drm_atomic_helper_crtc_state_reset() & co. (rev2) Patchwork 2019-12-13 23:38 ` [Intel-gfx] [PATCH 1/5] drm: Add __drm_atomic_helper_crtc_state_reset() & co Lucas De Marchi 2019-12-13 23:38 ` Lucas De Marchi 2019-12-18 14:53 ` Ville Syrjälä 2019-12-18 14:53 ` Ville Syrjälä 2019-12-17 1:40 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/5] drm: Add __drm_atomic_helper_crtc_state_reset() & co. (rev3) Patchwork 2019-12-17 11:46 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork 2019-12-17 18:10 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork 2019-12-17 18:33 ` Souza, Jose 2019-12-17 18:42 ` James Ausmus 2019-12-18 9:33 ` Vudum, Lakshminarayana 2019-12-18 8:10 ` [Intel-gfx] ✓ Fi.CI.IGT: success " Patchwork
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=b9d0c0b61ede6cd73048bd9ed3eb5c4793aaeab5.camel@intel.com \ --to=jose.souza@intel.com \ --cc=dri-devel@lists.freedesktop.org \ --cc=intel-gfx@lists.freedesktop.org \ --cc=ville.syrjala@linux.intel.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.