From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 65AFDC433EF for ; Wed, 2 Mar 2022 16:57:34 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1nPSI8-0006VF-Ru; Wed, 02 Mar 2022 11:57:32 -0500 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1nPSI5-0006Uq-39 for kernelnewbies@kernelnewbies.org; Wed, 02 Mar 2022 11:57:29 -0500 Received: by mail-lj1-x22c.google.com with SMTP id u11so3157904lju.4 for ; Wed, 02 Mar 2022 08:57:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=TkR+E8N6CJ35um1q06WAtlJJU9Fe1FwscYou1qIujQM=; b=VDSbLQkLrp+TxI5Hf2ftcGUvNKqPfhuX42en/nqCwka5UyoyAwwBHxiUTKxk+73JtF 2RbQ5Tc7wx6tVgihBWvz4L6crjpT4qJvbq01tEeUNxq01HVm+1qh0+xo8xmz6PzVWu13 +0950tb9z9H/ZaLKPbL1gqaOVFW4WZGum0rG7cNUIG2lJbq4FhA67tHW3goqV1Nt9amh JJIvf3LWe/3pjsBLSEvIlkAWX7dU5QF+4zWmZFJpftEXDHpWWkY3T2HhZpHMJ6F4RWnM yCgPEE+VRrEc1UI4kc0eKy/3CLjPuC0SH5MQk7JE1UMB3ooTeSos3R9VUdCfWq/c4WpK M4PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=TkR+E8N6CJ35um1q06WAtlJJU9Fe1FwscYou1qIujQM=; b=bPRImljHur0OJCUaJyYw4IL4tArkHDDUUPENPE6tqVZRynkLbX69itmr9kha5WUVjg af1htP5lFUIYn9pe4ZXXoWQ/ZMK1px8zuCNIOocTGdV9cLbaL+Hy1VOgiJ6nSsuebmjv IUxHyGj38Vwfws+lWSsGm20AuAv0DnqEv8c2RBhWQsNsb+A2iNDevc6LK8cP5EFp1cpv FRVXXq8P/Ynr9l13ha8uoO9MIsjoa2tmhnvGD2EDCG3OWd2bnu26Nfp7SlXu9gCvUKym re7ZhPmO8NDOfz/plK9IQyE2eRC5f/26n3aVXqPC0WYUR31PnRrvFZCAAKcX+Fofx/UW zf6g== X-Gm-Message-State: AOAM532391ny2y2NMzlvNurI8u601cx9WMN+JZ8Ythv04w977kwxCTxu mD0kBInEA2UqCJkn5kpNDPnrjhRcmnFE7BEkWPTTN289 X-Google-Smtp-Source: ABdhPJzMQMZxCr1Wc+u189WQSOvEjBKOX0j5psPREro5BUOWoxl9PRmb4Z2TEC6puEyQ6f1ehjNPGeiaZq2puttgUjw= X-Received: by 2002:a05:651c:d2:b0:246:47a1:6bfe with SMTP id 18-20020a05651c00d200b0024647a16bfemr20806634ljr.117.1646240247280; Wed, 02 Mar 2022 08:57:27 -0800 (PST) MIME-Version: 1.0 From: Guddla Rupesh Date: Wed, 2 Mar 2022 22:27:15 +0530 Message-ID: Subject: Exporting cpu instruction set to kernel .config file To: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0856262731585317290==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============0856262731585317290== Content-Type: multipart/alternative; boundary="0000000000002778ab05d93f2d55" --0000000000002778ab05d93f2d55 Content-Type: text/plain; charset="UTF-8" I have seen the config from /proc/config.gz and found that processor family as generic x86 64. Actually my system consists of i3 10th gen comet lake 10100 which has integrated graphics and pci express 4.0 and also lots of new instructions like avx2, sse4 etc.,. The main reason of compiling source code of kernel is it detects all my hardware and provide support for opencl, video acceleration etc.,. But I can't find any option to select my processor especially comet lake or atleast skylake and instead there is an option called core2 in the section processor family. Finally I have disabled secure boot mode in bios and compiled source code successfully and now I am able to boot into the latest build kernel but there is no difference in performance between old and new kernels. I think that normal kernel shipped by the distro is generic and it doesn't have support for latest instructions like avx2, sse4 etc.,. To get support we must compile kernel with lots of tuning. I have exported the modules running on system and disable others by running the command make localmodconfig What I want is " is there any way to export my cpu instruction set to kernel .config file and compile kernel and install the modules.". If I can compile kernel source code then my Linux system will run at extreme speeds never before. --0000000000002778ab05d93f2d55 Content-Type: text/html; charset="UTF-8"

I have seen the config from /proc/config.gz and found that processor family as generic x86 64.

Actually my system consists of i3 10th gen comet lake 10100 which has integrated graphics and pci express 4.0 and also lots of new instructions like avx2, sse4 etc.,.

The main reason of compiling source code of kernel is it detects all my hardware and provide support for opencl, video acceleration etc.,. But I can't find any option to select my processor especially comet lake or atleast skylake and instead there is an option called core2 in the section processor family.

Finally I have disabled secure boot mode in bios and compiled source code successfully and now I am able to boot into the latest build kernel but there is no difference in performance between old and new kernels.

I think that normal kernel shipped by the distro is generic and it doesn't have support for latest instructions like avx2, sse4 etc.,. To get support we must compile kernel with lots of tuning.

I have exported the modules running on system and disable others by running the command

make localmodconfig

What I want is " is there any way to export my cpu instruction set to kernel .config file and compile kernel and install the modules.".

If I can compile kernel source code then my Linux system will run at extreme speeds never before.

--0000000000002778ab05d93f2d55-- --===============0856262731585317290== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============0856262731585317290==--