Nougat 7.1.2+ Mauro's kernel 4.13rc5+GTX1060 boot fail

537 views
Skip to first unread message

bunny.s...@googlemail.com

unread,
Aug 21, 2017, 11:32:30 PM8/21/17
to Android-x86
My HW:
CPU: Intel(R) Xeon(R) CPU E3-1230 v5 @ 3.40GHz
Motherboard: MSI MS-7A43/E3 KRAIT GAMING V5 (MS-7A43), BIOS 1.10 07/24/2016
Mem: Kingstone DDR4 2400 8GB x2
GPU: Nvidia GeForce GTX 1060 3GB

I compile iso from android x86 source code(branch nougat), replace kernel to mauro's kernel 4.13rc5.
I used newest nvidia firmware in linux-firmware repo.
Every times boot is stay on command line, can't boot success.
dmesg info attached.

I can boot success with GTX960, use same hardware.

Need help, thanks.

dada
nouveau.txt
dmesg.txt
nouveau-debug.txt
dmesg-debug.txt

Chih-Wei Huang

unread,
Aug 22, 2017, 12:02:12 AM8/22/17
to Android-x86
2017-08-22 11:32 GMT+08:00 bunny.stranger via Android-x86
<andro...@googlegroups.com>:
> My HW:
> CPU: Intel(R) Xeon(R) CPU E3-1230 v5 @ 3.40GHz
> Motherboard: MSI MS-7A43/E3 KRAIT GAMING V5 (MS-7A43), BIOS 1.10 07/24/2016
> Mem: Kingstone DDR4 2400 8GB x2
> GPU: Nvidia GeForce GTX 1060 3GB

GTX 1060 is not supported.
Fortunately I just borrowed one notebook with it.
I'm working on a fix.

> I compile iso from android x86 source code(branch nougat), replace kernel to
> mauro's kernel 4.13rc5.
> I used newest nvidia firmware in linux-firmware repo.
> Every times boot is stay on command line, can't boot success.
> dmesg info attached.
>
> I can boot success with GTX960, use same hardware.



--
Chih-Wei
Android-x86 project
http://www.android-x86.org

dada

unread,
Aug 22, 2017, 5:29:35 AM8/22/17
to Android-x86

I am very excited to see your reply, thank you! This project is great, very much looking forward to the moment of release.
在 2017年8月22日星期二 UTC+8下午12:02:12,Chih-Wei Huang写道:

Mauro Rossi

unread,
Aug 22, 2017, 6:08:53 PM8/22/17
to Android-x86
I was also looking at the changes needed

Let's see if I accounted for all of them:

1. add support in external/drm_gralloc for NV_PASCAL 0x130 family, proposed patch in the attachment

2. add the necessary firmwares in device/generic/firmware

Looking a the history of merged nvidia firmwares, which inclused up to gp100,
we would need to merge:

"WHENCE: Remove references to two nvidia firmware files that were never added"

[optionally, since GM20B was added already, but better kep it]
"nvidia: add GM20B PMU firmware"

"nvidia: add GP102/GP104/GP106/GP107 signed firmware"

"nvidia: add GP10B signed firmware"

"nvidia: fix GP107 signed firmware"



These should be in sequence so:

git cherry-pick 8b9287b756bfd13e9fdfc4610880891447952a47^..7c7785c3fca909d876e506e337eaa771a8f4dcbc


If we are lucky that should be all, the nvc0 part of locking patches should avoid GPU lockup
for the time being and in the future specific driconf will allow to enable GlThreading but it's off by default and not integrated yet.

Mauro
0001-nouveau-add-support-for-Pascal-chipsets.patch

dada

unread,
Aug 22, 2017, 10:12:22 PM8/22/17
to Android-x86
When I apply the patch, rebuild ISO, test at same HW, boot success!
If I find a problem in use, I will report it here.
Thank you very much!

Dada
在 2017年8月23日星期三 UTC+8上午6:08:53,Mauro Rossi写道:

youling 257

unread,
Aug 22, 2017, 10:17:59 PM8/22/17
to Android-x86
what is the GTX1060 OpenGL driver version ?
GL Vendor: 
GL Renderer: 
GL Version: 

在 2017年8月23日星期三 UTC+8上午10:12:22,dada写道:

Chih-Wei Huang

