Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp170059rwe; Fri, 26 Aug 2022 02:56:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR6wt814o+nQ3GGAxuNCiFD8simOaFwQNLoee2zTZMYA5JWark5xQTB7zZ81G6UdMjCx/v+G X-Received: by 2002:a63:6848:0:b0:42a:f726:5f2c with SMTP id d69-20020a636848000000b0042af7265f2cmr2673054pgc.518.1661507785557; Fri, 26 Aug 2022 02:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661507785; cv=none; d=google.com; s=arc-20160816; b=FwfR3ZtzjBTI6i+jroZc0ETEzg7iBQBRsRI01WeRQwzoJI5Pyx417pQXZBqIyVsF1r n44Jk0NCTXb7ZbgvbB+H4hyLCsG6JCLVH/obmChdS8XNzDYagb6SbAR/MarFs1zF5p6j FQJ71R4dAJl1z2WdpDsQ/5gmnYRcP5Be3Sm8I8/ZkAKgNZeP8fMJ3gGADt+zm+MeJqdk oJeOxqPzLfE9l6IuXO+Nh7CJYux3P/GwRVXHlp9HOxxU98LyosQw+TJfTdcWgHGNIDGY Boy14kWVQapz9KtOa/RXsyTnk7Ayy4jF+aUOrcLQTBIu32k/axTakb3UO+QfCAMJTaWj OXgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=TrbS9WJYHPXXzl3hks11l5YpKdkKDhrOq+5vqSR9eXU=; b=oM5lwawTkLnJLe/bVV3MTzHhpxnO6DpJFB7UylpGsZ8ojPTppReOhMypgYdiT1XN9X PbwPQfRrjEVVo30C5D8FxQFu+oq9IjGpOytfjDqKIYIo7mSTZGqNf6YpOafFk+0LI7CO biIaR6JW79NtlUhXt13tR0zUPADDyomuysrngp7HY6hvEsCovUdtjAMyGh60PrwMTV8J pY47F4MKpqbP2AOySha3NYq6NR6JVGP04YQwINRWCVxeHsBW9MKujY0GoZ11Rq0VFJWK KkPbCivBIsd87PT2qPakpA3Sqibi5uvq527UbHMdDMqeoNXktss9jt5n4aS3MDQOc5aQ w9pg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g23-20020a170902869700b0016f9420a15asi1247389plo.168.2022.08.26.02.56.14; Fri, 26 Aug 2022 02:56:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245225AbiHZJyq (ORCPT + 99 others); Fri, 26 Aug 2022 05:54:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244825AbiHZJyk (ORCPT ); Fri, 26 Aug 2022 05:54:40 -0400 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7147D1A392; Fri, 26 Aug 2022 02:54:38 -0700 (PDT) Received: from [141.14.220.45] (g45.guest.molgen.mpg.de [141.14.220.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 3092C61EA1932; Fri, 26 Aug 2022 11:54:35 +0200 (CEST) Message-ID: <454c35a7-a86f-7c70-6ac3-15017af737ae@molgen.mpg.de> Date: Fri, 26 Aug 2022 11:54:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Subject: Re: WARNING: CPU: 1 PID: 83 at arch/x86/kernel/cpu/sgx/main.c:446 ksgxd+0x1b7/0x1d0 Content-Language: en-US To: Haitao Huang , Dave Hansen , Jarkko Sakkinen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, Reinette Chatre Cc: linux-sgx@vger.kernel.org, LKML References: <4253695b-85aa-a2fb-fbf6-718db8b6c20c@molgen.mpg.de> <46e3483b-a5ab-2a05-8a28-f9ea87e881c3@intel.com> <04c9d5fa-5861-bbc3-3e2f-e18a73866645@molgen.mpg.de> <63a60042-4a4a-3bc3-5fa1-4495d80cc06c@molgen.mpg.de> From: Paul Menzel In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Haitao, Thank you for your reply. Just for the record: Am 25.08.22 um 04:12 schrieb Haitao Huang: > On Tue, 23 Aug 2022 08:48:52 -0500, Paul Menzel wrote: >> Am 20.08.22 um 08:13 schrieb Paul Menzel: >> >>> Am 19.08.22 um 20:28 schrieb Dave Hansen: >>>> On 8/19/22 09:02, Paul Menzel wrote: >>>>> On the Dell XPS 13 9370, Linux 5.18.16 prints the warning below: >>>>> >>>>> ``` >>>>> [    0.000000] Linux version 5.18.0-4-amd64 (debian-kernel@lists.debian.org) (gcc-11 (Debian 11.3.0-5) 11.3.0, GNU ld (GNU Binutils for Debian) 2.38.90.20220713) #1 SMP PREEMPT_DYNAMIC Debian 5.18.16-1 (2022-08-10) >>>>> [    0.000000] Command line: BOOT_IMAGE=/vmlinuz-5.18.0-4-amd64 root=UUID=56f398e0-1e25-4fda-aa9f-611dece4b333 ro quiet >>>>> […] >>>>> [    0.000000] DMI: Dell Inc. XPS 13 9370/0RMYH9, BIOS 1.21.0 07/06/2022 >>>>> […] >>>>> [    0.235418] sgx: EPC section 0x40200000-0x45f7ffff >>> >>>> Would you be able to send the entire dmesg, along with: >>>  The log message are attached to the first message, where I missed to >>> carbon-copy linux-sgx@ [1]. >>> >>>>     cat /proc/iomem # (as root) >>>> and >>>>     cpuid -1 --raw >>>  I am going to provide that next week. (Side note, Intel might have >>> some Dell XPS 9370 test machines in some QA lab.) >> >> Please find both outputs at the end of the file. > > Could you also check output of "sudo rdmsr -x 0x3a"? 40005 > Also was CONFIG_X86_SGX_KVM set? No, it’s not set in Debian’s Linux kernel configuration. > If CONFIG_X86_SGX_KVM is not set and bit 17 (SGX_LC) of the MSR 3A not set, > then I think following sequence during sgx_init is possible: 40005 = 0x09c45, so bit 17 (if starting from 0) is 0. […] Kind regards, Paul