Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1127128pxb; Sun, 21 Feb 2021 12:41:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5AeYrMfhGLqUXmd6yrMPQu2rzEAI1hEYRVrgoPTc+L1ZND3I4PelpmTBONcqP1BfO59xj X-Received: by 2002:a50:fa85:: with SMTP id w5mr19645954edr.306.1613940068281; Sun, 21 Feb 2021 12:41:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613940068; cv=none; d=google.com; s=arc-20160816; b=GcVOiERkmGa4/8FsctaKft6Iv8ziWJplhopXBTKBIcINEZlMBm16DXbl1SINzb/MuP gSbYEOLhPZ7/WjaBxnc7D5+p7iuqbZtEUgGmP6H3BuNyEQXqq7F5Pl6xAo0IXeHDvtWY pgukJLfu2b+PDHIVa3CpClBaVnzO4fvOjvJuMSvFZv+LvKlbUql3UDQOYCn8Z1ANSQ51 J6fbt+f0AaP0aMKGrY+vJVBYTDVi2if2uU+eJf6gpKjXEAGP3YFJH2cFoULB1PllLxif FTEajPoksz85dxfYr0KA7c1xyET4hbklefT4jOpnhA06IlqNMMnPUh0diLgp4Bx1YqvS zV+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=TodMQhTq+cGVVOCaD81EhvMNZtfQt3L+a/bV5YenmcA=; b=Q+hed0nS8MuvNMFgetNfLYWXHoCCv/lUVzHHKsByfDTLnDbShvp4CZRuxUpIMZULDu vlj5SPpXWvt9tvBSiC0g30ZooS15/qRJAQHBUyiibF2bJnYax4XktsxX52VUL6VBYsj/ +JCAvSyFfdv0jfcmK27Y35Pi8olYcWqpMF1d5fh34im/Aqny6l0WPbZ6iba5PdEo89mS rhPFfXzKrf5MqZMA/u002PuTZpdVSgFos+v6hWPPiBovwXYkqK9sxGUflUZpcWHpr/Eo RDssTo0RXu96jjvULCXaM6lqNWCPKw8Sm8wZjj0eZI9cfSJLCHOtEcqc1wVyS9XEaTH4 t9AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=iErmknlT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 26si8561403edw.488.2021.02.21.12.40.45; Sun, 21 Feb 2021 12:41:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=iErmknlT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231316AbhBUUih (ORCPT + 99 others); Sun, 21 Feb 2021 15:38:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230280AbhBUUih (ORCPT ); Sun, 21 Feb 2021 15:38:37 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95EDEC061574; Sun, 21 Feb 2021 12:37:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=TodMQhTq+cGVVOCaD81EhvMNZtfQt3L+a/bV5YenmcA=; b=iErmknlTcb1M7IRQXgT7TBPyaO HSbSyds3TPXzWMgvu9MopiUz5HPxmmbw2d7UvJrSOLBQOzz9pEQNYJdtyaJuX1MbfBd5u059mn9k9 MdupbdNr4jSeVlQD7kVqELaqVmduU8KegPUIxqtNWZb6qoLD6z+pcMl6MUvlYwrgremIlMMocf4JW jVKX2d8seEIwUUcCAicqDqUEeJ84rpZ6lBOzwUa5BlDU8rs25zkak0hm7cW8Y7Xj+RKliYz+lAvXw tgZXyzTEuX5BGYG8BzqFLdLoLpGuSE65A0PRAvOMK2GIV4Fat8WWpCr8DNCnFibrqmYOQUa3XRgNP lCo8DIeA==; Received: from [2601:1c0:6280:3f0::d05b] by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1lDvUH-0000HV-J4; Sun, 21 Feb 2021 20:37:53 +0000 Subject: Re: [PATCH v4 22/22] x86/fpu/xstate: Introduce boot-parameters to control state component support To: "Bae, Chang Seok" Cc: Borislav Petkov , "luto@kernel.org" , "tglx@linutronix.de" , "mingo@kernel.org" , "x86@kernel.org" , "Brown, Len" , "Hansen, Dave" , "Liu, Jing2" , "Shankar, Ravi V" , "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" References: <20210221185637.19281-1-chang.seok.bae@intel.com> <20210221185637.19281-23-chang.seok.bae@intel.com> <4862AEE9-1819-43A7-BF95-C02DB6E2D06D@intel.com> From: Randy Dunlap Message-ID: <40a65a30-ce41-6a51-50f4-34a0b0b1ef6f@infradead.org> Date: Sun, 21 Feb 2021 12:37:46 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <4862AEE9-1819-43A7-BF95-C02DB6E2D06D@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/21/21 12:10 PM, Bae, Chang Seok wrote: > On Feb 21, 2021, at 11:30, Randy Dunlap wrote: >> Can we tell people (in this Doc file) where to look up the values that can be >> used in xstate.enable and xstate.disable? > > Perhaps add something like this with the change below: > “See comment before function fpu__init_parse_early_param() in > arch/x86/kernel/fpu/init.c." Hi, I was thinking more along the lines of where can I find the value 0x60000 or BIT(22) or BIT(19), for example and see what they mean, even though it will likely be some abbreviation. > /* > * The kernel parameter "xstate.enable='mask'" and "xstate.disable='mask'" have a > * mask value in a subset of XFEATURE_MASK_CONFIGURABLE. > * > * The longest parameter is 22 octal number characters with '0' prefix and an extra > * '\0' for termination. > */ > #define MAX_XSTATE_MASK_CHARS 24 > > /** > * fpu__init_parse_early_param() - parse the xstate kernel parameters > * > * Parse them early because fpu__init_system() is executed before > * parse_early_param(). > */ > static void __init fpu__init_parse_early_param(void) thanks. -- ~Randy