From: "Andreas Kinzler" Subject: Re: Regression PCI passthrough from 4.5.5 to 4.6.0-rc1 Date: Mon, 14 Aug 2017 13:31:06 +0200 Message-ID: References: <20170709192616.GD24459@reaktio.net> <8c135dd7-c62d-780b-9283-d1c256e2bbc1@posteo.de> <5968CB37020000780016AAFA@prv-mh.provo.novell.com> <597F029D0200007800103028@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=----------qzS3mZiqFG07HP0AgjsZwv Return-path: In-Reply-To: <597F029D0200007800103028@prv-mh.provo.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: jbeulich@suse.com Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org ------------qzS3mZiqFG07HP0AgjsZwv Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Mon, 31 Jul 2017 12:12:45 +0200, Jan Beulich wrote: >>>> "Andreas Kinzler" 07/17/17 6:32 PM >>> >>>> Jan, I still have access to the hardware so perhaps we can finally >>>> solve >>>> this problem. >>> Feel free to go ahead; I'll be on vacation for the next three weeks. >> Perhaps we can shortcut debugging a bit because I looked through the >> patches of XenServer 7.2 and found the attached patch. Now I tried it >> and >> it seems to solve all the problems. Does that patch look good to you, >> too? > Iirc the patch had even been submitted once, and rejected as being not > generally correct (i.e. it cures a symptom rather than the cause). What > we'd need to know is the order of actions the guest takes which ought to > result in the vector getting unmasked, but doesn't in reality. I defined XEN_PT_LOGGING_ENABLED in xen_pt.h as requested without the "hack" patch. Log is attached. Does it help? Regards Andreas ------------qzS3mZiqFG07HP0AgjsZwv Content-Disposition: attachment; filename=xenpt.txt Content-Type: text/plain; name="xenpt.txt" Content-Transfer-Encoding: 7bit [00:05.0] xen_pt_realize: Assigning real physical device 02:00.0 to devfn 0x28 [00:05.0] xen_pt_register_regions: IO region 0 registered (size=0x00000100 base_addr=0x0000e000 type: 0x1) [00:05.0] xen_pt_register_regions: IO region 1 registered (size=0x00004000 base_addr=0xdf2c0000 type: 0x4) [00:05.0] xen_pt_register_regions: IO region 3 registered (size=0x00040000 base_addr=0xdf280000 type: 0x4) [00:05.0] xen_pt_register_regions: Expansion ROM registered (size=0x00080000 base_addr=0xdf200000) [00:05.0] xen_pt_config_reg_init: Offset 0x000e mismatch! Emulated=0x0080, host=0x0000, syncing to 0x0080. [00:05.0] xen_pt_config_reg_init: Offset 0x0010 mismatch! Emulated=0x0000, host=0xe001, syncing to 0xe001. [00:05.0] xen_pt_config_reg_init: Offset 0x0014 mismatch! Emulated=0x0000, host=0xdf2c0004, syncing to 0xdf2c0004. [00:05.0] xen_pt_config_reg_init: Offset 0x001c mismatch! Emulated=0x0000, host=0xdf280004, syncing to 0xdf280004. [00:05.0] xen_pt_config_reg_init: Offset 0x0052 mismatch! Emulated=0x0000, host=0x0603, syncing to 0x0603. [00:05.0] xen_pt_config_reg_init: Offset 0x00aa mismatch! Emulated=0x0000, host=0x0080, syncing to 0x0080. [00:05.0] xen_pt_config_reg_init: Offset 0x006c mismatch! Emulated=0x0000, host=0x10008025, syncing to 0x8025. [00:05.0] xen_pt_config_reg_init: Offset 0x007a mismatch! Emulated=0x0000, host=0x1042, syncing to 0x1042. [00:05.0] xen_pt_msix_init: get MSI-X table BAR base 0xdf2c0000 [00:05.0] xen_pt_msix_init: table_off = 0x2000, total_entries = 15 [00:05.0] xen_pt_msix_init: mapping physical MSI-X table to 0x7fc1bb3e9000 [00:05.0] xen_pt_config_reg_init: Offset 0x00c2 mismatch! Emulated=0x0000, host=0x000e, syncing to 0x000e. [00:05.0] xen_pt_pci_intx: intx=1 [00:05.0] xen_pt_realize: Real physical device 02:00.0 registered successfully [00:05.0] msi_msix_update: Updating MSI-X with pirq 55 gvec 0x71 gflags 0x1301 (entry: 0) [00:05.0] msi_msix_update: Updating MSI-X with pirq 54 gvec 0xa1 gflags 0x1302 (entry: 0x1) [00:05.0] msi_msix_update: Updating MSI-X with pirq 53 gvec 0xa1 gflags 0x1304 (entry: 0x2) [00:05.0] msi_msix_update: Updating MSI-X with pirq 52 gvec 0xa1 gflags 0x1308 (entry: 0x3) [00:05.0] msi_msix_update: Updating MSI-X with pirq 51 gvec 0x61 gflags 0x1301 (entry: 0x4) [00:05.0] msi_msix_update: Updating MSI-X with pirq 50 gvec 0x71 gflags 0x1302 (entry: 0x5) [00:05.0] msi_msix_update: Updating MSI-X with pirq 49 gvec 0x71 gflags 0x1304 (entry: 0x6) [00:05.0] msi_msix_update: Updating MSI-X with pirq 48 gvec 0x71 gflags 0x1308 (entry: 0x7) [00:05.0] msi_msix_update: Updating MSI-X with pirq 47 gvec 0xb2 gflags 0x1301 (entry: 0x8) [00:05.0] msi_msix_update: Updating MSI-X with pirq 46 gvec 0x61 gflags 0x1302 (entry: 0x9) [00:05.0] msi_msix_update: Updating MSI-X with pirq 45 gvec 0x61 gflags 0x1304 (entry: 0xa) [00:05.0] msi_msix_update: Updating MSI-X with pirq 44 gvec 0x61 gflags 0x1308 (entry: 0xb) [00:05.0] msi_msix_update: Updating MSI-X with pirq 43 gvec 0xa2 gflags 0x1301 (entry: 0xc) [00:05.0] msi_msix_update: Updating MSI-X with pirq 42 gvec 0xb2 gflags 0x1302 (entry: 0xd) [00:05.0] msi_msix_update: Updating MSI-X with pirq 41 gvec 0xb2 gflags 0x1304 (entry: 0xe) [00:05.0] xen_pt_msixctrl_reg_write: enable MSI-X ------------qzS3mZiqFG07HP0AgjsZwv Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== ------------qzS3mZiqFG07HP0AgjsZwv--