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

Reply via email to