Re: [PATCH 4/4] board: ti: am62ax: Add support for remote proc load

2024-05-10 Thread Devarsh Thakkar
On 09/05/24 19:50, Hari Nagalla wrote: > Add AM62a remote proc firmware names to environment variables for > loading of C7x DSP and R5F processors. > > Signed-off-by: Hari Nagalla Reviewed-by: Devarsh Thakkar Regards Devarsh > --- > board/ti/am62ax/am62ax.env | 4 &g

Re: [PATCH 3/4] configs: am62ax: enable remote proc drivers

2024-05-10 Thread Devarsh Thakkar
On 09/05/24 19:50, Hari Nagalla wrote: > Enable K3-DSP and K3-R5FSS remote proc drivers for am62ax. > > Signed-off-by: Hari Nagalla Reviewed-by: Devarsh Thakkar Regards Devarsh > --- > configs/am62ax_evm_a53_defconfig | 3 +++ > 1 file changed, 3 insertions(+) > &

Re: [PATCH 2/4] remoteproc: k3-r5: Add support for R5F core on AM62A SoCs

2024-05-10 Thread Devarsh Thakkar
On 09/05/24 19:50, Hari Nagalla wrote: > AM62A has a R5F core in MCU voltage domain. > Extend support for R5F remote proc driver on AM62A with compatible > strings. > > Signed-off-by: Hari Nagalla Reviewed-by: Devarsh Thakkar Regards Devarsh > --- > drivers/remoteproc/t

Re: [PATCH 1/4] remoteproc: k3-dsp: Enable C71x support for AM62A

2024-05-09 Thread Devarsh Thakkar
On 09/05/24 19:50, Hari Nagalla wrote: > AM62A SoC has a single C71x DSP subsystem with analytics engine in > main voltage domain. Extend support to AM62A with compatible strings. > > Signed-off-by: Hari Nagalla Reviewed-by: Devarsh Thakkar Regards Devarsh > --- >

Re: [PATCH 0/4] Simplefb and fb reservation related updates

2024-04-05 Thread Devarsh Thakkar
Gentle Reminder. On 08/03/24 16:38, Devarsh Thakkar wrote: > Hi Tom, Anatolij, Simon, > > On 22/02/24 18:38, Devarsh Thakkar wrote: >> This adds support for simple-framebuffer reservation using video handoff >> when splash is enabled at SPL stage. >> >> Also ad

Re: [PATCH v2 1/2] spl: Introduce SoC specific init function

2024-03-27 Thread Devarsh Thakkar
mory that SPL will be running from. > > +config SPL_SOC_INIT > + bool "Call arch-specific initialization in SPL" Call SoC specific intialization in SPL With above change, Reviewed-by: Devarsh Thakkar Regards Devarsh > + help > + If this option is enabl

Re: [PATCH 1/2] spl: Introduce architecture specific init function

2024-03-20 Thread Devarsh Thakkar
Hi Tom, Lukas, Thanks for the patch Lukas. On 20/03/24 20:00, Tom Rini wrote: > On Wed, Mar 20, 2024 at 02:19:26PM +0100, lukas.funke-...@weidmueller.com > wrote: > >> From: Lukas Funke >> >> Some architectures use spl_board_init() in their architecture specific >> implementation. Board

Re: [PATCH 0/4] Simplefb and fb reservation related updates

2024-03-08 Thread Devarsh Thakkar
Hi Tom, Anatolij, Simon, On 22/02/24 18:38, Devarsh Thakkar wrote: > This adds support for simple-framebuffer reservation using video handoff > when splash is enabled at SPL stage. > > Also adds helper function to only enable framebuffer reservation without > enabling simple-fram

Re: [PATCH 4/4] board: ti: am62x: evm: Update simple-framebuffer node in device-tree

2024-03-05 Thread Devarsh Thakkar
Hi, On 22/02/24 18:38, Devarsh Thakkar wrote: > Update simple-framebuffer device-tree node by enumerating framebuffer > related information in existing simple-framebuffer node in Linux > device-tree file and enabling it. > > In case there is no simple-framebuffer stub detected

[PATCH 4/4] board: ti: am62x: evm: Update simple-framebuffer node in device-tree

2024-02-22 Thread Devarsh Thakkar
the device-tree to reserve the framebuffer region for the active splash screen. This helps preserve the splash screen till the display server takes over after OS is booted. Signed-off-by: Devarsh Thakkar --- board/ti/am62x/evm.c | 19 +++ 1 file changed, 19 insertions(+) diff --git

[PATCH 3/4] boot: Move framebuffer reservation to separate helper

2024-02-22 Thread Devarsh Thakkar
and thus not requiring simple-framebuffer. Signed-off-by: Devarsh Thakkar --- boot/fdt_simplefb.c | 12 +--- boot/fdt_support.c| 21 + include/fdt_support.h | 2 ++ 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/boot/fdt_simplefb.c b/boot

[PATCH 2/4] video: Assume video to be active if SPL is passing video hand-off

2024-02-22 Thread Devarsh Thakkar
If SPL is passing video handoff structure to U-boot then it is safe to assume that SPL has already enabled video and that's why it is passing video handoff structure to U-boot so that U-boot can preserve the framebuffer. Signed-off-by: Devarsh Thakkar --- drivers/video/video-uclass.c | 4

[PATCH 1/4] boot: fdt_simplefb: Enumerate framebuffer info from video handoff

