Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp364668ybv; Thu, 13 Feb 2020 01:52:16 -0800 (PST) X-Google-Smtp-Source: APXvYqwK4mqy+Q5Q8I9PnJzVL/zS10PSiUkqORWOX2wdnVrBO9Bj7DIlwZf02oWdP6D12y+r63Is X-Received: by 2002:a9d:63d6:: with SMTP id e22mr6146161otl.185.1581587535995; Thu, 13 Feb 2020 01:52:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581587535; cv=none; d=google.com; s=arc-20160816; b=iZQa8lKAjPkXWi+5367rqVMT7YwgzYMzwzibYMkVHeaKE5ltmr8QnBQZLUWW7/1MFL g3812GitJ1X49daIHUhHEQx53rCJ8usQW3UJWEZGhYrQU+W9/4cnNggMWdPp4VpUnVum eTKS/EOs/9EQE/46WXmXm7UgEwKqa/pDhGqiZwJeGeNVzGlYm8ePURw9nhJgzrs/n3Qn ujAE4yk7+Q+1hNvkv5cRhbjjuiKAyJFtGpQbYJPLwf01XA95tw+l/SwwS9xs2SBVMoOJ P4VMt01HjqG04ouP8kjfj6KtJhkn0SItXAi9SQr+jBweQyAQ3zvCN8M6UaI/HAA8949e CNzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=zpEf1sK/GYWWGbk7UMiigIBm2GdhFQn0ALbg41bbskA=; b=kNJ1jGxETEJ6UpCtc4g7HJ9JSXnccO3jn0r36NDqMh4gw3GTcufZfeTokjbHnKeW7f YPqm8FSNMfyQCB7s+Wq8kEzm2rY1XFA6HN3xfLzvvCfjg1nvfWDMrlEKwhowGTTVfTvW i3KHYBwyamgjZ0pNCU/OI+xb0uok1b1jVIAl5mNLisO5g5bWva06sRs9KM+7w/kDHOiJ gwhxYMxrQJIlMZg1oFEh3cY4O1ZjQtAolkj4d8+8SaMb64bpZx3kqYKRTpd4s3gZq6NG VbdXMAZ9XcXdi/KP3HEziFtlA9eQOvhRwM6Rd/k4+uYqrzxJiFkh/iU+g6ZrVa1cokXD PjXA== 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 k13si846841oij.118.2020.02.13.01.52.04; Thu, 13 Feb 2020 01:52:15 -0800 (PST) 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 S1729787AbgBMJvu (ORCPT + 99 others); Thu, 13 Feb 2020 04:51:50 -0500 Received: from mx2.suse.de ([195.135.220.15]:41144 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726232AbgBMJvt (ORCPT ); Thu, 13 Feb 2020 04:51:49 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 86587ADE0; Thu, 13 Feb 2020 09:51:47 +0000 (UTC) From: Petr Mladek To: Sergey Senozhatsky , Steven Rostedt , Benjamin Herrenschmidt Cc: Peter Zijlstra , John Ogness , linux-kernel@vger.kernel.org, Petr Mladek Subject: [PATCH v4 0/3] printk/console: Fix preferred console handling Date: Thu, 13 Feb 2020 10:51:30 +0100 Message-Id: <20200213095133.23176-1-pmladek@suse.com> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I send this on behalf of Benjamin who is traveling at the moment. It is an interesting approach to long terms problems with matching the console preferred on the command line. Changes against v3: + better check when accepting pre-enabled consoles + correct reasoning in the 3rd patch + update a comment of CON_CONSDEV definition + fixed checkpatch warnings Best Regards, Petr Benjamin Herrenschmidt (3): printk: Move console matching logic into a separate function printk: Fix preferred console selection with multiple matches printk: Correctly set CON_CONSDEV even when preferred console was not registered include/linux/console.h | 2 +- kernel/printk/console_cmdline.h | 1 + kernel/printk/printk.c | 122 +++++++++++++++++++++++++--------------- 3 files changed, 80 insertions(+), 45 deletions(-) -- 2.16.4