Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1312130pxb; Sun, 11 Apr 2021 15:19:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyh5RynjVrflIwHl1+L/VpkVZ/VRSoLoVlnHbv/FIlJsG+WD+psBsEz4frP4WwXdW6HMg+4 X-Received: by 2002:a62:14cf:0:b029:249:a091:d26b with SMTP id 198-20020a6214cf0000b0290249a091d26bmr7875162pfu.30.1618179554472; Sun, 11 Apr 2021 15:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618179554; cv=none; d=google.com; s=arc-20160816; b=LFVFjzgUgtDDljN5XYwmpat3nRbRk979l2uLqnBhm3uUq0uBhMj4NLT4ZZ6mplqYDH 4ASeHGlB5tANfaPT9K6X0g8jHmUeC72ClUUXCsI44g+Dd3IeFcTA8D+Unygh+KPNYQMU ZoVP5w7ANP/2h3M1ug+k4q4itSAB+JzVhO6f27vmmtg+Ll7hZ+PzoYeJxInmzHKvp5q5 u/K98y00ISvhBImCYJiaNOM4nc1HsWTzL3jEO+a1cMGzFWBXVfei8en0RMH/NCwFIne8 e95bNy429PkIXG4hCz4gUsslW+hY3abDkm8kPjS0RfBpNHqT9N65q3nDR/HoSKKjjoQb yByA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=MGRPU7hSNTcaBMLxW0mXoKVl5+P+97HAbw303Y998kY=; b=DsRiSQ0wjoN/Izc9ophuV9aQXuju/MB74rJJEsNJQIz1trUNGdQNUufjylrjTp6cn9 WEmHb9KNQe9DzbENt1NI+LZqemz7QJpXSvKmnCopa3DEdLcDkcdWzzxxn8NqVBkmznpr JnVsYYQisgPMm3yH+OoxuuW+XUapoWeyTGH/21ZMlKoTPFcKgsFVYqyVsGCi4X9G0Ttv yLmnPFPepWI0A3jFiVP9BpJ3DHOWTLhIkkV521YcZ6rKfhyim7ObVSnUtzz2zDRcHJLM gxcmwtzLElx44TlXzAtT7q/UXNHz0CAzJ1kOGpllPCAL3jTN/OaqM5c7C2Dbv5Ck34u7 EARA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ispras.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j13si12667831pfa.196.2021.04.11.15.18.49; Sun, 11 Apr 2021 15:19:14 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ispras.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236556AbhDKUoM (ORCPT + 99 others); Sun, 11 Apr 2021 16:44:12 -0400 Received: from mail.ispras.ru ([83.149.199.84]:49486 "EHLO mail.ispras.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233822AbhDKUoL (ORCPT ); Sun, 11 Apr 2021 16:44:11 -0400 Received: from monopod.intra.ispras.ru (unknown [10.10.3.121]) by mail.ispras.ru (Postfix) with ESMTPS id 1A99340D3BFF; Sun, 11 Apr 2021 20:43:53 +0000 (UTC) Date: Sun, 11 Apr 2021 23:43:53 +0300 (MSK) From: Alexander Monakov To: John Ogness cc: Paul Menzel , Joerg Roedel , Suravee Suthikulpanit , iommu@lists.linux-foundation.org, LKML , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Joe Perches Subject: Re: [PATCH] iommu/amd: Fix extended features logging In-Reply-To: <87o8ekioo4.fsf@jogness.linutronix.de> Message-ID: References: <20210410211152.1938-1-amonakov@ispras.ru> <87o8ekioo4.fsf@jogness.linutronix.de> User-Agent: Alpine 2.20.13 (LNX 116 2015-12-14) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 11 Apr 2021, John Ogness wrote: > > pr_info("") will also prepend 'AMD-Vi:' to the feature list, which is > > nice. > > I'd rather fix dev_info callers to allow pr_cont and then fix any code > that is using this workaround. Note that existing two users of pr_info("") that I found are not using that as a workaround: efi.c is using that when it announced a list of EFI tables: efi: ACPI=0xadffe000 ACPI 2.0=0xadffe014 TPMFinalLog=0xadf2d000 ESRT=0xab70d618 SMBIOS=0xab70b000 SMBIOS 3.0=0xab709000 RNG=0xab707b98 TPMEventLog=0x9602c018 and uvesafb.c similarly uses it to print a list of conditionally-present strings. In both cases it is really a standalone message, not a continuation for something previously printed. In contrast, my patch deals with a continuation line. I wouldn't really like the decoded feature list to appear on the same line as the previous message, because it would end up quite long: [ 0.266332] pci 0000:00:00.2: AMD-Vi: Extended features (0x206d73ef22254ade): [ 0.266334] AMD-Vi: PPR X2APIC NX GT IA GA PC GA_vAPIC I think a good compromise is to change the first line from pci_info to pr_info, losing the pci bus address. I'll send a v2. Alexander