2024-02-22 Thread Devarsh Thakkar
Enable and update simple-framebuffer node using the video handoff bloblist if video was enabled at SPL stage and corresponding video bloblist was received at u-boot proper with necessary parameters. Signed-off-by: Devarsh Thakkar --- boot/fdt_simplefb.c | 34

[PATCH 0/4] Simplefb and fb reservation related updates

2024-02-22 Thread Devarsh Thakkar
else in between until kernel boots up. Lastly, it enables above support on AM62x. Devarsh Thakkar (4): boot: fdt_simplefb: Enumerate framebuffer info from video handoff video: Assume video to be active if SPL is passing video hand-off boot: Move framebuffer reservation to separate helper

Re: [PATCH v5 0/8] Move framebuffer reservation for SPL to RAM end

2024-01-29 Thread Devarsh Thakkar
Hi Anatolij, Tom, On 08/01/24 13:32, Devarsh Thakkar wrote: Hi Anatolij, Tom, On 26/12/23 15:17, Simon Glass wrote: On Wed, Dec 13, 2023 at 2:56 PM Devarsh Thakkar wrote: Hi Antoine, On 05/12/23 21:25, Devarsh Thakkar wrote: Move video memory reservation for SPL at end of RAM so

Re: [PATCH] video: tidss: Use DT property names for parsing nodes

2024-01-29 Thread Devarsh Thakkar
Hi Anatolij,Tom On 24/01/24 17:28, Nikhil Jain wrote: Hi Devarsh, On 24/01/24 14:37, Devarsh Thakkar wrote: Use device-tree node property names for parsing nodes instead of indexing as indexing could be different between different SoCs based on number of DSS entities available

Re: [PATCH v2] common: splash_source: Don't compile ubifs splash cmd for SPL build

2024-01-29 Thread Devarsh Thakkar
Hi Simon, Tom, On 24/01/24 17:26, Nikhil Jain wrote: Hi Devarsh, On 24/01/24 14:35, Devarsh Thakkar wrote: Don't compile ubifs splash mount command for SPL build as this command is not supported (and also not enabled) during SPL stage. This fixes below compilation error, when

[PATCH] video: tidss: Use DT property names for parsing nodes

2024-01-24 Thread Devarsh Thakkar
/v6.8-rc1/arch/arm64/boot/dts/ti/k3-am62-main.dtsi#L774 Fixes: 5f9f816bb8 ("drivers: video: tidss: TIDSS video driver support for AM62x") Signed-off-by: Devarsh Thakkar --- drivers/video/tidss/tidss_drv.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dri

[PATCH v2] common: splash_source: Don't compile ubifs splash cmd for SPL build

2024-01-24 Thread Devarsh Thakkar
PL") Signed-off-by: Devarsh Thakkar --- V2: Drop repeat sentence in commit msg common/splash_source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/splash_source.c b/common/splash_source.c index 7223a1aae7..2ce0768833 100644 --- a/common/splash_source.c +++ b/co

[PATCH] common: splash_source: Don't compile ubifs splash cmd for SPL build

2024-01-24 Thread Devarsh Thakkar
make: *** [Makefile:177: sub-make] Error 2" Fixes: eb9217dc03 ("common: Enable splash functions at SPL") Signed-off-by: Devarsh Thakkar --- common/splash_source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/splash_source.c b/common/splash_source.c index 7223a1aae

Re: [PATCH v5 0/8] Move framebuffer reservation for SPL to RAM end

2024-01-08 Thread Devarsh Thakkar
Hi Anatolij, Tom, On 26/12/23 15:17, Simon Glass wrote: > On Wed, Dec 13, 2023 at 2:56 PM Devarsh Thakkar wrote: >> >> Hi Antoine, >> >> On 05/12/23 21:25, Devarsh Thakkar wrote: >>> Move video memory reservation for SPL at end of RAM so that it does >>&

Re: [PATCH v5 0/8] Move framebuffer reservation for SPL to RAM end

2023-12-13 Thread Devarsh Thakkar
Hi Antoine, On 05/12/23 21:25, Devarsh Thakkar wrote: > Move video memory reservation for SPL at end of RAM so that it does > not interefere with reservations for next stage so that the next stage > need not have holes in between for passed regions and instead it can > maintai

[PATCH v5 8/8] doc: spl: Add info regarding memory reservation

2023-12-05 Thread Devarsh Thakkar
Add details regarding scheme which need to be followed in SPL and further stages for those regions which need to be preserved across bootstages. Signed-off-by: Devarsh Thakkar Reviewed-by: Simon Glass --- V1->V3: No change. V4: Split this to separate patch and add more details regarding mem

[PATCH v5 7/8] doc: spl: Add info for missing Kconfigs

2023-12-05 Thread Devarsh Thakkar
Add info regarding splash screen, video, bloblist and GPIO related Kconfigs which were missing in the documentation. Signed-off-by: Devarsh Thakkar Reviewed-by: Simon Glass --- V2: No change V3: No change V4: Patch split from parent V5: Add Reviewed-by --- doc/develop/spl.rst | 9 + 1

[PATCH v5 5/8] video: Skip framebuffer reservation if already reserved

2023-12-05 Thread Devarsh Thakkar
that address in discussion is of framebuffer and not bloblist and also match it with printing scheme followed in video_reserve function. Signed-off-by: Devarsh Thakkar Reviewed-by: Simon Glass --- V2: - Add debug prints - Fix commenting style V3: - Fix commenting style V4: - Remove extra checks on gd

[PATCH v5 6/8] video: Fill video handoff in video post probe

