All of lore.kernel.org
 help / color / mirror / Atom feed
From: Huang Rui <ray.huang-5C7GfCeVMHo@public.gmane.org>
To: "Koenig, Christian" <Christian.Koenig-5C7GfCeVMHo@public.gmane.org>
Cc: "Deucher,
	Alexander" <Alexander.Deucher-5C7GfCeVMHo@public.gmane.org>,
	"Huan, Alvin" <Alvin.Huan-5C7GfCeVMHo@public.gmane.org>,
	"Wang, Ken" <Ken.Wang-5C7GfCeVMHo@public.gmane.org>,
	"amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
	<amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: [PATCH 11/18] drm/amdgpu: export mmhub sw_init into gmc
Date: Thu, 1 Jun 2017 09:42:58 +0800	[thread overview]
Message-ID: <20170601014257.GA2951@hr-amur2> (raw)
In-Reply-To: <fd87586c-8609-bd81-b7e3-46f2a72a90e2-5C7GfCeVMHo@public.gmane.org>

On Thu, Jun 01, 2017 at 01:04:52AM +0800, Koenig, Christian wrote:
> Am 31.05.2017 um 18:14 schrieb Huang Rui:
> > Signed-off-by: Huang Rui <ray.huang@amd.com>
> > ---
> >   drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c   |  1 +
> >   drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 27 +++++++++++++++------------
> >   drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.h |  1 +
> >   3 files changed, 17 insertions(+), 12 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/
> amdgpu/gmc_v9_0.c
> > index 2fee1c6..077b7ce 100644
> > --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> > +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> > @@ -552,6 +552,7 @@ static int gmc_v9_0_sw_init(void *handle)
> >        struct amdgpu_device *adev = (struct amdgpu_device *)handle;
> >  
> >        gfxhub_v1_0_init(adev);
> > +     mmhub_v1_0_init(adev);
> >  
> >        spin_lock_init(&adev->mc.invalidate_lock);
> >  
> > diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c b/drivers/gpu/drm/amd/
> amdgpu/mmhub_v1_0.c
> > index 2f85647..20d8d2c 100644
> > --- a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
> > +++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
> > @@ -347,19 +347,8 @@ void mmhub_v1_0_set_fault_enable_default(struct
> amdgpu_device *adev, bool value)
> >        WREG32(SOC15_REG_OFFSET(MMHUB, 0, mmVM_L2_PROTECTION_FAULT_CNTL),
> tmp);
> >   }
> >  
> > -static int mmhub_v1_0_early_init(void *handle)
> > +void mmhub_v1_0_init(struct amdgpu_device *adev)
> >   {
> > -     return 0;
> > -}
> > -
> > -static int mmhub_v1_0_late_init(void *handle)
> > -{
> > -     return 0;
> > -}
> > -
> > -static int mmhub_v1_0_sw_init(void *handle)
> > -{
> > -     struct amdgpu_device *adev = (struct amdgpu_device *)handle;
> >        struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB];
> >  
> >        hub->ctx0_ptb_addr_lo32 =
> > @@ -379,6 +368,20 @@ static int mmhub_v1_0_sw_init(void *handle)
> >        hub->vm_l2_pro_fault_cntl =
> >                SOC15_REG_OFFSET(MMHUB, 0, mmVM_L2_PROTECTION_FAULT_CNTL);
> >  
> > +}
> > +
> > +static int mmhub_v1_0_early_init(void *handle)
> > +{
> > +     return 0;
> > +}
> > +
> > +static int mmhub_v1_0_late_init(void *handle)
> > +{
> > +     return 0;
> > +}
> > +
> > +static int mmhub_v1_0_sw_init(void *handle)
> > +{
> >        return 0;
> 
> Return with a value in a function returning void?
> 
> Check the compile log for warnings introduced by the patch set.
> 

The diff log doesn't show it well.
Actually, I just define new function named mmhub_v1_0_init as "void" and
its return type is also "void". And mmhub_v1_0_sw_init returning value
should be "0" here.

Yes, I checked compile log, no warning introduced.

Thanks,
Ray
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2017-06-01  1:42 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-31 16:14 [PATCH 00/18] Vega10 S3 following up Huang Rui
     [not found] ` <1496247293-16429-1-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
2017-05-31 16:14   ` [PATCH 01/18] drm/amdgpu: abstract gart table initialization for gfxhub/mmhub Huang Rui
     [not found]     ` <1496247293-16429-2-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
2017-05-31 16:32       ` Deucher, Alexander
2017-05-31 17:02       ` Christian König
     [not found]         ` <1bda3f76-870e-02a0-b51e-f37f02e4ef52-5C7GfCeVMHo@public.gmane.org>
2017-06-01  1:59           ` Huang Rui
2017-06-01  4:19       ` zhoucm1
     [not found]         ` <592F95C7.4080406-5C7GfCeVMHo@public.gmane.org>
2017-06-01  5:29           ` Huang Rui
2017-06-01  5:30             ` zhoucm1
2017-05-31 16:14   ` [PATCH 02/18] drm/amdgpu: abstract gart aperture " Huang Rui
     [not found]     ` <1496247293-16429-3-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
2017-05-31 16:38       ` Deucher, Alexander
2017-05-31 16:14   ` [PATCH 03/18] drm/amdgpu: abstract system " Huang Rui
2017-05-31 16:14   ` [PATCH 04/18] drm/amdgpu: abstract TLB " Huang Rui
2017-05-31 16:14   ` [PATCH 05/18] drm/amdgpu: abstract cache " Huang Rui
2017-05-31 16:14   ` [PATCH 06/18] drm/amdgpu: abstract system domain enablement " Huang Rui
2017-05-31 16:14   ` [PATCH 07/18] drm/amdgpu: abstract disable identity aperture " Huang Rui
     [not found]     ` <1496247293-16429-8-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
2017-05-31 16:21       ` Deucher, Alexander
2017-05-31 16:14   ` [PATCH 08/18] drm/amdgpu: abstract setup vmid config " Huang Rui
2017-05-31 16:14   ` [PATCH 09/18] drm/amdgpu: fix to miss program invalidation at resume Huang Rui
2017-05-31 16:14   ` [PATCH 10/18] drm/amdgpu: export gfxhub sw_init into gmc Huang Rui
2017-05-31 16:14   ` [PATCH 11/18] drm/amdgpu: export mmhub " Huang Rui
     [not found]     ` <1496247293-16429-12-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
2017-05-31 17:04       ` Christian König
     [not found]         ` <fd87586c-8609-bd81-b7e3-46f2a72a90e2-5C7GfCeVMHo@public.gmane.org>
2017-06-01  1:42           ` Huang Rui [this message]
2017-05-31 16:14   ` [PATCH 12/18] drm/amdgpu: export mmhub set clockgating " Huang Rui
2017-05-31 16:14   ` [PATCH 13/18] drm/amdgpu: export mmhub get " Huang Rui
2017-05-31 16:14   ` [PATCH 14/18] drm/amdgpu: remove gfxhub ip Huang Rui
2017-05-31 16:14   ` [PATCH 15/18] drm/amdgpu: remove mmhub ip Huang Rui
2017-05-31 16:14   ` [PATCH 16/18] drm/amdgpu: add ip name print for selecting ips with ip_block_mask Huang Rui
2017-05-31 16:14   ` [PATCH 17/18] drm/amdgpu: add ip block number prints Huang Rui
2017-05-31 16:14   ` [PATCH 18/18] drm/amdgpu: fix the gart table cleared issue for S3 Huang Rui
     [not found]     ` <1496247293-16429-19-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
2017-05-31 16:29       ` Deucher, Alexander
     [not found]         ` <BN6PR12MB16529494252B5889988E00BBF7F10-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-05-31 16:58           ` Christian König
     [not found]             ` <e2d9fdd5-7544-8b2c-031d-3894e2a7ec07-5C7GfCeVMHo@public.gmane.org>
2017-06-01  1:49               ` Huang Rui
2017-05-31 16:43   ` [PATCH 00/18] Vega10 S3 following up Deucher, Alexander
2017-05-31 17:00   ` Zhang, Hawking
     [not found]     ` <CY1PR12MB053461B71BE32E7234ECF668FCF10-1s8aH8ViOEf7axfsnaG19wdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-06-01  2:01       ` Huang Rui

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=20170601014257.GA2951@hr-amur2 \
    --to=ray.huang-5c7gfcevmho@public.gmane.org \
    --cc=Alexander.Deucher-5C7GfCeVMHo@public.gmane.org \
    --cc=Alvin.Huan-5C7GfCeVMHo@public.gmane.org \
    --cc=Christian.Koenig-5C7GfCeVMHo@public.gmane.org \
    --cc=Ken.Wang-5C7GfCeVMHo@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    /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.