[RESEND v7 1/2] media: venus: Add codec data table

2019-09-23 Thread Aniket Masule
Add vpp cycles for different types of codec. It indicates the cycles required by video hardware to process each macroblock. Add vsp cycles, cycles required by stream processor. Initialize the codec data with core resources. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus

[RESEND v7 2/2] media: venus: Update clock scaling

2019-09-23 Thread Aniket Masule
Current clock scaling calculations are same for vpu4 and previous versions. For vpu4, Clock scaling calculations are updated with cycles/mb and bitrate. This helps in getting precise clock required. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 157

[RESEND v7 0/2]media: venus: Update clock scaling

2019-09-23 Thread Aniket Masule
bitrate based clock scaling patch in this patch series. - Instance state check is now moved from scale_clocks to load_scale_clocks Aniket Masule (2): media: venus: Add codec data table media: venus: Update clock scaling drivers/media/platform/qcom/venus/core.c| 13 ++ drivers/media/platform

[PATCH v7 0/3] media: venus: Update clock scaling

2019-08-27 Thread Aniket Masule
with VIDC_CORE_ID_. - Aligned hardware overload handling of scale_clocks_v4 with scale_clocks. - Added bitrate based clock scaling patch in this patch series. - Instance state check is now moved from scale_clocks to load_scale_clocks Aniket Masule (3): media: venus: Add codec data table media: venus

[PATCH v7 3/3] media: venus: Update to bitrate based clock scaling

2019-08-27 Thread Aniket Masule
Introduced clock scaling using bitrate, preavious calculations consider only the cycles per mb. Also, clock scaling is now triggered before every buffer being queued to the device. This helps in deciding precise clock cycles required. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom

[PATCH v7 2/3] media: venus: Update clock scaling

2019-08-27 Thread Aniket Masule
Current clock scaling calculations are same for vpu4 and previous versions. For vpu4, Clock scaling calculations are updated with cycles/mb. This helps in getting precise clock required Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 135

[PATCH v7 1/3] media: venus: Add codec data table

2019-08-27 Thread Aniket Masule
Add vpp cycles for different types of codec. It indicates the cycles required by video hardware to process each macroblock. Add vsp cycles, cycles required by stream processor. Initialize the codec data with core resources. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus

[PATCH 0/3] media: venus: Update clock scaling

2019-08-27 Thread Aniket Masule
with VIDC_CORE_ID_. - Aligned hardware overload handling of scale_clocks_v4 with scale_clocks. - Added bitrate based clock scaling patch in this patch series. - Instance state check is now moved from scale_clocks to load_scale_clocks. Aniket Masule (3): media: venus: Add codec data table media: venus

[PATCH 1/3] media: venus: Add codec data table

2019-08-27 Thread Aniket Masule
Add vpp cycles for different types of codec. It indicates the cycles required by video hardware to process each macroblock. Add vsp cycles, cycles required by stream processor. Initialize the codec data with core resources. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus

[PATCH 2/3] media: venus: Update clock scaling

2019-08-27 Thread Aniket Masule
Current clock scaling calculations are same for vpu4 and previous versions. For vpu4, Clock scaling calculations are updated with cycles/mb. This helps in getting precise clock required Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 135

[PATCH 3/3] media: venus: Update to bitrate based clock scaling

2019-08-27 Thread Aniket Masule
Introduced clock scaling using bitrate, preavious calculations consider only the cycles per mb. Also, clock scaling is now triggered before every buffer being queued to the device. This helps in deciding precise clock cycles required. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom

[PATCH v6 2/4] media: venus: Update clock scaling

2019-07-22 Thread Aniket Masule
Current clock scaling calculations are same for vpu4 and previous versions. For vpu4, Clock scaling calculations are updated with cycles/mb. This helps in getting precise clock required. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 91

[PATCH v6 1/4] media: venus: Add codec data table

2019-07-22 Thread Aniket Masule
Add vpp cycles for different types of codec. It indicates the cycles required by video hardware to process each macroblock. Add vsp cycles, cycles required by stream processor. Initialize the codec data with core resources. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus

[PATCH v6 3/4] media: venus: Update to bitrate based clock scaling

2019-07-22 Thread Aniket Masule
Introduced clock scaling using bitrate, preavious calculations consider only the cycles per mb. Also, clock scaling is now triggered before every buffer being queued to the device. This helps in deciding precise clock cycles required. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom

[PATCH v6 4/4] media: venus: Update core selection

2019-07-22 Thread Aniket Masule
Present core assignment is static. Introduced load balancing across the cores. Load on earch core is calculated and core with minimum load is assigned to given instance. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c| 69 +++--- drivers

[PATCH v6 0/4] media: venus: Update clock scaling and core selection

2019-07-22 Thread Aniket Masule
. - Added bitrate based clock scaling patch in this patch series. - Instance state check is now moved from scale_clocks to load_scale_clocks. Aniket Masule (4): media: venus: Add codec data table media: venus: Update clock scaling media: venus: Update to bitrate based clock scaling media