2023-12-05 Thread Devarsh Thakkar
framebuffer size in video hand-off structure use the actual framebuffer region size as derived from gd->video_top and gd->video_bottom instead of directly using the size populated in video_uc_plat as it contains unaligned size. Reported-by: Simon Glass Signed-off-by: Devarsh Thakkar Re

[PATCH v5 4/8] common/board_f: Catch bloblist before starting reservations

2023-12-05 Thread Devarsh Thakkar
reservations start only after regions reserved for previous stages Skip reservation for video memory if it was already filled by a bloblist. Signed-off-by: Devarsh Thakkar Reviewed-by: Simon Glass --- V2: Fix typo in commit title and checkpatch warnings/checks V3: No change V4: Add Reviewed-by V5

[PATCH v5 3/8] board: ti: am62x: evm: Remove video_setup from spl_board_init

2023-12-05 Thread Devarsh Thakkar
Remove video_setup from evm_init sequence since video memory is getting called at an earlier place to make sure video memory is reserved at the end of RAM. Suggested-by: Simon Glass Signed-off-by: Devarsh Thakkar Reviewed-by: Simon Glass --- V2: No change V3: No change V4: Add Reviewed-by V5

[PATCH v5 2/8] arm: mach-k3: common: Reserve video memory from end of the RAM

2023-12-05 Thread Devarsh Thakkar
out having to make any gaps/holes to accommodate those regions which was the case before as previous stage reserved region not from the end of RAM. Use gd->ram_top instead of local ram_top and update gd->reloc_addr after each reservation to ensure further regions are reserved properly. Signed

[PATCH v5 1/8] spl: Enforce framebuffer reservation from end of RAM

2023-12-05 Thread Devarsh Thakkar
Add an API which enforces framebuffer reservation from end of RAM. This is done so that next stage can directly skip this region before carrying out further reservations. Signed-off-by: Devarsh Thakkar Reviewed-by: Simon Glass --- V2: No change. V3: Change spl_reserve_video

[PATCH v5 0/8] Move framebuffer reservation for SPL to RAM end

2023-12-05 Thread Devarsh Thakkar
essage for video memory reservation from bloblist. - Add Reviewed-By. V5: - Add comment for filling video handoff size with aligned size - Use PHASE_BOARD_F while checking for U-boot proper stage - Add Reviewed-by Test logs: https://gist.github.com/devarsht/30a3c1591270c9ebae00714b48d33058 Devarsh T

Re: [PATCH v2 1/5] cyclic: Add a symbol for SPL

2023-12-05 Thread Devarsh Thakkar
watchdog.h > inclusion to outside the USE_HOSTCC area. But at some point the #ifdefs > from these files will likely be removed, so there is no benefit in > going that way. > > Signed-off-by: Simon Glass Reviewed-by: Devarsh Thakkar Regards Devarsh > --- > > Chang

Re: [PATCH v2 5/6] video: Fill video handoff in video post probe

2023-12-05 Thread Devarsh Thakkar
Hi Simon, Thanks for the review. On 02/12/23 23:53, Simon Glass wrote: > Hi Devarsh, > > On Sat, 25 Nov 2023 at 07:27, Devarsh Thakkar wrote: >> >> Hi Simon, >> >> Thanks for the review. >> >> On 13/11/23 01:31, Simon Glass wrote: >>> Hi

[PATCH v4 8/8] doc: spl: Add info regarding memory reservation

2023-11-25 Thread Devarsh Thakkar
Add details regarding scheme which need to be followed in SPL and further stages for those regions which need to be preserved across bootstages. Signed-off-by: Devarsh Thakkar --- V1->V3: No change. V4: Split this to separate patch and add more details regarding memory reservation sch

[PATCH v4 7/8] doc: spl: Add info for missing Kconfigs

2023-11-25 Thread Devarsh Thakkar
Add info regarding splash screen, video, bloblist and GPIO related Kconfigs which were missing in the documentation. Signed-off-by: Devarsh Thakkar --- V2: No change V3: No change V4: Patch split from parent --- doc/develop/spl.rst | 9 + 1 file changed, 9 insertions(+) diff --git

[PATCH v4 6/8] video: Fill video handoff in video post probe

2023-11-25 Thread Devarsh Thakkar
-by: Simon Glass Signed-off-by: Devarsh Thakkar --- V2: - No change V3: - Fix commit message per review comment - Add a note explaining assumption of single framebuffer V4: - Wrap message to 72 chars --- drivers/video/video-uclass.c | 29 +++-- 1 file changed, 19 insertions

[PATCH v4 5/8] video: Skip framebuffer reservation if already reserved

2023-11-25 Thread Devarsh Thakkar
that address in discussion is of framebuffer and not bloblist and also match it with printing scheme followed in video_reserve function. Signed-off-by: Devarsh Thakkar --- V2: - Add debug prints - Fix commenting style V3: - Fix commenting style V4: - Remove extra checks on gd for video data in video_reserve

[PATCH v4 4/8] common/board_f: Catch bloblist before starting resevations

2023-11-25 Thread Devarsh Thakkar
reservations start only after regions reserved for previous stages Skip reservation for video memory if it was already filled by a bloblist. Signed-off-by: Devarsh Thakkar Reviewed-by: Simon Glass --- V2: Fix typo in commit title and checkpatch warnings/checks V3: No change V4: Add Reviewed-by --- common

[PATCH v4 3/8] board: ti: am62x: evm: Remove video_setup from spl_board_init

