Received: by 10.213.65.68 with SMTP id h4csp1101431imn; Wed, 14 Mar 2018 09:37:46 -0700 (PDT) X-Google-Smtp-Source: AG47ELue/edmojj9BIBZbDcYw+5s5/us7itKoMC+tXIznWoPttkDxiU/ldC8e56e0LsNibwCUffw X-Received: by 2002:a17:902:20c2:: with SMTP id v2-v6mr4805515plg.82.1521045466573; Wed, 14 Mar 2018 09:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521045466; cv=none; d=google.com; s=arc-20160816; b=udTBDl7y2iiZU8um3raOH3oo2wIJrjcvOPb7k76pw+EIDptEPTfy8NOSxq1gObDPfL d2FCvZmj0LOVyd5DfZ0CNOTyehVeVUxaoGOA61oP+SR3mAMHWuRPSyDtMxAWnWAWvbZ7 hUvEPXJyyKrwyJsLR2YtUk1NR0xBcI6E8lptkld3n1461vSFwqx8TO+guEmQTY2pznOB ZR75MnQ19KpW5b0c2aj+08tenYAdVjNCr23SEqwVdt07RXIGIywPUHoEuwf5uY8fFJyU P4beMeJP3Hz9+9HUAqPmN9nhHsO/ZeEj21H/hhb08G6OGnKYSHI/1CFCNCI/0loQUhmw iHSQ== 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 :arc-authentication-results; bh=Su5HF1jS/OCJZg1aGqv36N0tUcFMBycdA8VoRMj9wOw=; b=lIIRjE8F5JzLnKT/1SVUi4QSxcwedyCqaIIe0LOSYfidrCayns6UM1dQ/AWBObIb0v XuZTOlW5IcIF9Dzxs8Odz4rcT5pE+d6Dv7hVaqOE9uh6zMqSMErD9upJyJVz27JlUall ASYO9MWWWDnsvsLD1q4XgJ5s81HW8Yfxa0PDF5H2iFTOk1YxSIHN1gbqgPqE4Ltd+UT/ oqKfPp33VJlS3HPvxs2h1kpnt0p6yEgWK2bvz4l9OMHH81xQaEKsNxwhzFtyE33NsQ09 mL+qMM4B3wdP2I9O/0385qJvoIZGGknRqoF5fBl9cPusVCzyYQ8O6z15d0alXHRjSS7M evKQ== 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 c9si2069197pge.2.2018.03.14.09.37.32; Wed, 14 Mar 2018 09:37:46 -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 S1752487AbeCNQfa (ORCPT + 99 others); Wed, 14 Mar 2018 12:35:30 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:44546 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751289AbeCNQf1 (ORCPT ); Wed, 14 Mar 2018 12:35:27 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2EGZBVQ126740 for ; Wed, 14 Mar 2018 12:35:27 -0400 Received: from e34.co.us.ibm.com (e34.co.us.ibm.com [32.97.110.152]) by mx0a-001b2d01.pphosted.com with ESMTP id 2gq5c6egag-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Wed, 14 Mar 2018 12:35:27 -0400 Received: from localhost by e34.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 14 Mar 2018 10:35:26 -0600 Received: from b03cxnp08028.gho.boulder.ibm.com (9.17.130.20) by e34.co.us.ibm.com (192.168.1.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 14 Mar 2018 10:35:22 -0600 Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w2EGZLiu6095358; Wed, 14 Mar 2018 09:35:21 -0700 Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D23917803F; Wed, 14 Mar 2018 10:35:21 -0600 (MDT) Received: from ibm.ibmmodules.com (unknown [9.85.207.171]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTP id 59B0678038; Wed, 14 Mar 2018 10:35:18 -0600 (MDT) From: "Desnes A. Nunes do Rosario" To: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: bhelgaas@google.com, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, ruscur@russell.cc, aik@ozlabs.ru, david@gibson.dropbear.id.au, fbarrat@linux.vnet.ibm.com, brking@linux.vnet.ibm.com Subject: [PATCH 0/2] Silent PCI realignment messages during boot Date: Wed, 14 Mar 2018 13:34:53 -0300 X-Mailer: git-send-email 2.14.3 X-TM-AS-GCONF: 00 x-cbid: 18031416-0016-0000-0000-000008642E50 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008673; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000254; SDB=6.01002988; UDB=6.00510401; IPR=6.00782318; MB=3.00020033; MTD=3.00000008; XFM=3.00000015; UTC=2018-03-14 16:35:25 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18031416-0017-0000-0000-00003DD75132 Message-Id: <20180314163455.15854-1-desnesn@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-14_08:,, 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=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803140187 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset introduces PCI_DEV_FLAGS_QUIET_PCI_REALIGN attribute in pci_dev_flags which informs the pci subsystem to suppress all realignment messages. Powerpc has aligned all of its PCI resources to its PAGE_SIZE, and this feature can be easily used on any other arch through the __weak pcibios_default_alignment() interface. However, since all PCI resources will be now realigned during boot, the following messages will not only flood the system logs, but can be inter- preted 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 patchset provides a way for drivers to silent these messages if the PCI_DEV_FLAGS_QUIET_PCI_REALIGN is turned on. Moreover, it also tweaks this flag during boot on powerpc. Fixes: 38274637699 ("powerpc/powernv: Override pcibios_default_alignment() to force PCI devices to be page aligned") Signed-off-by: Desnes A. Nunes do Rosario Desnes A. Nunes do Rosario (2): pci: Addition of PCI_DEV_FLAGS_QUIET_PCI_REALIGN attribute to the PCI subsystem powerpc/powernv: Tweak PCI_DEV_FLAGS_QUIET_PCI_REALIGN on/off during boot arch/powerpc/platforms/powernv/pci.c | 14 ++++++++++++++ drivers/pci/pci.c | 3 ++- drivers/pci/setup-res.c | 3 ++- include/linux/pci.h | 2 ++ 4 files changed, 20 insertions(+), 2 deletions(-) -- 2.14.3