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 X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A312C49ED7 for ; Fri, 13 Sep 2019 14:14:45 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id BB932205ED for ; Fri, 13 Sep 2019 14:14:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="EGt/JAf8"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="SJeDgB8z" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BB932205ED Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.2) (envelope-from ) id 1i8mKg-0005w7-R8; Fri, 13 Sep 2019 10:13:54 -0400 Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) (envelope-from ) id 1i8mKe-0005w0-Hj for kernelnewbies@kernelnewbies.org; Fri, 13 Sep 2019 10:13:53 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id 5BFDD523; Fri, 13 Sep 2019 10:13:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 13 Sep 2019 10:13:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=fm1; bh=U tO8+DZ37OQxV+U2QYDAvTKsPciKHHpCHCPdwQHp1kc=; b=EGt/JAf8Yh50niBao Xtzb4foh0vMgh9pF0IXFlhdNPqE2G9Z5PQ3VCX1bVFBihX+3o4Kj5Z9Dc91263NG MgJEpn6PF8J50xTt+FY9fKsvgoWAYqaB2tfNxqJp/WsGFq2vVUUGOuWZKjADfmVU 0r9hDXG2HN+oijVzQoIYsuJtpccqiNHQoaNfzy9+do8EcwBxITPCGURUtW/qO/MV tVSD3ycTVqiTXmkKnBwVv1DpHvxvQYbl3Hla90EjZg4+uzJsrIl2/NgOwrz8Jhvt YmfCffL852TL44YNZIRu1iEAKPcSbWWVT/FLCIzJBZn/eDfZVUSfT3I0S4ZXcy23 RspHg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=UtO8+DZ37OQxV+U2QYDAvTKsPciKHHpCHCPdwQHp1 kc=; b=SJeDgB8zmDYooLcpF1is0pjudoa5XgQMyCeMFAGLNkbQGAinPcPGTIJ9O iYjcMfimJA2VEX+gyivEjdkWHuzbXneqlAlZHiYHW/nnjBEGqtVPNbcWnR57d66j X84Kx3yGNN5iJXdeDtMQCpK5YAe9RDgsr/eGhbMbx5eZ6694u4YF9u0Uh3MsMNdl QU8i9TvIhKdE7XLGt3FKhW4jO5p6zzFeQLSb4MwN4zUAhn/KaWEvQ/1oVTvCFhNR gnRLtCyRQjvME5a6vvR00lPVNvV+7m6je9lWdSnt1F5GNjF/j9BfJmcO53GLpzoK juw3oAfoyDIXEHCJloB7EcZhvymlQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrtdejgdejfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenog fuphgrmhfkphdqohhuthculdehtddtmdenucfjughrpeffhffvuffkfhggtggugfgjfges thekredttderudenucfhrhhomhepifhrvghgucfmjfcuoehgrhgvgheskhhrohgrhhdrtg homheqnecukfhppedutdegrddufedvrdeghedrleelnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehgrhgvgheskhhrohgrhhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost (unknown [104.132.45.99]) by mail.messagingengine.com (Postfix) with ESMTPA id 684F9D60063; Fri, 13 Sep 2019 10:13:48 -0400 (EDT) Date: Fri, 13 Sep 2019 15:13:32 +0100 From: Greg KH To: Martin Galvan Subject: Re: Setting CPU affinity for current process on kernel module? Message-ID: <20190913141332.GA453533@kroah.com> References: <20190911191657.GA11969@bharath12345-Inspiron-5559> <20190912092618.GA5911@bharath12345-Inspiron-5559> <20190913045045.GC120223@kroah.com> <20190913125510.GA402888@kroah.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Cc: Bharath Vedartham , 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: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: kernelnewbies-bounces@kernelnewbies.org On Fri, Sep 13, 2019 at 09:56:24AM -0300, Martin Galvan wrote: > El vie., 13 sept. 2019 a las 9:55, Greg KH () escribi=F3: > > And doing what with that information? We have a msr driver for > > userspace access to those values, does that not work correctly for you? > = > My use case requires this to be done in kernel space. So, again, I hate to ask but _why_ do you need access to the msr from within the kernel? What useful information can you do with that? Do you have a pointer to your code anywhere? thanks, greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies