External email: Use caution opening links or attachments
26.04.2020 05:10, Dmitry Osipenko ÐÐÑÐÑ:
26.04.2020 04:43, Sowjanya Komatineni ÐÐÑÐÑ:Although, you're right that tegra_drm is compiled as a single module.
...
But I don't see where that SoC-dependent definition is made inIt looks to me that at least all those hardcoded HW format IDs do notTPG hard coded formats are supported on prior Tegra.
match the older SoCs.
Other supported formats are SoC dependent and part of soc data in the
driver already.
terga210.c. That tegra_image_format enum looks T210-specific, isn't it?
...
DRM driver has a proper separation of the sub-drivers where sub-driverThe driver will need to have a bit better separation if it's supposed tocurrently other Tegra host1x driver (drm) also does similar. Single
have a common core for all SoCs. Each incompatible VI/CSI hardware
version should have its own kernel module.
module for all Tegra SoCs.
won't load on unsupported hardware. The tegra-video driver should do the
same, i.e. VI and CSI should be individual drivers (and not OPS). There
could be a some common core, but for now it's not obvious to me what
that core should be, maybe just the video.c.
That's not good, I'm actually not sure now whether it is possible to
modularize host1x drivers properly without changing the whole host1x bus.