Displaying 10 results from an estimated 10 matches for "nv50_mstm_register_connector".
2018 May 02
0
[PATCH] drm/nouveau: Fix deadlock in nv50_mstm_register_connector()
...1f8
load_module+0x20e5/0x2ac0
__do_sys_finit_module+0xb7/0xd0
do_syscall_64+0x60/0x1b0
entry_SYSCALL_64_after_hwframe+0x49/0xbe
-> #0 (&helper->lock){+.+.}:
__mutex_lock+0x70/0x9d0
drm_fb_helper_add_one_connector+0x2a/0x60 [drm_kms_helper]
nv50_mstm_register_connector+0x2c/0x50 [nouveau]
drm_dp_add_port+0x2f5/0x420 [drm_kms_helper]
drm_dp_send_link_address+0x155/0x1e0 [drm_kms_helper]
drm_dp_add_port+0x33f/0x420 [drm_kms_helper]
drm_dp_send_link_address+0x155/0x1e0 [drm_kms_helper]
drm_dp_check_and_send_link_address+0x87/0xd0 [...
2017 Nov 10
2
[PATCH] Accept 3d controllers and not only VGA controllers.
...m->fbcon)
+ {
+ NV_WARN(drm, "drm->fbcon of %s point to NULL. Will not destroy
connector\n",
+ connector->name);
+ return;
+ }
+
drm_connector_unregister(&mstc->connector);
drm_modeset_lock_all(drm->dev);
@@ -3229,6 +3236,12 @@ nv50_mstm_register_connector(struct drm_connector
*connector)
{
struct nouveau_drm *drm = nouveau_drm(connector->dev);
+ if (!drm->fbcon)
+ {
+ NV_WARN(drm, "drm->fbcon of %s point to NULL. Will not register
connector\n",
+ connector->name);
+ return;
+ }
drm...
2017 Dec 18
2
[PATCH] Accept 3d controllers and not only VGA controllers.
...gt;>>>>> + return;
>>>>>> + }
>>>>>> +
>>>>>> drm_connector_unregister(&mstc->connector);
>>>>>> drm_modeset_lock_all(drm->dev);
>>>>>> @@ -3229,6 +3236,12 @@ nv50_mstm_register_connector(struct
>> drm_connector
>>>>>> *connector)
>>>>>> {
>>>>>> struct nouveau_drm *drm = nouveau_drm(connector->dev);
>>>>>> + if (!drm->fbcon)
>>>>>> + {
>>>>>> +...
2017 Dec 03
2
[PATCH] Accept 3d controllers and not only VGA controllers.
...to NULL. Will not destroy
>> connector\n",
>> + connector->name);
>> + return;
>> + }
>> +
>> drm_connector_unregister(&mstc->connector);
>> drm_modeset_lock_all(drm->dev);
>> @@ -3229,6 +3236,12 @@ nv50_mstm_register_connector(struct drm_connector
>> *connector)
>> {
>> struct nouveau_drm *drm = nouveau_drm(connector->dev);
>> + if (!drm->fbcon)
>> + {
>> + NV_WARN(drm, "drm->fbcon of %s point to NULL. Will not register
>> connector\n",
&...
2017 Jul 13
11
[Bug 101778] New: Kernel Error on Lenovo P51 when setting graphics to hybrid (Nvidia Optimus with intel+nvidia)
...ffff9e947dc7c000
[ 28.616390] FS: 0000000000000000(0000) GS:ffff9e94af400000(0000)
knlGS:0000000000000000
[ 28.616412] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 28.616424] CR2: 0000000000000008 CR3: 0000000400209000 CR4:
00000000003406f0
[ 28.616438] Call Trace:
[ 28.616463] ? nv50_mstm_register_connector+0x2c/0x50 [nouveau]
[ 28.616477] ? drm_dp_add_port+0x32d/0x460 [drm_kms_helper]
[ 28.616501] ? g94_i2c_aux_fini.isra.0+0x27/0x40 [nouveau]
[ 28.616523] ? g94_i2c_aux_xfer+0x6a2/0x7d0 [nouveau]
[ 28.616544] ? nvkm_i2c_aux_release+0x42/0x50 [nouveau]
[ 28.616569] ? nouveau_connector_au...
2017 Dec 18
0
[PATCH] Accept 3d controllers and not only VGA controllers.
I've discussed it with Ben and we actually found a better solution.
There are just some calls inside those functions which should get NULL
checks, nv50_mstm_register_connector and nv50_mstm_destroy_connector.
Or at least something similiar so that the code doesn't depent on the
fbcon object being there.
On Mon, Dec 18, 2017 at 6:30 PM, Josef Larsson <josef.lar at gmail.com> wrote:
> Without a NULL pointer safe-guard patch, I get a kernel oops when I plug
&g...
2017 Dec 14
2
[PATCH] Accept 3d controllers and not only VGA controllers.
...>>> + connector->name);
>>>> + return;
>>>> + }
>>>> +
>>>> drm_connector_unregister(&mstc->connector);
>>>> drm_modeset_lock_all(drm->dev);
>>>> @@ -3229,6 +3236,12 @@ nv50_mstm_register_connector(struct drm_connector
>>>> *connector)
>>>> {
>>>> struct nouveau_drm *drm = nouveau_drm(connector->dev);
>>>> + if (!drm->fbcon)
>>>> + {
>>>> + NV_WARN(drm, "drm->fbcon of %s point to NU...
2017 Nov 11
0
[PATCH] Accept 3d controllers and not only VGA controllers.
...drm->fbcon of %s point to NULL. Will not destroy
> connector\n",
> + connector->name);
> + return;
> + }
> +
> drm_connector_unregister(&mstc->connector);
>
> drm_modeset_lock_all(drm->dev);
> @@ -3229,6 +3236,12 @@ nv50_mstm_register_connector(struct drm_connector
> *connector)
> {
> struct nouveau_drm *drm = nouveau_drm(connector->dev);
>
> + if (!drm->fbcon)
> + {
> + NV_WARN(drm, "drm->fbcon of %s point to NULL. Will not register
> connector\n",
> + conne...
2017 Dec 14
0
[PATCH] Accept 3d controllers and not only VGA controllers.
...> connector\n",
>>> + connector->name);
>>> + return;
>>> + }
>>> +
>>> drm_connector_unregister(&mstc->connector);
>>> drm_modeset_lock_all(drm->dev);
>>> @@ -3229,6 +3236,12 @@ nv50_mstm_register_connector(struct drm_connector
>>> *connector)
>>> {
>>> struct nouveau_drm *drm = nouveau_drm(connector->dev);
>>> + if (!drm->fbcon)
>>> + {
>>> + NV_WARN(drm, "drm->fbcon of %s point to NULL. Will not register
&g...
2017 Dec 14
0
[PATCH] Accept 3d controllers and not only VGA controllers.
...connector->name);
>>>>> + return;
>>>>> + }
>>>>> +
>>>>> drm_connector_unregister(&mstc->connector);
>>>>> drm_modeset_lock_all(drm->dev);
>>>>> @@ -3229,6 +3236,12 @@ nv50_mstm_register_connector(struct
>drm_connector
>>>>> *connector)
>>>>> {
>>>>> struct nouveau_drm *drm = nouveau_drm(connector->dev);
>>>>> + if (!drm->fbcon)
>>>>> + {
>>>>> + NV_WARN(drm, "drm...