From owner-freebsd-current@freebsd.org Tue Feb 11 20:05:33 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 D29B4242626 for ; Tue, 11 Feb 2020 20:05:33 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) (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 48HDKS5zK5z4bBj for ; Tue, 11 Feb 2020 20:05:32 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-oi1-f178.google.com with SMTP id b18so14078695oie.2 for ; Tue, 11 Feb 2020 12:05:32 -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=b8tzOXVbz/xaIDmIZ5aSf+YnswN7QfJy/XD1ivZ6Gig=; b=C+j82Wn9Tu3sVZIctQApGq25CtdeQsWk5m6/CNJl4Oqt1xFeHCZBFsS0T7flMc2aZM 4vM+kAqEFsKKHlrTF9UQMerc+73f8FQ/NnddR4nlr4Lcp9ecnEHvgG80dRpfgyhJ7w2E LGBE2fJPM27XNzsaGNUMJOqnAzvVQRNzjDlpJmD2Zq6DopfMa2Ep97eQ3zgFIKPbMYSm fOJe+70oiG0Lk1qby1UJmfPHlH/0wXfgXX4aJFvEhtqPdxH4axl2RrOg/xcCRU1UtTJz hWegE7ei04WMfUNQ9y64Jz3x+mSE304H09Fc98XERhkilNdJYHLTnHtY3lv4AZyHf7ms qTMw== X-Gm-Message-State: APjAAAVTCob8uwB9sFSqLgHB/I6lhcMSKcjmivxIp17F9FMq30P7Xat5 pFEykGZJnJuy67VkTaMnxMVWFphJ X-Google-Smtp-Source: APXvYqzOrna+bWzALTtSXURuYTnX+Zjhf4qjlp0BDmRYdDg0SU2Xeuf+7AHKjUhOad+PIAFjBhmuKg== X-Received: by 2002:aca:f08:: with SMTP id 8mr4093176oip.60.1581451530929; Tue, 11 Feb 2020 12:05:30 -0800 (PST) Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com. [209.85.210.48]) by smtp.gmail.com with ESMTPSA id j20sm1529772otp.24.2020.02.11.12.05.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Feb 2020 12:05:30 -0800 (PST) Received: by mail-ot1-f48.google.com with SMTP id 77so11421802oty.6 for ; Tue, 11 Feb 2020 12:05:30 -0800 (PST) X-Received: by 2002:a05:6830:15d2:: with SMTP id j18mr6644448otr.216.1581451530496; Tue, 11 Feb 2020 12:05:30 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Reply-To: cem@freebsd.org From: Conrad Meyer Date: Tue, 11 Feb 2020 12:05:19 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: hwpstate_intel hangs kernel To: Andreas Nilsson Cc: "Andrey V. Elsukov" , Current FreeBSD Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48HDKS5zK5z4bBj 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.167.178 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]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; 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)[gmail.com]; 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)[178.167.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-1.04)[ip: (-0.42), ipnet: 209.85.128.0/17(-3.01), asn: 15169(-1.71), country: US(-0.05)]; RWL_MAILSPIKE_POSSIBLE(0.00)[178.167.85.209.rep.mailspike.net : 127.0.0.17]; FREEMAIL_CC(0.00)[yandex.ru]; 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: Tue, 11 Feb 2020 20:05:33 -0000 Hi Andreas, No, nothing new on this front. I don't have any of this hardware nor do I work for Intel, and nothing I see in the code or published spec would result in hangs. I don't have more cycles to spend on this driver. So I suggest using 'hint.hwpstate_intel.0.disabled=3D"1"' as a workaround indefinitely. On a private email with Andrey I discussed making disabled=3D"1" the default, and allowing users to opt in with disabled=3D"0" (or perhaps enabled=3D"1", for fewer double negatives). It's not especially satisfying, but would prevent this class of unknown issue with hwpstate_intel(4). Best, Conrad On Tue, Feb 11, 2020 at 11:49 AM Andreas Nilsson wrote= : > > Hello, > > any new leads on this? As of what is in git on 2020-02-05, my computer st= ill hangs on kernel boot on "hwpstate_intel0: on cpu0" > > I guess it would have been easier to debug a panic. Setting debug.hwpstat= e_verbose=3D1 doesn't really give any difference in output. > > Best regards > Andreas > > On Wed, Feb 5, 2020 at 2:45 PM Andreas Nilsson wrote= : >> >> Hello, >> >> I upgraded to a newer version, git 87d669d3863-c266265, and I do not ex= perience the random hang anymore. The machine still hangs on boot on "hwpst= ate_intel0: on cpu0" unless I set 'hint.hwpstate_intel.= 0.disabled=3D"1"' in loader.conf. >> >> On a side note I cannot set or unset that hint from loader prompt; >> >> ok> set hint.hwpstate_intel.0.disabled=3D"0" >> ok> show >> .... >> hint.hwpstate=3D >> ... >> >> Best regards >> Andreas >> >> On Sat, Feb 1, 2020 at 11:26 PM Andreas Nilsson wro= te: >>> >>> Hello Conrad, >>> >>> thank you Andrey for bisecting! I'll try with that hint and see how it = works for me. >>> >>> Best regards >>> Andreas >>> >>> On Sat, Feb 1, 2020, 18:18 Conrad Meyer wrote: >>>> >>>> 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 w= rote: >>>> > >>>> > 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 conso= le 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 Lenov= o X1 >>>> > > Carbon 4th hangs on the same message. >>>> > > >>>> > >>>> > Hi, >>>> > >>>> > I have bisected the bad commit, it is r357002. >>>> > >>>> > -- >>>> > WBR, Andrey V. Elsukov >>>> >