Unable to change port type of Mellanox CA due to kernel lockdown

Solution Verified - Updated -

Issue

o Unable to change Mellanox Infiniband CA port type to Ethernet using mstconfig.
o semaphore write error while querying PCI device.

# mstconfig -d 37:00.1 q
write counter to semaphore: Operation not permitted
-E- Failed to open the device

o Below messages logged in /var/log/messages.

Jan 12 01:58:00 localhost kernel: Lockdown: x86_energy_perf: Direct MSR access is restricted; see man kernel_lockdown.7
Jan 12 02:04:26 localhost kernel: Lockdown: mstconfig: Direct PCI access is restricted; see man kernel_lockdown.7
Jan 12 02:33:58 localhost kernel: Kernel is locked down from EFI secure boot; see man kernel_lockdown.7

Environment

  • Red Hat Enterprise Linux
  • HPE ProLiant DL380 Gen10
    • Mellanox Host Channel Adapter

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content