Re: [PATCH] drm/tidss: Update Videoport SYNC LOST IRQ bit

2025-09-09 Thread Devarsh Thakkar
Hi Hari, On 03/09/25 15:39, Harikrishna Shenoy wrote: Update VP SYNC LOST Bit as per register description for DSS0_COMMON_VP_IRQENABLE_0 give in TRM. Link:https://www.ti.com/lit/zip/spruil1/SPRUIL_DRA829_TDA4VM Table 12-597. DSS0_COMMON_VP_IRQENABLE_0 Fixes: 32a1795f57ee ("drm/tidss: New drive

Re: [PATCH v2 2/2] drm/panel: ilitek-ili9881c: Add configuration for 5" Raspberry Pi 720x1280

2025-09-07 Thread Devarsh Thakkar
Hi Marek, Thanks for the patch. On 05/09/25 02:26, Marek Vasut wrote: Add configuration for the 5" Raspberry Pi 720x1280 DSI panel based on ili9881. This uses 10px longer horizontal sync pulse and 10px shorter HBP to avoid very short hsync pulse. Is there a publicly available datasheet for th

Re: [PATCH v2] dt-bindings: drm/bridge: MHDP8546 bridge binding changes for DSC

2025-09-07 Thread Devarsh Thakkar
Hi Hari, On 04/09/25 03:33, Rob Herring wrote: On Wed, Sep 03, 2025 at 04:43:57PM +0530, Harikrishna Shenoy wrote: From: Swapnil Jakhade Add binding changes for DSC(Display Stream Compression) in the MHDP8546 DPI/DP bridge. Signed-off-by: Swapnil Jakhade Signed-off-by: Harikrishna Shenoy -

Re: [PATCH] drm/bridge: ti-sn65dsi86: Remove extra semicolon in ti_sn_bridge_probe()

2025-07-22 Thread Devarsh Thakkar
es: https://lore.kernel.org/oe-kbuild-all/202506301704.0sbj6ply-...@intel.com/ Signed-off-by: Douglas Anderson Reviewed-by: Devarsh Thakkar Regards Devarsh --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c

Re: [PATCH v4 17/17] drm/bridge: cdns-dsi: Don't fail on MIPI_DSI_MODE_VIDEO_BURST

2025-07-17 Thread Devarsh Thakkar
Hi Tomi, On 17/07/25 15:59, Tomi Valkeinen wrote: Hi, On 17/07/2025 12:36, Devarsh Thakkar wrote: Hi Tomi Thanks for the patch. On 18/06/25 15:29, Tomi Valkeinen wrote: While the cdns-dsi does not support DSI burst mode, the burst mode is essentially DSI event mode with more versatile

Re: [PATCH v4 17/17] drm/bridge: cdns-dsi: Don't fail on MIPI_DSI_MODE_VIDEO_BURST

2025-07-17 Thread Devarsh Thakkar
Hi Tomi Thanks for the patch. On 18/06/25 15:29, Tomi Valkeinen wrote: While the cdns-dsi does not support DSI burst mode, the burst mode is essentially DSI event mode with more versatile clocking and timings. I don't fully agree with this statement, DSI burst mode and DSI event mode are two d

Re: [PATCH] drm/tidss: oldi: convert to devm_drm_bridge_alloc() API

2025-07-07 Thread Devarsh Thakkar
e support") Signed-off-by: Jayesh Choudhary Reviewed-by: Devarsh Thakkar Regards Devarsh --- Warning log: <https://gist.github.com/Jayesh2000/e42c235bb57cb0f0af06c8c3bf886ef2> drivers/gpu/drm/tidss/tidss_oldi.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-)

Re: [PATCH v3 0/3] Decouple max_pclk check from constant display feats

2025-07-02 Thread Devarsh Thakkar
On 02/07/25 12:31, Jayesh Choudhary wrote: Hello Devarsh, On 01/07/25 19:00, Devarsh Thakkar wrote: On 01/07/25 15:25, Jayesh Choudhary wrote: In an effort to make the existing compatibles more usable, we are removing the max_pclk_khz form dispc_features structure and doing the correspondig

Re: [PATCH v3 2/3] drm/tidss: Remove max_pclk_khz from tidss display features

2025-07-01 Thread Devarsh Thakkar
gpu/drm/tidss/tidss_drv.h @@ -25,6 +25,8 @@ struct tidss_device { const struct dispc_features *feat; struct dispc_device *dispc; bool is_oldi_vp[TIDSS_MAX_PORTS]; + /* stores max supported pixel clock requested during checking modes */ Stores highest pixel clock value found

Re: [PATCH v3 3/3] drm/tidss: oldi: Add atomic_check hook for oldi bridge

2025-07-01 Thread Devarsh Thakkar
tomic_pre_enable, tidss_oldi_atomic_post_disable so maybe change those too ? With suggested change, Reviewed-by: Devarsh Thakkar Regards Devarsh }; static int get_oldi_mode(struct device_node *oldi_tx, int *companion_instance)

Re: [PATCH v3 0/3] Decouple max_pclk check from constant display feats

2025-07-01 Thread Devarsh Thakkar
On 01/07/25 15:25, Jayesh Choudhary wrote: In an effort to make the existing compatibles more usable, we are removing the max_pclk_khz form dispc_features structure and doing the correspondig checks using "curr_max_pclk[]". Changes are fully backwards compatible. After integration of OLDI suppo

Re: [PATCH v3 1/3] drm/tidss: oldi: Add property to identify OLDI supported VP

2025-07-01 Thread Devarsh Thakkar
dss_oldi_init() and 'false' in tidss_oldi_deinit(). Signed-off-by: Jayesh Choudhary Reviewed-by: Devarsh Thakkar Regards Devarsh --- drivers/gpu/drm/tidss/tidss_drv.h | 2 ++ drivers/gpu/drm/tidss/tidss_oldi.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/gpu/drm/ti

