All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 0/9] drm/i915: Guc code reorg
Date: Mon, 02 Oct 2017 11:45:37 +0300	[thread overview]
Message-ID: <1506933937.6755.12.camel@linux.intel.com> (raw)
In-Reply-To: <20170929174147.41324-1-michal.wajdeczko@intel.com>

On Fri, 2017-09-29 at 17:41 +0000, Michal Wajdeczko wrote:
> Other pending series will try to fix current GuC code.
> Lets move some functions to dedicated files now to
> make place for these changes and preserve history.
> 
> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Sagar Arun Kamble <sagar.a.kamble@intel.com>
> 
> Michal Wajdeczko (9):
>   drm/i915: Drop unnecessary forward declaration
>   drm/i915: Move uC fw helper code into dedicated files
>   drm/i915: Move HuC declarations into dedicated header
>   drm/i915: Move GuC declarations into dedicated header
>   drm/i915: Move core GuC functions into dedicated file

If these are new header files, then patch per new header would be good
granularity.

>   drm/i915: Move intel_guc_sample_forcewake to guc.c
>   drm/i915: Move intel_guc_auth_huc to guc.c
>   drm/i915: Move intel_guc_suspend/resume to guc.c
>   drm/i915: Move intel_guc_allocate_vma to guc.c

When you're moving functions to same file .c, you can do it in a single
patch. There're no hard rules, just trying to keep the amount of
patches reasonable vs. having enough GIT history of what was done.

Then, don't do the s/dev_priv/i915/ together with the code motion even
if it may feel convenient. Will be harder to notice from the GIT
history that a mass s/dev_priv/i915/ was done and also the reviewer has
to go through all the code that was moved to check for possible errors
(in indent for example). Always think of the reviewer, and send code
motion in front, so that can be reviewed based on what was moved where,
then any changes so they can be reviewed for correctness.

Regards, Joonas
-- 
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

      parent reply	other threads:[~2017-10-02  8:45 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-29 17:41 [PATCH 0/9] drm/i915: Guc code reorg Michal Wajdeczko
2017-09-29 17:41 ` [PATCH 1/9] drm/i915: Drop unnecessary forward declaration Michal Wajdeczko
2017-09-30  8:52   ` Sagar Arun Kamble
2017-09-29 17:41 ` [PATCH 2/9] drm/i915: Move uC fw helper code into dedicated files Michal Wajdeczko
2017-09-30 10:01   ` Sagar Arun Kamble
2017-09-30 14:43     ` Sagar Arun Kamble
2017-09-30 15:50       ` Michal Wajdeczko
2017-09-29 17:41 ` [PATCH 3/9] drm/i915: Move HuC declarations into dedicated header Michal Wajdeczko
2017-09-30 15:14   ` Sagar Arun Kamble
2017-09-29 17:41 ` [PATCH 4/9] drm/i915: Move GuC " Michal Wajdeczko
2017-09-30 15:30   ` Sagar Arun Kamble
2017-09-29 17:41 ` [PATCH 5/9] drm/i915: Move core GuC functions into dedicated file Michal Wajdeczko
2017-09-30 17:06   ` Sagar Arun Kamble
2017-09-30 17:16     ` Sagar Arun Kamble
2017-09-30 18:14       ` Michal Wajdeczko
2017-09-30 18:27         ` Sagar Arun Kamble
2017-10-07  4:25   ` [drm/i915] 202c1ca611: WARNING:at_drivers/gpu/drm/i915/intel_uncore.c:#intel_uncore_forcewake_for_reg[i915] kernel test robot
2017-10-07  4:25     ` kernel test robot
2017-10-07  8:36     ` Chris Wilson
2017-10-07  8:36       ` [Intel-gfx] " Chris Wilson
2017-10-07  8:38       ` Chris Wilson
2017-10-07  8:38         ` [Intel-gfx] " Chris Wilson
2017-10-07  9:54     ` Michal Wajdeczko
2017-10-07  9:54       ` Michal Wajdeczko
2017-09-29 17:41 ` [PATCH 6/9] drm/i915: Move intel_guc_sample_forcewake to guc.c Michal Wajdeczko
2017-09-30 17:21   ` Sagar Arun Kamble
2017-09-29 17:41 ` [PATCH 7/9] drm/i915: Move intel_guc_auth_huc " Michal Wajdeczko
2017-09-30 17:27   ` Sagar Arun Kamble
2017-09-29 17:41 ` [PATCH 8/9] drm/i915: Move intel_guc_suspend/resume " Michal Wajdeczko
2017-09-30 17:37   ` Sagar Arun Kamble
2017-09-29 17:41 ` [PATCH 9/9] drm/i915: Move intel_guc_allocate_vma " Michal Wajdeczko
2017-09-30 17:41   ` Sagar Arun Kamble
2017-09-29 18:07 ` ✗ Fi.CI.BAT: warning for drm/i915: Guc code reorg Patchwork
2017-09-29 21:56   ` Michal Wajdeczko
2017-09-30  8:30     ` Sagar Arun Kamble
2017-09-30 11:17       ` Michal Wajdeczko
2017-09-30 14:41         ` Sagar Arun Kamble
2017-10-02  8:45 ` Joonas Lahtinen [this message]

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=1506933937.6755.12.camel@linux.intel.com \
    --to=joonas.lahtinen@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=michal.wajdeczko@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: link
Be 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.