Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp383891rdb; Fri, 5 Jan 2024 13:14:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFnLXq4hdGYhZqPvfL6kr6si7aKB7lXDX6eZ0wSUn7kZ2FzWWiUr9IuduT3X6v2iFxlA+on X-Received: by 2002:ac8:745:0:b0:429:75b6:c4df with SMTP id k5-20020ac80745000000b0042975b6c4dfmr2479303qth.41.1704489279401; Fri, 05 Jan 2024 13:14:39 -0800 (PST) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s7-20020ac85cc7000000b004290d54df74si2675305qta.556.2024.01.05.13.14.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 13:14:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18362-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="OvqP/E5r"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-18362-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18362-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1FB881C2365B for ; Fri, 5 Jan 2024 21:14:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 334AA3609D; Fri, 5 Jan 2024 21:14:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="OvqP/E5r" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4443E358B7; Fri, 5 Jan 2024 21:14:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704489273; x=1736025273; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=1EC0XZTOP26J7E0ZamFc+QLA5KYGJM/gHPwrUWwgWkc=; b=OvqP/E5rlfOtQHSKC7SFcr9UqvFcrC5Kjj3W29OYZeI9Qqc7+rdfqAGV ZcNy56hf67cG42A+Jnri5VRypHKXGDUiswqu41cnhYI6LMTRjUuUaNejU gtFRkU8UwobYBJf9C2ZqmQ+g1NXNYKWlUMedB5WGdLMRyjECLoADa7M4m NXYQojnz85p8xrq7gUbZ9pXgfbCRh4kAv0cIkSzWZfzaVZGyRDV5wBpLV DWXnr127lEAHkCisr6xB7Iw93HDK/LwpreU6CYqSuBYPGe1jXw/NjnGHl 6oe/9qeVBTvtFBh12Rz9R+3RCvkdyVtVSSH/F8k8zdWJKqR+iKT4MPCwW Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10944"; a="16202651" X-IronPort-AV: E=Sophos;i="6.04,334,1695711600"; d="scan'208";a="16202651" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2024 13:14:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10944"; a="773938186" X-IronPort-AV: E=Sophos;i="6.04,334,1695711600"; d="scan'208";a="773938186" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga007.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 05 Jan 2024 13:14:17 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 5 Jan 2024 13:14:16 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 5 Jan 2024 13:14:16 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Fri, 5 Jan 2024 13:14:16 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.169) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 5 Jan 2024 13:14:16 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HZltWYdtz8r6klziZN+rf2KEvchPdy6mhC2bcM5Ls8F6nnfno2YQ4PgYvrgKDJiwcpXEgOmZR0DDr1di8592OcbMrU+l3kUNwhvhD5HBjGulNy9Z29rJx8gaGWLmSApv+vr360Ki1CD9BxfRhATe/1EBJAYChswDzEGm4TGnPD68k4RWvcawUUOWVOzQ8hQYdgX5hvML7NijOuGVnjA2Ex0eSjJuTz/grRUF3830t2ly3Onf3quhv1xPOAQVAKOPkVJ2h/l6JvORRuI1ANa0ydiaOQZZkmElf4nbCos9N5OZYgAgta7zjaxiRloZORnq4PgZ0nwj1AjPYNyTuOXjSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cB1LPkqrad/RliJNcm53NCWnYN85nioaV7Qw+I+YHAs=; b=CQYMvSQLHLln/gGzZ/fFISAnRD/x8rAQl5bxxOZ9aNASr80P7GSY9U5BXyz8L8gsYMs9ZQa10qdEc8KD3uCiYCwehaFtRAFvb7XJTBM3j0uGZAox8N/eUO3Y6heJbtcyU7f+lBk7VswRAfcN9mHJceDaPkFf0i76RkfS9ru4TQJ2OFPI/2RDIi8KG2nMFgELcxjMSgpTMIRDRc0b8ifQZMtJygIXfFnopYVgb4y1apqizjJGrTotF7N2UT8a0CU9Q1ZC5a04gRiqMpeDu4uTbL+jxiVkAq6J+YnwPY/SnXip6yu2ut05vnnDb+qqhMBl2j8SPK8mMDuRehjF7w5rUw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) by MN2PR11MB4600.namprd11.prod.outlook.com (2603:10b6:208:26e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.17; Fri, 5 Jan 2024 21:14:08 +0000 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::c903:6ee5:ed69:f4fa]) by SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::c903:6ee5:ed69:f4fa%7]) with mapi id 15.20.7159.013; Fri, 5 Jan 2024 21:14:08 +0000 Message-ID: <5a3624d1-0801-4418-a179-38ea83c40c94@intel.com> Date: Fri, 5 Jan 2024 13:14:05 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/2] x86/resctrl: Remove hard-coded memory bandwidth limit Content-Language: en-US To: Babu Moger , , , , , , CC: , , , , , , , , , , , , , , , , , , , , , , References: <20231201005720.235639-1-babu.moger@amd.com> <20240104212130.209490-1-babu.moger@amd.com> From: Reinette Chatre In-Reply-To: <20240104212130.209490-1-babu.moger@amd.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4PR04CA0314.namprd04.prod.outlook.com (2603:10b6:303:82::19) To SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR11MB7573:EE_|MN2PR11MB4600:EE_ X-MS-Office365-Filtering-Correlation-Id: dd11cd5b-eb08-4b44-b3c7-08dc0e33416c X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: epkEWOU3krKIa1vXoczF5Eb+JFf6EJUy+Os5Oiqiz+8ofhRbwf8xl+TGBjQm8NVl/70QXLCk1D8X3Ob2zqo1VIBpEjt1a81iGUPBxV0yOD6mWrz2nHUQeZlNC5p6lHYsBgH8H1iibudMriUUSsxKXZ+GR+XcwTgINnlQ4yKLiPsMntbSyWQ3XtZNDQu0o+xv+SFugFwmyMJObpsD8n6k1FJhELC0jSMb7OK9TWMscJITKuXs4sfPdFKx1SP8Ti1JjfTYHqebUcUPVcv7RxYIwnwmZWyInVDNgclxnjAOMtK4pgmXss9SmbiU/n1U4HQy0r8Lr6FGYFAMLWK+u0cYEEfQRfIYN6NlaTpWv675OtM1sHvNpfGyBpGgTzVz8o4XfxzL+LIFxkGXByJFpMeRrqQnCXcUxdStYrXCoJh/c0IJW1rSbsknLdot+9PM4KsvXqj56qEC3s8gdg5tz6onPwCmthNf01Mbnr7YM/ERzbWwASTCrkMNrTFsI9iaKAs5M40pui+Ye8cBaBbxVkbbiXVD0scArEq6eU08Shi8wPYYiT9/9+juEiAnMkEhDy+fOft2yjQKrjLnMzCntLTo/UT2QH2ILKlh65U5neiRCfIiFtO38BqVN6R0e+Rv60jynTdVP/DMx7a4DBiY0yTGxQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR11MB7573.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(39860400002)(376002)(396003)(136003)(346002)(230922051799003)(451199024)(1800799012)(64100799003)(186009)(2616005)(2906002)(26005)(53546011)(6506007)(6512007)(6666004)(86362001)(83380400001)(4326008)(316002)(8936002)(8676002)(5660300002)(7416002)(36756003)(44832011)(6486002)(478600001)(966005)(66556008)(66946007)(66476007)(38100700002)(82960400001)(31696002)(31686004)(41300700001)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?L2dCMTZIUkkzS0wwTDVYRXNSaFczTGM3dXFYaERzTDhUVWlNelBXY0xsR1Nq?= =?utf-8?B?K0REZDB5RDZoSStEQVVwTlk4ZWlIc1ZmeGY5eDJxVTFrcTdaczB4S3U4bVpr?= =?utf-8?B?a1BIWVNreTE5SU4wTmRMZUtIY0NPSlNxYVFmV3RidmhQZEtGQ0dQcEovYWs4?= =?utf-8?B?OUd5Tk4zc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U3SU9yLzRKTkJuazQyZDla?= =?utf-8?B?b0xZMlM3NEt0SWFxRGc4c2FoY1hITXFiNjR6VWFKSjFBWmQxOGE4YWFXSm9J?= =?utf-8?B?aVpFRmRzMzUzNkFtbEcwNDZWUHMwbnhuOXVtb3pzY0hnZjNlcW5EM0dCbC9M?= =?utf-8?B?QTNKL2lWcUgrR1lER2h2b2FmZnFpdGx0bUpiV3M1bXFPZ2JOczVZZVk0bzZG?= =?utf-8?B?clE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: dd11cd5b-eb08-4b44-b3c7-08dc0e33416c X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2024 21:14:08.5492 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HPm8QIO3k32o3IGOJplXS4SMr2TLisXgb/egrLU/vxV/iil+vnNfA8H/Og8vvkWelXxfS7+zwVi0ZGGwU9CxRv4qeNmBDTckBMuakS1J5w0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4600 X-OriginatorOrg: intel.com Hi Babu, On 1/4/2024 1:21 PM, Babu Moger wrote: > The QOS Memory Bandwidth Enforcement Limit is reported by > CPUID_Fn80000020_EAX_x01 and CPUID_Fn80000020_EAX_x02. > Bits Description > 31:0 BW_LEN: Size of the QOS Memory Bandwidth Enforcement Limit. > > Newer processors can support higher bandwidth limit than the current > hard-coded value. Remove the hard-coded value and detect using CPUID > command. Also update the register variables eax and edx to match the > AMD CPUID definition. > > The CPUID details are documentation in the PPR listed below [1]. "are documentation" -> "are documented"? > [1] Processor Programming Reference (PPR) Vol 1.1 for AMD Family 19h Model > 11h B1 - 55901 Rev 0.25. > > Fixes: 4d05bf71f157 ("x86/resctrl: Introduce AMD QOS feature") > Link: https://bugzilla.kernel.org/show_bug.cgi?id=206537 > Signed-off-by: Babu Moger > Reviewed-by: Reinette Chatre Looking at "Ordering of commit tags" in Documentation/process/maintainer-tip.rst I believe "Link:" should be the last entry. Reinette