Currently display-related register headers are generated from XML files shipped withing Mesa source tree. This is not fully optimal: it requires multi-stage process of the changes first being landed to Mesa and only then synced to the kernel tree. Move original XML files to the kernel tree and generate header files if required. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> --- Dmitry Baryshkov (12): kbuild: create destination directory for _shipped handling drm/msm/mdp5: add writeback block bases drm/msm/hdmi: drop qfprom.xml.h drm/msm/dsi: drop mmss_cc.xml.h drm/msm: use _shipped suffix for all xml.h files drm/msm/headergen: import source files from freedreno/envytools drm/msm/headergen: use asprintf instead of custom aprintf drm/msm/headergen: don't output full file paths drm/msm/headergen: generate _shipped files drm/msm: import XML registers database drm/msm: tie regeneration of shipped headers drm/msm: sync shipped headers database drivers/gpu/drm/msm/Makefile | 80 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.h | 11 + drivers/gpu/drm/msm/disp/mdp_common.xml.h | 111 -- drivers/gpu/drm/msm/dsi/mmss_cc.xml.h | 131 -- drivers/gpu/drm/msm/dsi/sfpb.xml.h | 70 - drivers/gpu/drm/msm/hdmi/qfprom.xml.h | 61 - drivers/gpu/drm/msm/headergen2/colors.c | 61 + drivers/gpu/drm/msm/headergen2/colors.h | 49 + drivers/gpu/drm/msm/headergen2/headergen2.c | 514 ++++++++ drivers/gpu/drm/msm/headergen2/path.c | 64 + drivers/gpu/drm/msm/headergen2/rnn.c | 1363 ++++++++++++++++++++ drivers/gpu/drm/msm/headergen2/rnn.h | 243 ++++ drivers/gpu/drm/msm/headergen2/rnndec.c | 550 ++++++++ drivers/gpu/drm/msm/headergen2/rnndec.h | 59 + drivers/gpu/drm/msm/headergen2/util.h | 113 ++ drivers/gpu/drm/msm/headergen2/util/u_debug.h | 12 + drivers/gpu/drm/msm/registers/.gitignore | 5 + .../{dsi/dsi.xml.h => registers/dsi.xml.h_shipped} | 38 +- .../dsi_phy_10nm.xml.h_shipped} | 37 +- .../dsi_phy_14nm.xml.h_shipped} | 37 +- .../dsi_phy_20nm.xml.h_shipped} | 37 +- .../dsi_phy_28nm.xml.h_shipped} | 37 +- .../dsi_phy_28nm_8960.xml.h_shipped} | 37 +- .../dsi_phy_7nm.xml.h_shipped} | 37 +- .../hdmi.xml.h => registers/hdmi.xml.h_shipped} | 111 +- .../mdp4.xml.h => registers/mdp4.xml.h_shipped} | 37 +- .../mdp5.xml.h => registers/mdp5.xml.h_shipped} | 39 +- .../gpu/drm/msm/registers/mdp_common.xml.h_shipped | 114 ++ drivers/gpu/drm/msm/registers/sfpb.xml.h_shipped | 67 + drivers/gpu/drm/msm/registers/xml/dsi.xml | 390 ++++++ drivers/gpu/drm/msm/registers/xml/dsi_phy_10nm.xml | 102 ++ drivers/gpu/drm/msm/registers/xml/dsi_phy_14nm.xml | 135 ++ drivers/gpu/drm/msm/registers/xml/dsi_phy_20nm.xml | 100 ++ drivers/gpu/drm/msm/registers/xml/dsi_phy_28nm.xml | 180 +++ .../drm/msm/registers/xml/dsi_phy_28nm_8960.xml | 134 ++ drivers/gpu/drm/msm/registers/xml/dsi_phy_7nm.xml | 230 ++++ drivers/gpu/drm/msm/registers/xml/edp.xml | 239 ++++ .../drm/msm/registers/xml/freedreno_copyright.xml | 40 + drivers/gpu/drm/msm/registers/xml/hdmi.xml | 1015 +++++++++++++++ drivers/gpu/drm/msm/registers/xml/mdp4.xml | 480 +++++++ drivers/gpu/drm/msm/registers/xml/mdp5.xml | 806 ++++++++++++ drivers/gpu/drm/msm/registers/xml/mdp_common.xml | 89 ++ drivers/gpu/drm/msm/registers/xml/mmss_cc.xml | 48 + drivers/gpu/drm/msm/registers/xml/msm.xml | 32 + drivers/gpu/drm/msm/registers/xml/rules-ng.xsd | 457 +++++++ drivers/gpu/drm/msm/registers/xml/sfpb.xml | 17 + scripts/Makefile.lib | 2 +- 47 files changed, 8034 insertions(+), 587 deletions(-) --- base-commit: ffa0c87f172bf7a0132aa960db412f8d63b2f533 change-id: 20240225-fd-xml-shipped-ba9a321cdedf Best regards, -- Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>