2023-11-25 Thread Devarsh Thakkar
Remove video_setup from evm_init sequence since video memory is getting called at an earlier place to make sure video memory is reserved at the end of RAM. Suggested-by: Simon Glass Signed-off-by: Devarsh Thakkar Reviewed-by: Simon Glass --- V2: No change V3: No change V4: Add Reviewed

[PATCH v4 1/8] spl: Enforce framebuffer reservation from end of RAM

2023-11-25 Thread Devarsh Thakkar
Add an API which enforces framebuffer reservation from end of RAM. This is done so that next stage can directly skip this region before carrying out further reservations. Signed-off-by: Devarsh Thakkar --- V2: No change. V3: Change spl_reserve_video to spl_reserve_video_from_ram_top which

[PATCH v4 0/8] Move framebuffer reservation for SPL to RAM end

2023-11-25 Thread Devarsh Thakkar
essage for video memory reservation from bloblist. - Add Reviewed-By. Test logs: https://gist.github.com/devarsht/6a748b1d69bd2a4b60695a5e7776db73 Devarsh Thakkar (8): spl: Enforce framebuffer reservation from end of RAM arm: mach-k3: common: Reserve video memory from end of the RAM board: ti: am62

[PATCH v4 2/8] arm: mach-k3: common: Reserve video memory from end of the RAM

2023-11-25 Thread Devarsh Thakkar
out having to make any gaps/holes to accommodate those regions which was the case before as previous stage reserved region not from the end of RAM. Use gd->ram_top instead of local ram_top and update gd->reloc_addr after each reservation to ensure further regions are reserved properly. Signed

Re: [PATCH v2 5/6] video: Fill video handoff in video post probe

2023-11-25 Thread Devarsh Thakkar
Hi Simon, Thanks for the review. On 13/11/23 01:31, Simon Glass wrote: > Hi Devarsh, > > On Fri, 10 Nov 2023 at 08:29, Devarsh Thakkar wrote: >> >> Fill video handoff fields in video_post_probe >> as at this point we have full framebuffer-related >> informatio

[PATCH v2 6/6] doc: spl: Add info regarding memory reservation and missing Kconfigs

2023-11-10 Thread Devarsh Thakkar
Add information regarding memory reservation scheme in SPL and details regarding scheme which need to be followed while reserving those areas which need to be preserved across bootstages. Also add missing CONFIG_SPL Kconfigs and new ones which were added recently. Signed-off-by: Devarsh Thakkar

[PATCH v2 5/6] video: Fill video handoff in video post probe

2023-11-10 Thread Devarsh Thakkar
-by: Simon Glass Signed-off-by: Devarsh Thakkar --- V2: - No change V3: - Fix commit message per review comment - Add a note explaining assumption of single framebuffer --- drivers/video/video-uclass.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git

[PATCH v2 4/6] video: Skip framebuffer reservation if already reserved

2023-11-10 Thread Devarsh Thakkar
Skip framebufer reservation if it was already reserved from previous stage and whose information was passed using a bloblist. Signed-off-by: Devarsh Thakkar Reviewed-by: Simon Glass --- V2: - Add debug prints - Fix commenting style V3: - Fix commenting style --- drivers/video/video-uclass.c

[PATCH v2 3/6] common/board_f: Catch bloblist before starting resevations

2023-11-10 Thread Devarsh Thakkar
reservations start only after regions reserved for previous stages Skip reservation for video memory if it was already filled by a bloblist. Signed-off-by: Devarsh Thakkar --- V2: Fix typo in commit title and checkpatch warnings/checks V3: No change --- common/board_f.c | 33

[PATCH v2 2/6] board: ti: am62x: evm: Remove video_setup from spl_board_init

2023-11-10 Thread Devarsh Thakkar
Remove video_setup from evm_init sequence since video memory is getting called at an earlier place to make sure video memory is reserved at the end of RAM. Suggested-by: Simon Glass Signed-off-by: Devarsh Thakkar --- V2: No change V3: No change --- board/ti/am62x/evm.c | 18

[PATCH v2 0/6] Move framebuffer reservation for SPL to RAM end

2023-11-10 Thread Devarsh Thakkar
vation - Update SPL doc with spl splash screen specific info Test logs (at tip of U-Boot 2024.01-rc1 + these patches): https://gist.github.com/devarsht/6a748b1d69bd2a4b60695a5e7776db73 Devarsh Thakkar (6): arm: mach-k3: common: Reserve video memory from end of the RAM board: ti: am62x: evm:

[PATCH v2 1/6] arm: mach-k3: common: Reserve video memory from end of the RAM

2023-11-10 Thread Devarsh Thakkar
regions which was the case before as previous stage reserved region not from the end of RAM. Suggested-by: Simon Glass Signed-off-by: Devarsh Thakkar --- V2: - Make a generic function "spl_reserve_video" under common/spl which can be re-used by other platforms too for reserving video m

Re: [PATCH v2 1/5] arm: mach-k3: common: Reserve video memory from end of the RAM

2023-11-08 Thread Devarsh Thakkar
Hi Simon, Thanks for the review. On 05/11/23 01:13, Simon Glass wrote: > Hi Devarsh, > > On Fri, 3 Nov 2023 at 11:48, Devarsh Thakkar wrote: >> >> Hi Simon, >> >> Thanks for the review. >> >> On 03/11/23 04:16, Simon Glass wrote: >>> Hi

Re: [PATCH v2 4/5] video: Skip framebuffer reservation if already reserved