unread,
Aug 23, 2017, 5:30:45 AM8/23/17
to Android-x86
2017-08-23 6:08 GMT+08:00 Mauro Rossi <issor...@gmail.com>:
> Il giorno martedì 22 agosto 2017 06:02:12 UTC+2, Chih-Wei Huang ha scritto:
>> 2017-08-22 11:32 GMT+08:00 bunny.stranger via Android-x86
>> <andro...@googlegroups.com>:
>> > My HW:
>> > CPU: Intel(R) Xeon(R) CPU E3-1230 v5 @ 3.40GHz
>> > Motherboard: MSI MS-7A43/E3 KRAIT GAMING V5 (MS-7A43), BIOS 1.10
>> > 07/24/2016
>> > Mem: Kingstone DDR4 2400 8GB x2
>> > GPU: Nvidia GeForce GTX 1060 3GB
>>
>> GTX 1060 is not supported.
>> Fortunately I just borrowed one notebook with it.
>> I'm working on a fix.
>>
> I was also looking at the changes needed
>
> Let's see if I accounted for all of them:
>
> 1. add support in external/drm_gralloc for NV_PASCAL 0x130 family, proposed
> patch in the attachment

Thank you. I have an almost same patch as yours.
With it and kernel 4.13-rc5, it works as expected.
Great!

But my goal is still kernel-4.9 which
doesn't support this chipset either.
I'm trying to merge/pick patches from kernel-4.10.
Now I could load the nouveau driver correctly.
But drm_gralloc_nouveau init still fails.
I think I still missed some parts...

> 2. add the necessary firmwares in device/generic/firmware
>
> Looking a the history of merged nvidia firmwares, which inclused up to
> gp100,
> we would need to merge:
>
> "WHENCE: Remove references to two nvidia firmware files that were never
> added"
> https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=8b9287b756bfd13e9fdfc4610880891447952a47
>
> [optionally, since GM20B was added already, but better kep it]
> "nvidia: add GM20B PMU firmware"
> https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=8d1fd61a3723ab8cb6b7bfeb8be38e16282cc1ed
>
> "nvidia: add GP102/GP104/GP106/GP107 signed firmware"
> https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=065c85fa4a2343ead20cadfe6138f7716659dfe1
>
> "nvidia: add GP10B signed firmware"
> https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=7b040b3688e0342edd6aa18ef6db9fcccc34b601
>
> "nvidia: fix GP107 signed firmware"
> https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=7c7785c3fca909d876e506e337eaa771a8f4dcbc
>
>
>
> These should be in sequence so:
>
> git cherry-pick
> 8b9287b756bfd13e9fdfc4610880891447952a47^..7c7785c3fca909d876e506e337eaa771a8f4dcbc
>
>
> If we are lucky that should be all, the nvc0 part of locking patches should
> avoid GPU lockup
> for the time being and in the future specific driconf will allow to enable
> GlThreading but it's off by default and not integrated yet.


Chih-Wei Huang

unread,
Aug 23, 2017, 6:09:53 AM8/23/17
to Android-x86
2017-08-23 10:17 GMT+08:00 youling 257 <youli...@gmail.com>:
> what is the GTX1060 OpenGL driver version ?

GL Vendor: nouveau
GL Renderer: Gallium 0.4 on NV136
GL Version: OpenGL ES 3.0 Mesa 17.1.7 (git-c64f3c8)

youling 257

unread,
Aug 23, 2017, 8:13:42 AM8/23/17
to Android-x86
There is initial GeForce GTX 1000 series 3D accelerated support on the open-source Nouveau driver stack, when using Linux 4.12 paired with NVIDIA's firmware binary blobs now part of linux-firmware.git. But there isn't yet any re-clocking, so performance is very slow for Maxwell/Pascal.

With Linux 4.14, all Maxwell and Pascal GPUs remain limited to running at their boot clock frequencies due to NVIDIA not posting the PMU firmware and no magic workarounds yet merged by the Nouveau developers

在 2017年8月23日星期三 UTC+8下午6:09:53,Chih-Wei Huang写道:

Mauro Rossi

unread,
Aug 23, 2017, 12:32:25 PM8/23/17
to Android-x86


Il giorno mercoledì 23 agosto 2017 04:12:22 UTC+2, dada ha scritto:
When I apply the patch, rebuild ISO, test at same HW, boot success!
If I find a problem in use, I will report it here.
Thank you very much! 

Dada

Hi,

tonight I tested the correction for libart.so segfault by AOSP

AOSP has patched platform/art with [1] 
it can be cherry-picked cleanly in nougat-x86 branch to avoid reverting mm commits.
and people trying kernel-4.13 without reverting mm commits will need to apply [1]

The built iso worked and booted without libart.so segfault.
Mauro

Reply all
Reply to author
Forward
0 new messages