Re: [linux.git drm/ttm]: NULL pointer dereference upon driver probe

2020-08-11 Thread Dave Airlie
> Well how about completely removing the concept of a global TT from TTM? Yes makes sense to me to try and rip out the global TT from the core and turn it into a driver optional feature is possible. Dave. > > What TTM should do is managing domains and help with the transitions > between those

Re: [linux.git drm/ttm]: NULL pointer dereference upon driver probe

2020-08-11 Thread Christian König
Am 10.08.20 um 22:05 schrieb Dave Airlie: On Tue, 11 Aug 2020 at 05:24, Christian König wrote: Am 10.08.20 um 20:51 schrieb Dave Airlie: On Mon, 10 Aug 2020 at 22:20, Christian König wrote: Am 07.08.20 um 09:02 schrieb Christian König: Am 06.08.20 um 20:50 schrieb Roland Scheidegger: Am

Re: [linux.git drm/ttm]: NULL pointer dereference upon driver probe

2020-08-10 Thread Dave Airlie
On Tue, 11 Aug 2020 at 05:24, Christian König wrote: > > Am 10.08.20 um 20:51 schrieb Dave Airlie: > > On Mon, 10 Aug 2020 at 22:20, Christian König > > wrote: > >> Am 07.08.20 um 09:02 schrieb Christian König: > >>> Am 06.08.20 um 20:50 schrieb Roland Scheidegger: > Am 06.08.20 um 17:28

Re: [linux.git drm/ttm]: NULL pointer dereference upon driver probe

2020-08-10 Thread Christian König
Am 10.08.20 um 20:51 schrieb Dave Airlie: On Mon, 10 Aug 2020 at 22:20, Christian König wrote: Am 07.08.20 um 09:02 schrieb Christian König: Am 06.08.20 um 20:50 schrieb Roland Scheidegger: Am 06.08.20 um 17:28 schrieb Christian König: My best guess is that you are facing two separate bugs

Re: [linux.git drm/ttm]: NULL pointer dereference upon driver probe

2020-08-10 Thread Dave Airlie
On Mon, 10 Aug 2020 at 22:20, Christian König wrote: > > Am 07.08.20 um 09:02 schrieb Christian König: > > Am 06.08.20 um 20:50 schrieb Roland Scheidegger: > >> Am 06.08.20 um 17:28 schrieb Christian König: > >>> My best guess is that you are facing two separate bugs here. > >>> > >>> Crash #1 is

Re: [linux.git drm/ttm]: NULL pointer dereference upon driver probe

2020-08-10 Thread Christian König
Am 07.08.20 um 09:02 schrieb Christian König: Am 06.08.20 um 20:50 schrieb Roland Scheidegger: Am 06.08.20 um 17:28 schrieb Christian König: My best guess is that you are facing two separate bugs here. Crash #1 is somehow related to CRTCs and might even be cause by the atomic-helper change

[linux.git drm/ttm]: NULL pointer dereference upon driver probe

2020-08-07 Thread Tetsuo Handa
Hello. Commit 2ddef17678bc2ea1 ("drm/ttm: make TT creation purely optional v3") broke vmwgfx . At first I suspected it is "drm/atomic-helper: reset vblank on crtc reset" or around that, but bisection said it is not. I have no idea what is going on. Please have a look. --- Crash pattern 1 ---

Re: [linux.git drm/ttm]: NULL pointer dereference upon driver probe

2020-08-07 Thread Tetsuo Handa
On 2020/08/07 0:39, Daniel Vetter wrote: > On Thu, Aug 6, 2020 at 5:28 PM Christian König > wrote: >> >> My best guess is that you are facing two separate bugs here. >> >> Crash #1 is somehow related to CRTCs and might even be cause by the >> atomic-helper change you noted below. > > Yeah, and

Re: [linux.git drm/ttm]: NULL pointer dereference upon driver probe

2020-08-07 Thread Christian König
Am 06.08.20 um 20:50 schrieb Roland Scheidegger: Am 06.08.20 um 17:28 schrieb Christian König: My best guess is that you are facing two separate bugs here. Crash #1 is somehow related to CRTCs and might even be cause by the atomic-helper change you noted below. Crash #2 is caused because

Re: [linux.git drm/ttm]: NULL pointer dereference upon driver probe

2020-08-07 Thread Daniel Vetter
On Fri, Aug 7, 2020 at 12:56 AM Tetsuo Handa wrote: > > On 2020/08/07 0:39, Daniel Vetter wrote: > > On Thu, Aug 6, 2020 at 5:28 PM Christian König > > wrote: > >> > >> My best guess is that you are facing two separate bugs here. > >> > >> Crash #1 is somehow related to CRTCs and might even be

Re: [linux.git drm/ttm]: NULL pointer dereference upon driver probe

2020-08-06 Thread Roland Scheidegger
Am 06.08.20 um 17:28 schrieb Christian König: > My best guess is that you are facing two separate bugs here. > > Crash #1 is somehow related to CRTCs and might even be cause by the > atomic-helper change you noted below. > > Crash #2 is caused because vmw_bo_create_and_populate() tries to >

Re: [linux.git drm/ttm]: NULL pointer dereference upon driver probe

2020-08-06 Thread Daniel Vetter
On Thu, Aug 6, 2020 at 5:28 PM Christian König wrote: > > My best guess is that you are facing two separate bugs here. > > Crash #1 is somehow related to CRTCs and might even be cause by the > atomic-helper change you noted below. Yeah, and I think I know what's going on. Patch incoming. When

Re: [linux.git drm/ttm]: NULL pointer dereference upon driver probe

2020-08-06 Thread Christian König
My best guess is that you are facing two separate bugs here. Crash #1 is somehow related to CRTCs and might even be cause by the atomic-helper change you noted below. Crash #2 is caused because vmw_bo_create_and_populate() tries to manually populate a BO object instead of relying on TTM to