Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6c807da authored by Amir Levy's avatar Amir Levy
Browse files

msm: ipa3: fix ipa3_rt_read_tbl_from_hw reading from wrong memory



ipa3_rt_read_tbl_from_hw always reads routing tables from the local
memory regardless of their location (system or local memory).
This change checks the location of the routing rules tables according
to bit 0 of the routing rules header and selects the proper address of
the table.

Change-Id: I494a2b927abbb3b69e1406e4f9846f686c75e0ad
Signed-off-by: default avatarAmir Levy <alevy@codeaurora.org>
parent f26b638e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1888,7 +1888,7 @@ int ipa3_rt_read_tbl_from_hw(u32 tbl_idx,
		IPA_SRAM_DIRECT_ACCESS_N_OFST_v3_0(0) + tbl_entry_in_hdr_ofst;

	/* for tables which reside in DDR access it from the virtual memory */
	if (*tbl_entry_in_hdr & 0x0) {
	if (!(*tbl_entry_in_hdr & 0x1)) {
		/* system */
		struct ipa3_rt_tbl_set *set;
		struct ipa3_rt_tbl *tbl;