Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2551991pxj; Sun, 23 May 2021 03:56:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZow411kDj6xILX/4zvrDqg8fBRCdlLq9dYMsbLtAEc4F+7qMPq+jkjPMQRaKwYNOLtnJb X-Received: by 2002:a17:907:76e8:: with SMTP id kg8mr17164663ejc.130.1621767365329; Sun, 23 May 2021 03:56:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621767365; cv=none; d=google.com; s=arc-20160816; b=AfGXfmPVThUGnNhPrwJ7Eo/7b1X9Uo9uvB+aVxyV3M8FpvDV1sJLKlKqsxxrbvbEeH npqH+my0eJYSYKyRzrAef5vHHWqEaJri6xAgMJWjaHmctX6xdL9ygFa8MoJqcU2aOyLk Ql64ne0yfghs9RpjBncV/nhMcLYkuio1PYtwZwu0LZeX6NiKmNImyKwm8dVW96zRMyUL IZFpH1EIAcelS7b2IewUomHkB+uX5QX4kiF7yWFsLdO8LvVL2cLYKO20Cr0IQwR1P4Yw q6sJQZMtJtYoL1NfXrSb4oZQm1TVULu0U4F1RfQonD3W6RsuFqPIN0D/TZfH/M8u6p62 Pr9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=fb3r8WlcUmIl8WX4hG8TfnPwrOHKIduSdeuwoECBS0o=; b=qMJxww/SiJ/9JpZRcMlDsg6RzEsHdTJ2D+gjNcEdD8o2SrGcG8Yn0QuG5CCoAjxgRS Lb+42ydQUPYdRaJN4RyTg4aTgcB/iL/tAMzrd1He7NDgo8o2Y7QA09xCXow2HKNQKw/X VjqYpoqNI9fErIfO2dxJ+jPyOnOaDzFHUSHfUtBiYXRXrkZSRQO8HF9NkYOobqqUe89x pC1vgjX13IJ7GYzmmJlWfL2gm3cgPZuOzEoLcQN4KeL7iJV35Y0ECdY28DPw5dwvprbk rItvKau/ifGR+ZEcbkld7lMf8r/dy8DMxBRA17Lu/NTjy7wnJh0433rUc2BK6EORV3d3 tH/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=apJpFz3o; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w14si5680931edd.111.2021.05.23.03.55.28; Sun, 23 May 2021 03:56:05 -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=@ellerman.id.au header.s=201909 header.b=apJpFz3o; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231697AbhEWKwn (ORCPT + 99 others); Sun, 23 May 2021 06:52:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231679AbhEWKwn (ORCPT ); Sun, 23 May 2021 06:52:43 -0400 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B130EC061574 for ; Sun, 23 May 2021 03:51:16 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4FnxwH754hz9sRN; Sun, 23 May 2021 20:51:11 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1621767072; bh=X4NtLMivf9OnS/Dpei3UYlbkelZal2VO/5jUSAl6Krs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=apJpFz3oTrM1TCz5/jKU78KvIO5bPBBdqh9BIizd3LavEzQu4aBuFN1AY17K7yWtc 5Ys5HZuq4tIcylMjvwrjriWbEpER2Sh1fG26L4/w5A2HKxUgfU/yqB/wcYgw53sYaC creV/kfLL0JbdpstR0krx5/Qy+gTTKWvPem7Mls/87DAvzu4ZuTKSsDWnpryu4Ak+t CDrkcPA3iMnqUegZ1kx9QPdQBWUIlTBxpoR7qUiOmFg83BOm3OYgXJ9oAAVXtnHCJQ pI/FbKnQTyJZenWSJW3wW0JNbYTZXIhx2OT8lSdGeMDrLGVg01PyKZx6K1p2OBbjQI 9oX9MN8EN8Y0w== From: Michael Ellerman To: Greg KH , Nathan Lynch Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, jirislaby@kernel.org Subject: Re: [PATCH] powerpc/udbg_hvc: retry putc on -EAGAIN In-Reply-To: References: <20210514214422.3019105-1-nathanl@linux.ibm.com> Date: Sun, 23 May 2021 20:51:09 +1000 Message-ID: <87mtsliuzm.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. cheers