drm/msm/adreno: Soften no-firmware message
Subsystems (4)
Rob Clark
maintainerPATCH 1/1 drm/msm/adreno: Soften no-firmware message
It isn't _necessarily_ an error, the driver will try again each time the device file is opened. But if you don't have GPU fw in the initrd, you end up seeing this error message at least once. Which seems to confuse users. So try to re-word it slightly.
--- drivers/gpu/drm/msm/adreno/adreno_gpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/msm/adreno/adreno_gpu.c +4 -4
@@ -558,7 +558,7 @@ adreno_request_fw(struct adreno_gpu *adreno_gpu, const char *fwname) adreno_gpu->fwloc =FW_LOCATION_NEW ; goto out; }else if (adreno_gpu->fwloc !=FW_LOCATION_UNKNOWN ) { -DRM_DEV_ERROR (drm->dev,"failed to load %s: %d\n" , +DRM_DEV_INFO (drm->dev,"failed to load %s: %d (will try again later)\n" , newname, ret); fw =ERR_PTR (ret); goto out;
@@ -578,7 +578,7 @@ adreno_request_fw(struct adreno_gpu *adreno_gpu, const char *fwname) adreno_gpu->fwloc =FW_LOCATION_LEGACY ; goto out; }else if (adreno_gpu->fwloc !=FW_LOCATION_UNKNOWN ) { -DRM_DEV_ERROR (drm->dev,"failed to load %s: %d\n" , +DRM_DEV_INFO (drm->dev,"failed to load %s: %d (will try again later)\n" , fwname, ret); fw =ERR_PTR (ret); goto out;
@@ -599,14 +599,14 @@ adreno_request_fw(struct adreno_gpu *adreno_gpu, const char *fwname) adreno_gpu->fwloc =FW_LOCATION_HELPER ; goto out; }else if (adreno_gpu->fwloc !=FW_LOCATION_UNKNOWN ) { -DRM_DEV_ERROR (drm->dev,"failed to load %s: %d\n" , +DRM_DEV_INFO (drm->dev,"failed to load %s: %d (will try again later)\n" , newname, ret); fw =ERR_PTR (ret); goto out; } } -DRM_DEV_ERROR (drm->dev,"failed to load %s\n" , fwname); +DRM_DEV_INFO (drm->dev,"failed to load %s (will try again later)\n" , fwname); fw =ERR_PTR (-ENOENT ); out:kfree (newname);
Signature · 1 line
2.56.0
Quoted 10 lines · Rob Clark
It isn't _necessarily_ an error, the driver will try again each time the device file is opened. But if you don't have GPU fw in the initrd, you end up seeing this error message at least once. Which seems to confuse users. So try to re-word it slightly.
Signed-off-by Rob Clark <[email protected]>--- drivers/gpu/drm/msm/adreno/adreno_gpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Signature · 2 lines
With best wishes Dmitry
Quoted 7 lines · Rob Clark
It isn't _necessarily_ an error, the driver will try again each time the device file is opened. But if you don't have GPU fw in the initrd, you end up seeing this error message at least once. Which seems to confuse users. So try to re-word it slightly.
Signed-off-by Rob Clark <[email protected]>---
Konrad
Hi,
Quoted 6 lines · Rob Clark
It isn't _necessarily_ an error, the driver will try again each time the device file is opened. But if you don't have GPU fw in the initrd, you end up seeing this error message at least once. Which seems to confuse users. So try to re-word it slightly.
Signed-off-by Rob Clark <[email protected]>
Thanks, patch looks good to me:
Regards,
Hans
Quoted 43 lines
--- drivers/gpu/drm/msm/adreno/adreno_gpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/msm/adreno/adreno_gpu.c +4
-4@@ -558,7 +558,7 @@ adreno_request_fw(struct adreno_gpu *adreno_gpu, const char *fwname) adreno_gpu->fwloc =FW_LOCATION_NEW ; goto out; }else if (adreno_gpu->fwloc !=FW_LOCATION_UNKNOWN ) { -DRM_DEV_ERROR (drm->dev,"failed to load %s: %d\n" , +DRM_DEV_INFO (drm->dev,"failed to load %s: %d (will try again later)\n" , newname, ret); fw =ERR_PTR (ret); goto out;@@ -578,7 +578,7 @@ adreno_request_fw(struct adreno_gpu *adreno_gpu, const char *fwname) adreno_gpu->fwloc =FW_LOCATION_LEGACY ; goto out; }else if (adreno_gpu->fwloc !=FW_LOCATION_UNKNOWN ) { -DRM_DEV_ERROR (drm->dev,"failed to load %s: %d\n" , +DRM_DEV_INFO (drm->dev,"failed to load %s: %d (will try again later)\n" , fwname, ret); fw =ERR_PTR (ret); goto out;@@ -599,14 +599,14 @@ adreno_request_fw(struct adreno_gpu *adreno_gpu, const char *fwname) adreno_gpu->fwloc =FW_LOCATION_HELPER ; goto out; }else if (adreno_gpu->fwloc !=FW_LOCATION_UNKNOWN ) { -DRM_DEV_ERROR (drm->dev,"failed to load %s: %d\n" , +DRM_DEV_INFO (drm->dev,"failed to load %s: %d (will try again later)\n" , newname, ret); fw =ERR_PTR (ret); goto out; } } -DRM_DEV_ERROR (drm->dev,"failed to load %s\n" , fwname); +DRM_DEV_INFO (drm->dev,"failed to load %s (will try again later)\n" , fwname); fw =ERR_PTR (-ENOENT ); out:kfree (newname);