Re: [PATCH RFC 12/24] drm/lima: add GP related functions

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

 



On 05/18/2018 11:28 AM, Qiang Yu wrote:
> GP is a processor for OpenGL vertex shader
> processing.
> 
> Signed-off-by: Qiang Yu <yuq825@xxxxxxxxx>

[...]

> +int lima_gp_init(struct lima_ip *ip)
> +{
> +	struct lima_device *dev = ip->dev;
> +	int err;
> +
> +	lima_gp_print_version(ip);
> +
> +	ip->data.async_reset = false;
> +	lima_gp_soft_reset_async(ip);
> +	err = lima_gp_soft_reset_async_wait(ip);
> +	if (err)
> +		return err;
> +
> +	err = devm_request_irq(dev->dev, ip->irq, lima_gp_irq_handler, 0,
> +			       lima_ip_name(ip), ip);

IRQF_SHARED, since there are designs (like zynqmp) where there is only
one IRQ line for the entire GPU.

> +	if (err) {
> +		dev_err(dev->dev, "gp %s fail to request irq\n",
> +			lima_ip_name(ip));
> +		return err;
> +	}
> +
> +	return 0;
> +}


[...]

-- 
Best regards,
Marek Vasut
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux