Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp25686imm; Fri, 31 Aug 2018 15:59:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZntzDtt0eHVqAV5+byOQPDPEiT69CAUGJDVP9Q97ENatZQmjYl3oDMqYIyEMyh+1A7/8QZ X-Received: by 2002:a17:902:18a:: with SMTP id b10-v6mr17637302plb.62.1535756345476; Fri, 31 Aug 2018 15:59:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535756345; cv=none; d=google.com; s=arc-20160816; b=wRTkxycVeKI18v+obMlFegoXBHfWfwWBmyglJjYEBz4JahrUr8pV24uK1UnlbnCrhx L2MinMVcqkMXFClKNTrLNvl5dUU5FGvYTaBF5XGbOhpPGQ0RrMgD0Gl4Nm322cLVl0m3 IDBD31HzXe9vPXl8qrjICMq3bWy+U22AKUYzQzL384Bqg7/we0tX18CEBMNI3vXjYGCE /X8Pzbx1od+RiLb6b884q6hIChUcpF2bJixkmFdZvmOFviIbfLV2qEAfPGjF9ZAnRsEu aWVywm4zyjD4sWz6cvenjscinMFFVmOWHE2F6yU1AOydtWeyAVgPAj9JPvCnnpgvdMSm XFAw== 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=fCkYw97l/S6o/BAIxbPEAvCYN8auUeO0UdbRXRbSSNE=; b=zMcIq+Ur2K4qs6tZpWD68YXca3PH6+R/Jy/458ZefhwSn8dbc8yw5P2J1U9IJr9rai 18I1tPeeLqy2mnjfVQBmxIZcmn1CarFI6Zp/zUG2udVe7MtTUvOAl20a2W1LwF22/oCY 8hsgBRt9+uzQ2AeZGChJDtJB+9NDgeDqmdcq14itS18Zsn05wpk1r5iWobb/wUUoOadz vxclNsXuGGNGfvf7CEub7ySz5hZEqb5J4Ln+/dGsumpG+vZyfATHv+kS78vIkrwKb2KA U8uWNHk4TI0nLIzqKwWM79fAZUlV36od+Tjg8smkGhJLq/IM/Cgy8lVKjEkcyGdwmUuX xQzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fQHixH3s; 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 f62-v6si11135524plf.164.2018.08.31.15.58.50; Fri, 31 Aug 2018 15:59:05 -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=fQHixH3s; 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 S1727736AbeIADHM (ORCPT + 99 others); Fri, 31 Aug 2018 23:07:12 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:41966 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727181AbeIADHM (ORCPT ); Fri, 31 Aug 2018 23:07:12 -0400 Received: by mail-pf1-f194.google.com with SMTP id h79-v6so6136807pfk.8 for ; Fri, 31 Aug 2018 15:57:32 -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=fCkYw97l/S6o/BAIxbPEAvCYN8auUeO0UdbRXRbSSNE=; b=fQHixH3sWpWaG8UkQPQN+cMqFpMolNLeNujuKUMZvApJGA/avf7I7ZEVAXh2/n4eJG FqlUhYFjN9OcFh9xR/PnoPOFdNp8KUukkoxfmbG4d38Q/prQDt6t0cXChaSZrtoHS9t5 4XXt060nZXZXrDMkkIT6+Hpb3VKm4Kb01n6PxyEf2xY1At9yylIY6wTNT1qBuNkTXGn3 jCOgVNCGywERu2BRVPrKk+rDUW/199HX20+s8ZrQygyMntHhxY3N/xGhOoBH2rUdJKhr ztzfMq2mBauyiiyDK/RXCWpi6P29ahCPUKN07F6iSlX96TuR5FqYkyr6keiyGy91wLs6 Y0JQ== 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=fCkYw97l/S6o/BAIxbPEAvCYN8auUeO0UdbRXRbSSNE=; b=XWhRO8KNPqAUjNWSF5R7nrup9IMrzCeQpbEmln9VtWu+nEQMYB+8Nift7Ie6Pf+SLZ FAjZHn9Xsa22r2u6s0to6vb2bpw1f1k/ma/SpISB1FKXEaCiQ9aLHaGa/0KsJk0k6PfZ elFJ+Rg1KOvz8K7Aw2gbMUAGXaBwHFznNEoR/GbRnlHazKJ5QFqZxiUfSD7g+hf6Lo8o btcwhyg52iDPja28hSk5tWD+rsnL/vE8tSCNdgzU0CF7YdCVl1SYizQhkOHk5RMnQdkG p+x6dxgHc+2s67YbNUVu6/zwgce6Uj8V0CpLreFA0ODUuG1+VRzbBy25ysYqnRTF2948 3gyw== X-Gm-Message-State: APzg51C/qGiGS1VarE5K691Gu/uLVVCyBbgJvbF9gOl1b3P9Ibzc2v/+ qwjiKVKJMFfie2dhjSgBazY= X-Received: by 2002:a63:5c10:: with SMTP id q16-v6mr16133221pgb.452.1535756252457; Fri, 31 Aug 2018 15:57:32 -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 e14-v6sm15154288pff.128.2018.08.31.15.57.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 Aug 2018 15:57:31 -0700 (PDT) Date: Sat, 1 Sep 2018 08:57:25 +1000 From: Nicholas Piggin To: Matteo Croce Cc: Greg Kroah-Hartman , Jiri Slaby , Michael Ellerman , Benjamin Herrenschmidt , linux-kernel@vger.kernel.org, Lorenzo Bianconi Subject: Re: VirtIO console hangs Message-ID: <20180901085725.4dcd9cac@roar.ozlabs.ibm.com> In-Reply-To: References: <20180829003539.668e514c@roar.ozlabs.ibm.com> <20180831134943.7f516fed@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 Fri, 31 Aug 2018 15:17:44 +0000 Matteo Croce wrote: > On Fri, Aug 31, 2018 at 3:49 AM Nicholas Piggin wrote: > > > > 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! > > > > Okay sorry for the delay, I can reproduce it here and found a better > > fix, if I could trouble you to test again. > > > > [PATCH] tty: hvc: hvc_poll() fix read loop hang > > > > Hi Nicholas, > > the patch works, but now pasting text inside the terminal is extremely > slow, it feels worse than a 9600 baud serial line. > > Btw, I had to apply the patch by hand as it was corrupted, some lines > were collapsed into one. Oh, when you revert the above commit, does it fix the speed problem as well? I realise I'm testing with a remote machine that probably is not connected with much better than 9600 baud... I will set up a local test. Thanks, Nick