2023-11-03 Thread Devarsh Thakkar
Hi Simon, Thanks for the review. On 03/11/23 04:16, Simon Glass wrote: On Tue, 31 Oct 2023 at 13:12, Devarsh Thakkar wrote: Skip framebufer reservation if it was already reserved from previous stage and whose information was passed using a bloblist. Signed-off-by: Devarsh Thakkar Reviewed

Re: [PATCH v2 3/5] common/board_f: Catch bloblist before starting resevations

2023-11-03 Thread Devarsh Thakkar
Hi Simon, Thanks for the review. On 03/11/23 04:16, Simon Glass wrote: Hi Devarsh, On Tue, 31 Oct 2023 at 13:12, Devarsh Thakkar wrote: Start reservations needed for init sequence only after catching bloblists from previous stage. This is to avoid catching bloblists in the middle causing

Re: [PATCH v2 1/5] arm: mach-k3: common: Reserve video memory from end of the RAM

2023-11-03 Thread Devarsh Thakkar
Hi Simon, Thanks for the review. On 03/11/23 04:16, Simon Glass wrote: Hi Devarsh, On Tue, 31 Oct 2023 at 13:12, Devarsh Thakkar wrote: Add function spl_reserve_video which is a wrapper around video_reserve to setup video memory and update the relocation address pointer. Setup video

[PATCH v2 5/5] video: Fill video handoff in video post probe

2023-10-31 Thread Devarsh Thakkar
-by: Simon Glass Signed-off-by: Devarsh Thakkar --- V2: No change --- drivers/video/video-uclass.c | 25 +++-- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 335a1a1828..635b70f668 100644 --- a/drivers

[PATCH v2 4/5] video: Skip framebuffer reservation if already reserved

2023-10-31 Thread Devarsh Thakkar
Skip framebufer reservation if it was already reserved from previous stage and whose information was passed using a bloblist. Signed-off-by: Devarsh Thakkar Reviewed-by: Simon Glass --- V2: - Add debug prints - Fix commenting style --- drivers/video/video-uclass.c | 12 1 file

[PATCH v2 3/5] common/board_f: Catch bloblist before starting resevations

2023-10-31 Thread Devarsh Thakkar
reservations start only after regions reserved for previous stages Skip reservation for video memory if it was already filled by a bloblist. Signed-off-by: Devarsh Thakkar --- V2: Fix typo in commit title and checkpatch warnings/checks --- common/board_f.c | 33 ++--- 1 file

[PATCH v2 2/5] board: ti: am62x: evm: Remove video_setup from spl_board_init

2023-10-31 Thread Devarsh Thakkar
Remove video_setup from evm_init sequence since video memory is getting called at an earlier place to make sure video memory is reserved at the end of RAM. Suggested-by: Simon Glass Signed-off-by: Devarsh Thakkar --- V2: No change --- board/ti/am62x/evm.c | 18 -- 1 file

[PATCH v2 1/5] arm: mach-k3: common: Reserve video memory from end of the RAM

2023-10-31 Thread Devarsh Thakkar
regions which was the case before as previous stage reserved region not from the end of RAM. Suggested-by: Simon Glass Signed-off-by: Devarsh Thakkar --- V2: Make a generic function "spl_reserve_video" under common/spl which can be re-used by other platforms too for reserving vi

[PATCH v2 0/5] Move video memory reservation for SPL to the

2023-10-31 Thread Devarsh Thakkar
/43dbcc02c585a0b18f8f99e910bf5ef9 Devarsh Thakkar (5): arm: mach-k3: common: Reserve video memory from end of the RAM board: ti: am62x: evm: Remove video_setup from spl_board_init common/board_f: Catch bloblist before starting resevations video: Skip framebuffer reservation if already reserved video: Fill video

Re: [RFC PATCH 1/5] arm: mach-k3: common: Reserve video memory from end of the RAM

2023-10-23 Thread Devarsh Thakkar
Hi Simon, Thanks for the review. On 19/10/23 19:26, Simon Glass wrote: > Hi Devarsh, > > On Mon, 16 Oct 2023 at 10:06, Devarsh Thakkar wrote: >> >> Move the function to setup video memory before page table >> reservation so that framebuffer memory gets rese

Re: [PATCH v3 5/9] board_f: Fix corruption of relocaddr

2023-10-16 Thread Devarsh Thakkar
Hi Simon, Tom, On 10/10/23 20:27, Simon Glass wrote: > Hi Devarsh, > > On Fri, 22 Sept 2023 at 15:49, Devarsh Thakkar wrote: >> >> Hi Simon, >> >> On 22/09/23 23:57, Simon Glass wrote: >>> Hi Devarsh, >>> >>> On Tue, 12 Se

[RFC PATCH 5/5] video: Fill video handoff in video post probe

2023-10-16 Thread Devarsh Thakkar
-by: Simon Glass Signed-off-by: Devarsh Thakkar --- drivers/video/video-uclass.c | 25 +++-- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index bac30187e7..2a605f8339 100644 --- a/drivers/video/video

[RFC PATCH 4/5] video: Skip framebuffer reservation if already reserved

2023-10-16 Thread Devarsh Thakkar
Skip framebufer reservation if it was already reserved from previous stage and whose information was passed using a bloblist. Signed-off-by: Devarsh Thakkar --- drivers/video/video-uclass.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/video/video-uclass.c b/drivers/video

[RFC PATCH 3/5] common/board_f: Catch bloblist before starting resevatinos

