search for: nv_warn

Displaying 20 results from an estimated 126 matches for "nv_warn".

Did you mean: nn_warn
2014 Apr 02
1
[PATCH 06/12] drm/nouveau/ibus: add GK20A support
...gt;> + while (--retry >= 0) { >>> + command = nv_rd32(priv, 0x12004c) & 0x3f; >>> + if (command == 0) >>> + break; >>> + } >>> + >>> + if (retry < 0) >>> + nv_warn(priv, "timeout waiting for ringmaster ack\n"); >>> +} >> >> Perhaps I'm being paranoid, but this loop now depends on the frequency >> of the various clocks involved and therefore might break at some point >> if the frequencies get sufficiently high. &g...
2014 Mar 24
2
[PATCH 06/12] drm/nouveau/ibus: add GK20A support
...nouveau_subdev *subdev) > +{ [...] > + /* Acknowledge interrupt */ > + nv_mask(priv, 0x12004c, 0x2, 0x2); > + > + while (--retry >= 0) { > + command = nv_rd32(priv, 0x12004c) & 0x3f; > + if (command == 0) > + break; > + } > + > + if (retry < 0) > + nv_warn(priv, "timeout waiting for ringmaster ack\n"); > +} Perhaps I'm being paranoid, but this loop now depends on the frequency of the various clocks involved and therefore might break at some point if the frequencies get sufficiently high. So a slightly safer implementation would use...
2017 Nov 10
2
[PATCH] Accept 3d controllers and not only VGA controllers.
...isplay.c +++ b/drivers/gpu/drm/nouveau/nv50_display.c @@ -3214,6 +3214,13 @@ nv50_mstm_destroy_connector(struct drm_dp_mst_topology_mgr *mgr,      struct nouveau_drm *drm = nouveau_drm(connector->dev);      struct nv50_mstc *mstc = nv50_mstc(connector);   +    if (!drm->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...
2012 Nov 06
1
[PATCH] nouveau: Fix crash after D3
....c +++ b/drivers/gpu/drm/nouveau/core/core/object.c @@ -354,12 +354,16 @@ static int nouveau_object_decf(struct nouveau_object *object) { int ret; + struct nouveau_ofuncs *pfuncs; nv_trace(object, "stopping...\n"); - ret = nv_ofuncs(object)->fini(object, false); - if (ret) - nv_warn(object, "failed fini, %d\n", ret); + pfuncs = nv_ofuncs(object); + if (pfuncs->fini) { + ret = nv_ofuncs(object)->fini(object, false); + if (ret) + nv_warn(object, "failed fini, %d\n", ret); + } if (object->engine) { mutex_lock(&nv_subdev(object->engin...
2017 Dec 03
2
[PATCH] Accept 3d controllers and not only VGA controllers.
...-3214,6 +3214,13 @@ nv50_mstm_destroy_connector(struct >> drm_dp_mst_topology_mgr *mgr, >>       struct nouveau_drm *drm = nouveau_drm(connector->dev); >>       struct nv50_mstc *mstc = nv50_mstc(connector); >>   +    if (!drm->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->...
2018 May 21
1
[PATCH 21/33] drm/nouveau: use match_string() helper
...lt; num_tv_norms; i++) { - if (!strcmp(nv17_tv_norm_names[i], nouveau_tv_norm)) { - tv_enc->tv_norm = i; - break; - } - } - - if (i == num_tv_norms) + i = match_string(nv17_tv_norm_names, + num_tv_norms, nouveau_tv_norm); + if (i >= 0) + tv_enc->tv_norm = i; + else NV_WARN(drm, "Invalid TV norm setting \"%s\"\n", nouveau_tv_norm); } -- 1.7.12.4
2017 Dec 14
2
[PATCH] Accept 3d controllers and not only VGA controllers.
...ruct >>>> drm_dp_mst_topology_mgr *mgr, >>>> struct nouveau_drm *drm = nouveau_drm(connector->dev); >>>> struct nv50_mstc *mstc = nv50_mstc(connector); >>>> + if (!drm->fbcon) >>>> + { >>>> + NV_WARN(drm, "drm->fbcon of %s point to NULL. Will not destroy >>>> connector\n", >>>> + connector->name); >>>> + return; >>>> + } >>>> + >>>> drm_connector_unregister(&mstc->connector...
2017 Dec 18
2
[PATCH] Accept 3d controllers and not only VGA controllers.
...y_mgr *mgr, >>>>>> struct nouveau_drm *drm = nouveau_drm(connector->dev); >>>>>> struct nv50_mstc *mstc = nv50_mstc(connector); >>>>>> + if (!drm->fbcon) >>>>>> + { >>>>>> + NV_WARN(drm, "drm->fbcon of %s point to NULL. Will not >> destroy >>>>>> connector\n", >>>>>> + connector->name); >>>>>> + return; >>>>>> + } >>>>>> + >>>>>&gt...
2013 Jun 03
4
[PATCH] nouveau: Load firmware for BSP/VP engines on NV84-NV96, NVA0
...ject *parent, struct nouveau_object *engine, nv_subdev(priv)->unit = 0x04008000; nv_engine(priv)->cclass = &nv84_bsp_cclass; nv_engine(priv)->sclass = nv84_bsp_sclass; + + ret = request_firmware(&fw, "nouveau/nv84_bsp", &device->pdev->dev); + if (ret) { + nv_warn(priv, "Firmware for NV84 BSP unavailable.\n"); + return 0; + } + + nv_subdev(priv)->intr = nv84_bsp_intr; + + priv->fw = kmemdup(fw->data, fw->size, GFP_KERNEL); + priv->fw_size = fw->size; + release_firmware(fw); + if (!priv->fw) + return -ENOMEM; + return 0; }...
2017 Nov 11
0
[PATCH] Accept 3d controllers and not only VGA controllers.
..._display.c > @@ -3214,6 +3214,13 @@ nv50_mstm_destroy_connector(struct > drm_dp_mst_topology_mgr *mgr, >      struct nouveau_drm *drm = nouveau_drm(connector->dev); >      struct nv50_mstc *mstc = nv50_mstc(connector); > > +    if (!drm->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...
2018 May 21
0
[PATCH 21/33] drm/nouveau: use match_string() helper
...s, > + num_tv_norms, nouveau_tv_norm); Same comment for logical split, 2nd parameter looks better on the previous line. > + if (i >= 0) > + tv_enc->tv_norm = i; > + else > NV_WARN(drm, "Invalid TV norm setting \"%s\"\n", > nouveau_tv_norm); I would rather go with if (i < 0) NV_WARN else ... > } -- With Best Regards, Andy Shevchenko
2019 Dec 30
1
[PATCH -next] drm/nouveau/nv04: Use match_string() helper to simplify the code
...nouveau_tv_norm) { - for (i = 0; i < num_tv_norms; i++) { - if (!strcmp(nv17_tv_norm_names[i], nouveau_tv_norm)) { - tv_enc->tv_norm = i; - break; - } - } - - if (i == num_tv_norms) + i = match_string(nv17_tv_norm_names, num_tv_norms, + nouveau_tv_norm); + if (i < 0) NV_WARN(drm, "Invalid TV norm setting \"%s\"\n", nouveau_tv_norm); + else + tv_enc->tv_norm = i; } drm_mode_create_tv_properties(dev, num_tv_norms, nv17_tv_norm_names); -- 2.7.4
2014 Feb 14
0
[PATCH v2] drm/nouveau: use nv_debug for NV_DEBUG, make DRM a separate subflag
....h b/drivers/gpu/drm/nouveau/nouveau_drm.h index 23ca7a5..7efbafa 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.h +++ b/drivers/gpu/drm/nouveau/nouveau_drm.h @@ -161,10 +161,7 @@ int nouveau_pmops_resume(struct device *); #define NV_ERROR(cli, fmt, args...) nv_error((cli), fmt, ##args) #define NV_WARN(cli, fmt, args...) nv_warn((cli), fmt, ##args) #define NV_INFO(cli, fmt, args...) nv_info((cli), fmt, ##args) -#define NV_DEBUG(cli, fmt, args...) do { \ - if (drm_debug & DRM_UT_DRIVER) \ - nv_info((cli), fmt, ##ar...
2014 Apr 02
0
[PATCH 06/12] drm/nouveau/ibus: add GK20A support
...04c, 0x2, 0x2); >> + >> + while (--retry >= 0) { >> + command = nv_rd32(priv, 0x12004c) & 0x3f; >> + if (command == 0) >> + break; >> + } >> + >> + if (retry < 0) >> + nv_warn(priv, "timeout waiting for ringmaster ack\n"); >> +} > > Perhaps I'm being paranoid, but this loop now depends on the frequency > of the various clocks involved and therefore might break at some point > if the frequencies get sufficiently high. > > So a slightl...
2018 May 31
1
[PATCH v2 11/21] drm/nouveau: use match_string() helper
...nouveau_tv_norm) { - for (i = 0; i < num_tv_norms; i++) { - if (!strcmp(nv17_tv_norm_names[i], nouveau_tv_norm)) { - tv_enc->tv_norm = i; - break; - } - } - - if (i == num_tv_norms) + i = match_string(nv17_tv_norm_names, + num_tv_norms, nouveau_tv_norm); + if (i < 0) NV_WARN(drm, "Invalid TV norm setting \"%s\"\n", nouveau_tv_norm); + else + tv_enc->tv_norm = i; } drm_mode_create_tv_properties(dev, num_tv_norms, nv17_tv_norm_names); -- 1.7.12.4
2017 Dec 14
0
[PATCH] Accept 3d controllers and not only VGA controllers.
...stm_destroy_connector(struct >>> drm_dp_mst_topology_mgr *mgr, >>>       struct nouveau_drm *drm = nouveau_drm(connector->dev); >>>       struct nv50_mstc *mstc = nv50_mstc(connector); >>>   +    if (!drm->fbcon) >>> +    { >>> +        NV_WARN(drm, "drm->fbcon of %s point to NULL. Will not destroy >>> connector\n", >>> +            connector->name); >>> +        return; >>> +    } >>> + >>>       drm_connector_unregister(&mstc->connector); >>>        ...
2014 Feb 13
1
[PATCH 1/2] drm/nouveau: make hdmi device finding failure prints debug level
The hdmi device is required for runtime pm. However it is not available on many esp older devices, which were all seeing these error messages. Take this opportunity to also convert to nv_debug instead of the DRM_* messages, like the rest of nouveau does. Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu> --- drivers/gpu/drm/nouveau/nouveau_drm.c | 11 +++++------ 1 file changed, 5
2020 Jul 29
9
[PATCH 0/9] drm/nouveau/kms: A bunch of runtime_pm fixes
While working on refactoring how we handle connector hotplugging/probing + a bunch of misc DP stuff, I found a bunch of runtime_pm errors that were mostly introduced by me at one point. Oops. A lot of these aren't triggered consistently on a lot of systems, so it's not terribly surprising these got swept under the rug. Lyude Paul (9): drm/nouveau/kms: Handle -EINPROGRESS in
2019 Sep 10
1
[Intel-gfx] [PATCH v6 08/17] drm/ttm: use gem vma_node
...ags) { struct nouveau_drm *drm = cli->drm; struct nouveau_bo *nvbo; @@ -195,8 +195,8 @@ nouveau_bo_alloc(struct nouveau_cli *cli, u64 size, u32 flags, u32 tile_mode, struct nvif_vmm *vmm = cli->svm.cli ? &cli->svm.vmm : &cli->vmm.vmm; int i, pi = -1; - if (!size) { - NV_WARN(drm, "skipped size %016llx\n", size); + if (!*size) { + NV_WARN(drm, "skipped size %016llx\n", *size); return ERR_PTR(-EINVAL); } @@ -266,7 +266,7 @@ nouveau_bo_alloc(struct nouveau_cli *cli, u64 size, u32 flags, u32 tile_mode, pi = i; /* Stop once the buffer is...
2018 Sep 07
1
[PATCH v4 2/6] drm/nouveau: Add NV_PRINTK_ONCE and variants
...; dev_##l(_cli->drm->dev->dev, "%s: "f, _cli->name, ##a); \ > } while(0) > + > #define NV_FATAL(drm,f,a...) NV_PRINTK(crit, &(drm)->client, f, ##a) > #define NV_ERROR(drm,f,a...) NV_PRINTK(err, &(drm)->client, f, ##a) > #define NV_WARN(drm,f,a...) NV_PRINTK(warn, &(drm)->client, f, ##a) > #define NV_INFO(drm,f,a...) NV_PRINTK(info, &(drm)->client, f, ##a) > + > #define NV_DEBUG(drm,f,a...) do { \ > if (unlikely(drm_debug & DRM_UT_DRIVER))...