Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1567666pxv; Fri, 23 Jul 2021 11:22:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/9n+SrHOQCgsphHnWcaypbcKBtsTsAU2EK9ES5hTdCcPtSpIPVAp58jvGVQh4tVHyereI X-Received: by 2002:a17:907:724b:: with SMTP id ds11mr6074291ejc.192.1627064569604; Fri, 23 Jul 2021 11:22:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1627064569; cv=pass; d=google.com; s=arc-20160816; b=NsfKhXC82hMI+PJMyDGHm7QiD/x8EjdAy8Pj8xIeataZdK+NvhyLNB2GC0l2N13J+2 WDkYbrt85ENthG/NHJFWCQOG9pex1OeENZqI96lrjTBwEjTs+hfxeFJFJ0FYTdxZZRzn FaSrpPCjiz4GjrghE00jLQhCcXQvulBkz2WdPO65bhrmkHLLeawxpMoF2ztyQtJEBoWW pC5+oMjB5rbe2EpXew5tEBqOq/fxA4ud9K9Ollfv9EqdR3OJg2viTJG/O3cV02g7AUyl RBtk9WhxMZJgcfeh6BOhtEtPJS5LNk4gqmEVv/1nXPEYlT1QRTZwYsBkwVqr+CEvcoJZ Fd2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=Jc3JQwFqIBMQQiu0iwgOsHaoWKLBpXdqJqpnOXpmeSg=; b=FhNFIUvqWvYNtS9W+gU8OJ8DNzxkiqO5QCQbI1fMJkUdizn2YHsKu704UBPpRxeGsh HeC0sWgf+nVo84ICUTxo23athF9PaRPD+xVrTTTe0x4miKc+uD6MSMW3FcWR9snALns+ m+98UEzIxfe09HdBGD5tdMg7wG3Hr6yAc8mi5NZY1jRbMNiq8U+/yN5EQv7GakWaNHpI ApZgkwPtfGwJGqlFYkDglLUWtg9qqPPQ8fS7gum9wH56z6RIztaSTNuJZV/oqGizHPLr n9wRT9OEhC7+NjHqxWoR+cYatx3kwti1XDePX1vz26LslUwCpFGfeys0HdSkBCModLu9 0ZDQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=qfmApQ2Q; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w11si187759ede.300.2021.07.23.11.22.25; Fri, 23 Jul 2021 11:22:49 -0700 (PDT) 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=@amd.com header.s=selector1 header.b=qfmApQ2Q; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229657AbhGWRiE (ORCPT + 99 others); Fri, 23 Jul 2021 13:38:04 -0400 Received: from mail-dm6nam11on2063.outbound.protection.outlook.com ([40.107.223.63]:50112 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229461AbhGWRiA (ORCPT ); Fri, 23 Jul 2021 13:38:00 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iKs2BojEEvFmyvRgTbCI8+FFk1oDIMXF6niFIteQ/lERRSwxE5jO7LeM4wKVG7EuF3l2w6nryUh9y625HgFrSJ5M2sJqi+uYfne74f2wRU40z/YqTFg4siFCozY2x3Og9DDmY++qBX1fbZJIEb7u1v5A37cLuW21zXaPl3zUowX04QUnKSRE/q3AalFK+3EkRr0FSyTjDxFpEnyMYeMFnjV9EMJEpCeyCzM//SdRo+e21zOGy7oEw7xsBJ0MXRPbeQcZ+4szIFCbw2qOGqTOwK5gGVTjNwYYx7HGbRqJP6CsuliCuOfIar4SZ6wlO06aJzMksBweqT3Ff8fdpg4xsg== 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-SenderADCheck; bh=Jc3JQwFqIBMQQiu0iwgOsHaoWKLBpXdqJqpnOXpmeSg=; b=ThNqlD00MtZbOC77cnjrWskjKfh4f4HAgr7CkdnAgv2GK571j3Ldbmhaf/IVr2klbrzGAFfHZ3gIj0BHETKYSRVmGLqntCIiDmkfiRd4a+t5CMqbAUXmKegzi0FUvfsSnAZ4vWf/X70DKYs9oNxoHyWyB4reyptiyh3ROfjfYFiUTDoNakZBRmOm1gtiTkLYMNBjiSwuvVRDB694gcPwEG5H/Z3KvXa4DGruYJZr/DUnralryrDLT2tU8NTtIxm7i8fsxahJTspERMdeb1GUmS2bm/RpYKdx89SaEdHuNixDuVVfTm2esfYdDBS1eCfm6OAMM0yh73CFf1nDBcrPww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Jc3JQwFqIBMQQiu0iwgOsHaoWKLBpXdqJqpnOXpmeSg=; b=qfmApQ2QToxnigxf9CzQO04cfMM4gSiCVKmRyLWBuDh4pYPIf6L8pzq+ZVFpvFFSpRlGG1+SmYySenk1eFol2qz7bq4hSIkgWW/+/rPsCiIChAkQJxjFU/DPJeZH44neCUpDs7Klr7MpUl8Dn2bTvr9so+BxMcCBwsDYhi8GYq8= Authentication-Results: amd.com; dkim=none (message not signed) header.d=none;amd.com; dmarc=none action=none header.from=amd.com; Received: from BN8PR12MB3505.namprd12.prod.outlook.com (2603:10b6:408:69::17) by BN6PR1201MB0036.namprd12.prod.outlook.com (2603:10b6:405:4e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.29; Fri, 23 Jul 2021 18:18:31 +0000 Received: from BN8PR12MB3505.namprd12.prod.outlook.com ([fe80::6d98:68b7:bb66:c697]) by BN8PR12MB3505.namprd12.prod.outlook.com ([fe80::6d98:68b7:bb66:c697%4]) with mapi id 15.20.4352.026; Fri, 23 Jul 2021 18:18:31 +0000 Subject: Re: [PATCH] EDAC/mce_amd: Do not load edac_mce_amd module on guests To: Smita Koralahalli , x86@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Richter , Tony Luck , James Morse , yazen.ghannam@amd.com References: <20210628172740.245689-1-Smita.KoralahalliChannabasappa@amd.com> From: Kim Phillips Message-ID: Date: Fri, 23 Jul 2021 13:18:29 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 In-Reply-To: <20210628172740.245689-1-Smita.KoralahalliChannabasappa@amd.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SN7PR04CA0208.namprd04.prod.outlook.com (2603:10b6:806:126::33) To BN8PR12MB3505.namprd12.prod.outlook.com (2603:10b6:408:69::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.236.136.81] (165.204.77.1) by SN7PR04CA0208.namprd04.prod.outlook.com (2603:10b6:806:126::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.24 via Frontend Transport; Fri, 23 Jul 2021 18:18:30 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9ad08636-be80-4052-a68a-08d94e0646b1 X-MS-TrafficTypeDiagnostic: BN6PR1201MB0036: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xtqyrPYoVbFkWqCCIZLWwV6a15E1evWW4+OD+R970R/uihvbJvf2WGGiiG4It9o+K6vlMOIHKdgr3RqK7mG+cP4IfJJAKEwrbrpm3rSMyzQnbFqRoDLaa5tR+rp+kZg2+Wr79VWIgK4P8Er97pj1WQNoGrcpIFoYJ4SV1ki09Sx236yZdK8we3+vDjU7W+p5KVhJtASXX4yLnRxZHPOjLVZ2PhynyFx0I8OVqEftUh98ifTxQRhL+B+d1gBw2lz6syaeTAGXyKJN0P0fO9bq6UODrh7I/fL+M3hK8phT+odyQrTpl81rC0YfmTvVFZvs7KQu8ImVfIJfC6lvLpjkEdrmZz/J7L+h4e77GWDbGyuew/KcTJGdM2bzmeobq13lm4rsYxQ2/g1htJD25RsbzAYpDVhK8ELZns9cIxvrhvG3Fgcqy4BWVTWtaGAhvmGnUQTRrnkj6S82SMFWcmWsbpxF+np/1bdTCo8bqHA7eaLFtVnpRziwTR/CAr+N5VuPjjjtu+lkfCegmClMY4tkZePyJJflYtR8AyTqDwFkEEWD1xW5MonP/nx7hxYNcFg3kz+kKpCyTfn4+0FFETpi8QuaZy862Uv3zeAvbv7eZWnx1sSTvBtQ3SxYQAAFF1HrODLRpmjl8Q6MkJQWkN8oJFmPYt1rqJf5lyxdTVRstxq8OeFmGMsRzgaMnk2CKzC9CqNsdAv2G0vwlGEYbq9Sj+HhHQqLi0ZLGMCnLKQgxYJdaHmCfKvSJoH7APPl2PX4 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR12MB3505.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(346002)(376002)(136003)(396003)(366004)(38100700002)(53546011)(2906002)(31686004)(83380400001)(186003)(26005)(5660300002)(8936002)(6486002)(4744005)(44832011)(2616005)(8676002)(956004)(478600001)(31696002)(36756003)(66946007)(66476007)(86362001)(16576012)(316002)(66556008)(54906003)(4326008)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NU5DTlEzYUNCQXB2YklERWpJcHVlYW9jQkEzTkYzbzBnemdzLzZBVTk5eGNM?= =?utf-8?B?QWxJL1plQ0loTUV3NTQwaFU2NGFxK2Z0a0xua0tQL25Gdy9SZHNCcFM5amlu?= =?utf-8?B?dHRtUVZ5MytpVlV1S3ZrQUhiUms3NURlZE1odDUxQ1ordThON1hSUE9yUFBv?= =?utf-8?B?bUxrZTdvc3ZNdHQxTjZPeEhNQ0h4RndsUVVRYi9CNVl0ektJZ05Vcmh3M3lJ?= =?utf-8?B?Q2lRUWx1WEVOVFQzVGhuT3QrVC9OcEZlc0xsTVlpUDBOWnV4UGdLZVY4aGpq?= =?utf-8?B?cERRaG9Ud1p1cEFoZDJNcTVLSDVUMWlpWTh0alJ0NU95UXJrdU5OcXBEQjJ4?= =?utf-8?B?c3FXMDhYTzZHcmpxNWpONnJHbnpDUERIK0VyRzgvUHRjVkhJVjJpZ3hqbnMz?= =?utf-8?B?VVBrN2hJcXR0K21ua1NEK0o1TWJJSElpSWZXK29XeWRrclVobkNacG1vdXlO?= =?utf-8?B?SFRuNS9QMytJQXFO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3NWVxVk5kY25PUDI1aTlqdHFPUlI0dmcxYnpmam56aTFlY0gv?= =?utf-8?B?QnV2Z3BwR0xMRVhNK2EwME1KdUx6anlpN2RWQ0NFWWJiWTR6c1ZDT2lZZVd5?= =?utf-8?B?T2ZFTnhNYnRKRE9rbXM4TmFmZnp1MG4rWWlyS2ZwSzQyclFRU3UrRmQwYkZs?= =?utf-8?B?Wm9EdU5HV0xvOE5nZ0J3UC9ONHErZ0JVaWJIY29XK1E2Smd1blo1YjhaTkd1?= =?utf-8?B?OHQwcDVZS0YzMEc3b2ZVSGZlcnpIMWgrOEk4Q3UzOU5pMU5icU5jY2dJVXha?= =?utf-8?B?K0NlWHZSRkZ3WE9uMDJYU3lqSkdsMHZTZzdneXNpbUhjQzFOZnBqNi9DSURm?= =?utf-8?Q?kx6MfhVpWSVuAJFDSQJQ5rSVJUHvmZ1DrW4rMlc?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9ad08636-be80-4052-a68a-08d94e0646b1 X-MS-Exchange-CrossTenant-AuthSource: BN8PR12MB3505.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jul 2021 18:18:31.5092 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WQDtHdF63cTwAcGyaI+gWxUmpui1JA1mxgPZopl+L6sNj3u5igCtg7rzQatXnxxsNxaziiH2bW1kvD837W9inw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1201MB0036 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/28/21 12:27 PM, Smita Koralahalli wrote: > Hypervisors may not expose SMCA feature to the guest. > > Check for X86_FEATURE_HYPERVISOR on entry in mce_amd_init() and return > -ENODEV if set. > > Suggested-by: Borislav Petkov > Signed-off-by: Smita Koralahalli > --- This gets rid of the "Huh? What family is it: 0x19?!" messages in my F19h hosted guest: Tested-by: Kim Phillips Thanks, Kim