Re: [RFC PATCH 2/4] DRM: Add support of AI Processor Unit (APU)

2021-09-22 Thread Christian König
Am 23.09.21 um 02:58 schrieb Dave Airlie: On Sat, 18 Sept 2021 at 07:57, Alexandre Bailon wrote: Some Mediatek SoC provides hardware accelerator for AI / ML. This driver provides the infrastructure to manage memory shared between host CPU and the accelerator, and to submit jobs to the accelerat

Re: [RFC PATCH 2/4] DRM: Add support of AI Processor Unit (APU)

2021-09-22 Thread Dave Airlie
On Sat, 18 Sept 2021 at 07:57, Alexandre Bailon wrote: > > Some Mediatek SoC provides hardware accelerator for AI / ML. > This driver provides the infrastructure to manage memory > shared between host CPU and the accelerator, and to submit > jobs to the accelerator. > The APU itself is managed by

Re: [RFC PATCH 2/4] DRM: Add support of AI Processor Unit (APU)

2021-09-18 Thread Hillf Danton
On Fri, 17 Sep 2021 14:59:43 +0200 Alexandre Bailon wrote: > +static DEFINE_IDA(req_ida); > +static LIST_HEAD(complete_node); I see accesses to complete_node in apu_drm_callback(), apu_job_timedout() and ioctl_gem_dequeue() without working out the serialization to avoid list corruption. Can you ad

[RFC PATCH 2/4] DRM: Add support of AI Processor Unit (APU)

2021-09-18 Thread Alexandre Bailon
Some Mediatek SoC provides hardware accelerator for AI / ML. This driver provides the infrastructure to manage memory shared between host CPU and the accelerator, and to submit jobs to the accelerator. The APU itself is managed by remoteproc so this drivers relies on remoteproc to found the APU and