Received: by 10.213.65.68 with SMTP id h4csp1155429imn; Wed, 14 Mar 2018 11:11:52 -0700 (PDT) X-Google-Smtp-Source: AG47ELu1l3D/8vx5hqu5YmKvxcm09RSUqMuON5LolqypD+Q6Q4Iw/JjsdmBo/BMJHOM7M5HavIRi X-Received: by 2002:a17:902:8d8f:: with SMTP id v15-v6mr4935779plo.100.1521051111959; Wed, 14 Mar 2018 11:11:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521051111; cv=none; d=google.com; s=arc-20160816; b=Lj7hr6XVxQtUx6tQ340LG8UuuHFO5Eedw3U7499IC70mbY7MvlvhW+rtAW8KnAO855 mK64Kkj7tNwdNYV17u8+lffDrcygZ0gts/Apjb4MI123gp1A0k6v3cdUUhy+tO0wqnjG d+qYFnl/s+MTmYvkas9DlgJJfF7nW/CpCzpGrz6w1nep1bgVG6XUlazTS5gPl10eqlUu XDE0Tx8HFkUm5+Ks4ztYA4z3Dy+aMLxw3ZMbk4+JyrZSYEZXe79OeDcG7d0gFwKzvFUu BGfufeBn7GUjIcwlrnjwtNvy40dItdta9iz/s16gOtEfb032gRPor5iFxjvOMMYYzEnt N1Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject:arc-authentication-results; bh=rw+5SQi/pdoXATXqarmwC0l9Q565Bb/M7GyysA7iK9s=; b=bt6GwE+6ATImVvmMoR89rnSJ/BkXoTdFsG9NfD2mid12hUCBNkHnfgYcyXPjJm87h4 nhQPB+Pp8DPKky11aJoj2dN92sBsoqaPpSwXhwRpHHaCMA1tzhovUQ4b7FVPRm5Fku7X W7zZzsspT5tIwhSytO9iswK66fviMDPppxqEO2snJwAPYfAZIfRT0tI6L6m5UYhiMjhm CYAiA/f2R2IBYNY9dUTfVgk4OrbGx2PSEwKY7n71Vcx0ACVVq2udT8WiA1FgsXCJtOsg XNPAb2509ISUW+GH0n2L1e2FQmDR2cI55S68hucIONjyBcOgSxV8s4bbMgkTlbzuIGtr xa6g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1si2171331pgs.618.2018.03.14.11.11.37; Wed, 14 Mar 2018 11:11:51 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752394AbeCNSJ5 (ORCPT + 99 others); Wed, 14 Mar 2018 14:09:57 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:37820 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751694AbeCNSJ4 (ORCPT ); Wed, 14 Mar 2018 14:09:56 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2EI7q0X103340 for ; Wed, 14 Mar 2018 14:09:56 -0400 Received: from e14.ny.us.ibm.com (e14.ny.us.ibm.com [129.33.205.204]) by mx0a-001b2d01.pphosted.com with ESMTP id 2gq5b8a5x4-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Wed, 14 Mar 2018 14:09:52 -0400 Received: from localhost by e14.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 14 Mar 2018 14:09:35 -0400 Received: from b01cxnp22034.gho.pok.ibm.com (9.57.198.24) by e14.ny.us.ibm.com (146.89.104.201) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 14 Mar 2018 14:09:32 -0400 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w2EI9VQK51052566; Wed, 14 Mar 2018 18:09:31 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C8232112047; Wed, 14 Mar 2018 14:08:08 -0400 (EDT) Received: from [9.85.181.236] (unknown [9.85.181.236]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP id 64B82112051; Wed, 14 Mar 2018 14:08:06 -0400 (EDT) Subject: Re: [PATCH 1/2, pci] pci: Addition of PCI_DEV_FLAGS_QUIET_PCI_REALIGN attribute to the PCI subsystem To: Andy Shevchenko Cc: Linux Kernel Mailing List , linux-pci@vger.kernel.org, "open list:LINUX FOR POWERPC PA SEMI PWRFICIENT" , Bjorn Helgaas , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , ruscur@russell.cc, aik@ozlabs.ru, david@gibson.dropbear.id.au, fbarrat@linux.vnet.ibm.com, brking@linux.vnet.ibm.com References: <20180314163455.15854-1-desnesn@linux.vnet.ibm.com> <20180314163455.15854-2-desnesn@linux.vnet.ibm.com> From: =?UTF-8?Q?Desnes_Augusto_Nunes_do_Ros=c3=a1rio?= Date: Wed, 14 Mar 2018 15:09:28 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 18031418-0052-0000-0000-000002C984CC X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008674; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000254; SDB=6.01003020; UDB=6.00510421; IPR=6.00782349; MB=3.00020035; MTD=3.00000008; XFM=3.00000015; UTC=2018-03-14 18:09:34 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18031418-0053-0000-0000-00005BFEC492 Message-Id: <588ea850-2b28-2b7e-6e95-13d267f05cfa@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-14_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803140199 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Andy, On 03/14/2018 02:41 PM, Andy Shevchenko wrote: > On Wed, Mar 14, 2018 at 6:34 PM, Desnes A. Nunes do Rosario > wrote: >> Add PCI_DEV_FLAGS_QUIET_PCI_REALIGN to pci_dev_flags and use it to >> silent PCI realignment messages if the flag is turned on by a driver. > > It doesn't explain "Why?" > Why the driver needs that? I have written down the reason on the cover letter, but I concur on creating a second version of the patch's comment. Basically, all PCI resources on powerpc are printing out expected realignment messages which are flooding the systems logs. Perhaps this would be better? --- "Some architectures such as powerpc has aligned all of its PCI resources to its PAGE_SIZE during boot, thus the system logs will be flooded by expected realignment messages, which can be interpreted as a false positive for total PCI failure on the system. [root@system user]# dmesg | grep -i disabling [ 0.692270] pci 0000:00:00.0: Disabling memory decoding and releasing memory resources [ 0.692324] pci 0000:00:00.0: disabling bridge mem windows [ 0.729134] pci 0001:00:00.0: Disabling memory decoding and releasing memory resources [ 0.737352] pci 0001:00:00.0: disabling bridge mem windows [ 0.776295] pci 0002:00:00.0: Disabling memory decoding and releasing memory resources [ 0.784509] pci 0002:00:00.0: disabling bridge mem windows ... and goes on for all PCI devices ... Thus, this patch adds PCI_DEV_FLAGS_NO_REALIGN_MSG to pci_dev_flags and uses it to silent PCI realignment messages if the flag is turned on by a driver. " --- > > Another approach is to increase level of the message. Would it be > accepted by you (in case Bjorn agrees)? > >> --- a/include/linux/pci.h >> +++ b/include/linux/pci.h >> @@ -205,6 +205,8 @@ enum pci_dev_flags { >> PCI_DEV_FLAGS_NO_FLR_RESET = (__force pci_dev_flags_t) (1 << 10), >> /* Don't use Relaxed Ordering for TLPs directed at this device */ >> PCI_DEV_FLAGS_NO_RELAXED_ORDERING = (__force pci_dev_flags_t) (1 << 11), >> + /* Silent PCI resource realignment messages */ >> + PCI_DEV_FLAGS_QUIET_PCI_REALIGN = (__force pci_dev_flags_t) (1 << 12), > > I would rather name it _NO_PCI_REALIGN_MSG I concur on changing it to PCI_DEV_FLAGS_NO_REALIGN_MSG in a second version of the patchset. > >> }; > Thank you very much for your review, -- Desnes A. Nunes do Rosário