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

Commit 6c2df40e authored by Dave Airlie's avatar Dave Airlie
Browse files

vga_switcheroo: print the IGD/DIS flag in the debugfs output.



We really want to see this so we can confirm that we pick the right one.

Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 17db7042
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -174,7 +174,8 @@ static int vga_switcheroo_show(struct seq_file *m, void *v)
	int i;
	mutex_lock(&vgasr_mutex);
	for (i = 0; i < VGA_SWITCHEROO_MAX_CLIENTS; i++) {
		seq_printf(m, "%d:%c:%s:%s\n", i,
		seq_printf(m, "%d:%s:%c:%s:%s\n", i,
			   vgasr_priv.clients[i].id == VGA_SWITCHEROO_DIS ? "DIS" : "IGD",
			   vgasr_priv.clients[i].active ? '+' : ' ',
			   vgasr_priv.clients[i].pwr_state ? "Pwr" : "Off",
			   pci_name(vgasr_priv.clients[i].pdev));