Skip to contentSkip to conversation

PCIE resetting graphic card

DISCUSSION Dave Young 2 participants 3 messages Jul 12, 2013

lore
Share & tools
lore

Dave Young

author
#0 lore raw

Hi, Takao

I know you are working on the PCIE resetting patches for the iommu kdump issue.

You explicitly excluded the graphic card in your patch. I have some questions about this. Why can't we reset the graphic card like other pcie devices?

We have problems, if 1st kernel is in kms mode kdump kernel will have no chance to switch back to VGA console. There's no serial port on most of recent laptops thus it's difficult to debug kdump issue.

So if we can reset graphic card as well, and if it works I wonder if the 2nd kdump kernel can use vga console with nomodeset?

Signature · 2 lines
Thanks
Dave
#1 lore raw

Hi Dave,

Quoted 8 lines · Dave Young

Hi, Takao

I know you are working on the PCIE resetting patches for the iommu kdump issue.

You explicitly excluded the graphic card in your patch. I have some questions about this. Why can't we reset the graphic card like other pcie devices?

As far as I tested, the monitor blacks out after video controller is reset, and we cannot know what's going on. So, for now display device is not reset in my patch.

I'm not sure what we need to do to recover graphic card after its reset, but my colleague said that we need to run BIOS code to get back legacy VGA mode after reset. It seems not to be easy:-(

Maybe this document is helpful to do this.
http://www.coreboot.org/images/2/2b/Vgabios.pdf

Thanks,
Takao Indoh

Quoted 7 lines

We have problems, if 1st kernel is in kms mode kdump kernel will have no chance to switch back to VGA console. There's no serial port on most of recent laptops thus it's difficult to debug kdump issue.

So if we can reset graphic card as well, and if it works I wonder if the 2nd kdump kernel can use vga console with nomodeset?

author
#2 lore raw

Hi, Takao

Quoted 16 lines · Takao Indoh

Hi Dave,

Quoted 8 lines · Dave Young

Hi, Takao

I know you are working on the PCIE resetting patches for the iommu kdump issue.

You explicitly excluded the graphic card in your patch. I have some questions about this. Why can't we reset the graphic card like other pcie devices?

As far as I tested, the monitor blacks out after video controller is reset, and we cannot know what's going on. So, for now display device is not reset in my patch.

Quoted 6 lines

I'm not sure what we need to do to recover graphic card after its reset, but my colleague said that we need to run BIOS code to get back legacy VGA mode after reset. It seems not to be easy:-(

Maybe this document is helpful to do this.
http://www.coreboot.org/images/2/2b/Vgabios.pdf

Thanks for quick response and the info about vgabios. It's awkward that we can not switch back to VGA mode.

Signature · 2 lines
Thanks
Dave