Debug Prints#

You can enable debug prints (observed in dmesg) in the driver in the following two ways:

  1. By assigning module param while installing the driver.

  2. Through debugfs after installing the driver.

Both are explained below.

  1. Assigning module param:

    # insmod rsi_91x.ko rsi_zone_enabled=0x601 

    In this case, rsi_zone_enabled is a bitmap value which is explained below.

  2. Through debugfs:

    # echo <value> > /sys/kernel/debug/phy<X>/debug_zone

rsi_zone_enabled and \<value\> are bitmap values as explained below.

BIT

ZONE

BIT(0)

ERROR ZONE

BIT(1)

INFO ZONE

BIT(2)

INIT ZONE

BIT(3)

MGMT TX ZONE

BIT(4)

MGMT RX ZONE

BIT(5)

DATA TX ZONE

BIT(6)

DATA RX ZONE

BIT(7)

FSM ZONE

BIT(8)

ISR ZONE

BIT(9)

INT MGMT ZONE

BIT(10)

MGMT DEBUG ZONE

For example, to enable both INFO ZONE and ERROR ZONE, set BIT(1) and BIT(0) to arrive at a bitmap value of 0x03.