Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1214800lqo; Sat, 11 May 2024 12:30:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVUbsQhoaCg1wSd2M4RtjgvTnYvboNeVa0AYz38her25DUfkA+rHaY6lqAtm+MpwbgI1oGEOpmbloiJ7YUMXr4/7jts1GR77i4o6SjIsA== X-Google-Smtp-Source: AGHT+IGh6d2E44PbLznDP0jnfodvnETo2pdqv+WI3/H1xAwgKixcZMxrc4b4xq1kOqPrmyzkjObK X-Received: by 2002:a17:90a:5901:b0:2b3:28be:dd6e with SMTP id 98e67ed59e1d1-2b6ccd6baedmr5218130a91.33.1715455830082; Sat, 11 May 2024 12:30:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715455830; cv=pass; d=google.com; s=arc-20160816; b=KzfOXXKFsxga3VLZ1X/nN1dixQ9ukgtVNfcDihlUU3+9Z6KUEeC/Mg23PZOsjc3G3d os5uT4AVb6iAdCfdMmMmQMxA3ZC7X1RUIQeINlmKJG+l7HLE2ptTFu5feFJGYup76QkE uiZNpFoX9jsSDsSPeYdFzEZPGUC4TRsbUZPOYYHhal0uoq6h48gbIGDTwi4yMTx04KBU zQRYAB36cTqu6QQEZYLvol61xRTq5kEOoxjfe+jSSQZo3316BLjpNJBAC5v3Roe6cA12 9VA3X/hu3XOdDKTJKPAi6Pc6uujJ85rl/2RDJ5iZiQ33SGGSeRVbFLwylN3lMidnSA7S OQ8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=rd4X6oeIsPEko/YtXGb2SSHu5VdimYDlh48ZOg06U2g=; fh=uqCnhcs1KFOZqxjx3ETFkHkbHKBRd6vg13dOigwPJAM=; b=sOnPkYtnALT6/tymprbuHhaeYhdyjRTPT7qf1CztNjDWgo1zmDLEVW0oDnMhkq3zvj aSK0tXZnxC/J6PT6sOcGuklDuV5R07BdZRptAfJQ8fpbCrOyuMqGbMLCqQ7aDOyRvMnd 182v12hJgj/mFsivEyx7JQwX7m4ico+xFj3oUC4VNsYaCyqqmbLgRP/lfSkCXs0rE5i/ I73lVy3gXkBhXXpQPFgUwe71CMgT64sVmMENXm0jANBFLr2UR0fh5l6yosWTmRgsQXc2 ZnvNIEWauPqmDm/QY3pQh1W3ojQaujK+KPATHDMZaZtvYGBPfOqyhmv/WcPfc7nJNo+1 iZ2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@fu-berlin.de header.s=fub01 header.b=DfqLIEV3; arc=pass (i=1 spf=pass spfdomain=zedat.fu-berlin.de dkim=pass dkdomain=fu-berlin.de dmarc=pass fromdomain=physik.fu-berlin.de); spf=pass (google.com: domain of linux-kernel+bounces-176702-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176702-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fu-berlin.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628fc6287si8688787a91.146.2024.05.11.12.30.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 12:30:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176702-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=fail header.i=@fu-berlin.de header.s=fub01 header.b=DfqLIEV3; arc=pass (i=1 spf=pass spfdomain=zedat.fu-berlin.de dkim=pass dkdomain=fu-berlin.de dmarc=pass fromdomain=physik.fu-berlin.de); spf=pass (google.com: domain of linux-kernel+bounces-176702-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176702-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fu-berlin.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id AD2D6281AF6 for ; Sat, 11 May 2024 19:30:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B24DB1CF9B; Sat, 11 May 2024 19:30:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fu-berlin.de header.i=@fu-berlin.de header.b="DfqLIEV3" Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD4981C6B7; Sat, 11 May 2024 19:30:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.133.4.66 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715455823; cv=none; b=YbzzJO1Jt1uXm7c1f8toY8JOISTYX8oqBU6UXU7B6y5HOMjlxQMV9BVbtrtftpaIn4Eh2GF/lPSWHxTT7kZAMDEdH6Ze9Q/p7UDTCEhLHwFPtfEiyQYNGGxRcNOlka8v7RHH+ShQcxvE8LKSPMD5/89IblznNjkB/7+9G5LyEPQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715455823; c=relaxed/simple; bh=UMiHuXovsO9jrvFr2B88I117qzdlRC9jsvRcXVd5ueM=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=UyiLQAoucSjlWG5ZJcnihnwHnCQ2UB83rVZIfng05YXPrgHPJYYk0r6oB6riKWKwlorbpzfRH1HrJkMsKrDO0CiaAXeWOg9+MjJOGa8LJeyCgnrAAl9GGiOxAZZHnMGP9tSsqD5VUJeTkY0Aq0fHyfvDV8PpTyFsDwtYNpBAw7o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=physik.fu-berlin.de; spf=pass smtp.mailfrom=zedat.fu-berlin.de; dkim=pass (2048-bit key) header.d=fu-berlin.de header.i=@fu-berlin.de header.b=DfqLIEV3; arc=none smtp.client-ip=130.133.4.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=physik.fu-berlin.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zedat.fu-berlin.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fu-berlin.de; s=fub01; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rd4X6oeIsPEko/YtXGb2SSHu5VdimYDlh48ZOg06U2g=; t=1715455820; x=1716060620; b=DfqLIEV3FcWSFhoxvVhGLxfX4UjFrKpMlhaVYfEBcW0QlWNq1hnNzaRaACQmjjd2YFDAmkV6vsP 5y3twb6N7iKGSoc9KkoMWmM6glULtxtBXw1wcyLRzm/G8KVcjLRqa6hQ9S2deRMvy4n+qlXHUGN4L W8AMQhp7zwayzYxOolPK5wrjKj5BGDkh9HNZ+utA3U6Ml2+lmRyAjM1+Sqywb2F2hCkCXFKQPKu0E xkIQfY7dF0OBx/T5fkaPh+yTz3D8uyZBEU3F4VGU9BVMac6DI7SSl6BXNh4fPg/ihL7GY6snBm2Yu DJsCw+//J2uaInvFZfznHaQty2vMJKj7wkag==; Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.97) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1s5sQC-00000003bGP-1019; Sat, 11 May 2024 21:30:16 +0200 Received: from dynamic-078-055-008-036.78.55.pool.telefonica.de ([78.55.8.36] helo=suse-laptop.fritz.box) by inpost2.zedat.fu-berlin.de (Exim 4.97) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1s5sQC-00000002jBD-08vM; Sat, 11 May 2024 21:30:16 +0200 Message-ID: <1ba5bbc958e6e5e1e442d942d490aeea9cfda602.camel@physik.fu-berlin.de> Subject: Re: [PATCH 1/1] sh: dreamcast: Fix GAPS PCI bridge addressing From: John Paul Adrian Glaubitz To: Artur Rojek , Yoshinori Sato , Rich Felker , Paul Cercueil Cc: linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sat, 11 May 2024 21:30:15 +0200 In-Reply-To: <20240511191614.68561-2-contact@artur-rojek.eu> References: <20240511191614.68561-1-contact@artur-rojek.eu> <20240511191614.68561-2-contact@artur-rojek.eu> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-ZEDAT-Hint: PO Hi, On Sat, 2024-05-11 at 21:16 +0200, Artur Rojek wrote: > The G2-to-PCI bridge chip found in SEGA Dreamcast assumes P2 area > relative addresses. >=20 > Set the appropriate IOPORT base offset. >=20 > Tested-by: Paul Cercueil > Signed-off-by: Artur Rojek > --- > arch/sh/Kconfig | 3 ++- > arch/sh/boards/mach-dreamcast/setup.c | 3 +++ > 2 files changed, 5 insertions(+), 1 deletion(-) >=20 > diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig > index 217bdc4d0201..f723e2256c9c 100644 > --- a/arch/sh/Kconfig > +++ b/arch/sh/Kconfig > @@ -126,7 +126,8 @@ config ARCH_HAS_ILOG2_U64 > =20 > config NO_IOPORT_MAP > def_bool !PCI > - depends on !SH_SHMIN && !SH_HP6XX && !SH_SOLUTION_ENGINE > + depends on !SH_SHMIN && !SH_HP6XX && !SH_SOLUTION_ENGINE && \ > + !SH_DREAMCAST > =20 > config IO_TRAPPED > bool > diff --git a/arch/sh/boards/mach-dreamcast/setup.c b/arch/sh/boards/mach-= dreamcast/setup.c > index 2d966c1c2cc1..daa8455549fa 100644 > --- a/arch/sh/boards/mach-dreamcast/setup.c > +++ b/arch/sh/boards/mach-dreamcast/setup.c > @@ -25,10 +25,13 @@ > #include > #include > #include > +#include > #include > =20 > static void __init dreamcast_setup(char **cmdline_p) > { > + /* GAPS PCI bridge assumes P2 area relative addresses. */ > + __set_io_port_base(P2SEG); > } > =20 > static struct sh_machine_vector mv_dreamcast __initmv =3D { Reviewed-by: John Paul Adrian Glaubitz Adrian --=20 .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913