[PATCH v5 3/4] media: venus: Update to bitrate based clock scaling

2019-07-15 Thread Aniket Masule
Introduced clock scaling using bitrate, preavious calculations consider only the cycles per mb. Also, clock scaling is now triggered before every buffer being queued to the device. This helps in deciding precise clock cycles required. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom

[PATCH v5 4/4] media: venus: Update core selection

2019-07-15 Thread Aniket Masule
Present core assignment is static. Introduced load balancing across the cores. Load on earch core is calculated and core with minimum load is assigned to given instance. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c| 69 +++--- drivers

[PATCH v5 2/4] media: venus: Update clock scaling

2019-07-15 Thread Aniket Masule
Current clock scaling calculations are same for vpu4 and previous versions. For vpu4, Clock scaling calculations are updated with cycles/mb. This helps in getting precise clock required. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 91

[PATCH v5 1/4] media: venus: Add codec data table

2019-07-15 Thread Aniket Masule
Add vpp cycles for different types of codec. It indicates the cycles required by video hardware to process each macroblock. Add vsp cycles, cycles required by stream processor. Initialize the codec data with core resources. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus

[PATCH v5 0/4] media: venus: Update clock scaling and core selection

2019-07-15 Thread Aniket Masule
series. - Instance state check is now moved from scale_clocks to load_scale_clocks. Aniket Masule (4): media: venus: Add codec data table media: venus: Update clock scaling media: venus: Update to bitrate based clock scaling media: venus: Update core selection drivers/media/platform/qcom

[PATCH v4 2/4] media: venus: Update clock scaling

2019-07-02 Thread Aniket Masule
Current clock scaling calculations are same for vpu4 and previous versions. For vpu4, Clock scaling calculations are updated with cycles/mb. This helps in getting precise clock required. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 91

[PATCH v4 4/4] media: venus: Update core selection

2019-07-02 Thread Aniket Masule
Present core assignment is static. Introduced load balancing across the cores. Load on earch core is calculated and core with minimum load is assigned to given instance. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c| 69 +++--- drivers

[PATCH v4 3/4] media: venus: Update to bitrate based clock scaling

2019-07-02 Thread Aniket Masule
Introduced clock scaling using bitrate, preavious calculations consider only the cycles per mb. Also, clock scaling is now triggered before every buffer being queued to the device. This helps in deciding precise clock cycles required. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom

[PATCH v4 0/4] media: venus: Update clock scaling and core selection

2019-07-02 Thread Aniket Masule
aligned with VIDC_CORE_ID_. - Aligned hardware overload handling of scale_clocks_v4 with scale_clocks. - Added bitrate based clock scaling patch in this patch series. - Instance state check is now moved from scale_clocks to load_scale_clocks. Aniket Masule (4): media: venus: Add codec data table

[PATCH v4 1/4] media: venus: Add codec data table

2019-07-02 Thread Aniket Masule
Add vpp cycles for different types of codec. It indicates the cycles required by video hardware to process each macroblock. Add vsp cycles, cycles required by stream processor. Initialize the codec data with core resources. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus

[PATCH v3] arm64: dts: sdm845: Add video nodes

2019-07-02 Thread Aniket Masule
From: Malathi Gottam This adds video nodes to sdm845 based on the examples in the bindings. Signed-off-by: Malathi Gottam Co-developed-by: Aniket Masule Signed-off-by: Aniket Masule --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 30 ++ 1 file changed, 30 insertions

[PATCH v2] arm64: dts: sdm845: Add video nodes

2019-06-27 Thread Aniket Masule
This adds video nodes to sdm845 based on the examples in the bindings. Changes since v1: - Corrected the Signed-off-by ordering. - Corrected the node position based on the address. Aniket Masule (1): arm64: dts: sdm845: Add video nodes arch/arm64/boot/dts/qcom/sdm845.dtsi | 30

[PATCH v2] arm64: dts: sdm845: Add video nodes

2019-06-27 Thread Aniket Masule
From: Malathi Gottam This adds video nodes to sdm845 based on the examples in the bindings. Signed-off-by: Malathi Gottam Co-developed-by: Aniket Masule Signed-off-by: Aniket Masule --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 30 ++ 1 file changed, 30 insertions

[PATCH] arm64: dts: sdm845: Add video nodes

2019-06-26 Thread Aniket Masule
This adds video nodes to sdm845 based on the examples in the bindings. Signed-off-by: Malathi Gottam Signed-off-by: Aniket Masule --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b

[PATCH] media: venus: Update to bitrate based clock scaling

2019-06-26 Thread Aniket Masule
Introduced clock scaling using bitrate, current calculations consider only the cycles per mb. Also, clock scaling is now triggered before every buffer being queued to the device. This helps in deciding precise clock cycles required. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom

[PATCH] media: venus: Update to bitrate based clock scaling

2019-06-26 Thread Aniket Masule
This patch introduces bitrate based clock scaling. Also, clock scaling is now triggered before buffer being queued to the device. This checks for frequency requirement throughout the session and updates clock with correct frequency only if requirement is changed. Aniket Masule (1): media: venus

