[PATCH v15 1/2] drm: Add kms driver for loongson display controller
Sui Jingfeng
suijingfeng at loongson.cn
Mon Jun 19 10:25:52 UTC 2023
Hi,
On 2023/6/19 17:18, Huacai Chen wrote:
> In my opinion we needn't know the cpu type in a GPU driver, remove
> this can also remove ifdefs (and lsdc_probe.c/lsdc_probe.h can be
> removed). Meanwhile, lsdc_identify() can do something to identify GPU,
> not CPU.
Loongson Display controller don't has a valid register to record the
revision/model information.
There a lot of the drm drivers which identify CPUs (such as i915).
We may want to write SIMD accelerated memcpy for the TTM move function
in the future.
Before we do these, we need to know what's the arch, did the unaligned
access is supported by the hardware.
did the SIMD(MSA or LASX) get supported by both the kernel and GCC
compiler.
--
Jingfeng
More information about the dri-devel
mailing list