Skip to contentSkip to conversation

rpi: pass the Video Core logs DT parameter through

PATCH In review Peter Robinson 3 participants 3 messages Feb 9 – Feb 13 Broadcom BCM2711/BCM2835 Arm architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpi: pass the Video Core logs DT parameter through

Pass the VC logs DT parameter through to the kernel device tree. This is used by the vclog tool and is a useful debugging tool.

---
 board/raspberrypi/rpi/rpi.c | 3 +++
 1 file changed, 3 insertions(+)
board/raspberrypi/rpi/rpi.c +3 -0
index f9b643555dd..7256d66a9a6 100644
@@ -608,6 +608,9 @@ void  update_fdt_from_fw(void *fdt, void *fw_fdt)
 	/* warnings from the firmware (if any) */
 	copy_property(fdt, fw_fdt, "/chosen", "user-warnings");
 
+	/* firmware logs - used by the vclog utility */
+	copy_property(fdt, fw_fdt, "/chosen", "log");
+
 	/* address of the PHY device as provided by the firmware  */
 	copy_property(fdt, fw_fdt, "ethernet0/mdio@e14/ethernet-phy@1", "reg");
 
Signature · 1 line
2.53.0
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Peter Robinson

Pass the VC logs DT parameter through to the kernel device tree. This is used by the vclog tool and is a useful debugging tool.

Quoted 18 lines
---
  board/raspberrypi/rpi/rpi.c | 3 +++
  1 file changed, 3 insertions(+)
board/raspberrypi/rpi/rpi.c +3 -0
index f9b643555dd..7256d66a9a6 100644
@@ -608,6 +608,9 @@ void  update_fdt_from_fw(void *fdt, void *fw_fdt)
  	/* warnings from the firmware (if any) */
  	copy_property(fdt, fw_fdt, "/chosen", "user-warnings");
 
+	/* firmware logs - used by the vclog utility */
+	copy_property(fdt, fw_fdt, "/chosen", "log");
+
  	/* address of the PHY device as provided by the firmware  */
  	copy_property(fdt, fw_fdt, "ethernet0/mdio@e14/ethernet-phy@1", "reg");
 
#2 lore raw

Hi Peter,

Quoted 24 lines · Matthias Brugger
Quoted 5 lines · Peter Robinson

Pass the VC logs DT parameter through to the kernel device tree. This is used by the vclog tool and is a useful debugging tool.

Quoted 12 lines
---
  board/raspberrypi/rpi/rpi.c | 3 +++
  1 file changed, 3 insertions(+)
board/raspberrypi/rpi/rpi.c +0 -0
index f9b643555dd..7256d66a9a6 100644
@@ -608,6 +608,9 @@ void  update_fdt_from_fw(void *fdt, void *fw_fdt)
      /* warnings from the firmware (if any) */
      copy_property(fdt, fw_fdt, "/chosen", "user-warnings");
 
Quoted 7 lines

board/raspberrypi/rpi/rpi.c void update_fdt_from_fw(void *fdt, void *fw_fdt) · line 616

Quoted 6 lines
board/raspberrypi/rpi/rpi.c +3 -0
+     /* firmware logs - used by the vclog utility */
+     copy_property(fdt, fw_fdt, "/chosen", "log");
+
      /* address of the PHY device as provided by the firmware  */
      copy_property(fdt, fw_fdt, "ethernet0/mdio@e14/ethernet-phy@1", "reg");
 

Is this property in the schema? It looks like something ad-hoc.

Regards,
Simon