From owner-freebsd-current@freebsd.org Sat Feb 1 17:18:20 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B223A1FCFE7 for ; Sat, 1 Feb 2020 17:18:20 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-ot1-f65.google.com (mail-ot1-f65.google.com [209.85.210.65]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4891575Fggz3JY5 for ; Sat, 1 Feb 2020 17:18:19 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-ot1-f65.google.com with SMTP id a15so9716344otf.1 for ; Sat, 01 Feb 2020 09:18:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc:content-transfer-encoding; bh=HuZKOr9qy6atv+JH8QdZTMfna/fVFdl2lHozfHNzAZc=; b=r8kARdq4zAXKLbKyM0Kv/xqmKUIftmYKGDGLxIMcFS4LBMmtIL5Rv3A2GL2dgx3Vtm 2a9EKGwhvvASg8pEJVFgGGmEpdLB1TYQ9vA9Jw0lg0TeA/T/w2cFMj3/D5a4ZpWUcVaL VM6nzmyE8ytBDLV0o0TvdMtYGVVorasKxcBux6RkCGMexIrVAKnrGoxxq4iqywdbNdWO acOHjCg9MAX9dWOpm4tG9l7jLEIFjKzLMoKRNHwPz40Qx929a0tXrcWd4w1zsf7ui9g8 9pqrspX6Qi+DjQXvzJGXXyXMu4EJPLK+bXpl8ASbOOQHMacyLafC9Rgyz/yYoBVVqA0R 4ejw== X-Gm-Message-State: APjAAAUZG5X8y0sDc4xAXP1cnlYwz/ZOOZN39sw4AgvIRXxcv0h/lYK8 B5hwgcoXwenFW8U14MCxsp1rV5D3 X-Google-Smtp-Source: APXvYqz3oKL16NnMbOB0KFacMZ4TrqWsx9YXUuuDWbyhv+eQ430AthEAO3gqDUfho/Ilf+wCQe3VYQ== X-Received: by 2002:a9d:6e05:: with SMTP id e5mr11946398otr.46.1580577498411; Sat, 01 Feb 2020 09:18:18 -0800 (PST) Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com. [209.85.167.180]) by smtp.gmail.com with ESMTPSA id s26sm4350385otk.43.2020.02.01.09.18.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 01 Feb 2020 09:18:18 -0800 (PST) Received: by mail-oi1-f180.google.com with SMTP id l9so6771405oii.5 for ; Sat, 01 Feb 2020 09:18:17 -0800 (PST) X-Received: by 2002:aca:3017:: with SMTP id w23mr9453458oiw.152.1580577497688; Sat, 01 Feb 2020 09:18:17 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Reply-To: cem@freebsd.org From: Conrad Meyer Date: Sat, 1 Feb 2020 09:18:06 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: hwpstate_intel hangs kernel To: "Andrey V. Elsukov" Cc: Andreas Nilsson , Current FreeBSD Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4891575Fggz3JY5 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of csecem@gmail.com designates 209.85.210.65 as permitted sender) smtp.mailfrom=csecem@gmail.com X-Spamd-Result: default: False [-3.04 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[cem@freebsd.org]; RWL_MAILSPIKE_GOOD(0.00)[65.210.85.209.rep.mailspike.net : 127.0.0.18]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; FORGED_SENDER(0.30)[cem@freebsd.org,csecem@gmail.com]; FREEMAIL_TO(0.00)[yandex.ru]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TAGGED_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_NEQ_ENVFROM(0.00)[cem@freebsd.org,csecem@gmail.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[65.210.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-1.04)[ip: (-0.34), ipnet: 209.85.128.0/17(-3.04), asn: 15169(-1.76), country: US(-0.05)]; FREEMAIL_CC(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Feb 2020 17:18:20 -0000 Hi Andrey, Please try 'hint.hwpstate_intel.0.disabled=3D"1"' as a workaround for now. I think I have identified at least one problematic piece of code, although I don't know if it's the root cause. I will go ahead and fix that, which may not fix the hang, and also add some debug printfs that can be enabled to help identify the real issue. Thanks for the report and bisect. Best, Conrad On Sat, Feb 1, 2020 at 6:06 AM Andrey V. Elsukov wrote: > > 31.01.2020 18:11, Andrey V. Elsukov =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > On 24.01.2020 19:52, Andreas Nilsson wrote: > >> It hangs during kernel boot and the last message printed on console is= : > >> hwpstate_intel0: on cpu0 > > > > Hi, > > > > Did you find the cause of this hang? > > I also tried to update today from r350816 to r357330. But my Lenovo X1 > > Carbon 4th hangs on the same message. > > > > Hi, > > I have bisected the bad commit, it is r357002. > > -- > WBR, Andrey V. Elsukov >