[PATCH v3 3/4] media: venus: Add interface for load per core

2019-06-25 Thread Aniket Masule
Add and interface to calculate load per core. Also, add an interface to get maximum cores available with video. This interface is preparation for updating core selection. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c| 19 +++ drivers/media

[PATCH v3 1/4] media: venus: Add codec data table

2019-06-25 Thread Aniket Masule
Add vpp cycles for for different types of codec It indicates the cycles required by video hardware to process each macroblock. Initialize the codec data with core resources. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/core.c| 13 + drivers/media/platform

[PATCH v3 0/4] media: venus: Update clock scaling and core selection

2019-06-25 Thread Aniket Masule
in patch 4 for checking max cores available is updated to VIDC_CORE_ID_2. - venus_helper_decide_core renamed to venus_helper_set_core. - scale_clocks_vpu4 renamed scale_clocks_v4. For comment on freq fied in clk_data structure, it is getting initialized and used in scale_clocks_v4 function. Aniket

[PATCH v3 4/4] media: venus: Update core selection

2019-06-25 Thread Aniket Masule
Present core assignment is static. Introduced load balancing across the cores. Load on earch core is calculated and core with minimum load is assigned to given instance. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 52 + drivers

[PATCH v3 2/4] media: venus: Update clock scaling

2019-06-25 Thread Aniket Masule
Current clock scaling calculations are same for vpu4 and previous versions. For vpu4, Clock scaling calculations are updated with cycles/mb. This helps in getting precise clock required. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 111

[PATCH 5/5] media: venus: Update core selection

2019-06-11 Thread Aniket Masule
Present core assignment is static. Introduced load balancing across the cores. Load on earch core is calculated and core with minimum load is assigned to given instance. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 50 + drivers

[PATCH 3/5] media: venus: Update clock scaling

2019-06-11 Thread Aniket Masule
Current clock scaling calculations are same for vpu4 and previous versions. For vpu4, Clock scaling calculations are updated with cycles/mb. This helps in getting precise clock required. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 88

[PATCH 4/5] media: venus: Add interface for load per core

2019-06-11 Thread Aniket Masule
Add and interface to calculate load per core. Also, add an interface to get maximum cores available with video. This interface is preparation for updating core selection. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c| 18 ++ drivers/media

[PATCH 2/5] media: venus: Initialize codec data

2019-06-11 Thread Aniket Masule
Initialize the codec data with core resources. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 30 + drivers/media/platform/qcom/venus/helpers.h | 1 + drivers/media/platform/qcom/venus/vdec.c| 4 drivers/media/platform/qcom

[PATCH v2 0/5] media: venus: Update clock scaling and core selection

2019-06-11 Thread Aniket Masule
in this patch series. filled_len will be used in clock scaling based on bitrate. Aniket Masule (5): media: venus: Add codec data table media: venus: Initialize codec data media: venus: Update clock scaling media: venus: Add interface for load per core media: venus: Update core selection

[PATCH 1/5] media: venus: Add codec data table

2019-06-11 Thread Aniket Masule
Add vpp cycles for for different types of codec It indicates the cycles required by video hardware to process each macroblock. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/core.c | 13 + drivers/media/platform/qcom/venus/core.h | 15 +++ 2 files

[PATCH 5/5] media: venus: Update core selection

2019-05-30 Thread Aniket Masule
Present core assignment is static. Introduced load balancing across the cores. Load on earch core is calculated and core with minimum load is assigned to given instance. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 50 + drivers

[PATCH 4/5] media: venus: Add interface for load per core

2019-05-30 Thread Aniket Masule
Add and interface to calculate load per core. Also, add an interface to get maximum cores available with video. This interface is preparation for updating core selection. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c| 18 ++ drivers/media

[PATCH 3/5] media: venus: Update clock scaling

2019-05-30 Thread Aniket Masule
Current clock scaling calculations are same for vpu4 and previous versions. For vpu4, Clock scaling calculations are updated with cycles/mb. This helps in getting precise clock required. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 91

[PATCH 1/5] media: venus: Add codec data table

2019-05-30 Thread Aniket Masule
Add vpp cycles for for different types of codec It indicates the cycles required by video hardware to process each macroblock. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/core.c | 13 + drivers/media/platform/qcom/venus/core.h | 15 +++ 2 files

[PATCH 2/5] media: venus: Initialize codec data

2019-05-30 Thread Aniket Masule
Initialize the codec data with core resources. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 30 + drivers/media/platform/qcom/venus/helpers.h | 1 + drivers/media/platform/qcom/venus/vdec.c| 4 drivers/media/platform/qcom

[PATCH 0/5] media: venus: Update clock scaling and core selection

2019-05-30 Thread Aniket Masule
. Clock scaling is now done more precisely using vpp cycles. Instance is assigned to core with minimum load, instead of of static assignment. Aniket Masule (5): media: venus: Add codec data table media: venus: Initialize codec data media: venus: Update clock scaling media: venus: Add interface