Received: by 10.192.165.148 with SMTP id m20csp2920726imm; Mon, 7 May 2018 03:37:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqaKCYYHKhui+AiOKeVx+ENKhYzzY1OcbLBL3uSUUfOkB5yWeJanWz0hrAJ/iTA/jGkAnJD X-Received: by 2002:a65:65ce:: with SMTP id y14-v6mr29789439pgv.137.1525689429636; Mon, 07 May 2018 03:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525689429; cv=none; d=google.com; s=arc-20160816; b=ScHjuyvbyKP7sLVQayuRpaPshkQDvhI7MBH486Acu6Y18cJ5vJgHBdGTjDvJHjK1IG kk0yN8HLDBxcNeek/GaVFTRRwdc72NvwFaIND1yRkj337zH6qhaQG0OmJ5LdntE5QXg7 vXEs4CFq0b9kqNzjDUrlUWNQi6L5BvGo5uRDgHNWA/dObIAh+xEHNwcSOcrRW+XFs0f+ p91FOYZqr8WGw0HOa20e9PiGVSM1YEiMij2ajk09evf+8yAFUll2/scYf6ewyZ3f0b13 4jt0xVuWMKNtWI27bFFUSvDynt+iJHffmvWkTsOfrHYP1MjUi6hflNBVItVEHfLlSFSJ ulvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=0YbNBzefztt5GIGJNkbezKI+SqxuLT6qDbL22ppqFV8=; b=ZkhgMyolvZ43ad7ey3qPdoey0IejtC0kvo94XcezaPAuwoYo/s3NUPx0BgEjRWDY3R 4h5D55VyXeD2yYfsetId8zZ66gDENMzcf661zuXRDdakfUfJZTi4U+f/SZPh7mxsiiEU sN1MQbtiSERc+O82ynOZ+IVNHGPdHBnRN5QkCpduNQYuFyd3BPYDNcmIhzDZy9Xpg2Qy f3Kt0C2jk/xSBVCz8OV8kWnNpxlmDGOSZlsBz7JWZ1iLljRRUoXp/X9BZJy50/BfKkHJ XQVMd48jklRIBjTgVNBQv3VuxN3ImjYmSVdBuGbymBgAev17QEqGK/PVXut4wReJLiTu Rq8Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d132-v6si17969868pgc.253.2018.05.07.03.36.55; Mon, 07 May 2018 03:37:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752120AbeEGKgo (ORCPT + 99 others); Mon, 7 May 2018 06:36:44 -0400 Received: from ozlabs.org ([203.11.71.1]:37517 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751848AbeEGKgn (ORCPT ); Mon, 7 May 2018 06:36:43 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 40ffDm5CkSz9s1d; Mon, 7 May 2018 20:36:40 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Nicholas Piggin Cc: linuxppc-dev@lists.ozlabs.org, Jiri Slaby , linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH 04/15] powerpc/powernv: opal-kmsg use flush fallback from console code In-Reply-To: <20180504153717.4806d9c4@roar.ozlabs.ibm.com> References: <20180430145558.4308-1-npiggin@gmail.com> <20180430145558.4308-5-npiggin@gmail.com> <87muxg80ga.fsf@concordia.ellerman.id.au> <20180504153717.4806d9c4@roar.ozlabs.ibm.com> Date: Mon, 07 May 2018 20:36:39 +1000 Message-ID: <87wowfbvm0.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nicholas Piggin writes: > On Fri, 04 May 2018 15:16:37 +1000 > Michael Ellerman wrote: >> Nicholas Piggin writes: >> > Use the more refined and tested event polling loop from opal_put_chars >> > as the fallback console flush in the opal-kmsg path. This loop is used >> > by the console driver today, whereas the opal-kmsg fallback is not >> > likely to have been used for years. >> > >> > Use WARN_ONCE rather than a printk when the fallback is invoked to >> > prepare for moving the console flush into a common function. >> >> Do we want to add a WARN in that path? If we're panicking things might >> get worse if we WARN (which takes a trap). > > True, probably a good idea not to... oh there's a printk_once so > that'll work nicely. Cool. I have this series in a tree so you can send me an incremental diff if it's reasonably small. cheers