2023-10-16 Thread Devarsh Thakkar
reservations start only after regions reserved for previous stages Skip reservation for video memory if it was already filled by a bloblist. Signed-off-by: Devarsh Thakkar --- common/board_f.c | 36 +--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/common

[RFC PATCH 2/5] board: ti: am62x: evm: Remove video_setup from spl_board_init

2023-10-16 Thread Devarsh Thakkar
Remove video_setup from evm_init sequence since it is now getting called at an earlier place now to make sure video memory is reserved at the end of RAM. Suggested-by: Simon Glass Signed-off-by: Devarsh Thakkar --- board/ti/am62x/evm.c | 18 -- 1 file changed, 18 deletions

[RFC PATCH 1/5] arm: mach-k3: common: Reserve video memory from end of the RAM

2023-10-16 Thread Devarsh Thakkar
Signed-off-by: Devarsh Thakkar --- arch/arm/mach-k3/common.c | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c index cc755dd1bf..3978b9ccca 100644 --- a/arch/arm/mach-k3/common.c +++ b/arch/arm/mach-k3/common.c @@ -27,6

[RFC PATCH 0/5] Move video memory reservation for SPL at the end of RAM

2023-10-16 Thread Devarsh Thakkar
...@mail.gmail.com/ For filling missing video handoff fields : https://lore.kernel.org/all/CAPnjgZ1Hs0rNf0JDirp6YPsOQ5=qqqsp9g9qrwlooasuv8a...@mail.gmail.com/ *** SUBJECT HERE *** Devarsh Thakkar (5): arm: mach-k3: common: Reserve video memory from end of the RAM board: ti: am62x: evm: Remove video_setup

Re: [PATCH v3 5/9] board_f: Fix corruption of relocaddr

2023-09-22 Thread Devarsh Thakkar
Hi Simon, On 22/09/23 23:57, Simon Glass wrote: Hi Devarsh, On Tue, 12 Sept 2023 at 08:35, Devarsh Thakkar wrote: Hi Simon, On 11/09/23 04:44, Simon Glass wrote: Hi Devarsh, On Thu, 17 Aug 2023 at 09:10, Tom Rini wrote: On Wed, Aug 16, 2023 at 09:16:05PM +0530, Devarsh Thakkar wrote

Re: [PATCH v3 5/9] board_f: Fix corruption of relocaddr

2023-09-12 Thread Devarsh Thakkar
Hi Simon, On 11/09/23 04:44, Simon Glass wrote: > Hi Devarsh, > > On Thu, 17 Aug 2023 at 09:10, Tom Rini wrote: >> >> On Wed, Aug 16, 2023 at 09:16:05PM +0530, Devarsh Thakkar wrote: >>> Hi Simon, >>> >>> On 15/08/23 20:14, Simon Glass wrote: >

[PATCH] configs: am65x_evm: Use envboot before distro_bootcmd

2023-09-08 Thread Devarsh Thakkar
correctly. Fixes: bde6ac54905 ("configs: am65x_evm: Switch envboot out for distro_bootcmd") Signed-off-by: Devarsh Thakkar --- Boot logs (with display overlay) : https://gist.github.com/devarsht/2bac56933847d3e954d6ee275d711e27 --- configs/am65x_evm_a53_defconfig | 2 +- 1 file changed, 1

Re: [PATCH] tools: logos: Rename TI logo files

2023-09-05 Thread Devarsh Thakkar
; > Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar Regards Devarsh > --- > board/ti/am62x/am62x.env | 2 +- > tools/logos/{ti.bmp => ti_logo_414x97_32bpp.bmp} | Bin > tools/logos/{ti.gz => ti_logo_414x97_32bpp.bmp.gz} | Bin > 3 fi

Re: [PATCH 09/19] Move fdt_simplefb to boot/

2023-08-31 Thread Devarsh Thakkar
On 25/08/23 01:29, Simon Glass wrote: > This relates to booting, so move it there. Create a new Kconfig menu for > things related to devicetree fixup. > > Signed-off-by: Simon Glass Reviewed-by: Devarsh Thakkar > --- > > boot/Kconfig| 16 +++

Re: [PATCH 08/19] boot: Move fdt_support to boot/

2023-08-31 Thread Devarsh Thakkar
Hi Simon, On 25/08/23 01:28, Simon Glass wrote: > This relates to booting since it fixes up the devicetree for the OS. Move > it into the boot/ directory. > > Signed-off-by: Simon Glass > --- > > boot/Makefile | 3 +++ > {common => boot}/fdt_support.c | 0 > common/Makefile

Re: [PATCH 04/19] video: Move BMP options and code to video directory

2023-08-31 Thread Devarsh Thakkar
On 25/08/23 01:28, Simon Glass wrote: > Put the options and the common BMP code with the other related Kconfig > options in the drivers/video directory. > > Signed-off-by: Simon Glass Reviewed-by: Devarsh Thakkar > --- > > common/Kconfig | 11

Re: [PATCH v3 5/9] board_f: Fix corruption of relocaddr

2023-08-16 Thread Devarsh Thakkar
Hi Simon, On 15/08/23 20:14, Simon Glass wrote: > Hi Devarsh, > > On Tue, 15 Aug 2023 at 03:23, Devarsh Thakkar wrote: >> >> Hi Simon, Tom, >> >> On 15/08/23 04:13, Simon Glass wrote: >>> Hi Devarsh, Nikhil, Tom, >>> >>> On Wed, 9

