mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-24 04:09:55 +07:00
e646e17713
We are now able to configure a pipeline directly into a local display list body. Take advantage of this fact, and create a cacheable body to store the configuration of the pipeline in the pipeline object. vsp1_video_pipeline_run() is now the last user of the pipe->dl object. Convert this function to use the cached pipe->stream_config body and obtain a local display list reference. Attach the pipe->stream_config body to the display list when needed before committing to hardware. Use a flag 'configured' to know when we should attach our stream_config to the next outgoing display list to reconfigure the hardware in the event of our first frame, or the first frame following a suspend/resume cycle. Our video DL usage now looks like the below output: dl->body0 contains our disposable runtime configuration. Max 41. dl_child->body0 is our partition specific configuration. Max 12. dl->bodies shows our constant configuration and LUTs. These two are LUT/CLU: * dl->bodies[x]->num_entries 256 / max 256 * dl->bodies[x]->num_entries 4914 / max 4914 Which shows that our 'constant' configuration cache is currently utilised to a maximum of 64 entries. trace-cmd report | \ dl->body0->num_entries 13 / max 128 dl->body0->num_entries 14 / max 128 dl->body0->num_entries 16 / max 128 dl->body0->num_entries 20 / max 128 dl->body0->num_entries 27 / max 128 dl->body0->num_entries 34 / max 128 dl->body0->num_entries 41 / max 128 dl_child->body0->num_entries 10 / max 128 dl_child->body0->num_entries 12 / max 128 dl->bodies[x]->num_entries 15 / max 128 dl->bodies[x]->num_entries 16 / max 128 dl->bodies[x]->num_entries 17 / max 128 dl->bodies[x]->num_entries 18 / max 128 dl->bodies[x]->num_entries 20 / max 128 dl->bodies[x]->num_entries 21 / max 128 dl->bodies[x]->num_entries 256 / max 256 dl->bodies[x]->num_entries 31 / max 128 dl->bodies[x]->num_entries 32 / max 128 dl->bodies[x]->num_entries 39 / max 128 dl->bodies[x]->num_entries 40 / max 128 dl->bodies[x]->num_entries 47 / max 128 dl->bodies[x]->num_entries 48 / max 128 dl->bodies[x]->num_entries 4914 / max 4914 dl->bodies[x]->num_entries 55 / max 128 dl->bodies[x]->num_entries 56 / max 128 dl->bodies[x]->num_entries 63 / max 128 dl->bodies[x]->num_entries 64 / max 128 Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
50 lines
1.7 KiB
C
50 lines
1.7 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* vsp1_dl.h -- R-Car VSP1 Display List
|
|
*
|
|
* Copyright (C) 2015 Renesas Corporation
|
|
*
|
|
* Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
|
|
*/
|
|
#ifndef __VSP1_DL_H__
|
|
#define __VSP1_DL_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct vsp1_device;
|
|
struct vsp1_dl_body;
|
|
struct vsp1_dl_body_pool;
|
|
struct vsp1_dl_list;
|
|
struct vsp1_dl_manager;
|
|
|
|
#define VSP1_DL_FRAME_END_COMPLETED BIT(0)
|
|
#define VSP1_DL_FRAME_END_INTERNAL BIT(1)
|
|
|
|
void vsp1_dlm_setup(struct vsp1_device *vsp1);
|
|
|
|
struct vsp1_dl_manager *vsp1_dlm_create(struct vsp1_device *vsp1,
|
|
unsigned int index,
|
|
unsigned int prealloc);
|
|
void vsp1_dlm_destroy(struct vsp1_dl_manager *dlm);
|
|
void vsp1_dlm_reset(struct vsp1_dl_manager *dlm);
|
|
unsigned int vsp1_dlm_irq_frame_end(struct vsp1_dl_manager *dlm);
|
|
struct vsp1_dl_body *vsp1_dlm_dl_body_get(struct vsp1_dl_manager *dlm);
|
|
|
|
struct vsp1_dl_list *vsp1_dl_list_get(struct vsp1_dl_manager *dlm);
|
|
void vsp1_dl_list_put(struct vsp1_dl_list *dl);
|
|
struct vsp1_dl_body *vsp1_dl_list_get_body0(struct vsp1_dl_list *dl);
|
|
void vsp1_dl_list_commit(struct vsp1_dl_list *dl, bool internal);
|
|
|
|
struct vsp1_dl_body_pool *
|
|
vsp1_dl_body_pool_create(struct vsp1_device *vsp1, unsigned int num_bodies,
|
|
unsigned int num_entries, size_t extra_size);
|
|
void vsp1_dl_body_pool_destroy(struct vsp1_dl_body_pool *pool);
|
|
struct vsp1_dl_body *vsp1_dl_body_get(struct vsp1_dl_body_pool *pool);
|
|
void vsp1_dl_body_put(struct vsp1_dl_body *dlb);
|
|
|
|
void vsp1_dl_body_write(struct vsp1_dl_body *dlb, u32 reg, u32 data);
|
|
int vsp1_dl_list_add_body(struct vsp1_dl_list *dl, struct vsp1_dl_body *dlb);
|
|
int vsp1_dl_list_add_chain(struct vsp1_dl_list *head, struct vsp1_dl_list *dl);
|
|
|
|
#endif /* __VSP1_DL_H__ */
|