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

Commit 1bfe1dd1 authored by Runmin Wang's avatar Runmin Wang Committed by Prasad Sodagudi
Browse files

drivers: GICv3: remove the rtb logs of gic write and read



gic_write/read use write/read_relaxed function which will create
lots of RTB logging. Change the API to no_log version to remove
those RTB logs.

Change-Id: Ide59d8c2753364840f8a2b304ef0c169870c8509
Signed-off-by: default avatarRunmin Wang <runminw@codeaurora.org>
Signed-off-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
parent 8ce0be61
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -114,8 +114,8 @@ static inline void gic_write_bpr1(u32 val)
	write_sysreg_s(val, SYS_ICC_BPR1_EL1);
	write_sysreg_s(val, SYS_ICC_BPR1_EL1);
}
}


#define gic_read_typer(c)		readq_relaxed(c)
#define gic_read_typer(c)		readq_relaxed_no_log(c)
#define gic_write_irouter(v, c)		writeq_relaxed(v, c)
#define gic_write_irouter(v, c)		writeq_relaxed_no_log(v, c)


#define gic_flush_dcache_to_poc(a,l)	__flush_dcache_area((a), (l))
#define gic_flush_dcache_to_poc(a,l)	__flush_dcache_area((a), (l))


+3 −2
Original line number Original line Diff line number Diff line
@@ -97,7 +97,7 @@ static void gic_do_wait_for_rwp(void __iomem *base)
{
{
	u32 count = 1000000;	/* 1s! */
	u32 count = 1000000;	/* 1s! */


	while (readl_relaxed(base + GICD_CTLR) & GICD_CTLR_RWP) {
	while (readl_relaxed_no_log(base + GICD_CTLR) & GICD_CTLR_RWP) {
		count--;
		count--;
		if (!count) {
		if (!count) {
			pr_err_ratelimited("RWP timeout, gone fishing\n");
			pr_err_ratelimited("RWP timeout, gone fishing\n");
@@ -178,7 +178,8 @@ static int gic_peek_irq(struct irq_data *d, u32 offset)
	else
	else
		base = gic_data.dist_base;
		base = gic_data.dist_base;


	return !!(readl_relaxed(base + offset + (gic_irq(d) / 32) * 4) & mask);
	return !!(readl_relaxed_no_log
		(base + offset + (gic_irq(d) / 32) * 4) & mask);
}
}


static void gic_poke_irq(struct irq_data *d, u32 offset)
static void gic_poke_irq(struct irq_data *d, u32 offset)