diff --git a/cpuid_loongarch64.c b/cpuid_loongarch64.c index 4d24aab98..0d606f18d 100644 --- a/cpuid_loongarch64.c +++ b/cpuid_loongarch64.c @@ -230,14 +230,24 @@ int detect(void) { switch (prid & PRID_SERIES_MASK) { case (PRID_SERIES_LA464): if (support_lasx()) - return CPU_LA464; + /* TODO: Temporarily disable LASX optimization by default. + * When other upstream like kernel and gcc support LASX, + * return CPU_LA464. + */ + //return CPU_LA464; + return CPU_GENERIC; else return CPU_GENERIC; break; case (PRID_SERIES_LA264): if (support_lsx()) - return CPU_LA264; + /* TODO: Temporarily disable LSX optimization by default. + * When other upstream like kernel and gcc support LSX, + * return CPU_LA264. + */ + //return CPU_LA264; + return CPU_GENERIC; else return CPU_GENERIC; break; diff --git a/driver/others/dynamic_loongarch64.c b/driver/others/dynamic_loongarch64.c index 6b948b5ea..d098fa0ce 100644 --- a/driver/others/dynamic_loongarch64.c +++ b/driver/others/dynamic_loongarch64.c @@ -124,14 +124,24 @@ static gotoblas_t *get_coretype(void) { switch (prid & PRID_SERIES_MASK) { case (PRID_SERIES_LA464): if (support_lasx()) - return &gotoblas_LA464; + /* TODO: Temporarily disable LASX optimization by default. + * When other upstream like kernel and gcc support LASX, + * return &gotoblas_LA464. + */ + //return &gotoblas_LA464; + return &gotoblas_LA64_GENERIC; else return &gotoblas_LA64_GENERIC; break; case (PRID_SERIES_LA264): if (support_lsx()) - return &gotoblas_LA264; + /* TODO: Temporarily disable LSX optimization by default. + * When other upstream like kernel and gcc support LSX, + * return &gotoblas_LA264. + */ + //return &gotoblas_LA264; + return &gotoblas_LA64_GENERIC; else return &gotoblas_LA64_GENERIC; break;