LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-11-2018, 11:16 AM   #1
tini981
LQ Newbie
 
Registered: Sep 2014
Posts: 7

Rep: Reputation: Disabled
NVME Passthrough


Hi All

I am trying NVME pass through in VM and able to do it with host OS 4.6
and guest OS SL 2.6.696. i am using below pci pass through rule added in my vm.xml and starting the VM with virsh start command

<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000' bus='0xd8' slot='0x00' function='0x0'/>
</source>
</hostdev>

it is not working in 4.5 host OS and i am getting below panic as soon as starting VM with virsh start command in 4.5 with the pci rule in xml

please suggest if some specific patch went into 4.6.0 kernel from 4.5.7 for the same

br0: port 1(vnet0) entered listening state
virbr0: port 1(vnet0) entered listening state
vfio_ecap_init: 0000:d8:00.0 hiding ecap 0x19@0x2a0
mce: [Hardware Error]: CPU 11: Machine Check Exception: 5 Bank 6: f380000000000e0b
mce: [Hardware Error]: RIP !INEXACT! 10:<ffffffff8104c95f> {acpi_processor_ffh_cstate_enter+0x8f/0xc0}
mce: [Hardware Error]: TSC 38f053f78f6
mce: [Hardware Error]: PROCESSOR 0:50654 TIME 1515579774 SOCKET 1 APIC 22 microcode 200001e
mce: [Hardware Error]: Run the above through 'mcelog --ascii'
mce: [Hardware Error]: CPU 14: Machine Check Exception: 5 Bank 6: f380000000000e0b
mce: [Hardware Error]: RIP !INEXACT! 10:<ffffffff8104c95f> {acpi_processor_ffh_cstate_enter+0x8f/0xc0}
mce: [Hardware Error]: TSC 38f053f74a0
mce: [Hardware Error]: PROCESSOR 0:50654 TIME 1515579774 SOCKET 1 APIC 28 microcode 200001e
mce: [Hardware Error]: Run the above through 'mcelog --ascii'
mce: [Hardware Error]: CPU 13: Machine Check Exception: 5 Bank 6: f380000000000e0b
mce: [Hardware Error]: RIP !INEXACT! 10:<ffffffff815bb09f> {pci_conf1_write+0xdf/0xf0}
mce: [Hardware Error]: TSC 38f053f7e60
mce: [Hardware Error]: PROCESSOR 0:50654 TIME 1515579774 SOCKET 1 APIC 26 microcode 200001e
mce: [Hardware Error]: Run the above through 'mcelog --ascii'
mce: [Hardware Error]: CPU 16: Machine Check Exception: 5 Bank 6: f380000000000e0b
mce: [Hardware Error]: RIP !INEXACT! 10:<ffffffff8104c95f> {acpi_processor_ffh_cstate_enter+0x8f/0xc0}
mce: [Hardware Error]: TSC 38f053f7bc4
mce: [Hardware Error]: PROCESSOR 0:50654 TIME 1515579774 SOCKET 1 APIC 32 microcode 200001e
mce: [Hardware Error]: Run the above through 'mcelog --ascii'
mce: [Hardware Error]: CPU 19: Machine Check Exception: 5 Bank 6: f380000000000e0b
mce: [Hardware Error]: RIP !INEXACT! 10:<ffffffff8104c95f> {acpi_processor_ffh_cstate_enter+0x8f/0xc0}
mce: [Hardware Error]: TSC 38f053f880c
mce: [Hardware Error]: PROCESSOR 0:50654 TIME 1515579774 SOCKET 1 APIC 38 microcode 200001e
mce: [Hardware Error]: Run the above through 'mcelog --ascii'
mce: [Hardware Error]: CPU 12: Machine Check Exception: 5 Bank 6: f380000000000e0b
mce: [Hardware Error]: RIP !INEXACT! 10:<ffffffff8104c95f> {acpi_processor_ffh_cstate_enter+0x8f/0xc0}
mce: [Hardware Error]: TSC 38f053f7d3a
mce: [Hardware Error]: PROCESSOR 0:50654 TIME 1515579774 SOCKET 1 APIC 24 microcode 200001e
mce: [Hardware Error]: Run the above through 'mcelog --ascii'
 
Old 01-11-2018, 02:15 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
This looks like a machine problem to me. Do you have a kernel version that works fine? I'd run a memtest on the system to make sure it's not a broken memory chip.
 
Old 01-11-2018, 11:42 PM   #3
tini981
LQ Newbie
 
Registered: Sep 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Mara

Thanks for your reply . if i remove below rule machine boot fine with same kernel 4.5 .
for my understanding this is something to related to PCI pass through of NVME devcie which is not working up to 4.5.7 kernel
but 4.6.0 its working ..

<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000' bus='0xd8' slot='0x00' function='0x0'/>
</source>
</hostdev>
 
Old 01-13-2018, 09:56 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Does 4.6 work for you? 4.5 isn't an LTS release so if this bug has been fixed after 4.5.7, it wasn't backported.
 
Old 01-13-2018, 10:11 AM   #5
tini981
LQ Newbie
 
Registered: Sep 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
yes Mara 4.6 is working fine for me .. i am just wondering which patch went into 4.6 regarding NVME passthrough in 4.6 so that i can try backporting into 4.5 .
 
Old 01-14-2018, 05:11 AM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
May be this one (but not 100% sure about this):
https://git.kernel.org/pub/scm/linux...47e3359a51a8b5
 
Old 01-15-2018, 12:35 AM   #7
tini981
LQ Newbie
 
Registered: Sep 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Mara

Thanks for your reply . is there any method where i can get the all the patch for 4.6.0 kernel and one by one i can apply on 4.5.7 kernel and test .

Regards
Nitin
 
Old 01-15-2018, 01:43 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Hmm... You could do it using git format-patch between the two revisions. However, there will be many and application isn't obvious because of the merges.

For the patch in question you can download the single one from the web interface here https://git.kernel.org/pub/scm/linux...47e3359a51a8b5

Then you just to git am to apply it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] About slackware and NVME SSD. sungjin Slackware 59 12-12-2020 04:16 PM
[SOLVED] NVMe Zyxor Linux - Kernel 3 11-16-2015 01:05 PM
NVMe driver ravish165 Linux - Software 1 04-16-2015 04:48 AM
NVMe support on host ravish165 Linux - Hardware 1 04-10-2015 08:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration