Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2397738pxj; Mon, 10 May 2021 01:48:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw1bH/bHmsth2jbk/qD5WhC8IbMd1NWAgH8nKEIVnxMSB7Trd60lVlHl1Nlajud781372L X-Received: by 2002:a92:d40c:: with SMTP id q12mr20507574ilm.140.1620636532255; Mon, 10 May 2021 01:48:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620636532; cv=none; d=google.com; s=arc-20160816; b=CP8SHQYhQhK209y/zH5bEU/gnHBsDfxdskHMiK0ulZSwmAV7O/p8U17D4K49v9JBGa UQJ22lFMjboCIg9LDkrWupGhYxYiK/PVMrZmitwta19hZIRrmZM0njatj5PBDvAdRL4/ lIZgxCG/wdBG1IqYE+Zz2FKjQkpzF3x0/asthlVTj+i1XAjgPriSXhtx6WAvqN+kqEoF 7XGWjppEDFYQltvULKyBRz6iIy6hv5mAT/W3x14Umpb/Lql06a5YFgzu52wNnrpQNHTM dm1jBo8kRFxvw+lyON8qdg0CBkLKmH0ie395zbxKQhQ0v4PEamu3C7OrfFajuZ/xVZNC GqkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mp/51zQTwU0ypyrfGm7d48XnTdWhVBfdFjEkqW1sSTI=; b=uiI2SL/Purmx5l+TBclcR98gRXOpRKtjPq1UhPJ9Wt5d4MKw7dkoXXAj9QS6ws3XFl OpI1CY822buiuIE87s6etYoY4P0ETttnWKWLIkNG/9Whz48h/qxoZ5jjYikIZO3clpCY /QrA6M7SZGi/4x9KbAmCyQETe6QQATaecuK66ecBKYLE/OmggqD4381rLdzrja8UyV8q m4OGHJxSFd3R91fqcsIRoM96ZEC3xzTIiarLJzyKp/bU/4bEe11lAfRye9N5Sw1SU0GC ZYTJCRj4FUnDET45NthoRulqAsHSdJYjfM4f81BFqjVIYzJe4n9e3Uv2lJKEbc/cTTcC 28JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="RosswqG/"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g19si18853857jat.91.2021.05.10.01.48.40; Mon, 10 May 2021 01:48:52 -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; dkim=pass header.i=@ibm.com header.s=pp1 header.b="RosswqG/"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230241AbhEJItH (ORCPT + 99 others); Mon, 10 May 2021 04:49:07 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:11370 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230188AbhEJItG (ORCPT ); Mon, 10 May 2021 04:49:06 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 14A8Y1mP142410; Mon, 10 May 2021 04:47:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : mime-version; s=pp1; bh=mp/51zQTwU0ypyrfGm7d48XnTdWhVBfdFjEkqW1sSTI=; b=RosswqG/RQpC8NYX9+lTy6EWlYVT6jo646pFbpUzsrx8zs7SF47sPtWmPbU9vYMsyya5 +PCuz32wkh99huvudm5hPdCd7MfLKMOgoDQt6boYpw4z56abWjWk1veTYz4mKKSWsUDL cVZ5Uv7RMGzRjkuTc0XiBphTx5aVPvNbWe4wXj2T+e6d2/AwMM09+k3jc6GQViRVPnFo bGRs7IoxbJ86W8JJO0SSSUPKZk3VdGF4C1m4qGH/wNiBnfHoZp2JJZT5SqHQd0C6DHAW 1UGCy5nsK66SBBR4kFnyXkUQfeUcH6kwTmt05LtDkjTbdz5b34ncicMGVJ1pCmQFGMVX 2A== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 38f14tgt5h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 May 2021 04:47:49 -0400 Received: from m0098416.ppops.net (m0098416.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 14A8Y0X6142349; Mon, 10 May 2021 04:47:48 -0400 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 38f14tgt55-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 May 2021 04:47:48 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 14A8hEVG023702; Mon, 10 May 2021 08:47:47 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma03ams.nl.ibm.com with ESMTP id 38dj988sg0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 May 2021 08:47:47 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 14A8liFF22086034 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 May 2021 08:47:44 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B403F4C044; Mon, 10 May 2021 08:47:44 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 514AB4C05A; Mon, 10 May 2021 08:47:44 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 10 May 2021 08:47:44 +0000 (GMT) From: Niklas Schnelle To: Arnd Bergmann , Vineet Gupta , "David S. Miller" Cc: Nathan Chancellor , Nick Desaulniers , clang-built-linux@googlegroups.com, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-snps-arc@lists.infradead.org, sparclinux@vger.kernel.org Subject: [PATCH v5--cover-letter 1/3] sparc: explicitly set PCI_IOBASE to 0 Date: Mon, 10 May 2021 10:47:41 +0200 Message-Id: <20210510084743.1850777-2-schnelle@linux.ibm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210510084743.1850777-1-schnelle@linux.ibm.com> References: <20210510084743.1850777-1-schnelle@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: JtxoUCGur3jImDIEPlEJ7bs4M8HeIT5X X-Proofpoint-GUID: _EH7UP4vpJXtbqUPifcmdxty6KZawUbs Content-Transfer-Encoding: 8bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-05-10_04:2021-05-10,2021-05-10 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxlogscore=999 spamscore=0 mlxscore=0 suspectscore=0 impostorscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105100061 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Instead of relying on the fallback in asm-generic/io.h which sets PCI_IOBASE 0 if it is not defined set it explicitly. Link: https://lore.kernel.org/lkml/CAK8P3a3PK9zyeP4ymELtc2ZYnymECoACiigw9Za+pvSJpCk5=g@mail.gmail.com/ Signed-off-by: Niklas Schnelle --- arch/sparc/include/asm/io.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/sparc/include/asm/io.h b/arch/sparc/include/asm/io.h index 2eefa526b38f..c019e50702c1 100644 --- a/arch/sparc/include/asm/io.h +++ b/arch/sparc/include/asm/io.h @@ -1,6 +1,14 @@ /* SPDX-License-Identifier: GPL-2.0 */ #ifndef ___ASM_SPARC_IO_H #define ___ASM_SPARC_IO_H + +/* + * On LEON PCI addresses below 64k are converted to IO accesses. + * io_remap_xxx() returns a kernel virtual address in the PCI window so + * inb() doesn't need to add an offset. + */ +#define PCI_IOBASE ((void __iomem *)0) + #if defined(__sparc__) && defined(__arch64__) #include #else -- 2.25.1