> -----Original Message-----
> From: Deucher, Alexander
> Sent: Tuesday, December 20, 2016 7:08 AM
> To: Yu, Xiangliang <[email protected]>; amd-
> [email protected]; dl.SRDC_SW_GPUVirtualization
> <[email protected]>
> Cc: Yu, Xiangliang <[email protected]>
> Subject: RE: [PATCH 20/23] drm/amdgpu/mxgpu: enable VI virtualization
> 
> > -----Original Message-----
> > From: amd-gfx [mailto:[email protected]] On Behalf
> > Of Xiangliang Yu
> > Sent: Saturday, December 17, 2016 11:17 AM
> > To: [email protected]; dl.SRDC_SW_GPUVirtualization
> > Cc: Yu, Xiangliang
> > Subject: [PATCH 20/23] drm/amdgpu/mxgpu: enable VI virtualization
> >
> > Call vi ip block setup function to enable vi virtualization.
> >
> > Signed-off-by: Xiangliang Yu <[email protected]>
> > ---
> >  drivers/gpu/drm/amd/mxgpu/amd_mxgpu.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/gpu/drm/amd/mxgpu/amd_mxgpu.c
> > b/drivers/gpu/drm/amd/mxgpu/amd_mxgpu.c
> > index 72469e2..7cacab7 100644
> > --- a/drivers/gpu/drm/amd/mxgpu/amd_mxgpu.c
> > +++ b/drivers/gpu/drm/amd/mxgpu/amd_mxgpu.c
> > @@ -62,6 +62,7 @@ static int amd_xgpu_init_ip_blocks(struct
> > amdgpu_device *adev)
> >     case CHIP_TONGA:
> >     case CHIP_FIJI:
> >             /* add IP blocks*/
> > +           xgpu_vi_add_ip_blocks(adev);
> 
> Rather than going through all this indirection, just check for the VF flag in 
> vi.c
> and add the appropriate IP blocks for the bare metal vs VF cases there.  It
> would also allow you to keep the vi_common functions static.

The method let us easy to put all virtualization implementation together, just 
export one interface to amdgpu. That is also the main aim of Re-org monk's 
sriov patches, don't want to mix virtualization into amdgpu. 

I don't why you keep vi_common function as static, I remember it is public 
before.

> 
> Alex
> 
> >             break;
> >     default:
> >             DRM_ERROR("Does not support this chip.\n");
> > --
> > 2.7.4
> >
> > _______________________________________________
> > amd-gfx mailing list
> > [email protected]
> > https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to