Re: TK1: DRM, Nouveau and VIC

2018-12-11 Thread Dmitry Osipenko
On 10.12.2018 13:21, Thierry Reding wrote:
> On Sat, Dec 08, 2018 at 02:54:45PM +, Marcel Ziswiler wrote:
>> Hi Thierry et al.
>>
>> I noticed that since commit 3dde5a2342cd ("ARM: tegra: Add VIC on
>> Tegra124") graphics on Apalis TK1 is broken. During boot it fails
>> loading the vic firmware:
>>
>> [1.595824] tegra-vic 5434.vic: Direct firmware load for
>> nvidia/tegra124/vic03_ucode.bin failed with error -2
>> [1.606140] tegra-vic: probe of 5434.vic failed with error -2
>>
>> Subsequently Tegra HDMI seems to fail completely:
>>
>> [2.379860] tegra-hdmi 5428.hdmi: failed to get PLL regulator
>>
>> And finally, Nouveau even crashes:
>>
>> [8.241115] nouveau 5700.gpu: Linked as a consumer to
>> regulator.31
>> [8.247889] nouveau 5700.gpu: NVIDIA GK20A (0ea000a1)
>> [8.253396] nouveau 5700.gpu: imem: using IOMMU
>> [8.270210] Unable to handle kernel NULL pointer dereference at
>> virtual address 006c
>> [8.278340] pgd = (ptrval)
>> [8.281250] [006c] *pgd=
>> [8.284944] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
>> [8.290260] Modules linked in: nouveau(+) ttm
>> [8.294625] CPU: 2 PID: 203 Comm: systemd-udevd Not tainted 4.20.0-
>> rc5-next-20181207-8-g85b0f8e25f86-dirty #110
>> [8.305055] Hardware name: NVIDIA Tegra SoC (Flattened Device Tree)
>> [8.311331] PC is at drm_plane_register_all+0x18/0x50
>> [8.316373] LR is at drm_modeset_register_all+0xc/0x70
>> [8.321513] pc : []lr : []psr: a0060013
>> [8.327768] sp : ed527c70  ip : ecc43ec0  fp : 
>> [8.332993] r10: 0016  r9 : ecc43e80  r8 : 
>> [8.338209] r7 : bf182c80  r6 :   r5 : ed61b24c  r4 :
>> fffc
>> [8.344735] r3 : 0002f000  r2 :   r1 : 2e124000  r0 :
>> ed61b000
>> [8.351260] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA
>> ARM  Segment none
>> [8.358383] Control: 10c5387d  Table: ad64c06a  DAC: 0051
>> [8.364127] Process systemd-udevd (pid: 203, stack limit =
>> 0x(ptrval))
>> [8.370654] Stack: (0xed527c70 to 0xed528000)
>> [8.375004] 7c60: ed61b000
>> ed61b000  c0564cc8
>> [8.383177] 7c80: ed61b000   c054b5b8 0001
>> 0001  
>> [8.391355] 7ca0: ed527cc0 c0f08c48 ed61b000  
>>  bf180c5c bf0dc900
>> [8.399531] 7cc0: eda29208 5dfe844b  ee9f2a10 
>> bf180c5c  c05a9328
>> [8.407695] 7ce0: c1006828 ee9f2a10 c100682c  
>> c05a744c ee9f2a10 bf180c5c
>> [8.415871] 7d00: ee9f2a44 c05a77a8  c0f08c48 bf182980
>> c05a769c eefd14d0 c05a77a8
>> [8.424048] 7d20:  ee9f2a10 bf180c5c ee9f2a44 c05a77a8
>>  c0f08c48 bf182980
>> [8.432226] 7d40:  c05a7884 ee9ebfb4 c0f08c48 bf180c5c
>> c05a5790  ee88135c
>> [8.440405] 7d60: ee9ebfb4 5dfe844b c0f71168 bf180c5c ee379e80
>> c0f71168  c05a692c
>> [8.448570] 7d80: bf15dc00 bf180ac8 e000 bf180c5c bf180ac8
>> e000 bf1aa000 c05a84a0
>> [8.456746] 7da0: bf182b80 bf180ac8 e000 bf1aa170 c0fbd220
>> c0f08c48 e000 c0102ed0
>> [8.464924] 7dc0: ed53f4c0 006000c0 c01b3d98 000c 6113
>> bf182980 0040 c02592d0
>> [8.473102] 7de0: eda60200 2e124000 ee80 006000c0 006000c0
>> c01b3d98 000c c025a8cc
>> [8.481281] 7e00: c024ce54 a113 bf182980 5dfe844b bf182980
>> 0002 ed53f4c0 0002
>> [8.489459] 7e20: eceba000 c01b3dd4 c0f08c48 bf182980 
>> ed527f40 0002 eceb9fc0
>> [8.497625] 7e40: 0002 c01b61a4 bf18298c 7fff bf182980
>> c01b2f88  c01b279c
>> [8.505800] 7e60: bf1829c8 bf182a80 bf182b6c bf182ab0 c0b03ab0
>> c0d58964 c0ca726c c0ca7278
>> [8.513978] 7e80: c0ca72d0 c0f08c48  c02654a0 
>>  e000 bf00
>> [8.522157] 7ea0:     
>>  6e72656b 6c65
>> [8.530336] 7ec0:     
>>   
>> [8.538502] 7ee0:     
>> 5dfe844b 7fff c0f08c48
>> [8.546677] 7f00:  000f b6f761cc c0101204 ed526000
>> 017b 004a3270 c01b66a4
>> [8.554855] 7f20: 7fff  0003 0001 004a3270
>> f0ced000 06e8994c 
>> [8.563032] 7f40: f0e37f3a f0e50a40 f0ced000 06e8994c f7b75f9c
>> f7b75d34 f63e62dc 0016b000
>> [8.571209] 7f60: 0017f6f0    00050a48
>> 003b 003c 0023
>> [8.579388] 7f80:  0014  5dfe844b 
>> 004c0ec0  0001
>> [8.587554] 7fa0: 017b c0101000 004c0ec0  000f
>> b6f761cc  0002
>> [8.595730] 7fc0: 004c0ec0  0001 017b 0048e114
>>   004a3270
>> [8.603908] 7fe0: bea8f990 bea8f980 b6f71269 b6e9f6c0 400d0010
>> 000f  
>> [

Re: TK1: DRM, Nouveau and VIC

2018-12-11 Thread Marcel Ziswiler
Hi Thierry

On Mon, 2018-12-10 at 12:00 +0100, Thierry Reding wrote:
> On Mon, Dec 10, 2018 at 11:21:47AM +0100, Thierry Reding wrote:
> > On Sat, Dec 08, 2018 at 02:54:45PM +, Marcel Ziswiler wrote:
> > > Hi Thierry et al.
> > > 
> > > I noticed that since commit 3dde5a2342cd ("ARM: tegra: Add VIC on
> > > Tegra124") graphics on Apalis TK1 is broken. During boot it fails
> > > loading the vic firmware:
> > > 
> > > [1.595824] tegra-vic 5434.vic: Direct firmware load for
> > > nvidia/tegra124/vic03_ucode.bin failed with error -2
> > > [1.606140] tegra-vic: probe of 5434.vic failed with error
> > > -2
> > > 
> > > Subsequently Tegra HDMI seems to fail completely:
> > > 
> > > [2.379860] tegra-hdmi 5428.hdmi: failed to get PLL
> > > regulator
> > > 
> > > And finally, Nouveau even crashes:
> > > 
> > > [8.241115] nouveau 5700.gpu: Linked as a consumer to
> > > regulator.31
> > > [8.247889] nouveau 5700.gpu: NVIDIA GK20A (0ea000a1)
> > > [8.253396] nouveau 5700.gpu: imem: using IOMMU
> > > [8.270210] Unable to handle kernel NULL pointer dereference
> > > at
> > > virtual address 006c
> > > [8.278340] pgd = (ptrval)
> > > [8.281250] [006c] *pgd=
> > > [8.284944] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
> > > [8.290260] Modules linked in: nouveau(+) ttm
> > > [8.294625] CPU: 2 PID: 203 Comm: systemd-udevd Not tainted
> > > 4.20.0-
> > > rc5-next-20181207-8-g85b0f8e25f86-dirty #110
> > > [8.305055] Hardware name: NVIDIA Tegra SoC (Flattened Device
> > > Tree)
> > > [8.311331] PC is at drm_plane_register_all+0x18/0x50
> > > [8.316373] LR is at drm_modeset_register_all+0xc/0x70
> > > [8.321513] pc : []lr : []psr:
> > > a0060013
> > > [8.327768] sp : ed527c70  ip : ecc43ec0  fp : 
> > > [8.332993] r10: 0016  r9 : ecc43e80  r8 : 
> > > [8.338209] r7 : bf182c80  r6 :   r5 : ed61b24c  r4 :
> > > fffc
> > > [8.344735] r3 : 0002f000  r2 :   r1 : 2e124000  r0 :
> > > ed61b000
> > > [8.351260] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA
> > > ARM  Segment none
> > > [8.358383] Control: 10c5387d  Table: ad64c06a  DAC: 0051
> > > [8.364127] Process systemd-udevd (pid: 203, stack limit =
> > > 0x(ptrval))
> > > [8.370654] Stack: (0xed527c70 to 0xed528000)
> > > [8.375004] 7c60: ed61b000
> > > ed61b000  c0564cc8
> > > [8.383177] 7c80: ed61b000   c054b5b8 0001
> > > 0001  
> > > [8.391355] 7ca0: ed527cc0 c0f08c48 ed61b000  
> > >  bf180c5c bf0dc900
> > > [8.399531] 7cc0: eda29208 5dfe844b  ee9f2a10 
> > > bf180c5c  c05a9328
> > > [8.407695] 7ce0: c1006828 ee9f2a10 c100682c  
> > > c05a744c ee9f2a10 bf180c5c
> > > [8.415871] 7d00: ee9f2a44 c05a77a8  c0f08c48 bf182980
> > > c05a769c eefd14d0 c05a77a8
> > > [8.424048] 7d20:  ee9f2a10 bf180c5c ee9f2a44 c05a77a8
> > >  c0f08c48 bf182980
> > > [8.432226] 7d40:  c05a7884 ee9ebfb4 c0f08c48 bf180c5c
> > > c05a5790  ee88135c
> > > [8.440405] 7d60: ee9ebfb4 5dfe844b c0f71168 bf180c5c ee379e80
> > > c0f71168  c05a692c
> > > [8.448570] 7d80: bf15dc00 bf180ac8 e000 bf180c5c bf180ac8
> > > e000 bf1aa000 c05a84a0
> > > [8.456746] 7da0: bf182b80 bf180ac8 e000 bf1aa170 c0fbd220
> > > c0f08c48 e000 c0102ed0
> > > [8.464924] 7dc0: ed53f4c0 006000c0 c01b3d98 000c 6113
> > > bf182980 0040 c02592d0
> > > [8.473102] 7de0: eda60200 2e124000 ee80 006000c0 006000c0
> > > c01b3d98 000c c025a8cc
> > > [8.481281] 7e00: c024ce54 a113 bf182980 5dfe844b bf182980
> > > 0002 ed53f4c0 0002
> > > [8.489459] 7e20: eceba000 c01b3dd4 c0f08c48 bf182980 
> > > ed527f40 0002 eceb9fc0
> > > [8.497625] 7e40: 0002 c01b61a4 bf18298c 7fff bf182980
> > > c01b2f88  c01b279c
> > > [8.505800] 7e60: bf1829c8 bf182a80 bf182b6c bf182ab0 c0b03ab0
> > > c0d58964 c0ca726c c0ca7278
> > > [8.513978] 7e80: c0ca72d0 c0f08c48  c02654a0 
> > >  e000 bf00
> > > [8.522157] 7ea0:     
> > >  6e72656b 6c65
> > > [8.530336] 7ec0:     
> > >   
> > > [8.538502] 7ee0:     
> > > 5dfe844b 7fff c0f08c48
> > > [8.546677] 7f00:  000f b6f761cc c0101204 ed526000
> > > 017b 004a3270 c01b66a4
> > > [8.554855] 7f20: 7fff  0003 0001 004a3270
> > > f0ced000 06e8994c 
> > > [8.563032] 7f40: f0e37f3a f0e50a40 f0ced000 06e8994c f7b75f9c
> > > f7b75d34 f63e62dc 0016b000
> > > [8.571209] 7f60: 0017f6f0    00050a48
> > > 003b 003c 

Re: TK1: DRM, Nouveau and VIC

2018-12-11 Thread Marcel Ziswiler
Hi Thierry

On Mon, 2018-12-10 at 17:23 +0100, Thierry Reding wrote:

Snip.

> > Looks like with pci_disable_device() it may take a rather strange
> > path...
> 
> Yikes... it has no business at all calling pci_disable_device() on
> Tegra. Unless if you happen to have a GPU plugged into the PCIe slot.
> I'm assuming that's not what you're doing?

Nope, I only have a Wi-Fi card behind a PCIe switch though (;-p).

> I'll see if I can reproduce (and fix) that crash on unload.
> Admittedly
> it's not something that I regularly test. Perhaps that's something
> that
> I should change...

Don't worry. After a couple of years working on this I happen to try
this the first time myself just now (;-p).

> Thierry

Cheers

Marcel
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: TK1: DRM, Nouveau and VIC

2018-12-11 Thread Marcel Ziswiler
Hi Thierry

On Mon, 2018-12-10 at 11:21 +0100, Thierry Reding wrote:
> On Sat, Dec 08, 2018 at 02:54:45PM +, Marcel Ziswiler wrote:
> > Hi Thierry et al.
> > 
> > I noticed that since commit 3dde5a2342cd ("ARM: tegra: Add VIC on
> > Tegra124") graphics on Apalis TK1 is broken. During boot it fails
> > loading the vic firmware:
> > 
> > [1.595824] tegra-vic 5434.vic: Direct firmware load for
> > nvidia/tegra124/vic03_ucode.bin failed with error -2
> > [1.606140] tegra-vic: probe of 5434.vic failed with error
> > -2
> > 
> > Subsequently Tegra HDMI seems to fail completely:
> > 
> > [2.379860] tegra-hdmi 5428.hdmi: failed to get PLL
> > regulator
> > 
> > And finally, Nouveau even crashes:
> > 
> > [8.241115] nouveau 5700.gpu: Linked as a consumer to
> > regulator.31
> > [8.247889] nouveau 5700.gpu: NVIDIA GK20A (0ea000a1)
> > [8.253396] nouveau 5700.gpu: imem: using IOMMU
> > [8.270210] Unable to handle kernel NULL pointer dereference at
> > virtual address 006c
> > [8.278340] pgd = (ptrval)
> > [8.281250] [006c] *pgd=
> > [8.284944] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
> > [8.290260] Modules linked in: nouveau(+) ttm
> > [8.294625] CPU: 2 PID: 203 Comm: systemd-udevd Not tainted
> > 4.20.0-
> > rc5-next-20181207-8-g85b0f8e25f86-dirty #110
> > [8.305055] Hardware name: NVIDIA Tegra SoC (Flattened Device
> > Tree)
> > [8.311331] PC is at drm_plane_register_all+0x18/0x50
> > [8.316373] LR is at drm_modeset_register_all+0xc/0x70
> > [8.321513] pc : []lr : []psr:
> > a0060013
> > [8.327768] sp : ed527c70  ip : ecc43ec0  fp : 
> > [8.332993] r10: 0016  r9 : ecc43e80  r8 : 
> > [8.338209] r7 : bf182c80  r6 :   r5 : ed61b24c  r4 :
> > fffc
> > [8.344735] r3 : 0002f000  r2 :   r1 : 2e124000  r0 :
> > ed61b000
> > [8.351260] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA
> > ARM  Segment none
> > [8.358383] Control: 10c5387d  Table: ad64c06a  DAC: 0051
> > [8.364127] Process systemd-udevd (pid: 203, stack limit =
> > 0x(ptrval))
> > [8.370654] Stack: (0xed527c70 to 0xed528000)
> > [8.375004] 7c60: ed61b000
> > ed61b000  c0564cc8
> > [8.383177] 7c80: ed61b000   c054b5b8 0001
> > 0001  
> > [8.391355] 7ca0: ed527cc0 c0f08c48 ed61b000  
> >  bf180c5c bf0dc900
> > [8.399531] 7cc0: eda29208 5dfe844b  ee9f2a10 
> > bf180c5c  c05a9328
> > [8.407695] 7ce0: c1006828 ee9f2a10 c100682c  
> > c05a744c ee9f2a10 bf180c5c
> > [8.415871] 7d00: ee9f2a44 c05a77a8  c0f08c48 bf182980
> > c05a769c eefd14d0 c05a77a8
> > [8.424048] 7d20:  ee9f2a10 bf180c5c ee9f2a44 c05a77a8
> >  c0f08c48 bf182980
> > [8.432226] 7d40:  c05a7884 ee9ebfb4 c0f08c48 bf180c5c
> > c05a5790  ee88135c
> > [8.440405] 7d60: ee9ebfb4 5dfe844b c0f71168 bf180c5c ee379e80
> > c0f71168  c05a692c
> > [8.448570] 7d80: bf15dc00 bf180ac8 e000 bf180c5c bf180ac8
> > e000 bf1aa000 c05a84a0
> > [8.456746] 7da0: bf182b80 bf180ac8 e000 bf1aa170 c0fbd220
> > c0f08c48 e000 c0102ed0
> > [8.464924] 7dc0: ed53f4c0 006000c0 c01b3d98 000c 6113
> > bf182980 0040 c02592d0
> > [8.473102] 7de0: eda60200 2e124000 ee80 006000c0 006000c0
> > c01b3d98 000c c025a8cc
> > [8.481281] 7e00: c024ce54 a113 bf182980 5dfe844b bf182980
> > 0002 ed53f4c0 0002
> > [8.489459] 7e20: eceba000 c01b3dd4 c0f08c48 bf182980 
> > ed527f40 0002 eceb9fc0
> > [8.497625] 7e40: 0002 c01b61a4 bf18298c 7fff bf182980
> > c01b2f88  c01b279c
> > [8.505800] 7e60: bf1829c8 bf182a80 bf182b6c bf182ab0 c0b03ab0
> > c0d58964 c0ca726c c0ca7278
> > [8.513978] 7e80: c0ca72d0 c0f08c48  c02654a0 
> >  e000 bf00
> > [8.522157] 7ea0:     
> >  6e72656b 6c65
> > [8.530336] 7ec0:     
> >   
> > [8.538502] 7ee0:     
> > 5dfe844b 7fff c0f08c48
> > [8.546677] 7f00:  000f b6f761cc c0101204 ed526000
> > 017b 004a3270 c01b66a4
> > [8.554855] 7f20: 7fff  0003 0001 004a3270
> > f0ced000 06e8994c 
> > [8.563032] 7f40: f0e37f3a f0e50a40 f0ced000 06e8994c f7b75f9c
> > f7b75d34 f63e62dc 0016b000
> > [8.571209] 7f60: 0017f6f0    00050a48
> > 003b 003c 0023
> > [8.579388] 7f80:  0014  5dfe844b 
> > 004c0ec0  0001
> > [8.587554] 7fa0: 017b c0101000 004c0ec0  000f
> > b6f761cc  0002
> > [8.595730] 7fc0: 004c0ec0  0001 017b 

Re: TK1: DRM, Nouveau and VIC

2018-12-10 Thread Thierry Reding
On Mon, Dec 10, 2018 at 03:20:19PM +, Marcel Ziswiler wrote:
> Hi Thierry
> 
> On Mon, 2018-12-10 at 12:00 +0100, Thierry Reding wrote:
> > On Mon, Dec 10, 2018 at 11:21:47AM +0100, Thierry Reding wrote:
> > > On Sat, Dec 08, 2018 at 02:54:45PM +, Marcel Ziswiler wrote:
> > > > Hi Thierry et al.
> > > > 
> > > > I noticed that since commit 3dde5a2342cd ("ARM: tegra: Add VIC on
> > > > Tegra124") graphics on Apalis TK1 is broken. During boot it fails
> > > > loading the vic firmware:
> > > > 
> > > > [1.595824] tegra-vic 5434.vic: Direct firmware load for
> > > > nvidia/tegra124/vic03_ucode.bin failed with error -2
> > > > [1.606140] tegra-vic: probe of 5434.vic failed with error
> > > > -2
> > > > 
> > > > Subsequently Tegra HDMI seems to fail completely:
> > > > 
> > > > [2.379860] tegra-hdmi 5428.hdmi: failed to get PLL
> > > > regulator
> > > > 
> > > > And finally, Nouveau even crashes:
> > > > 
> > > > [8.241115] nouveau 5700.gpu: Linked as a consumer to
> > > > regulator.31
> > > > [8.247889] nouveau 5700.gpu: NVIDIA GK20A (0ea000a1)
> > > > [8.253396] nouveau 5700.gpu: imem: using IOMMU
> > > > [8.270210] Unable to handle kernel NULL pointer dereference
> > > > at
> > > > virtual address 006c
> > > > [8.278340] pgd = (ptrval)
> > > > [8.281250] [006c] *pgd=
> > > > [8.284944] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
> > > > [8.290260] Modules linked in: nouveau(+) ttm
> > > > [8.294625] CPU: 2 PID: 203 Comm: systemd-udevd Not tainted
> > > > 4.20.0-
> > > > rc5-next-20181207-8-g85b0f8e25f86-dirty #110
> > > > [8.305055] Hardware name: NVIDIA Tegra SoC (Flattened Device
> > > > Tree)
> > > > [8.311331] PC is at drm_plane_register_all+0x18/0x50
> > > > [8.316373] LR is at drm_modeset_register_all+0xc/0x70
> > > > [8.321513] pc : []lr : []psr:
> > > > a0060013
> > > > [8.327768] sp : ed527c70  ip : ecc43ec0  fp : 
> > > > [8.332993] r10: 0016  r9 : ecc43e80  r8 : 
> > > > [8.338209] r7 : bf182c80  r6 :   r5 : ed61b24c  r4 :
> > > > fffc
> > > > [8.344735] r3 : 0002f000  r2 :   r1 : 2e124000  r0 :
> > > > ed61b000
> > > > [8.351260] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA
> > > > ARM  Segment none
> > > > [8.358383] Control: 10c5387d  Table: ad64c06a  DAC: 0051
> > > > [8.364127] Process systemd-udevd (pid: 203, stack limit =
> > > > 0x(ptrval))
> > > > [8.370654] Stack: (0xed527c70 to 0xed528000)
> > > > [8.375004] 7c60: ed61b000
> > > > ed61b000  c0564cc8
> > > > [8.383177] 7c80: ed61b000   c054b5b8 0001
> > > > 0001  
> > > > [8.391355] 7ca0: ed527cc0 c0f08c48 ed61b000  
> > > >  bf180c5c bf0dc900
> > > > [8.399531] 7cc0: eda29208 5dfe844b  ee9f2a10 
> > > > bf180c5c  c05a9328
> > > > [8.407695] 7ce0: c1006828 ee9f2a10 c100682c  
> > > > c05a744c ee9f2a10 bf180c5c
> > > > [8.415871] 7d00: ee9f2a44 c05a77a8  c0f08c48 bf182980
> > > > c05a769c eefd14d0 c05a77a8
> > > > [8.424048] 7d20:  ee9f2a10 bf180c5c ee9f2a44 c05a77a8
> > > >  c0f08c48 bf182980
> > > > [8.432226] 7d40:  c05a7884 ee9ebfb4 c0f08c48 bf180c5c
> > > > c05a5790  ee88135c
> > > > [8.440405] 7d60: ee9ebfb4 5dfe844b c0f71168 bf180c5c ee379e80
> > > > c0f71168  c05a692c
> > > > [8.448570] 7d80: bf15dc00 bf180ac8 e000 bf180c5c bf180ac8
> > > > e000 bf1aa000 c05a84a0
> > > > [8.456746] 7da0: bf182b80 bf180ac8 e000 bf1aa170 c0fbd220
> > > > c0f08c48 e000 c0102ed0
> > > > [8.464924] 7dc0: ed53f4c0 006000c0 c01b3d98 000c 6113
> > > > bf182980 0040 c02592d0
> > > > [8.473102] 7de0: eda60200 2e124000 ee80 006000c0 006000c0
> > > > c01b3d98 000c c025a8cc
> > > > [8.481281] 7e00: c024ce54 a113 bf182980 5dfe844b bf182980
> > > > 0002 ed53f4c0 0002
> > > > [8.489459] 7e20: eceba000 c01b3dd4 c0f08c48 bf182980 
> > > > ed527f40 0002 eceb9fc0
> > > > [8.497625] 7e40: 0002 c01b61a4 bf18298c 7fff bf182980
> > > > c01b2f88  c01b279c
> > > > [8.505800] 7e60: bf1829c8 bf182a80 bf182b6c bf182ab0 c0b03ab0
> > > > c0d58964 c0ca726c c0ca7278
> > > > [8.513978] 7e80: c0ca72d0 c0f08c48  c02654a0 
> > > >  e000 bf00
> > > > [8.522157] 7ea0:     
> > > >  6e72656b 6c65
> > > > [8.530336] 7ec0:     
> > > >   
> > > > [8.538502] 7ee0:     
> > > > 5dfe844b 7fff c0f08c48
> > > > [8.546677] 7f00:  000f b6f761cc c0101204 ed526000
> > > > 017b 004a3270 c01b66a4
> > > > [8.554855] 7f20: 7fff  

Re: TK1: DRM, Nouveau and VIC

2018-12-10 Thread Thierry Reding
On Mon, Dec 10, 2018 at 11:21:47AM +0100, Thierry Reding wrote:
> On Sat, Dec 08, 2018 at 02:54:45PM +, Marcel Ziswiler wrote:
> > Hi Thierry et al.
> > 
> > I noticed that since commit 3dde5a2342cd ("ARM: tegra: Add VIC on
> > Tegra124") graphics on Apalis TK1 is broken. During boot it fails
> > loading the vic firmware:
> > 
> > [1.595824] tegra-vic 5434.vic: Direct firmware load for
> > nvidia/tegra124/vic03_ucode.bin failed with error -2
> > [1.606140] tegra-vic: probe of 5434.vic failed with error -2
> > 
> > Subsequently Tegra HDMI seems to fail completely:
> > 
> > [2.379860] tegra-hdmi 5428.hdmi: failed to get PLL regulator
> > 
> > And finally, Nouveau even crashes:
> > 
> > [8.241115] nouveau 5700.gpu: Linked as a consumer to
> > regulator.31
> > [8.247889] nouveau 5700.gpu: NVIDIA GK20A (0ea000a1)
> > [8.253396] nouveau 5700.gpu: imem: using IOMMU
> > [8.270210] Unable to handle kernel NULL pointer dereference at
> > virtual address 006c
> > [8.278340] pgd = (ptrval)
> > [8.281250] [006c] *pgd=
> > [8.284944] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
> > [8.290260] Modules linked in: nouveau(+) ttm
> > [8.294625] CPU: 2 PID: 203 Comm: systemd-udevd Not tainted 4.20.0-
> > rc5-next-20181207-8-g85b0f8e25f86-dirty #110
> > [8.305055] Hardware name: NVIDIA Tegra SoC (Flattened Device Tree)
> > [8.311331] PC is at drm_plane_register_all+0x18/0x50
> > [8.316373] LR is at drm_modeset_register_all+0xc/0x70
> > [8.321513] pc : []lr : []psr: a0060013
> > [8.327768] sp : ed527c70  ip : ecc43ec0  fp : 
> > [8.332993] r10: 0016  r9 : ecc43e80  r8 : 
> > [8.338209] r7 : bf182c80  r6 :   r5 : ed61b24c  r4 :
> > fffc
> > [8.344735] r3 : 0002f000  r2 :   r1 : 2e124000  r0 :
> > ed61b000
> > [8.351260] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA
> > ARM  Segment none
> > [8.358383] Control: 10c5387d  Table: ad64c06a  DAC: 0051
> > [8.364127] Process systemd-udevd (pid: 203, stack limit =
> > 0x(ptrval))
> > [8.370654] Stack: (0xed527c70 to 0xed528000)
> > [8.375004] 7c60: ed61b000
> > ed61b000  c0564cc8
> > [8.383177] 7c80: ed61b000   c054b5b8 0001
> > 0001  
> > [8.391355] 7ca0: ed527cc0 c0f08c48 ed61b000  
> >  bf180c5c bf0dc900
> > [8.399531] 7cc0: eda29208 5dfe844b  ee9f2a10 
> > bf180c5c  c05a9328
> > [8.407695] 7ce0: c1006828 ee9f2a10 c100682c  
> > c05a744c ee9f2a10 bf180c5c
> > [8.415871] 7d00: ee9f2a44 c05a77a8  c0f08c48 bf182980
> > c05a769c eefd14d0 c05a77a8
> > [8.424048] 7d20:  ee9f2a10 bf180c5c ee9f2a44 c05a77a8
> >  c0f08c48 bf182980
> > [8.432226] 7d40:  c05a7884 ee9ebfb4 c0f08c48 bf180c5c
> > c05a5790  ee88135c
> > [8.440405] 7d60: ee9ebfb4 5dfe844b c0f71168 bf180c5c ee379e80
> > c0f71168  c05a692c
> > [8.448570] 7d80: bf15dc00 bf180ac8 e000 bf180c5c bf180ac8
> > e000 bf1aa000 c05a84a0
> > [8.456746] 7da0: bf182b80 bf180ac8 e000 bf1aa170 c0fbd220
> > c0f08c48 e000 c0102ed0
> > [8.464924] 7dc0: ed53f4c0 006000c0 c01b3d98 000c 6113
> > bf182980 0040 c02592d0
> > [8.473102] 7de0: eda60200 2e124000 ee80 006000c0 006000c0
> > c01b3d98 000c c025a8cc
> > [8.481281] 7e00: c024ce54 a113 bf182980 5dfe844b bf182980
> > 0002 ed53f4c0 0002
> > [8.489459] 7e20: eceba000 c01b3dd4 c0f08c48 bf182980 
> > ed527f40 0002 eceb9fc0
> > [8.497625] 7e40: 0002 c01b61a4 bf18298c 7fff bf182980
> > c01b2f88  c01b279c
> > [8.505800] 7e60: bf1829c8 bf182a80 bf182b6c bf182ab0 c0b03ab0
> > c0d58964 c0ca726c c0ca7278
> > [8.513978] 7e80: c0ca72d0 c0f08c48  c02654a0 
> >  e000 bf00
> > [8.522157] 7ea0:     
> >  6e72656b 6c65
> > [8.530336] 7ec0:     
> >   
> > [8.538502] 7ee0:     
> > 5dfe844b 7fff c0f08c48
> > [8.546677] 7f00:  000f b6f761cc c0101204 ed526000
> > 017b 004a3270 c01b66a4
> > [8.554855] 7f20: 7fff  0003 0001 004a3270
> > f0ced000 06e8994c 
> > [8.563032] 7f40: f0e37f3a f0e50a40 f0ced000 06e8994c f7b75f9c
> > f7b75d34 f63e62dc 0016b000
> > [8.571209] 7f60: 0017f6f0    00050a48
> > 003b 003c 0023
> > [8.579388] 7f80:  0014  5dfe844b 
> > 004c0ec0  0001
> > [8.587554] 7fa0: 017b c0101000 004c0ec0  000f
> > b6f761cc  0002
> > [8.595730] 7fc0: 004c0ec0  0001 017b 0048e114
> >  

Re: TK1: DRM, Nouveau and VIC

2018-12-10 Thread Thierry Reding
On Sat, Dec 08, 2018 at 02:54:45PM +, Marcel Ziswiler wrote:
> Hi Thierry et al.
> 
> I noticed that since commit 3dde5a2342cd ("ARM: tegra: Add VIC on
> Tegra124") graphics on Apalis TK1 is broken. During boot it fails
> loading the vic firmware:
> 
> [1.595824] tegra-vic 5434.vic: Direct firmware load for
> nvidia/tegra124/vic03_ucode.bin failed with error -2
> [1.606140] tegra-vic: probe of 5434.vic failed with error -2
> 
> Subsequently Tegra HDMI seems to fail completely:
> 
> [2.379860] tegra-hdmi 5428.hdmi: failed to get PLL regulator
> 
> And finally, Nouveau even crashes:
> 
> [8.241115] nouveau 5700.gpu: Linked as a consumer to
> regulator.31
> [8.247889] nouveau 5700.gpu: NVIDIA GK20A (0ea000a1)
> [8.253396] nouveau 5700.gpu: imem: using IOMMU
> [8.270210] Unable to handle kernel NULL pointer dereference at
> virtual address 006c
> [8.278340] pgd = (ptrval)
> [8.281250] [006c] *pgd=
> [8.284944] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
> [8.290260] Modules linked in: nouveau(+) ttm
> [8.294625] CPU: 2 PID: 203 Comm: systemd-udevd Not tainted 4.20.0-
> rc5-next-20181207-8-g85b0f8e25f86-dirty #110
> [8.305055] Hardware name: NVIDIA Tegra SoC (Flattened Device Tree)
> [8.311331] PC is at drm_plane_register_all+0x18/0x50
> [8.316373] LR is at drm_modeset_register_all+0xc/0x70
> [8.321513] pc : []lr : []psr: a0060013
> [8.327768] sp : ed527c70  ip : ecc43ec0  fp : 
> [8.332993] r10: 0016  r9 : ecc43e80  r8 : 
> [8.338209] r7 : bf182c80  r6 :   r5 : ed61b24c  r4 :
> fffc
> [8.344735] r3 : 0002f000  r2 :   r1 : 2e124000  r0 :
> ed61b000
> [8.351260] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA
> ARM  Segment none
> [8.358383] Control: 10c5387d  Table: ad64c06a  DAC: 0051
> [8.364127] Process systemd-udevd (pid: 203, stack limit =
> 0x(ptrval))
> [8.370654] Stack: (0xed527c70 to 0xed528000)
> [8.375004] 7c60: ed61b000
> ed61b000  c0564cc8
> [8.383177] 7c80: ed61b000   c054b5b8 0001
> 0001  
> [8.391355] 7ca0: ed527cc0 c0f08c48 ed61b000  
>  bf180c5c bf0dc900
> [8.399531] 7cc0: eda29208 5dfe844b  ee9f2a10 
> bf180c5c  c05a9328
> [8.407695] 7ce0: c1006828 ee9f2a10 c100682c  
> c05a744c ee9f2a10 bf180c5c
> [8.415871] 7d00: ee9f2a44 c05a77a8  c0f08c48 bf182980
> c05a769c eefd14d0 c05a77a8
> [8.424048] 7d20:  ee9f2a10 bf180c5c ee9f2a44 c05a77a8
>  c0f08c48 bf182980
> [8.432226] 7d40:  c05a7884 ee9ebfb4 c0f08c48 bf180c5c
> c05a5790  ee88135c
> [8.440405] 7d60: ee9ebfb4 5dfe844b c0f71168 bf180c5c ee379e80
> c0f71168  c05a692c
> [8.448570] 7d80: bf15dc00 bf180ac8 e000 bf180c5c bf180ac8
> e000 bf1aa000 c05a84a0
> [8.456746] 7da0: bf182b80 bf180ac8 e000 bf1aa170 c0fbd220
> c0f08c48 e000 c0102ed0
> [8.464924] 7dc0: ed53f4c0 006000c0 c01b3d98 000c 6113
> bf182980 0040 c02592d0
> [8.473102] 7de0: eda60200 2e124000 ee80 006000c0 006000c0
> c01b3d98 000c c025a8cc
> [8.481281] 7e00: c024ce54 a113 bf182980 5dfe844b bf182980
> 0002 ed53f4c0 0002
> [8.489459] 7e20: eceba000 c01b3dd4 c0f08c48 bf182980 
> ed527f40 0002 eceb9fc0
> [8.497625] 7e40: 0002 c01b61a4 bf18298c 7fff bf182980
> c01b2f88  c01b279c
> [8.505800] 7e60: bf1829c8 bf182a80 bf182b6c bf182ab0 c0b03ab0
> c0d58964 c0ca726c c0ca7278
> [8.513978] 7e80: c0ca72d0 c0f08c48  c02654a0 
>  e000 bf00
> [8.522157] 7ea0:     
>  6e72656b 6c65
> [8.530336] 7ec0:     
>   
> [8.538502] 7ee0:     
> 5dfe844b 7fff c0f08c48
> [8.546677] 7f00:  000f b6f761cc c0101204 ed526000
> 017b 004a3270 c01b66a4
> [8.554855] 7f20: 7fff  0003 0001 004a3270
> f0ced000 06e8994c 
> [8.563032] 7f40: f0e37f3a f0e50a40 f0ced000 06e8994c f7b75f9c
> f7b75d34 f63e62dc 0016b000
> [8.571209] 7f60: 0017f6f0    00050a48
> 003b 003c 0023
> [8.579388] 7f80:  0014  5dfe844b 
> 004c0ec0  0001
> [8.587554] 7fa0: 017b c0101000 004c0ec0  000f
> b6f761cc  0002
> [8.595730] 7fc0: 004c0ec0  0001 017b 0048e114
>   004a3270
> [8.603908] 7fe0: bea8f990 bea8f980 b6f71269 b6e9f6c0 400d0010
> 000f  
> [8.612096] [] (drm_plane_register_all) from []
> (drm_modeset_register_all+0xc/0x70)  
> [8.621499] [] (drm_modeset_register_all) from
> [] 

TK1: DRM, Nouveau and VIC

2018-12-10 Thread Marcel Ziswiler
Hi Thierry et al.

I noticed that since commit 3dde5a2342cd ("ARM: tegra: Add VIC on
Tegra124") graphics on Apalis TK1 is broken. During boot it fails
loading the vic firmware:

[1.595824] tegra-vic 5434.vic: Direct firmware load for
nvidia/tegra124/vic03_ucode.bin failed with error -2
[1.606140] tegra-vic: probe of 5434.vic failed with error -2

Subsequently Tegra HDMI seems to fail completely:

[2.379860] tegra-hdmi 5428.hdmi: failed to get PLL regulator

And finally, Nouveau even crashes:

[8.241115] nouveau 5700.gpu: Linked as a consumer to
regulator.31
[8.247889] nouveau 5700.gpu: NVIDIA GK20A (0ea000a1)
[8.253396] nouveau 5700.gpu: imem: using IOMMU
[8.270210] Unable to handle kernel NULL pointer dereference at
virtual address 006c
[8.278340] pgd = (ptrval)
[8.281250] [006c] *pgd=
[8.284944] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[8.290260] Modules linked in: nouveau(+) ttm
[8.294625] CPU: 2 PID: 203 Comm: systemd-udevd Not tainted 4.20.0-
rc5-next-20181207-8-g85b0f8e25f86-dirty #110
[8.305055] Hardware name: NVIDIA Tegra SoC (Flattened Device Tree)
[8.311331] PC is at drm_plane_register_all+0x18/0x50
[8.316373] LR is at drm_modeset_register_all+0xc/0x70
[8.321513] pc : []lr : []psr: a0060013
[8.327768] sp : ed527c70  ip : ecc43ec0  fp : 
[8.332993] r10: 0016  r9 : ecc43e80  r8 : 
[8.338209] r7 : bf182c80  r6 :   r5 : ed61b24c  r4 :
fffc
[8.344735] r3 : 0002f000  r2 :   r1 : 2e124000  r0 :
ed61b000
[8.351260] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA
ARM  Segment none
[8.358383] Control: 10c5387d  Table: ad64c06a  DAC: 0051
[8.364127] Process systemd-udevd (pid: 203, stack limit =
0x(ptrval))
[8.370654] Stack: (0xed527c70 to 0xed528000)
[8.375004] 7c60: ed61b000
ed61b000  c0564cc8
[8.383177] 7c80: ed61b000   c054b5b8 0001
0001  
[8.391355] 7ca0: ed527cc0 c0f08c48 ed61b000  
 bf180c5c bf0dc900
[8.399531] 7cc0: eda29208 5dfe844b  ee9f2a10 
bf180c5c  c05a9328
[8.407695] 7ce0: c1006828 ee9f2a10 c100682c  
c05a744c ee9f2a10 bf180c5c
[8.415871] 7d00: ee9f2a44 c05a77a8  c0f08c48 bf182980
c05a769c eefd14d0 c05a77a8
[8.424048] 7d20:  ee9f2a10 bf180c5c ee9f2a44 c05a77a8
 c0f08c48 bf182980
[8.432226] 7d40:  c05a7884 ee9ebfb4 c0f08c48 bf180c5c
c05a5790  ee88135c
[8.440405] 7d60: ee9ebfb4 5dfe844b c0f71168 bf180c5c ee379e80
c0f71168  c05a692c
[8.448570] 7d80: bf15dc00 bf180ac8 e000 bf180c5c bf180ac8
e000 bf1aa000 c05a84a0
[8.456746] 7da0: bf182b80 bf180ac8 e000 bf1aa170 c0fbd220
c0f08c48 e000 c0102ed0
[8.464924] 7dc0: ed53f4c0 006000c0 c01b3d98 000c 6113
bf182980 0040 c02592d0
[8.473102] 7de0: eda60200 2e124000 ee80 006000c0 006000c0
c01b3d98 000c c025a8cc
[8.481281] 7e00: c024ce54 a113 bf182980 5dfe844b bf182980
0002 ed53f4c0 0002
[8.489459] 7e20: eceba000 c01b3dd4 c0f08c48 bf182980 
ed527f40 0002 eceb9fc0
[8.497625] 7e40: 0002 c01b61a4 bf18298c 7fff bf182980
c01b2f88  c01b279c
[8.505800] 7e60: bf1829c8 bf182a80 bf182b6c bf182ab0 c0b03ab0
c0d58964 c0ca726c c0ca7278
[8.513978] 7e80: c0ca72d0 c0f08c48  c02654a0 
 e000 bf00
[8.522157] 7ea0:     
 6e72656b 6c65
[8.530336] 7ec0:     
  
[8.538502] 7ee0:     
5dfe844b 7fff c0f08c48
[8.546677] 7f00:  000f b6f761cc c0101204 ed526000
017b 004a3270 c01b66a4
[8.554855] 7f20: 7fff  0003 0001 004a3270
f0ced000 06e8994c 
[8.563032] 7f40: f0e37f3a f0e50a40 f0ced000 06e8994c f7b75f9c
f7b75d34 f63e62dc 0016b000
[8.571209] 7f60: 0017f6f0    00050a48
003b 003c 0023
[8.579388] 7f80:  0014  5dfe844b 
004c0ec0  0001
[8.587554] 7fa0: 017b c0101000 004c0ec0  000f
b6f761cc  0002
[8.595730] 7fc0: 004c0ec0  0001 017b 0048e114
  004a3270
[8.603908] 7fe0: bea8f990 bea8f980 b6f71269 b6e9f6c0 400d0010
000f  
[8.612096] [] (drm_plane_register_all) from []
(drm_modeset_register_all+0xc/0x70)  
[8.621499] [] (drm_modeset_register_all) from
[] (drm_dev_register+0x168/0x1c4)
[8.630855] [] (drm_dev_register) from []
(nouveau_platform_probe+0x6c/0x88 [nouveau])
[8.640739] [] (nouveau_platform_probe [nouveau]) from
[] (platform_drv_probe+0x48/0x98)
[8.650574] [] (platform_drv_probe) from []