Re: [PATCH v3 5/9] board_f: Fix corruption of relocaddr

2023-08-15 Thread Devarsh Thakkar
Hi Simon, Tom, On 15/08/23 04:13, Simon Glass wrote: Hi Devarsh, Nikhil, Tom, On Wed, 9 Aug 2023 at 09:29, Bin Meng wrote: On Thu, Aug 3, 2023 at 7:03 PM Bin Meng wrote: On Thu, Aug 3, 2023 at 6:37 PM Bin Meng wrote: On Tue, Aug 1, 2023 at 12:00 AM Simon Glass wrote: When the video

Re: [PATCH] common: board_f: Move relocation address after framebuffer

2023-08-04 Thread Devarsh Thakkar
Hi, On 04/08/23 13:10, Devarsh Thakkar wrote: > Hi Simon, Tom, Bin, > > Thanks for the quick feedback. > > On 04/08/23 04:58, Simon Glass wrote: >> Hi Devarsh, >> >> On Thu, 3 Aug 2023 at 08:28, Devarsh Thakkar wrote: >>> >>> Hi Simon, >

Re: [PATCH] common: board_f: Move relocation address after framebuffer

2023-08-04 Thread Devarsh Thakkar
Hi Simon, Tom, Bin, Thanks for the quick feedback. On 04/08/23 04:58, Simon Glass wrote: > Hi Devarsh, > > On Thu, 3 Aug 2023 at 08:28, Devarsh Thakkar wrote: >> >> Hi Simon, >> >> On 03/08/23 19:32, Simon Glass wrote: >>> +Bin Meng >>>

Re: [PATCH] common: board_f: Move relocation address after framebuffer

2023-08-03 Thread Devarsh Thakkar
Hi Simon, On 03/08/23 19:32, Simon Glass wrote: > +Bin Meng > > Hi Devarsh, > > On Tue, 1 Aug 2023 at 08:04, Devarsh Thakkar wrote: >> >> When passing framebuffer address using bloblist, check >> that passed address is overlapping with current relocation >

Re: [PATCH v3 5/9] board_f: Fix corruption of relocaddr

2023-08-01 Thread Devarsh Thakkar
Hi Tom, Simon, Thanks for sharing all the information. On 01/08/23 02:39, Simon Glass wrote: > Hi Tom, > > On Mon, 31 Jul 2023 at 15:06, Tom Rini wrote: >> >> On Mon, Jul 31, 2023 at 02:49:06PM -0600, Simon Glass wrote: >>> Hi Tom, >>> >>> On Mon, 31 Jul 2023 at 14:45, Tom Rini wrote:

[PATCH] common: board_f: Move relocation address after framebuffer

2023-08-01 Thread Devarsh Thakkar
Signed-off-by: Devarsh Thakkar --- common/board_f.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/board_f.c b/common/board_f.c index 7d2c380e91..20fa17207a 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -419,7 +419,10 @@ static int reserve_

Re: [PATCH 2/2] drivers: video: tidss: tidss_drv: Use kconfig VIDEO_REMOVE to remove video

