Is: Regression introduced by 0108bc808107b97e101b15af9705729626be6447 - drm/nouveau: do not allow negative sizes for now (Was:Re: nouveau crash with 3.11-rc2)

2013-07-30 Thread Konrad Rzeszutek Wilk
On Fri, Jul 26, 2013 at 04:37:32PM -0400, Ilia Mirkin wrote:
> On Fri, Jul 26, 2013 at 2:28 PM, konrad wilk  
> wrote:
> > I just saw this on a box of mine (rc1 worked) I hadn't done yet a bisection.
> > Any suggestions?
> >
> > ring 0 polarity 1
> > [6.023776] Already setup the GSI :22
> > ^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G[6.036680] nouveau  [
> > DEVICE][:00:0d.0] BOOT0  : 0x04c000a2
> > [6.036740] nouveau  [  DEVICE][:00:0d.0] Chipset: C61 (NV4C)
> > [6.036792] nouveau  [  DEVICE][:00:0d.0] Family : NV40
> > [6.038554] nouveau  [   VBIOS][:00:0d.0] checking PRAMIN for
> > image...
> > [6.062295] ata1: SATA link down (SStatus 0 SControl 300)
> > [6.07] nouveau  [   VBIOS][:00:0d.0] ... appears to be valid
> > [6.077829] nouveau  [   VBIOS][:00:0d.0] using image from PRAMIN
> > [6.078024] nouveau  [   VBIOS][:00:0d.0] BIT signature found
> > [6.078076] nouveau  [   VBIOS][:00:0d.0] version 05.61.32.22.01
> > [6.078666] skge :01:08.0 eth2: addr 00:0a:5e:65:74:93
> > [6.086529] nouveau  [ PFB][:00:0d.0] RAM type: unknown
> > [6.086594] nouveau  [ PFB][:00:0d.0] RAM size: 128 MiB
> > [6.086648] nouveau  [ PFB][:00:0d.0]ZCOMP: 0 tags
> > [6.115583] nouveau  [  PTHERM][:00:0d.0] FAN control: none /
> > external
> > [6.115645] nouveau  [  PTHERM][:00:0d.0] fan management: disabled
> > [6.115698] nouveau  [  PTHERM][:00:0d.0] internal sensor: no
> > [6.140702] [TTM] Zone  kernel: Available graphics memory: 461396 kiB
> > [6.140763] [TTM] Initializing pool allocator
> > [6.140852] [TTM] Initializing DMA pool allocator
> > [6.141034] Failed to add WC MTRR for
> > [e000-efff]; performance may suffer.
> > [6.141095] nouveau  [ DRM] VRAM: 125 MiB
> > [6.141189] nouveau  [ DRM] GART: 512 MiB
> > [6.141242] nouveau  [ DRM] TMDS table version 1.1
> > [6.141293] nouveau  [ DRM] DCB version 3.0
> > [6.141342] nouveau  [ DRM] DCB outp 00: 01000310 0023
> > [6.141421] nouveau  [ DRM] DCB outp 01: 00110204 97e5
> > [6.141471] nouveau  [ DRM] DCB conn 00: 
> > [6.141839] nouveau  [ DRM] Saving VGA fonts
> > [6.180531] BUG: unable to handle kernel NULL pointer dereference at
> > (null)
> > [6.180657] IP: [] nouveau_bo_new+0x36/0x330 [nouveau]
> > [6.180775] PGD 29449067 PUD 28aad067 PMD 0
> > [6.180907] Oops:  [#1] SMP
> > [6.181013] Modules linked in: nouveau(+) skge e1000 fbcon tileblit font
> > bitblit ttm softcursor ata_generic sata_nv drm_kms_helper mxm_wmi video wmi
> > libata scsi_mod mperf xen_blkfront xen_netfront fb_sys_fops sysimgblt
> > sysfillrect syscopyarea xenfs xen_privcmd
> > [6.181953] CPU: 0 PID: 428 Comm: kworker/0:1 Not tainted
> > 3.11.0-rc2upstream-00185-g07bc9dc #1
> > [6.182016] Hardware name: BIOSTAR Group N61PB-M2S/N61PB-M2S, BIOS 6.00
> > PG 09/03/2009
> > [6.182084] Workqueue: events work_for_cpu_fn
> > [6.182167] task: 880037e69000 ti: 88003791a000 task.ti:
> > 88003791a000
> > [6.182228] RIP: e030:[] []
> > nouveau_bo_new+0x36/0x330 [nouveau]
> > [6.182344] RSP: e02b:88003791ba88  EFLAGS: 00010287
> > [6.182396] RAX:  RBX: 880028f7f000 RCX:
> > 0004
> > [6.182457] RDX: 0100 RSI: 4000 RDI:
> > 88002b576800
> > [6.182511] RBP: 88003791bb08 R08:  R09:
> > 
> > [6.182565] R10: 0004 R11: 0100 R12:
> > 4000
> > [6.182619] R13: 88002b1e3000 R14: a01fe740 R15:
> > 
> > [6.182679] FS:  7f3da25417a0() GS:88003de0()
> > knlGS:
> > [6.182748] CS:  e033 DS:  ES:  CR0: 8005003b
> > [6.182798] CR2:  CR3: 27416000 CR4:
> > 0660
> > [6.182851] Stack:
> > [6.182896]  88003791bae8 811aa1f9 88002b576800
> > 880027aad240
> > [6.183108]  880080d0 8142a566 880028f7f000
> > 880028f7f000
> > [6.183295]  88002b576800  a01fe740
> > 880028f7f000
> > [6.183488] Call Trace:
> > [6.183544]  [] ? __kmalloc+0x259/0x2a0
> > [6.183603]  [] ?
> > drm_mode_crtc_set_gamma_size+0x26/0x60
> > [6.183680]  [] nv04_crtc_create+0xdf/0x160 [nouveau]
> > [6.183757]  [] nv04_display_create+0x11a/0x400
> > [nouveau]
> > [6.183813]  [] ? __cancel_work_timer+0x7e/0x110
> > [6.183886]  [] nouveau_display_create+0x598/0x5a0
> > [nouveau]
> > [6.183981]  [] nouveau_drm_load+0x25c/0x670 [nouveau]
> > [6.184040]  [] ? device_register+0x19/0x20
> > [6.184098]  [] ? drm_get_minor+0x1fc/0x280
> > [6.187041]  [] drm_get_pci_dev+0x178/0x2a0
> > [6.187096]  [] ? pcibios_set_master+0x83/0xb0
> > [

Is: Regression introduced by 0108bc808107b97e101b15af9705729626be6447 - drm/nouveau: do not allow negative sizes for now (Was:Re: nouveau crash with 3.11-rc2)

2013-07-30 Thread Konrad Rzeszutek Wilk
On Fri, Jul 26, 2013 at 04:37:32PM -0400, Ilia Mirkin wrote:
 On Fri, Jul 26, 2013 at 2:28 PM, konrad wilk konrad.w...@oracle.com wrote:
  I just saw this on a box of mine (rc1 worked) I hadn't done yet a bisection.
  Any suggestions?
 
  ring 0 polarity 1
  [6.023776] Already setup the GSI :22
  ^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G^G[6.036680] nouveau  [
  DEVICE][:00:0d.0] BOOT0  : 0x04c000a2
  [6.036740] nouveau  [  DEVICE][:00:0d.0] Chipset: C61 (NV4C)
  [6.036792] nouveau  [  DEVICE][:00:0d.0] Family : NV40
  [6.038554] nouveau  [   VBIOS][:00:0d.0] checking PRAMIN for
  image...
  [6.062295] ata1: SATA link down (SStatus 0 SControl 300)
  [6.07] nouveau  [   VBIOS][:00:0d.0] ... appears to be valid
  [6.077829] nouveau  [   VBIOS][:00:0d.0] using image from PRAMIN
  [6.078024] nouveau  [   VBIOS][:00:0d.0] BIT signature found
  [6.078076] nouveau  [   VBIOS][:00:0d.0] version 05.61.32.22.01
  [6.078666] skge :01:08.0 eth2: addr 00:0a:5e:65:74:93
  [6.086529] nouveau  [ PFB][:00:0d.0] RAM type: unknown
  [6.086594] nouveau  [ PFB][:00:0d.0] RAM size: 128 MiB
  [6.086648] nouveau  [ PFB][:00:0d.0]ZCOMP: 0 tags
  [6.115583] nouveau  [  PTHERM][:00:0d.0] FAN control: none /
  external
  [6.115645] nouveau  [  PTHERM][:00:0d.0] fan management: disabled
  [6.115698] nouveau  [  PTHERM][:00:0d.0] internal sensor: no
  [6.140702] [TTM] Zone  kernel: Available graphics memory: 461396 kiB
  [6.140763] [TTM] Initializing pool allocator
  [6.140852] [TTM] Initializing DMA pool allocator
  [6.141034] Failed to add WC MTRR for
  [e000-efff]; performance may suffer.
  [6.141095] nouveau  [ DRM] VRAM: 125 MiB
  [6.141189] nouveau  [ DRM] GART: 512 MiB
  [6.141242] nouveau  [ DRM] TMDS table version 1.1
  [6.141293] nouveau  [ DRM] DCB version 3.0
  [6.141342] nouveau  [ DRM] DCB outp 00: 01000310 0023
  [6.141421] nouveau  [ DRM] DCB outp 01: 00110204 97e5
  [6.141471] nouveau  [ DRM] DCB conn 00: 
  [6.141839] nouveau  [ DRM] Saving VGA fonts
  [6.180531] BUG: unable to handle kernel NULL pointer dereference at
  (null)
  [6.180657] IP: [a019b316] nouveau_bo_new+0x36/0x330 [nouveau]
  [6.180775] PGD 29449067 PUD 28aad067 PMD 0
  [6.180907] Oops:  [#1] SMP
  [6.181013] Modules linked in: nouveau(+) skge e1000 fbcon tileblit font
  bitblit ttm softcursor ata_generic sata_nv drm_kms_helper mxm_wmi video wmi
  libata scsi_mod mperf xen_blkfront xen_netfront fb_sys_fops sysimgblt
  sysfillrect syscopyarea xenfs xen_privcmd
  [6.181953] CPU: 0 PID: 428 Comm: kworker/0:1 Not tainted
  3.11.0-rc2upstream-00185-g07bc9dc #1
  [6.182016] Hardware name: BIOSTAR Group N61PB-M2S/N61PB-M2S, BIOS 6.00
  PG 09/03/2009
  [6.182084] Workqueue: events work_for_cpu_fn
  [6.182167] task: 880037e69000 ti: 88003791a000 task.ti:
  88003791a000
  [6.182228] RIP: e030:[a019b316] [a019b316]
  nouveau_bo_new+0x36/0x330 [nouveau]
  [6.182344] RSP: e02b:88003791ba88  EFLAGS: 00010287
  [6.182396] RAX:  RBX: 880028f7f000 RCX:
  0004
  [6.182457] RDX: 0100 RSI: 4000 RDI:
  88002b576800
  [6.182511] RBP: 88003791bb08 R08:  R09:
  
  [6.182565] R10: 0004 R11: 0100 R12:
  4000
  [6.182619] R13: 88002b1e3000 R14: a01fe740 R15:
  
  [6.182679] FS:  7f3da25417a0() GS:88003de0()
  knlGS:
  [6.182748] CS:  e033 DS:  ES:  CR0: 8005003b
  [6.182798] CR2:  CR3: 27416000 CR4:
  0660
  [6.182851] Stack:
  [6.182896]  88003791bae8 811aa1f9 88002b576800
  880027aad240
  [6.183108]  880080d0 8142a566 880028f7f000
  880028f7f000
  [6.183295]  88002b576800  a01fe740
  880028f7f000
  [6.183488] Call Trace:
  [6.183544]  [811aa1f9] ? __kmalloc+0x259/0x2a0
  [6.183603]  [8142a566] ?
  drm_mode_crtc_set_gamma_size+0x26/0x60
  [6.183680]  [a01ac86f] nv04_crtc_create+0xdf/0x160 [nouveau]
  [6.183757]  [a01b289a] nv04_display_create+0x11a/0x400
  [nouveau]
  [6.183813]  [810b817e] ? __cancel_work_timer+0x7e/0x110
  [6.183886]  [a01a79a8] nouveau_display_create+0x598/0x5a0
  [nouveau]
  [6.183981]  [a019633c] nouveau_drm_load+0x25c/0x670 [nouveau]
  [6.184040]  [8143a479] ? device_register+0x19/0x20
  [6.184098]  [8142018c] ? drm_get_minor+0x1fc/0x280
  [6.187041]  [814222a8] drm_get_pci_dev+0x178/0x2a0
  [6.187096]