Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp446983pxj; Thu, 27 May 2021 04:12:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytzKz4rDTtF1IxxuX8mMB+GgBoWhCazhEWco2VnUfIW+zGsoOBK+KicOG74Dc6PnpAahUg X-Received: by 2002:a05:6402:190e:: with SMTP id e14mr3570264edz.146.1622113970967; Thu, 27 May 2021 04:12:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622113970; cv=none; d=google.com; s=arc-20160816; b=Wi20GmrzEjmN0S048Oq8R6nwZ3FASS/D6ps+I9BFxzRy1wCpOzAGESbBFZHI6wN43k XzQCAecyZpEsteqd/peW2Da8hrLJIgNAxGkHUvxgAQZA7S1l/TErweF65mbGx+PtB1o6 37tew0mxaTRumQdbgXRy/z7Iy1fVfYzJrnSyTWJhJvPGTPYAL+ZToYB1ZZBWmpfD4SQP uNoPh2BDyQyXLJtpgmJv+9Mi/ubXB0QNBUCCjRzEv7Sg33NVg/4T3PMiBTvR05ZdexpO 3zDGCus6b+SCsVVLsPWQDDHNp/onK/B+BoATFm0dE2yEqYfeerLtlAy18KKfaUzZIxPt G6LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/qLQUSsDjIuIKSR7yi9ZHVKnsoeKk0YmByBCmCRxkus=; b=EZ8ta94YLC2wwkYbIERhE578TFL1EopEqeKp9UNpB2lHdtzaYTd1AQ4mimud9ZKvvd cQu8HIKsIK1rJfA8X6moVz6VXW1zvklVm4IlUwQhF6uv2GUEahZTsf6Xa6pbYpDUxxxr OLHVbf06/WxHucaYhQqUYvPi4sdmeAXgCtVJXMnU9DM0tanl09pcU5A1S5u0UlMRaOQL /rJJe/xCGyT+bwfObNZXkTzhHxNULyHZj/5//yYse0kjVvfDUk/4JW9vg1HkDMTqL2XO RafOI42Juzj1+eKuc0NTESLKQnW1VI1GZgqvhMzicJz56eDXx36p3VbWWvSNnn2AAUsT D0+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Rw9eANvj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si1807600ejy.632.2021.05.27.04.12.17; Thu, 27 May 2021 04:12:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Rw9eANvj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233869AbhE0LMB (ORCPT + 99 others); Thu, 27 May 2021 07:12:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:42016 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232891AbhE0LL7 (ORCPT ); Thu, 27 May 2021 07:11:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2F1F561028; Thu, 27 May 2021 11:10:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622113825; bh=M3DIHT756xXhbeiWHhuicNBdTbcwyCz9skDBLtVxm5k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Rw9eANvjxWl1Odcz8PbgicIBK5gDbzfhfAPerFRKhTAgwHAkJfk9WMGaBQWoO39eb PG+CUcrmGQAxWWSe2TG+7BvH0yhVfxhH8Gy28ug2ajgBweAbRIYsH8IHoKytprQw+e OtwbAE9hT7mNWWnyjcOTYohFFGh9mpJD0xj5vB+E= Date: Thu, 27 May 2021 13:10:23 +0200 From: Greg KH To: Michael Ellerman Cc: Nathan Lynch , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, jirislaby@kernel.org Subject: Re: [PATCH] powerpc/udbg_hvc: retry putc on -EAGAIN Message-ID: References: <20210514214422.3019105-1-nathanl@linux.ibm.com> <87mtsliuzm.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87mtsliuzm.fsf@mpe.ellerman.id.au> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 23, 2021 at 08:51:09PM +1000, Michael Ellerman wrote: > Greg KH writes: > > On Fri, May 14, 2021 at 04:44:22PM -0500, Nathan Lynch wrote: > >> hvterm_raw_put_chars() calls hvc_put_chars(), which may return -EAGAIN > >> when the underlying hcall returns a "busy" status, but udbg_hvc_putc() > >> doesn't handle this. When using xmon on a PowerVM guest, this can > >> result in incomplete or garbled output when printing relatively large > >> amounts of data quickly, such as when dumping the kernel log buffer. > >> > >> Call again on -EAGAIN. > >> > >> Signed-off-by: Nathan Lynch > >> --- > >> drivers/tty/hvc/hvc_vio.c | 2 +- > > > > Subject line does not match up with this file name. > > > > Don't you want "tty" and "hvc" in there somewhere? > > It's a powerpc only driver, but I guess the subject should still be > "tty: hvc: ..." to match convention. > > I was planning to take this via the powerpc tree, but I can drop it if > you'd rather take it. No problem, feel free to take it yourself! greg k-h