drm/msm: fix race in Adreno header generation
PATCH 1/1 drm/msm: fix race in Adreno header generation
Builds can compile msm-y objects (e.g. msm_gpu_devfreq.o) before adreno_common.xml.h is generated in trees that generate Adreno headers at build time. Make msm-y depend on the generated headers, removing the race.
--- drivers/gpu/drm/msm/Makefile | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/msm/Makefile +1 -0
@@ -221,6 +221,7 @@ DISPLAY_HEADERS = \ generated/sfpb.xml.h $(addprefix $(obj)/,$(adreno-y)): $(addprefix $(obj)/,$(ADRENO_HEADERS)) +$(addprefix $(obj)/,$(msm-y)): $(addprefix $(obj)/,$(ADRENO_HEADERS)) $(addprefix $(obj)/,$(msm-display-y)): $(addprefix $(obj)/,$(DISPLAY_HEADERS)) targets += $(ADRENO_HEADERS) $(DISPLAY_HEADERS)
Signature · 1 line
2.50.1
Quoted 7 lines · Alex Robinson
Builds can compile msm-y objects (e.g. msm_gpu_devfreq.o) before
adreno_common.xml.his generated in trees that generate Adreno headers at build time. Make msm-y depend on the generated headers, removing the race.Signed-off-by Alex Robinson <[email protected]>
looks like the issue is introduced by:
https://patchwork.freedesktop.org/patch/664829/?series=151864&rev=1
BR,
-R
Quoted 20 lines
--- drivers/gpu/drm/msm/Makefile | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/msm/Makefile +1
-1@@ -221,6 +221,7 @@ DISPLAY_HEADERS = \ generated/sfpb.xml.h $(addprefix $(obj)/,$(adreno-y)): $(addprefix $(obj)/,$(ADRENO_HEADERS)) +$(addprefix $(obj)/,$(msm-y)): $(addprefix $(obj)/,$(ADRENO_HEADERS)) $(addprefix $(obj)/,$(msm-display-y)): $(addprefix $(obj)/,$(DISPLAY_HEADERS)) targets += $(ADRENO_HEADERS) $(DISPLAY_HEADERS) --2.50.1
Quoted 15 lines · Alex Robinson
Builds can compile msm-y objects (e.g. msm_gpu_devfreq.o) before
adreno_common.xml.his generated in trees that generate Adreno headers at build time. Make msm-y depend on the generated headers, removing the race.Signed-off-by Alex Robinson <[email protected]>--- drivers/gpu/drm/msm/Makefile | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/msm/Makefile +0
-0
drivers/gpu/drm/msm/Makefile DISPLAY_HEADERS = \ · line 224
Quoted 4 lines
drivers/gpu/drm/msm/Makefile +1
-0@@ -221,6 +221,7 @@ DISPLAY_HEADERS = \ generated/sfpb.xml.h $(addprefix $(obj)/,$(adreno-y)): $(addprefix $(obj)/,$(ADRENO_HEADERS)) +$(addprefix $(obj)/,$(msm-y)): $(addprefix $(obj)/,$(ADRENO_HEADERS))
I'd say, no. The idea was that msm-y should not depend on ADRENO_HEADERS. If there is any dependency, please move it to adreno-y.
Quoted 7 lines
drivers/gpu/drm/msm/Makefile +0
-0$(addprefix $(obj)/,$(msm-display-y)): $(addprefix $(obj)/,$(DISPLAY_HEADERS)) targets += $(ADRENO_HEADERS) $(DISPLAY_HEADERS)Signature · 1 line
2.50.1
Signature · 2 lines
With best wishes Dmitry
Quoted 19 lines · Dmitry Baryshkov
Quoted 17 lines · Alex Robinson
Builds can compile msm-y objects (e.g. msm_gpu_devfreq.o) before
adreno_common.xml.his generated in trees that generate Adreno headers at build time. Make msm-y depend on the generated headers, removing the race.Signed-off-by Alex Robinson <[email protected]>--- drivers/gpu/drm/msm/Makefile | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/msm/Makefile +0
-0@@ -221,6 +221,7 @@ DISPLAY_HEADERS = \ generated/sfpb.xml.h
Quoted 5 lines
drivers/gpu/drm/msm/Makefile DISPLAY_HEADERS = \ · line 224
Quoted 2 lines
drivers/gpu/drm/msm/Makefile +1
-0$(addprefix $(obj)/,$(adreno-y)): $(addprefix $(obj)/,$(ADRENO_HEADERS)) +$(addprefix $(obj)/,$(msm-y)): $(addprefix $(obj)/,$(ADRENO_HEADERS))I'd say, no. The idea was that msm-y should not depend on
ADRENO_HEADERS. If there is any dependency, please move it to adreno-y.
probably we should s/adreno/gpu/ and move all the msm_gpu*.* there..
In the mean time, I think we were going to drop this patch from the IFPC series
BR,
-R
Quoted 11 lines
Quoted 7 lines
drivers/gpu/drm/msm/Makefile +0
-1$(addprefix $(obj)/,$(msm-display-y)): $(addprefix $(obj)/,$(DISPLAY_HEADERS)) targets += $(ADRENO_HEADERS) $(DISPLAY_HEADERS) --2.50.1
--
With best wishes
Dmitry
Quoted 27 lines · Rob Clark
Quoted 19 lines · Dmitry Baryshkov
Quoted 17 lines · Alex Robinson
Builds can compile msm-y objects (e.g. msm_gpu_devfreq.o) before
adreno_common.xml.his generated in trees that generate Adreno headers at build time. Make msm-y depend on the generated headers, removing the race.Signed-off-by Alex Robinson <[email protected]>--- drivers/gpu/drm/msm/Makefile | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/msm/Makefile +0
-0@@ -221,6 +221,7 @@ DISPLAY_HEADERS = \ generated/sfpb.xml.hQuoted 5 lines
drivers/gpu/drm/msm/Makefile DISPLAY_HEADERS = \ · line 224
Quoted 2 lines
drivers/gpu/drm/msm/Makefile +1
-0$(addprefix $(obj)/,$(adreno-y)): $(addprefix $(obj)/,$(ADRENO_HEADERS)) +$(addprefix $(obj)/,$(msm-y)): $(addprefix $(obj)/,$(ADRENO_HEADERS))I'd say, no. The idea was that msm-y should not depend on
ADRENO_HEADERS. If there is any dependency, please move it to adreno-y.
Quoted 3 lines
probably we should s/adreno/gpu/ and move all the msm_gpu*.* there..
In the mean time, I think we were going to drop this patch from the IFPC series
Yeah. I will drop that patch.
Btw, was my usage of adreno_gpu symbol in msm_gpu* files incorrect?
-Akhil
Quoted 15 lines
BR,
-RQuoted 11 lines
Quoted 7 lines
drivers/gpu/drm/msm/Makefile +0
-1$(addprefix $(obj)/,$(msm-display-y)): $(addprefix $(obj)/,$(DISPLAY_HEADERS)) targets += $(ADRENO_HEADERS) $(DISPLAY_HEADERS) --2.50.1
--
With best wishes
Dmitry
Quoted 29 lines · Akhil P Oommen
Quoted 27 lines · Rob Clark
Quoted 24 lines · Dmitry Baryshkov
Quoted 15 lines · Alex Robinson
Builds can compile msm-y objects (e.g. msm_gpu_devfreq.o) before
adreno_common.xml.his generated in trees that generate Adreno headers at build time. Make msm-y depend on the generated headers, removing the race.Signed-off-by Alex Robinson <[email protected]>--- drivers/gpu/drm/msm/Makefile | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/msm/Makefile +0
-0drivers/gpu/drm/msm/Makefile DISPLAY_HEADERS = \ · line 224
Quoted 4 lines
drivers/gpu/drm/msm/Makefile +1
-0@@ -221,6 +221,7 @@ DISPLAY_HEADERS = \ generated/sfpb.xml.h $(addprefix $(obj)/,$(adreno-y)): $(addprefix $(obj)/,$(ADRENO_HEADERS)) +$(addprefix $(obj)/,$(msm-y)): $(addprefix $(obj)/,$(ADRENO_HEADERS))I'd say, no. The idea was that msm-y should not depend on
ADRENO_HEADERS. If there is any dependency, please move it to adreno-y.
Quoted 7 lines
Quoted 3 lines
probably we should s/adreno/gpu/ and move all the msm_gpu*.* there..
In the mean time, I think we were going to drop this patch from the IFPC series
Yeah. I will drop that patch.
Btw, was my usage of
adreno_gpusymbol in msm_gpu* files incorrect?
I suppose _technically_ it is, but the split btwn msm_gpu and adreno really only made sense for a2xx, and only if we tried to upstream the old 2d core, which never happened
BR,
-R
Quoted 18 lines
-Akhil
Quoted 15 lines
BR,
-RQuoted 11 lines
Quoted 7 lines
drivers/gpu/drm/msm/Makefile +0
-1$(addprefix $(obj)/,$(msm-display-y)): $(addprefix $(obj)/,$(DISPLAY_HEADERS)) targets += $(ADRENO_HEADERS) $(DISPLAY_HEADERS) --2.50.1
--
With best wishes
Dmitry
Quoted 34 lines · Rob Clark
Quoted 33 lines · Akhil P Oommen
Quoted 30 lines · Rob Clark
Quoted 19 lines · Dmitry Baryshkov
Quoted 17 lines · Alex Robinson
Builds can compile msm-y objects (e.g. msm_gpu_devfreq.o) before
adreno_common.xml.his generated in trees that generate Adreno headers at build time. Make msm-y depend on the generated headers, removing the race.Signed-off-by Alex Robinson <[email protected]>--- drivers/gpu/drm/msm/Makefile | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/msm/Makefile +0
-0@@ -221,6 +221,7 @@ DISPLAY_HEADERS = \ generated/sfpb.xml.hQuoted 5 lines
drivers/gpu/drm/msm/Makefile DISPLAY_HEADERS = \ · line 224
Quoted 2 lines
drivers/gpu/drm/msm/Makefile +1
-0$(addprefix $(obj)/,$(adreno-y)): $(addprefix $(obj)/,$(ADRENO_HEADERS)) +$(addprefix $(obj)/,$(msm-y)): $(addprefix $(obj)/,$(ADRENO_HEADERS))I'd say, no. The idea was that msm-y should not depend on
ADRENO_HEADERS. If there is any dependency, please move it to adreno-y.probably we should s/adreno/gpu/ and move all the msm_gpu*.* there..
In the mean time, I think we were going to drop this patch from the IFPC series
Quoted 7 lines
Quoted 3 lines
Yeah. I will drop that patch.
Btw, was my usage of
adreno_gpusymbol in msm_gpu* files incorrect?I suppose _technically_ it is, but the split btwn
msm_gpuand adreno really only made sense for a2xx, and only if we tried to upstream the old 2d core, which never happened
Granted that there seem to be nobody interested in OpenVG anymore, I suggest we forget that Z180 existed. I think it would be wise to simplify things for the GPU cores (merging more of the msm_gpu_* into adreno/).
Signature · 2 lines
With best wishes Dmitry