Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7240270imm; Tue, 28 Aug 2018 08:35:06 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ5B302DxNFLKTt34GWMfW03Si5QulzziECDyZRoIseZX6pR2ur8J4+uxv/PQCVnJpYXT/b X-Received: by 2002:a17:902:ba86:: with SMTP id k6-v6mr1738378pls.84.1535470506885; Tue, 28 Aug 2018 08:35:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535470506; cv=none; d=google.com; s=arc-20160816; b=iQsGt9t1LhZzQztgrflU1tDVqTL/HMDoXTaU8NOW8mJv77UkmrNYY3jWxXHibHBn82 E6BcbzJECsJg4B3HJ5ehz6Iq+tejR5Fw6v0W1okv+HJ1Mrxj+dOU6fqSwtk8D8F1XZCr E71p2zp6f5kVUpRtLqnCrZ4oD8VwKADfLg20yaTXmiB/bLiOclWKOX8YMWVqtOFNfT6l Cex3W2YVOebxnBlEMqlBiVZrraiWKD5Xdlp15sV1BMvtJPuHyycVTV+5lF6ccec1ZJTi qBIcnqHwkkaScvJbhS83KFsjUtQ2crxMh6KhOIwh9S/h1bK/mjNtM9gGX5xNbRoiFL0D CcaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=934Jsb870T3CKC5XjYNOOvYgbhzEhvgi6pt//qVRJ1g=; b=KtzOGDqdG8LdFFLe8ca3B/JGyk6y7pzIRsq5mcJY+c5/4Q5ZzRrumX+7NA4c9111tQ C1j5Dm+wVczlNc394IJv7RlljDAsaXhJChO9/qMxUDfwcMS2yDSbWOVqM6gD1Bg9GZJ5 +j5vqxlkWhxuSxK4+JxuOJWolE91lYmlti8MH9EAH+pZFywbf4iAvvkTd2bq6LNxze9l 8hQcwaRL4khdsTkE2m91h7g99qkeDYlWzrFYjaDr0DmNVphnia3wQPY0fRxlxZD+KNyl lBImqiGv7PkuGXoxWoAwqzZQirCUMTbe1oOL/L77sZmXRM2+iW5lHKn3mnV7SGwpXzEo bd2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hSwW+PMx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d33-v6si1296519pgm.246.2018.08.28.08.34.51; Tue, 28 Aug 2018 08:35:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hSwW+PMx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727250AbeH1TZz (ORCPT + 99 others); Tue, 28 Aug 2018 15:25:55 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:34666 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726807AbeH1TZz (ORCPT ); Tue, 28 Aug 2018 15:25:55 -0400 Received: by mail-pg1-f194.google.com with SMTP id d19-v6so924337pgv.1 for ; Tue, 28 Aug 2018 08:33:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=934Jsb870T3CKC5XjYNOOvYgbhzEhvgi6pt//qVRJ1g=; b=hSwW+PMx0WpLn/oYrQahaLahfKfPL1v2cytfnr2NXZDnbFIQbb71wjfBmxkmHaZOK+ POKDnUvVh2D49fSUpMn7IYOrYTpGybT0PUYTCRfdWMR2pTASMtXTjsy/JwQGXCZeUGz8 Hayl7Z4VaMbnPnbp5YwIB9Owrnp28yXL840Uo43M0cvuxY5EDtqBUe7BwmxxZH6Ottjh Zq+wQNsW9/kNgSEKM6IL8MWUkcJzdcATb++3ac+Xu5PGnkMXpeb0pEjPPXG5OfBmy5tw GyiC2IdfqQzQCkV/4cni8PGE08Sqri6jCwgIHUQ9ht7bUTsORnlq4QgKfSGjq3kQURIX QFgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=934Jsb870T3CKC5XjYNOOvYgbhzEhvgi6pt//qVRJ1g=; b=kj6T9++uxK0NYo84eT6RDmO15FhxPO10HMLrYniYrJbEoFa44sGfSnrA8/6Fa+0iDA MxzqqfFuYnSiP+eyAm7yMWgzcM+/vr9a+K0I52VYGVu9Dm19hdulTaaLl6A+8ngpacAb 3UGnryyCUQwOnrQmRwd4Cwpa/1/hO4I9CAcfP5I90FTmNQug3Gb1WUprVuX6irxEbWQC xSMgNOyAxws82KHn/47gKbqtCMQWFdUphkSGOMUTbfSW6elqmKy8R5iSkQ3+OjzQQo8L 8sFm7Q+emCl1VWQzCMW9gfekZZTwvk9aUDVYa8Oc35kPj8C0YHGGsCe9J1riw0pFEhBX //Kw== X-Gm-Message-State: APzg51D1TsblvrPPrjFH0/6z77rzLPW674ve6jXIuVP1gBPuoaiLu4F5 v1EPW4xG7L+IZYqN5zE95bM= X-Received: by 2002:a62:571b:: with SMTP id l27-v6mr2136511pfb.29.1535470423445; Tue, 28 Aug 2018 08:33:43 -0700 (PDT) Received: from roar.ozlabs.ibm.com (59-102-81-67.tpgi.com.au. [59.102.81.67]) by smtp.gmail.com with ESMTPSA id w13-v6sm2178722pgs.89.2018.08.28.08.33.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Aug 2018 08:33:42 -0700 (PDT) Date: Wed, 29 Aug 2018 01:33:36 +1000 From: Nicholas Piggin To: Matteo Croce Cc: Greg Kroah-Hartman , Jiri Slaby , Michael Ellerman , Benjamin Herrenschmidt , linux-kernel@vger.kernel.org Subject: Re: VirtIO console hangs Message-ID: <20180829013336.42692195@roar.ozlabs.ibm.com> In-Reply-To: References: <20180829003539.668e514c@roar.ozlabs.ibm.com> X-Mailer: Claws Mail 3.17.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Aug 2018 15:00:14 +0000 Matteo Croce wrote: > On Tue, Aug 28, 2018 at 2:35 PM Nicholas Piggin wrote: > > > > On Tue, 28 Aug 2018 12:54:08 +0000 > > Matteo Croce wrote: > > > > > With kernel 4.19.0-rc1 virtio_console hangs very often. > > > I can always trigger the bug by pasting some characters in the > > > terminal window, the console will stop receiving keypresses, but I can > > > still see output from the console. > > > Stangely, logging in the VM via SSH and sending lot of data to hvc0, > > > like 'dmesg >/dev/hvc0' will fix the issue until the next paste. > > > > > > I did a git bisect and I've found that this is the offending commit, > > > reverting it fixes it. > > > > > > Cheers, > > > > > > commit ec97eaad1383ab2500fcf9a07ade6044fbcc67f5 > > > Author: Nicholas Piggin > > > Date: Tue May 1 00:55:54 2018 +1000 > > > > > > tty: hvc: hvc_poll() break hv read loop > > > > Thanks for the report. I can't immediately see what the problem > > is. Can you try get a stack trace of where it is stuck? > > > > I tried but didn't get one. > > > Perhaps try this patch if you have time (it's a bit of a shot > > in the dark). > > > > Yes it seems to fix. Thanks! Great thanks for testing it so quickly. I would have thought the return code should cause another poll to trigger. I'll have to read the code again and try to find out what I missed. Thanks, Nick