[PATCH RFC 12/24] drm/lima: add GP related functions
Marek Vasut
marex at denx.de
Wed May 23 17:12:55 UTC 2018
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 at gmail.com>
[...]
> +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
More information about the dri-devel
mailing list