Re: [v5, 13/14] drm/i915/gsc: allocate extended operational memory in LMEM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> Looks good, just a minor nit.
> 
> Reviewed-by: Alan Previn <alan.previn.teres.alexis@xxxxxxxxx>
> 
> 
> On Wed, 2022-07-06 at 14:43 +0300, Alexander Usyskin wrote:
> > From: Tomas Winkler <tomas.winkler@xxxxxxxxx>
> >
> > GSC requires more operational memory than available on chip.
> > Reserve 4M of LMEM for GSC operation. The memory is provided to the
> > GSC as struct resource to the auxiliary data of the child device.
> >
> > Cc: Alan Previn <alan.previn.teres.alexis@xxxxxxxxx>
> > Signed-off-by: Tomas Winkler <tomas.winkler@xxxxxxxxx>
> > Signed-off-by: Daniele Ceraolo Spurio
> > <daniele.ceraolospurio@xxxxxxxxx>
> > Signed-off-by: Alexander Usyskin <alexander.usyskin@xxxxxxxxx>
> > ---
> >  drivers/gpu/drm/i915/gt/intel_gsc.c | 92
> > ++++++++++++++++++++++++++---  drivers/gpu/drm/i915/gt/intel_gsc.h
> |
> > 3 +
> >  2 files changed, 88 insertions(+), 7 deletions(-)
> >
> > +	if (def->lmem_size) {
> > +		dev_dbg(&pdev->dev, "setting up GSC lmem\n");

> >
> NIT: Any reason we are not being consistent and using drm_err / drm_debug
> (same below)? either way, ensuring we get PCI device id info in the dmesg
> output we are good.

Thanks, will fix.

> > +
> > +		if (gsc_ext_om_alloc(gsc, intf, def->lmem_size)) {
> > +			dev_err(&pdev->dev, "setting up gsc extended
> operational memory failed\n");
> > +			kfree(adev);
> > +			goto fail;
> > +		}
> > +
> > +		adev->ext_op_mem.start =
> i915_gem_object_get_dma_address(intf->gem_obj, 0);
> > +		adev->ext_op_mem.end = adev->ext_op_mem.start + def-
> >lmem_size;
> > +	}
> > +




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux