So, I own a Dell Inspiron Laptop (https://goo.gl/8rvEzb) with NVIDIA GeForce 940MX Graphics Card along with the Intel Integrated Graphics Card as well.

I installed Arch Linux on my Machine last month as a dual boot. At the time of installation, I chose to install propriety NVIDIA drivers for the graphics card, however, I didn't implement the Optimus/Bumblebee functionality that allows the system to switch between GPUs for different purposes.

Recently, while working on matplotlib, I noticed that the system froze completely every time I plotted a dataset and tried to zoom/manipulate the plot and refused to budge (although the CAPS lock key switched light when pressed). I figured that it might be a problem with the graphics drivers. It was then when I realized that I should've had the optimus functionality. I tried to follow the instructions given in the Arch Wiki, but of no use. I installed some performance evaluation packages like glxgears, mesa etc. but of no avail.

Finally to re-install the drivers, I removed some packages but mesa did not allow me to remove the package so I used the '''pacman -Rdd mesa''' command and rebooted, but now I get this message on bootup and it doesn't go beyond that.

[18.239110] pcieport 0000:00:1c.4: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00e4(Receiver ID)

[18.243658] pcieport 0000:00:1c.4: device [8086:9d14] error status/mask=0000001/00000000

[18.248264] pcieport 0000:00:1c.4: [ 0] Receiver Error (First)

[18.368901] pcieport 0000:00:1c.4: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00e4(Receiver ID)

[18.373077] pcieport 0000:00:1c.4: device [8086:9d14] error status/mask=0000001/00000000

[18.239110] pcieport 0000:00:1c.4: [ 0] Receiver Error (First)

Can some one please explain what is going on here and how can I solve it?

Reference: https://imgur.com/B26DtiN