2023-08-01 Thread Devarsh Thakkar
nario, leave the power domain of DSS as "on" so that > splash screen stays intact until kernel boots up. > > Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar > --- > drivers/video/tidss/tidss_drv.c | 10 -- > 1 file changed, 8 insertions(+), 2 deletions(

Re: [PATCH 1/2] drivers: video: tidss: tidss_drv: Change remove method

2023-08-01 Thread Devarsh Thakkar
Jain Reviewed-by: Devarsh Thakkar > --- > drivers/video/tidss/tidss_drv.c | 12 +--- > 1 file changed, 1 insertion(+), 11 deletions(-) > > diff --git a/drivers/video/tidss/tidss_drv.c b/drivers/video/tidss/tidss_drv.c > index 078e3e82e3..623bf4cf31 100644 > --- a/dri

Re: [PATCH v2 5/9] board_f: Fix corruption of relocaddr

2023-07-31 Thread Devarsh Thakkar
Hi Simon, Thanks for the patch. On 30/07/23 22:46, Simon Glass wrote: > When the video framebuffer comes from the bloblist, we should not change > relocaddr to this address, since it interfers with the normal memory > allocation. > > This fixes a boot loop in qemu-x86_64 > > Signed-off-by:

Re: [PATCH 5/9] board_f: Fix corruption of relocaddr

2023-07-26 Thread Devarsh Thakkar
Hi Simon, On 26/07/23 02:58, Simon Glass wrote: > Hi Devarsh, > > On Tue, 25 Jul 2023 at 03:21, Devarsh Thakkar wrote: >> >> Hi Simon, >> >> On 24/07/23 20:22, Simon Glass wrote: >>> When the video framebuffer comes from the bloblist, we should not c

Re: [PATCH 5/9] board_f: Fix corruption of relocaddr

2023-07-25 Thread Devarsh Thakkar
Hi Simon, On 24/07/23 20:22, Simon Glass wrote: > When the video framebuffer comes from the bloblist, we should not change > relocaddr to this address, since it interfers with the normal memory > allocation. > > This fixes a boot loop in qemu-x86_64 > > Signed-off-by: Simon Glass > Fixes:

Re: [PATCH 2/2] common: splash_source: Fix type casting errors.

2023-06-19 Thread Devarsh Thakkar
Hi Nikhil, On 19/06/23 15:14, Nikhil M Jain wrote: > During compilation splash_source puts out below warning for type > conversion in splash_load_fit for bmp_load_addr and fit_header, Below should be separate sentence. Also remove fullstop from subject line. change > their type to uintptr_t to

Re: [PATCH V3 5/8] common: board_f: Pass frame buffer info from SPL to u-boot

2023-06-14 Thread Devarsh Thakkar
ddress and size in a bloblist to make them > available at u-boot proper, if in u-boot proper CONFIG_VIDEO is defined. > > Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar > --- > V3: > - Clean up errors appeared in checkpatch. > > V2: > - Fix commit me

Re: [PATCH V3 3/8] board: ti: am62x: evm: Update function calls for splash screen

2023-06-14 Thread Devarsh Thakkar
Hi Nikhil, On 14/06/23 15:04, Nikhil M Jain wrote: > Use spl_dcache_enable, in place of setup_dram, arch_reserve_mmu to set > up pagetable, initialise DRAM and enable Dcache. > I think the patch does more than just above, please mention about those changes too in commit message for future

Re: [PATCH V3 2/8] arch: arm: mach-k3: common: Return a pointer after setting page table

2023-06-14 Thread Devarsh Thakkar
On 14/06/23 15:04, Nikhil M Jain wrote: > In spl_dcache_enable after setting up page table, set gd->relocaddr > pointer to tlb_addr, to get next location to reserve memory. Align > tlb_addr with 64KB address. > > Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh T

Re: [PATCH 8/8] configs: am62x_evm_a53: Add bloblist address

2023-05-12 Thread Devarsh Thakkar
Hi Nikhil, Thanks for the patch. On 11/05/23 15:29, Nikhil M Jain wrote: > Define bloblist address. Mention below or above what region. Also put the updated memory map in commit message for future reference. > > Signed-off-by: Nikhil M Jain With suggested changes, Reviewed-by

Re: [PATCH 6/8] drivers: video: Kconfig: Add config remove video

2023-05-12 Thread Devarsh Thakkar
> + bool "Remove video driver after SPL stage" > + help > + if this option is enabled video driver will be removed at the end of > + SPL stage, beforeloading the next stage. > + to call remove method of video driver in u-boot SPL stage With suggested changes, Reviewed-by: Devarsh Thakkar Regards Devarsh > if SPL_SPLASH_SCREEN > > config SPL_SPLASH_SCREEN_ALIGN

Re: [PATCH 7/8] common: spl: spl: Remove video driver

2023-05-12 Thread Devarsh Thakkar
On 11/05/23 15:29, Nikhil M Jain wrote: > Use config SPL_VIDEO_REMOVE to remove video driver at SPL stage before > jumping to next stage, in place of CONFIG_SPL_VIDEO, to allow user to > remove video if required. > > Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar

Re: [PATCH 5/8] common: board_f: Pass frame buffer info from SPL to u-boot

2023-05-12 Thread Devarsh Thakkar
Hi Nikhil, Thanks for the patch. On 11/05/23 15:29, Nikhil M Jain wrote: > When video is set up in SPL, U-Boot proper needs to use the correct > frame buffer address to reserve particular location in memory, to avoid > displaying artifacts on the screen. > U-boot proper can use frame buffer

Re: [PATCH 4/8] include: video: Reserve video using blob

2023-05-12 Thread Devarsh Thakkar
Hi Nikhil, Thanks for the patch. On 11/05/23 15:29, Nikhil M Jain wrote: > Add method to reserve video using blob. reserve memory for video using blob received from previous stage. > Mention what info is updated. > Signed-off-by: Nikhil M Jain > --- > drivers/video/video-uclass.c | 12

Re: [PATCH 3/8] board: ti: am62x: evm: Update function calls for splash screen

2023-05-12 Thread Devarsh Thakkar
Hi Nikhil, Thanks for the patch. On 11/05/23 15:29, Nikhil M Jain wrote: > Use spl_dcache_enable, in place of setup_dram, arch_reserve_mmu to set > up pagetable, initialise DRAM and enable Dcache. > > Signed-off-by: Nikhil M Jain > --- > arch/arm/mach-k3/am625_init.c | 1 + >

Re: [PATCH 2/8] arch: arm: mach-k3: common: Return a pointer after setting page table

2023-05-12 Thread Devarsh Thakkar
Hi Nikhil, Thanks for the patch, On 11/05/23 15:29, Nikhil M Jain wrote: > In spl_dcache_enable after setting up page table, set gd->relocaddr > pointer with 64KB alignment, to get next location to reserve memory. > > Signed-off-by: Nikhil M Jain > --- > arch/arm/mach-k3/common.c | 2 ++ > 1

Re: [PATCH 1/8] common: spl: spl: Update stack pointer address

2023-05-12 Thread Devarsh Thakkar
Hi Nikhil, Vignesh, Tom, Nikhil, Thanks for the patch. On 11/05/23 15:29, Nikhil M Jain wrote: I think more apt subject would be "Update stack pointer after relocation" > At SPL stage when stack is relocated, the stack pointer needs to be > updated, since the stack pointer may point to stack

Re: [PATCH 0/8] Updats SPL splashscreen framework for AM62x

2023-05-12 Thread Devarsh Thakkar
Hi Nikhil, Thanks for the series. On 11/05/23 15:29, Nikhil M Jain wrote: > This patch series aims at updating SPL splashscreen framework for AM62x. > Good to put highlights of what this series tries to cover : e.g. : Switch to blob-list to transfer fb info from SPL to u-boot proper compilation

  1   2   >