Re: [PATCH v2] drm/tidss: Decouple max_pclk from tidss feats to remove clock dependency

2025-06-30 Thread Devarsh Thakkar
Hi Jayesh, Thanks for the patch. On 18/06/25 15:35, Jayesh Choudhary wrote: TIDSS hardware by itself does not have variable max_pclk for each VP. Each VP supports a fixed maximum pixel clock. As discussed offline, I think VP max pixel clock is more dependent on SoC than DSS itself as SoC pr

Re: [PATCH v2 03/18] drm/tidss: Adjust the pclk based on the HW capabilities

2025-05-28 Thread Devarsh Thakkar
Hi Michael, Tomi, On 27/05/25 18:03, Tomi Valkeinen wrote: Hi Michael (and Aradhya, Devarsh), On 27/05/2025 12:13, Michael Walle wrote: Hi Tomi, While testing Aardhya's OLDI support patches [1], I've noticed that the resulting LVDS clock is wrong if this patch is applied. In practice, with

[PATCH v6 2/3] drm/tidss: Update infrastructure to support K3 DSS cut-down versions

2025-05-07 Thread Devarsh Thakkar
are highlighted in the code. Signed-off-by: Devarsh Thakkar --- V6: - Move hw_id indexing logic to skip uninstantiated planes to internal functions dealing with relevant registers V5: - Use separate variable for hw_id and add it in missing places to access correct VID pipeline bits in common

[PATCH v6 1/3] dt-bindings: display: ti, am65x-dss: Add support for AM62L DSS

2025-05-07 Thread Devarsh Thakkar
Choudhary Reviewed-by: Tomi Valkeinen Signed-off-by: Devarsh Thakkar --- V6: No change V5: No change V4: No change V3: - Remove AM62A references as suggested - Add Reviewed-by V2: - Add Reviewed-by - s/ti,am62l,dss/ti,am62l-dss .../bindings/display/ti/ti,am65x-dss.yaml | 21

[PATCH v6 0/3] Add support for AM62L DSS

2025-05-07 Thread Devarsh Thakkar
tps://lore.kernel.org/all/20250306132914.1469387-1-devar...@ti.com/ V2: https://lore.kernel.org/all/20250204061552.3720261-1-devar...@ti.com/ V1: https://lore.kernel.org/all/20241231090432.3649158-1-devar...@ti.com/ Test logs: https://gist.github.com/devarsht/09a5d64a507b7ccc096e857f122eda70 Devarsh Thakkar (3):

[PATCH v6 3/3] drm/tidss: Add support for AM62L display subsystem

2025-05-07 Thread Devarsh Thakkar
port are also routed to DSI Tx controller present within the SoC. [1]: Section 11.7 (Display Subsystem and Peripherals) Link : https://www.ti.com/lit/pdf/sprujb4 Signed-off-by: Devarsh Thakkar --- v6: - No change V5: - No change V4: - Rebase on top of previous patch to use vid_info structure

Re: [PATCH v5 2/3] drm/tidss: Update infrastructure to support K3 DSS cut-down versions

2025-05-05 Thread Devarsh Thakkar
Hi Tomi On 03/05/25 14:14, Tomi Valkeinen wrote: > On 02/05/2025 14:52, Devarsh Thakkar wrote: >> Hi, >> >> >> Ok I see what you mean to say.although functionally it is working >> fine but from readability point of view it is confusing since both >&g

Re: [PATCH v5 2/3] drm/tidss: Update infrastructure to support K3 DSS cut-down versions

2025-05-02 Thread Devarsh Thakkar
Hi, >> It uses hw_id i.e. 1 for all vid irqstatus related registers since it is >> accessing am65x common region register space which has vid on idx0 which >> we want to skip for am62l. >> >> For dispc_plane_enable(), the caller uses >>> 0, for dispc_k3_vid_write_irqstatus(), the caller uses 1...

Re: [PATCH v5 2/3] drm/tidss: Update infrastructure to support K3 DSS cut-down versions

2025-05-02 Thread Devarsh Thakkar
Hi Tomi, Thanks for the quick revert. On 02/05/25 13:37, Tomi Valkeinen wrote: > Hi, > > On 02/05/2025 10:06, Devarsh Thakkar wrote: >> Hi Tomi >> >> Thanks for quick comments. >> >> On 30/04/25 23:12, Tomi Valkeinen wrote: >>> On 30/04

Re: [PATCH v5 2/3] drm/tidss: Update infrastructure to support K3 DSS cut-down versions

