[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-20 Thread Daniel Axtens
** Changed in: xorg (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1691991 Title: Xorg Segmentation fault on Hisilicon D05 board (arm64) To manage

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-19 Thread Zhanglei Mao
Yes, you can close this bug now. Thank you very much for your good works and to fix this problems. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1691991 Title: Xorg Segmentation fault on Hisilicon

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-18 Thread Daniel Axtens
Hi Mao, Thanks for that. You are right, this should be split into two kernel issues. I have opened: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1698700 - "pci:" prefix in bus ID https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1698706 - Quirk for vga card and bridge I have

Re: [Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-17 Thread Zhanglei Mao
hi Danneil, Those are translate from Huawei's reply mail: The sever board have only this VGA PCI devices: 19e5 Huawei Technologies Co., Ltd. 1711 Hi1710 [iBMC Intelligent Management system chip w/VGA support] Please check if this math to our D05 testing environment. thanks, Mao On

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-17 Thread Zhanglei Mao
Translate from Huawei's reply mail: The sever board have only this VGA PCI devices: 19e5 Huawei Technologies Co., Ltd. 1711 Hi1710 [iBMC Intelligent Management system chip w/VGA support] Please check if this math to our D05 testing environment. -- You received this bug

Re: [Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-16 Thread Zhanglei Mao
hi Daniel, It is very nice for your to provide a patch for it. For other PCI IDs, I will check with Huawei team and back to you at next week. By the way, what is status of first bug ( The busid reported by libdrm on the arm64 system is "0007:a1:00.0"), has it been accept by upstram? Do you have

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-15 Thread Daniel Axtens
Hi Mao, I have done more work on the HiSilicon board. I have talked with the SEG team and our conclusion is that the hardware is not compliant with the specification, but that it is appropriate to include a workaround in software. I have developed a patch that adds a workaround or 'quirk' to the

Re: [Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-12 Thread Daniel Axtens
Hi Mao, OK, that sounds reasonable. I will follow up on this. Regards, Daniel -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1691991 Title: Xorg Segmentation fault on Hisilicon D05 board (arm64)

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-09 Thread Zhanglei Mao
This is mail thread we haved discussed about ARM to compliance for PCI standard as other platform for x86, powerpc, ia64 etc. They key point form Huawei guys are below: "这部分ARM应该不能遵循,因为VGA

Re: [Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-09 Thread Zhanglei Mao
hi Danniel, This forwarded mail are from Huawei guy which to say "PCI_BRIDGE_CTL_VGA" are only used on X86 but not for AMR64. The English line was my translated for Chines text. thanks, Mao -- Forwarded message -- From: wanghuiqiang Date: 2017-06-09

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-09 Thread Zhanglei Mao
This 4.5.1 seems form "PCI-to-PCI Bridge Architecture Specification", the full document can be download from below link: https://cds.cern.ch/record/551427/files/cer-2308933.pdf -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-09 Thread Zhanglei Mao
hi Danniel, This forwarded mail are from Huawei guy which to say "PCI_BRIDGE_CTL_VGA" are only used on X86 but not for AMR64. The English line was my translated for Chines text. thanks, Mao -- Forwarded message -- From: wanghuiqiang Date: 2017-06-09

Re: [Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-07 Thread Zhanglei Mao
hi Daniel, Agree with you that is something they need to fix. I have sent mail to HiSilicon and their VGA card vendors and they replied some for confirming and understand questions or our requests. I will push them again. thanks, Mao On Thu, Jun 8, 2017 at 8:41 AM, Daniel Axtens

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-07 Thread Daniel Axtens
Hi Mao, I have installed a version of the kernel which ignores the capabilities of the PCI bridge when determining whether a device can be the boot device. With this patched kernel, X starts without needing a config file. This confirms: - that the vga card is not marked as boot device because

Re: [Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-07 Thread Zhanglei Mao
hi Daniel, It is nice. I thought to upstream is the responsibility of HiSilicon/HWE team. But If you can make it upstream, it will be out of all expecting and very nice too. thanks, Mao On Wed, Jun 7, 2017 at 12:40 PM, Daniel Axtens wrote: > Hi Mao, > > I have

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-06 Thread Daniel Axtens
Hi Mao, I have successfully verified that with the patched kernel and the Xorg config, X starts fine. Do you need assistance getting that patch upstream, or is that something HiSilicon/the HWE team can do? Regards, Daniel -- You received this bug notification because you are a member of

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-06 Thread Daniel Axtens
Hi Dann, Ignore that, I didn't realise I needed the -extra package. Regards, Daniel -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1691991 Title: Xorg Segmentation fault on Hisilicon D05 board

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-06 Thread Daniel Axtens
Hi Dann, I have tried to boot the HiSilicon board with a zesty kernel (and with a patched zesty kernel) and it boots, gets to the following, and then hangs without displaying a prompt: [9.900239] async_tx: api initialized (async) [9.991929] Btrfs loaded, crc32c=crc32c-arm64-hw [

Re: [Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-06 Thread Zhanglei Mao
hi Daniel, I am not knowing it but I will check Huawei and vendor of VGA card for it. thanks, Mao On Tue, Jun 6, 2017 at 3:14 PM, Daniel Axtens wrote: > Hi Mao, > > I have looked at the PCI setup a bit more closely: the VGA card is > behind a PCI bridge which does

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-06 Thread Daniel Axtens
Hi Mao, I have looked at the PCI setup a bit more closely: the VGA card is behind a PCI bridge which does not advertise the PCI_BRIDGE_CTL_VGA capability, so it is not being picked up by the kernel as the default/boot card. Is there anything special about the bridge or the hardware in this

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-06 Thread Daniel Axtens
** Changed in: xorg (Ubuntu) Assignee: (unassigned) => Daniel Axtens (daxtens) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1691991 Title: Xorg Segmentation fault on Hisilicon D05 board

Re: [Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-05 Thread Zhanglei Mao
hi Daniel, Fantastic! I is a really good news for me. thanks, Mao On Mon, Jun 5, 2017 at 12:46 PM, Daniel Axtens wrote: > Hi, > > I can get xorg working if I do these 2 things: > > 1) Edit memory with gdb to add "pci:" to bus id. This is what the kernel > patch

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-04 Thread Daniel Axtens
Hi, I can get xorg working if I do these 2 things: 1) Edit memory with gdb to add "pci:" to bus id. This is what the kernel patch should do. I will test the patch soon, I am just waiting for the kernel to build. 2) Install this /etc/X11/xorg.conf: Section "ServerFlags" Option

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-02 Thread Zhanglei Mao
Dannie, For new kernel building, please note that is not a our general/stand zesty, I though Dann use a another kernel source tree or use may patches specified for D05 board. I am not familiar with it and please contact with Dann too. thanks, Mao -- You received this bug notification because

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-02 Thread Daniel Axtens
Hi, On further investigation it turns out that one large difference between my x86 system and the arm64 system is they way the vga arbiter is operating in the kernel. This means that the vga card isn't labelled as the "boot vga" card, which affects how it's picked up by X. On the HiSilicon

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-02 Thread Daniel Axtens
Dann: thanks, will do that. Regards, Daniel -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1691991 Title: Xorg Segmentation fault on Hisilicon D05 board (arm64) To manage notifications about this

Re: [Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-01 Thread dann frazier
On Thu, Jun 1, 2017 at 7:27 AM, Zhanglei Mao wrote: > Daniel, > > It is really good. For patch driver and new kernel buiding, I cc Dann on the > mail too, he is our engineer for this enablement project with Hisilicon. > This is pearl kernel was build by him too. > >

Re: [Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-01 Thread Zhanglei Mao
Daniel, It is really good. For patch driver and new kernel buiding, I cc Dann on the mail too, he is our engineer for this enablement project with Hisilicon. This is pearl kernel was build by him too. Dann, Can you patch and build out a new kernel for us or help Daniel to build a new testing

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-06-01 Thread Daniel Axtens
Ok, so I think part of the problem is that the kernel hibmc driver needs to use a set_busid function from the drm core. I've simulated this change in the debugger, and it seems to at least prevent the crash. (It doesn't seem to be enough for the server to work, still working on that.) Here's a

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-05-31 Thread Daniel Axtens
OK, I have made some progress on this: The busid reported by libdrm on the arm64 system is "0007:a1:00.0" The busid reported by libdrm on a amd64 system is "pci::00:02.0" The "pci:" prefix is missing on arm64. I think this leads to the segfault on arm64 as X tests for the prefix. This

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-05-31 Thread Daniel Axtens
Hi Mao, Yes, remote access would be the fastest way to debug this. You can contact me by email - daniel.axt...@canonical.com. Regards, Daniel -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1691991

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-05-31 Thread Ubuntu Foundations Team Bug Bot
The attachment "patch to enable extra debugging" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team. [This is an automated message performed by a Launchpad user owned

Re: [Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-05-31 Thread Zhanglei Mao
hi Daniel, If tt is more easy and save time for you. I can share my ssh remote access to you for D05 testing environment, so you can directly patching and testing over it. thanks, Mao On Wed, May 31, 2017 at 3:32 PM, Zhanglei Mao wrote: > hi Daniel, > > Thank you

Re: [Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-05-31 Thread Zhanglei Mao
hi Daniel, Thank you very much for you mail and I am very glad you are debugging this reported bug. Can you please provide me a bit more guide or guide link which I can apply this patch and compile out the newly testing Xorg? Sorry I am not so familiar with our building/compile tools.

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-05-31 Thread Daniel Axtens
Hi, This is what I have figured out so far. For some reason the initial probing done by the modesetting driver fails. This is part of the platform device probing stage. This failure means the device is not claimed by the modesetting driver as a 'regular' screen. Instead it is claimed by the

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-05-30 Thread Zhanglei Mao
For the mainline kernel (general kernel from Ubuntu 16.04.02 AM64) was not tested in case we are not supported for Hisilicon D05 board. We also do some basic fbdev and modesetting testing on this kerenl by pass Xserver, it seems works well and so we tend to think this is caused by Xorg or driver

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-05-30 Thread Zhanglei Mao
The below is testing after remove of "xserver-xorg-video-fbdev package" ubuntu@ubuntu:/usr/lib/xorg/modules/drivers$ sudo /usr/lib/xorg/Xorg X.Org X Server 1.18.4 Release Date: 2016-07-19 X Protocol Version 11, Revision 0 Build Operating System: Linux 4.4.0-45-generic aarch64 Ubuntu Current

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-05-30 Thread Daniel Axtens
Hi, What happens if you remove the fb driver - uninstall the xserver-xorg- video-fbdev package? Also, I'm not sure what (if any) changes have been made in the kernel version you're running - the 'pearl' version - but are you able to try against a mainline kernel? Regards, Daniel -- You

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-05-24 Thread Zhanglei Mao
This final goal is "Ubuntu 16.04 support x-Window by modesetting (modesetting_drv.so) driver" Notes: From xserver source code,it only use modeset. For the display card hardware it is a display controller without GPU,the call paths is

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-05-24 Thread Zhanglei Mao
Pual Liu analyse for this bug, he provide a temporarily fix but it seems not works (no output in monitor) --- Hi all, I look deep into the problem and I'm not sure if it is the kernel issue or Xorg issue. We might need to spend more time on this issue to

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-05-23 Thread Zhanglei Mao
** Attachment added: "sosreport at 24 May 2017" https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1691991/+attachment/4882242/+files/sosreport-ubuntu.d05-20170524102121.tar.xz -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-05-22 Thread Zhanglei Mao
backtrace by apport-retrace crash buntu:/var/crash# apport-retrace --stdout /var/crash/_usr_lib_xorg_Xorg.0.c gpgv: Signature made Tue 01 Nov 2016 04:15:19 PM CST using RSA key ID A88984DC gpgv: Can't check signature: public key not found dpkg-source: warning: failed to verify signature on

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-05-19 Thread Zhanglei Mao
** Attachment added: "Xorg.0.log" https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1691991/+attachment/4879487/+files/Xorg.0.log -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1691991 Title:

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-05-19 Thread Zhanglei Mao
** Attachment added: "core dump of xorg" https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1691991/+attachment/4879486/+files/_usr_lib_xorg_Xorg.0.crash -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1691991] Re: Xorg Segmentation fault on Hisilicon D05 board (arm64)

2017-05-19 Thread Zhanglei Mao
** Attachment added: "ubuntu-bug xorg report file" https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1691991/+attachment/4879485/+files/ubuntu-bug_xorg_d05_0519.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.