2025-05-02 Thread Devarsh Thakkar
Hi Tomi Thanks for quick comments. On 30/04/25 23:12, Tomi Valkeinen wrote: > On 30/04/2025 19:37, Devarsh Thakkar wrote: >> Hi Tomi >> >> Thanks for the review. >> >> >>>>    @@ -2025,7 +2101,7 @@ int dispc_plane_check(struct dispc_device >>&

Re: [PATCH v5 2/3] drm/tidss: Update infrastructure to support K3 DSS cut-down versions

2025-04-30 Thread Devarsh Thakkar
Hi Tomi Thanks for the review. >>   @@ -2025,7 +2101,7 @@ int dispc_plane_check(struct dispc_device >> *dispc, u32 hw_plane, >>     const struct drm_plane_state *state, >>     u32 hw_videoport) >>   { >> -    bool lite = dispc->feat->vid_lite[hw_plane]; >> +    bool lite

Re: [PATCH v4 2/3] drm/tidss: Update infrastructure to support K3 DSS cut-down versions

2025-04-30 Thread Devarsh Thakkar
Hi Tomi Thanks for the review. I had missed to respond back to below comment before sending V5, so kindly find the response for the same as below. On 27/03/25 16:48, Tomi Valkeinen wrote: >> *dispc, u32 hw_plane, >> const struct drm_plane_state *state, >> u32 hw

[PATCH v5 1/3] dt-bindings: display: ti, am65x-dss: Add support for AM62L DSS

2025-04-29 Thread Devarsh Thakkar
Choudhary Reviewed-by: Tomi Valkeinen Signed-off-by: Devarsh Thakkar --- V5: - No change V4: - No change V3: - Remove AM62A references as suggested - Add Reviewed-by V2: - Add Reviewed-by - s/ti,am62l,dss/ti,am62l-dss .../bindings/display/ti/ti,am65x-dss.yaml | 21 +

[PATCH v5 2/3] drm/tidss: Update infrastructure to support K3 DSS cut-down versions

2025-04-29 Thread Devarsh Thakkar
are highlighted in the code. Signed-off-by: Devarsh Thakkar --- V5: - Use separate variable for hw_id and add it in missing places to access correct VID pipeline bits in common registers V4: - Create vid_info struct only for instantiated planes - s/num_planes/num_vids - s/vid_lite/is_lite

[PATCH v5 0/3] Add support for AM62L DSS

2025-04-29 Thread Devarsh Thakkar
r...@ti.com/ V3: https://lore.kernel.org/all/20250306132914.1469387-1-devar...@ti.com/ V2: https://lore.kernel.org/all/20250204061552.3720261-1-devar...@ti.com/ V1: https://lore.kernel.org/all/20241231090432.3649158-1-devar...@ti.com/ Test logs: https://gist.github.com/devarsht/82505ca69f0bd5d9788bfc240d2e83

[PATCH v5 3/3] drm/tidss: Add support for AM62L display subsystem

2025-04-29 Thread Devarsh Thakkar
port are also routed to DSI Tx controller present within the SoC. [1]: Section 11.7 (Display Subsystem and Peripherals) Link : https://www.ti.com/lit/pdf/sprujb4 Signed-off-by: Devarsh Thakkar --- V5: - No change V4: - Rebase on top of previous patch to use vid_info structure V3: - Rebase on

[PATCH v4 3/3] drm/tidss: Add support for AM62L display subsystem

2025-04-05 Thread Devarsh Thakkar
port are also routed to DSI Tx controller present within the SoC. [1]: Section 11.7 (Display Subsystem and Peripherals) Link : https://www.ti.com/lit/pdf/sprujb4 Signed-off-by: Devarsh Thakkar --- V4: - Rebase on top of previous patch to use vid_info structure V3: - Rebase on top of 0002-drm

[PATCH v4 1/3] dt-bindings: display: ti, am65x-dss: Add support for AM62L DSS

2025-03-26 Thread Devarsh Thakkar
Choudhary Reviewed-by: Tomi Valkeinen Signed-off-by: Devarsh Thakkar --- V4: - No change V3: - Remove AM62A references as suggested - Add Reviewed-by V2: - Add Reviewed-by - s/ti,am62l,dss/ti,am62l-dss .../bindings/display/ti/ti,am65x-dss.yaml | 21 ++- 1 file c

[PATCH v4 0/3] Add support for AM62L DSS

2025-03-26 Thread Devarsh Thakkar
github.com/devarsht/16fe796b8fd3ea8abf5df8e2327d2311 Devarsh Thakkar (3): dt-bindings: display: ti,am65x-dss: Add support for AM62L DSS drm/tidss: Update infrastructure to support K3 DSS cut-down versions drm/tidss: Add support for AM62L display subsystem .../bindings/display/ti/ti,am65x-dss.yaml | 21 ++- dr

[PATCH v4 2/3] drm/tidss: Update infrastructure to support K3 DSS cut-down versions

2025-03-26 Thread Devarsh Thakkar
are highlighted in the code. Signed-off-by: Devarsh Thakkar --- V4: - Create vid_info struct only for instantiated planes - s/num_planes/num_vids - s/vid_lite/is_lite - Add hw_id member in vid_info struct and remove is_present V2->V3: - No change (patch introduced in V3) drivers/gpu/drm/ti

[PATCH v3 0/3] Add support for AM62L DSS

2025-03-07 Thread Devarsh Thakkar
Test logs: https://gist.github.com/devarsht/16fe796b8fd3ea8abf5df8e2327d2311 Devarsh Thakkar (3): dt-bindings: display: ti,am65x-dss: Add support for AM62L DSS drm/tidss: Update infra to support DSS7 cut-down versions drm/tidss: Add support for AM62L display subsystem .../bindings/dis

[PATCH v3 2/3] drm/tidss: Update infrastructure to support K3 DSS cut-down versions

2025-03-06 Thread Devarsh Thakkar
to indicate whether that plane is actually supported or it is truncated. If the plane is truncated, then skip the access to corresponding register space while doing plane related operations. Signed-off-by: Devarsh Thakkar --- V3: Patch is introduced V2: Patch not present drivers/gpu/drm/tidss

[PATCH v3 1/3] dt-bindings: display: ti, am65x-dss: Add support for AM62L DSS

2025-03-06 Thread Devarsh Thakkar
Choudhary Reviewed-by: Tomi Valkeinen Signed-off-by: Devarsh Thakkar --- V3: - Remove AM62A references as suggested - Add Reviewed-by V2: - Add Reviewed-by - s/ti,am62l,dss/ti,am62l-dss .../bindings/display/ti/ti,am65x-dss.yaml | 21 ++- 1 file changed, 20 insertions(+),

[PATCH v3 3/3] drm/tidss: Add support for AM62L display subsystem

2025-03-06 Thread Devarsh Thakkar
port are also routed to DSI Tx controller present within the SoC. [1]: Section 11.7 (Display Subsystem and Peripherals) Link : https://www.ti.com/lit/pdf/sprujb4 Signed-off-by: Devarsh Thakkar --- V3: - Rebase on top of 0002-drm-tidss-Update-infra-to-support-DSS7-cut-down-vers.patch - Use the

Re: [PATCH v2 1/2] dt-bindings: display: ti,am65x-dss: Add support for AM62L DSS

2025-02-04 Thread Devarsh Thakkar
Hi Tomi, Thanks for the review. On 04/02/25 19:25, Tomi Valkeinen wrote: >>     description: | >> -  The AM625 and AM65x TI Keystone Display SubSystem with two output >> +  The AM625 and AM65x TI Keystone Display SubSystem has two output >>     ports and two video planes. In AM65x DSS, the first

Re: [PATCH 2/2] drm/tidss: Add support for AM62L display subsystem

2025-02-04 Thread Devarsh Thakkar
Hi Tomi >> Thanks for pointing out, I probably missed this since the use-case still >> worked since VP interrupts were still enabled and those were sufficient to >> drive the display >> but the VID underflow interrupts and VID specific bits were probably not >> enabled at-all due to above miss, so

[PATCH v2 2/2] drm/tidss: Add support for AM62L display subsystem

2025-02-03 Thread Devarsh Thakkar
input channel value needs to be mandatorily set as 1 for the first and only video lite pipeline for this SoC. [1]: Section 11.7 (Display Subsystem and Peripherals) Link : https://www.ti.com/lit/pdf/sprujb4 Signed-off-by: Devarsh Thakkar --- V2: - Add separate common reg space for AM62L - Add separate

[PATCH v2 0/2] Add support for AM62L DSS

2025-02-03 Thread Devarsh Thakkar
x: https://lore.kernel.org/all/20250203155431.2174170-1-devar...@ti.com/ Devarsh Thakkar (2): dt-bindings: display: ti,am65x-dss: Add support for AM62L DSS drm/tidss: Add support for AM62L display subsystem .../bindings/display/ti/ti,am65x-dss.yaml | 25 +++- drivers/gpu/drm/tidss/tidss

[PATCH v2 1/2] dt-bindings: display: ti, am65x-dss: Add support for AM62L DSS

2025-02-03 Thread Devarsh Thakkar
Choudhary Signed-off-by: Devarsh Thakkar --- - Add Reviewed-by - s/ti,am62l,dss/ti,am62l-dss NOTE: This patch needs to be applied on top of AM62A dt-binding fix: https://lore.kernel.org/all/20250203155431.2174170-1-devar...@ti.com/ .../bindings/display/ti/ti,am65x-dss.yam

[PATCH v2] dt-bindings: display: ti: Fix compatible for am62a7 dss

2025-02-03 Thread Devarsh Thakkar
Fix incorrect format of compatible string (comma instead of hyphen) for TI's AM62A7 SoC. s/ti,am62a7,dss/ti,am62a7-dss Fixes: 7959ceb767e4 ("dt-bindings: display: ti: Add support for am62a7 dss") Reviewed-by: Krzysztof Kozlowski Signed-off-by: Devarsh Thakkar --- V2: Add Reviewe

[PATCH] dt-bindings: display: ti: Fix compatible for am62a7 dss

2025-02-03 Thread Devarsh Thakkar
Fix compatible string for AM62A7 DSS. s/ti,am62a7,dss/ti,am62a7-dss Fixes: 7959ceb767e4 ("dt-bindings: display: ti: Add support for am62a7 dss") Signed-off-by: Devarsh Thakkar --- Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH 1/2] dt-bindings: display: ti,am65x-dss: Add support for AM62L DSS

2025-02-03 Thread Devarsh Thakkar
Hi Jayesh, On 24/01/25 13:50, Jayesh Choudhary wrote: >>     compatible: >>   enum: >>     - ti,am625-dss >>     - ti,am62a7,dss >> +  - ti,am62l,dss > > > s/ti,am62l,dss/ti,am62l-dss > > There seems to be inconsistency in the usage of the compatible name in > the conditional b

Re: [PATCH 2/2] drm/tidss: Add support for AM62L display subsystem

2025-01-28 Thread Devarsh Thakkar
Hi Aradhya, On 18/01/25 14:57, Aradhya Bhatia wrote: > Hi Devarsh, > > Thanks for the patches. > Thanks for the review. > On 31/12/24 14:34, Devarsh Thakkar wrote: >> Enable display for AM62L DSS [1] which supports only a single display >> pipeline using a single ov

[PATCH 0/2] Add support for AM62L DSS

2024-12-31 Thread Devarsh Thakkar
This adds support for DSS subsystem present in TI's AM62L SoC which supports single display pipeline with DPI output which is also routed to DSI Tx controller within the SoC. Devarsh Thakkar (2): dt-bindings: display: ti,am65x-dss: Add support for AM62L DSS drm/tidss: Add support for

[PATCH 1/2] dt-bindings: display: ti, am65x-dss: Add support for AM62L DSS

2024-12-31 Thread Devarsh Thakkar
eo port is routed to SoC boundary via DPI interface and the DPI signals from the video port are also routed to DSI Tx controller present within the SoC. [1]: Section 11.7 (Display Subsystem and Peripherals) Link : https://www.ti.com/lit/pdf/sprujb4 Signed-off-by: Devarsh Thakkar --- .../bindings/dis

[PATCH 2/2] drm/tidss: Add support for AM62L display subsystem

2024-12-31 Thread Devarsh Thakkar
port are also routed to DSI Tx controller present within the SoC. [1]: Section 11.7 (Display Subsystem and Peripherals) Link : https://www.ti.com/lit/pdf/sprujb4 Signed-off-by: Devarsh Thakkar --- drivers/gpu/drm/tidss/tidss_dispc.c | 34 + drivers/gpu/drm/tidss

Re: [PATCH 2/7] drm/tidss: Remove unused OCP error flag

2024-11-22 Thread Devarsh Thakkar
On 21/10/24 19:37, Tomi Valkeinen wrote: > We never use the DSS_IRQ_DEVICE_OCP_ERR flag, and the HW doesn't even > have such a bit... So remove it. > > Signed-off-by: Tomi Valkeinen Reviewed-by: Devarsh Thakkar Regards Devarsh > --- > drivers/gpu/drm/tidss/tidss_irq

Re: [PATCH 3/7] drm/tidss: Remove extra K2G check

2024-11-22 Thread Devarsh Thakkar
n Reviewed-by: Devarsh Thakkar Regards Devarsh > --- > drivers/gpu/drm/tidss/tidss_dispc.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/tidss/tidss_dispc.c > b/drivers/gpu/drm/tidss/tidss_dispc.c > index f8067578..99a1138f3e69 100644 > --

Re: [PATCH 7/7] drm/tidss: Rename 'wait_lock' to 'irq_lock'

2024-11-22 Thread Devarsh Thakkar
x27;wait_list' which doesn't exist in tidss. > > Signed-off-by: Tomi Valkeinen Reviewed-by: Devarsh Thakkar Regards Devarsh > --- > drivers/gpu/drm/tidss/tidss_dispc.c | 4 ++-- > drivers/gpu/drm/tidss/tidss_drv.c | 2 +- > drivers/gpu/drm/tidss/tid

Re: [PATCH 4/7] drm/tidss: Add printing of underflows

2024-11-22 Thread Devarsh Thakkar
On 21/10/24 19:37, Tomi Valkeinen wrote: > Add printing of underflows the same way as we handle sync losts. > > Signed-off-by: Tomi Valkeinen Reviewed-by: Devarsh Thakkar Regards Devarsh > --- > drivers/gpu/drm/tidss/tidss_irq.c | 14 ++ > dri

Re: [PATCH v5 07/13] drm/bridge: cdns-dsi: Wait for Clk and Data Lanes to be ready

2024-10-21 Thread Devarsh Thakkar
Hi Aradhya, Thanks for the patch. On 20/10/24 01:24, Aradhya Bhatia wrote: > From: Aradhya Bhatia [...] > + /* > + * Now that the DSI Link and DSI Phy are initialized, > + * wait for the CLK and Data Lanes to be ready. > + */ > + tmp = CLK_LANE_RDY; > + for (int i =

[PATCH 1/2] drm/tidss: Clear the interrupt status for interrupts being disabled

2024-10-12 Thread Devarsh Thakkar
& old_mask This corrects the bit mask to make sure that it always clears any pending interrupt events that are requested to be disabled before disabling them actually. Fixes: 32a1795f57ee ("drm/tidss: New driver for TI Keystone platform Display SubSystem") Reported-by: Jonathan Cormier

[PATCH 2/2] drm/tidss: Avoid race condition while handling interrupt registers

2024-10-12 Thread Devarsh Thakkar
. To prevent such scenarioes, use a spinlock to serialize access to interrupt related registers. Fixes: 32a1795f57ee ("drm/tidss: New driver for TI Keystone platform Display SubSystem") Signed-off-by: Devarsh Thakkar --- drivers/gpu/drm/tidss/tidss_dispc.c | 4 drivers/gpu

[PATCH 0/2] DSS interrupt related bug fixes

2024-10-12 Thread Devarsh Thakkar
potential race scenario between interrupt subroutine and interrupt enable/disable related functions as they both access interrupt registers without a common lock. This series addresses the aforementioned problems. Devarsh Thakkar (2): drm/tidss: Clear the interrupt status for interrupts being disabled

Re: [PATCH] drm/tidss: Add MIT license along with GPL-2.0

2024-09-16 Thread Devarsh Thakkar
Hi Laurent, Thanks for the quick review. On 13/09/24 13:54, Laurent Pinchart wrote: > Hi Devarsh, > > On Thu, Sep 12, 2024 at 10:41:42PM +0530, Devarsh Thakkar wrote: >> Modify license to include dual licensing as GPL-2.0-only OR MIT license for >> tidss display driv

[PATCH] drm/tidss: Add MIT license along with GPL-2.0

2024-09-12 Thread Devarsh Thakkar
Modify license to include dual licensing as GPL-2.0-only OR MIT license for tidss display driver. This allows other operating system ecosystems such as Zephyr and also the commercial firmwares to refer and derive code from this display driver in a more permissive manner. Signed-off-by: Devarsh

[PATCH v13 13/13] gpu: ipu-v3: Use generic macro for rounding closest to specified value

2024-06-07 Thread Devarsh Thakkar
Use generic macro round_closest_up() for rounding closest to specified value instead of using local macro round_closest(). There is no change from functionality point of view as round_closest_up() is functionally same as the previously used local macro round_closest(). Signed-off-by: Devarsh

[PATCH v13 12/13] media: imagination: Round to closest multiple for cropping region

2024-06-07 Thread Devarsh Thakkar
ection.rst [1] Signed-off-by: Devarsh Thakkar --- V9->V13: No change V8: Update commit message with specification reference V1->V7 (No change, patch introduced in V7) --- drivers/media/platform/imagination/e5010-jpeg-enc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[PATCH v13 11/13] lib: math_kunit: Add tests for new macros related to rounding to nearest value

2024-06-07 Thread Devarsh Thakkar
Add tests for round_closest_up/down and roundclosest macros which round to nearest multiple of specified argument. These are tested with kunit tool as shared here [1] : Link: https://gist.github.com/devarsht/3f9042825be3da4e133b8f4eda067876 [1] Signed-off-by: Devarsh Thakkar Acked-by: Andy

[PATCH v13 10/13] lib: add basic KUnit test for lib/math

2024-06-07 Thread Devarsh Thakkar
c files Signed-off-by: Daniel Latypov Reviewed-by: David Gow Reviewed-by: Andy Shevchenko [devarsht: Rebase to 6.9, remove kernel.h, update Kconfig and change license to GPL] Signed-off-by: Devarsh Thakkar --- Changes since v11: * Add Reviewed-by tag Changes since v10: * Include headers per

[PATCH v13 09/13] Documentation: core-api: Add math.h macros and functions

2024-06-07 Thread Devarsh Thakkar
Add documentation for rounding, scaling, absolute value and 32-bit division related macros and functions exported by math.h header file. Signed-off-by: Devarsh Thakkar Reviewed-by: Andy Shevchenko --- V13: No change V12: Add Reviewed-by V11: Fix title for math function header V10: Patch

[PATCH v13 07/13] math.h: Add macros for rounding to closest value

2024-06-07 Thread Devarsh Thakkar
* round_closest_up(15, 4) = 16 * round_closest_up(14, 4) = 16 * round_closest_down(17, 4) = 16 * round_closest_down(15, 4) = 16 * round_closest_down(14, 4) = 12 * roundclosest(21, 5) = 20 * roundclosest(19, 5) = 20 * roundclosest(17, 5) = 15 Signed-off-by: Devarsh Thakkar Acked-by: Andy

[PATCH v13 00/13] Add V4L2 M2M Driver for E5010 JPEG Encoder

2024-06-07 Thread Devarsh Thakkar
com/ V5: https://lore.kernel.org/all/20240215134641.3381478-1-devar...@ti.com/ V4: https://lore.kernel.org/all/20240205114239.924697-1-devar...@ti.com/ V3: https://lore.kernel.org/all/20230816152210.4080779-1-devar...@ti.com/ V2: https://lore.kernel.org/all/20230727112546.2201995-1-devar...@ti.com/ Da

Re: [PATCH v12 12/13] media: imagination: Round to closest multiple for cropping region

2024-06-06 Thread Devarsh Thakkar
Hi Sebastian Thanks for the update. On 06/06/24 17:14, Sebastian Fricke wrote: > Hey, > > On 04.06.2024 16:23, Devarsh Thakkar wrote: >> If neither of the flags to round down (V4L2_SEL_FLAG_LE) or round up >> (V4L2_SEL_FLAG_GE) are specified by the user, then round to n

[PATCH v12 13/13] gpu: ipu-v3: Use generic macro for rounding closest to specified value

2024-06-04 Thread Devarsh Thakkar
Use generic macro round_closest_up() for rounding closest to specified value instead of using local macro round_closest(). There is no change from functionality point of view as round_closest_up() is functionally same as the previously used local macro round_closest(). Signed-off-by: Devarsh

[PATCH v12 12/13] media: imagination: Round to closest multiple for cropping region

2024-06-04 Thread Devarsh Thakkar
ection.rst [1] Signed-off-by: Devarsh Thakkar --- V12: No change V11: No change V10: No change V9: No change V8: Update commit message with specification reference V1->V7 (No change, patch introduced in V7) --- drivers/media/platform/imagination/e5010-jpeg-enc.c | 8 1 file changed,

[PATCH v12 11/13] lib: math_kunit: Add tests for new macros related to rounding to nearest value

2024-06-04 Thread Devarsh Thakkar
Add tests for round_closest_up/down and roundclosest macros which round to nearest multiple of specified argument. These are tested with kunit tool as shared here [1] : Link: https://gist.github.com/devarsht/3f9042825be3da4e133b8f4eda067876 [1] Signed-off-by: Devarsh Thakkar Acked-by: Andy

[PATCH v12 10/13] lib: add basic KUnit test for lib/math

2024-06-04 Thread Devarsh Thakkar
c files Signed-off-by: Daniel Latypov Reviewed-by: David Gow Reviewed-by: Andy Shevchenko [devarsht: Rebase to 6.9, remove kernel.h, update Kconfig and change license to GPL] Signed-off-by: Devarsh Thakkar --- Changes since v11: * Add Reviewed-by tag Changes since v10: * Include headers per

[PATCH v12 09/13] Documentation: core-api: Add math.h macros and functions

2024-06-04 Thread Devarsh Thakkar
Add documentation for rounding, scaling, absolute value and 32-bit division related macros and functions exported by math.h header file. Signed-off-by: Devarsh Thakkar Reviewed-by: Andy Shevchenko --- V12: Add Reviewed-by V11: Fix title for math function header V10: Patch introduced V1->V9

[PATCH v12 07/13] math.h: Add macros for rounding to closest value

2024-06-04 Thread Devarsh Thakkar
* round_closest_up(15, 4) = 16 * round_closest_up(14, 4) = 16 * round_closest_down(17, 4) = 16 * round_closest_down(15, 4) = 16 * round_closest_down(14, 4) = 12 * roundclosest(21, 5) = 20 * roundclosest(19, 5) = 20 * roundclosest(17, 5) = 15 Signed-off-by: Devarsh Thakkar Acked-by: Andy

[PATCH v12 00/13] Add V4L2 M2M Driver for E5010 JPEG Encoder

2024-06-04 Thread Devarsh Thakkar
ti.com/ V2: https://lore.kernel.org/all/20230727112546.2201995-1-devar...@ti.com/ Daniel Latypov (1): lib: add basic KUnit test for lib/math Devarsh Thakkar (12): media: dt-bindings: Add Imagination E5010 JPEG Encoder media: imagination: Add E5010 JPEG Encoder driver media: v4l

Re: [PATCH v11 07/11] Documentation: core-api: Add math.h macros and functions

2024-06-01 Thread Devarsh Thakkar
On 01/06/24 00:01, Randy Dunlap wrote: > Hi, > > On 5/31/24 10:12 AM, Devarsh Thakkar wrote: >> Add documentation for rounding, scaling, absolute value and difference, >> 32-bit division related macros and functions exported by math.h header >> file. >> &g

[PATCH v11 11/11] gpu: ipu-v3: Use generic macro for rounding closest to specified value

2024-05-31 Thread Devarsh Thakkar
Use generic macro round_closest_up() for rounding closest to specified value instead of using local macro round_closest(). There is no change from functionality point of view as round_closest_up() is functionally same as the previously used local macro round_closest(). Signed-off-by: Devarsh

[PATCH v11 10/11] media: imagination: Round to closest multiple for cropping region

2024-05-31 Thread Devarsh Thakkar
ection.rst Signed-off-by: Devarsh Thakkar --- V11: No change V10: No change V9: No change V8: Update commit message with specification reference V1->V7 (No change, patch introduced in V7) --- drivers/media/platform/imagination/e5010-jpeg-enc.c | 8 1 file changed, 4 insertions(+)

[PATCH v11 09/11] lib: math_kunit: Add tests for new macros related to rounding to nearest value

2024-05-31 Thread Devarsh Thakkar
Add tests for round_closest_up/down and roundclosest macros which round to nearest multiple of specified argument. These are tested with kunit tool as shared here [1]. [1]: https://gist.github.com/devarsht/3f9042825be3da4e133b8f4eda067876 Signed-off-by: Devarsh Thakkar --- V1->V11 (No cha

[PATCH v11 08/11] lib: add basic KUnit test for lib/math

2024-05-31 Thread Devarsh Thakkar
c files Signed-off-by: Daniel Latypov Reviewed-by: David Gow [devarsht: Rebase to 6.9, remove kernel.h, update Kconfig and change license to GPL] Signed-off-by: Devarsh Thakkar --- Changes since v10: * Include headers per IWYU principle and add module description Changes since v9: * Added Kco

[PATCH v11 07/11] Documentation: core-api: Add math.h macros and functions

2024-05-31 Thread Devarsh Thakkar
Add documentation for rounding, scaling, absolute value and difference, 32-bit division related macros and functions exported by math.h header file. Signed-off-by: Devarsh Thakkar --- V11: Fix title for math function header V10: Patch introduced V1->V9 (No change) --- Documentation/core-

[PATCH v11 06/11] math.h: Add macros for rounding to closest value

2024-05-31 Thread Devarsh Thakkar
* round_closest_up(15, 4) = 16 * round_closest_up(14, 4) = 16 * round_closest_down(17, 4) = 16 * round_closest_down(15, 4) = 16 * round_closest_down(14, 4) = 12 * roundclosest(21, 5) = 20 * roundclosest(19, 5) = 20 * roundclosest(17, 5) = 15 Signed-off-by: Devarsh Thakkar --- NOTE: This patch

[PATCH v11 00/11] Add V4L2 M2M Driver for E5010 JPEG Encoder

2024-05-31 Thread Devarsh Thakkar
10.4080779-1-devar...@ti.com/ V2: https://lore.kernel.org/all/20230727112546.2201995-1-devar...@ti.com/ Daniel Latypov (1): lib: add basic KUnit test for lib/math Devarsh Thakkar (10): media: dt-bindings: Add Imagination E5010 JPEG Encoder media: imagination: Add E5010 JPEG Encoder driver media: v4l2-j

Re: [PATCH v10 07/11] Documentation: core-api: Add math.h macros and functions

2024-05-31 Thread Devarsh Thakkar
Hi Randy, Thanks for the review. On 31/05/24 04:14, Randy Dunlap wrote: > > > On 5/30/24 10:17 AM, Devarsh Thakkar wrote: >> Add documentation for rounding, scaling, absolute value and difference, >> 32-bit division related macros and functions exported by math.h header

Re: [PATCH v10 07/11] Documentation: core-api: Add math.h macros and functions

2024-05-31 Thread Devarsh Thakkar
On 31/05/24 00:51, Andy Shevchenko wrote: > On Thu, May 30, 2024 at 10:47:40PM +0530, Devarsh Thakkar wrote: >> Add documentation for rounding, scaling, absolute value and difference, >> 32-bit division related macros and functions exported by math.h header >> file. >

Re: [PATCH v10 08/11] lib: add basic KUnit test for lib/math

2024-05-31 Thread Devarsh Thakkar
On 31/05/24 00:53, Andy Shevchenko wrote: > On Thu, May 30, 2024 at 10:48:10PM +0530, Devarsh Thakkar wrote: >> From: Daniel Latypov >> >> Add basic test coverage for files that don't require any config options: >> * part of math.h (what seem to be the most

Re: [PATCH v10 06/11] math.h: Add macros for rounding to closest value

2024-05-31 Thread Devarsh Thakkar
Hi Andy, Thanks for the review. On 31/05/24 00:49, Andy Shevchenko wrote: > On Thu, May 30, 2024 at 10:42:25PM +0530, Devarsh Thakkar wrote: >> Add below rounding related macros: >> >> round_closest_up(x, y) : Rounds x to closest multiple of y where y is a >> power

[PATCH v10 11/11] gpu: ipu-v3: Use generic macro for rounding closest to specified value

2024-05-30 Thread Devarsh Thakkar
Use generic macro round_closest_up() for rounding closest to specified value instead of using local macro round_closest(). There is no change from functionality point of view as round_closest_up() is functionally same as the previously used local macro round_closest(). Signed-off-by: Devarsh

[PATCH v10 10/11] media: imagination: Round to closest multiple for cropping region

2024-05-30 Thread Devarsh Thakkar
ection.rst Signed-off-by: Devarsh Thakkar --- V10: No change V9: No change V8: Update commit message with specification reference V1->V7 (No change, patch introduced in V7) --- drivers/media/platform/imagination/e5010-jpeg-enc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-)

[PATCH v10 09/11] lib: math_kunit: Add tests for new macros related to rounding to nearest value

2024-05-30 Thread Devarsh Thakkar
Add tests for round_closest_up/down and roundclosest macros which round to nearest multiple of specified argument. These are tested with kunit tool as shared here [1]. [1]: https://gist.github.com/devarsht/3f9042825be3da4e133b8f4eda067876 Signed-off-by: Devarsh Thakkar --- V1->V10 (No cha

[PATCH v10 08/11] lib: add basic KUnit test for lib/math

2024-05-30 Thread Devarsh Thakkar
c files Signed-off-by: Daniel Latypov Reviewed-by: David Gow [devarsht: Rebase to 6.9, remove kernel.h, update Kconfig and change license to GPL] Signed-off-by: Devarsh Thakkar --- Changes since v9: * Added Kconfig dependency for KUNIT Changes since v8: * Remove unrequired header file linux/ke

[PATCH v10 07/11] Documentation: core-api: Add math.h macros and functions

2024-05-30 Thread Devarsh Thakkar
Add documentation for rounding, scaling, absolute value and difference, 32-bit division related macros and functions exported by math.h header file. Signed-off-by: Devarsh Thakkar --- V1->V9 (No change) V10: Patch introduced --- Documentation/core-api/kernel-api.rst | 6 ++ 1 file chan

[PATCH v10 06/11] math.h: Add macros for rounding to closest value

2024-05-30 Thread Devarsh Thakkar
* round_closest_up(15, 4) = 16 * round_closest_up(14, 4) = 16 * round_closest_down(17, 4) = 16 * round_closest_down(15, 4) = 16 * round_closest_down(14, 4) = 12 * roundclosest(21, 5) = 20 * roundclosest(19, 5) = 20 * roundclosest(17, 5) = 15 Signed-off-by: Devarsh Thakkar --- NOTE: This patch

[PATCH v10 00/11] Add V4L2 M2M Driver for E5010 JPEG Encoder

2024-05-30 Thread Devarsh Thakkar
0779-1-devar...@ti.com/ V2: https://lore.kernel.org/all/20230727112546.2201995-1-devar...@ti.com/ Daniel Latypov (1): lib: add basic KUnit test for lib/math Devarsh Thakkar (10): media: dt-bindings: Add Imagination E5010 JPEG Encoder media: imagination: Add E5010 JPEG Encoder driver media: v4l2

Re: [RFC PATCH 2/3] drm/tidss: Add support for display sharing

2024-05-29 Thread Devarsh Thakkar
Hi Javier, Maxime, Daniel, Sorry for the delay. Please find response inline. On 16/05/24 18:21, Daniel Vetter wrote: > On Wed, May 15, 2024 at 04:45:09PM +0200, Javier Martinez Canillas wrote: >> Devarsh Thakkar writes: [..] >> >> If I understand you correctly, for now t

Re: [PATCH v9 07/10] lib: add basic KUnit test for lib/math

2024-05-28 Thread Devarsh Thakkar
On 28/05/24 02:08, Andy Shevchenko wrote: > On Mon, May 27, 2024 at 11:37:20PM +0300, Andy Shevchenko wrote: >> On Sun, May 26, 2024 at 11:39:33PM +0530, Devarsh Thakkar wrote: > > ... > >>> +MODULE_LICENSE("GPL"); >> >> modpost

Re: [PATCH v9 07/10] lib: add basic KUnit test for lib/math

2024-05-28 Thread Devarsh Thakkar
Hi Andy, Thanks for the review. On 28/05/24 02:07, Andy Shevchenko wrote: [..] >> +#include >> +#include >> +#include > > + math.h (where abs()/DIV_ROUND_*()/etc come from?) > I believe I mentioned that. > I did compile and test this, so math.h was indirectly getting included via some othe

Re: [PATCH v9 06/10] math.h: Add macros for rounding to closest value

2024-05-28 Thread Devarsh Thakkar
Hi Andy, Thanks for the review. On 28/05/24 02:02, Andy Shevchenko wrote: > On Sun, May 26, 2024 at 11:38:56PM +0530, Devarsh Thakkar wrote: ... >> +/** >> + * round_closest_up - round closest to be multiple of specified value >> (which is >> + *

[PATCH v9 10/10] gpu: ipu-v3: Use generic macro for rounding closest to specified value

2024-05-26 Thread Devarsh Thakkar
Use generic macro round_closest_up() for rounding closest to specified value instead of using local macro round_closest(). There is no change from functionality point of view as round_closest_up() is functionally same as the previously used local macro round_closest(). Signed-off-by: Devarsh

[PATCH v9 09/10] media: imagination: Round to closest multiple for cropping region

2024-05-26 Thread Devarsh Thakkar
ection.rst Signed-off-by: Devarsh Thakkar --- V9: No change V8: Update commit message with specification reference V1->V7 (No change, patch introduced in V7) --- drivers/media/platform/imagination/e5010-jpeg-enc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/

[PATCH v9 08/10] lib: math_kunit: Add tests for new macros related to rounding to nearest value

2024-05-26 Thread Devarsh Thakkar
Add tests for round_closest_up/down and roundclosest macros which round to nearest multiple of specified argument. These are tested with kunit tool as shared here [1]. [1]: https://gist.github.com/devarsht/3f9042825be3da4e133b8f4eda067876 Signed-off-by: Devarsh Thakkar --- V1->V9 (No cha

[PATCH v9 07/10] lib: add basic KUnit test for lib/math

2024-05-26 Thread Devarsh Thakkar
c files Signed-off-by: Daniel Latypov Reviewed-by: David Gow [devarsht: Rebase to 6.9, remove kernel.h and change license to GPL] Signed-off-by: Devarsh Thakkar --- Changes since v8: * Remove unrequired header file linux/kernel.h Changes since v7: * Rebase to linux-next, change license to GPL

  1   2   >