Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1037775rwd; Tue, 16 May 2023 10:52:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4eQ7SD7RLhSqEwvIqiCt/ZNlitxCUFHJ37YUcXJXgtnlqd1Kvb/Oq7cyTt6bYZhW2yacL7 X-Received: by 2002:a05:6a20:2451:b0:104:dcea:2227 with SMTP id t17-20020a056a20245100b00104dcea2227mr19071650pzc.2.1684259541443; Tue, 16 May 2023 10:52:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684259541; cv=none; d=google.com; s=arc-20160816; b=C+9yY2j/AXbSLsvhwb8494DyXFQrrq7VZmTkkoqwGMKcBdrujA8gcgwR8FgoGppieN RNIrQdbQCTBNPY/MzscctSix6Ofv2+cy7gHdwzSIQONpXxjHmK2bd6CtfbavCsOAfeOS 2nLcV8kKrW7XGu3fL8Wa1c0vuQrsYBCUonGdUESFNnQ7+dbZISrbAfHRemhMHz0CFu6E 1lO/uplCTmdhYHrzFdHh2sS/k8HPr6GMERzDyL3dl6BVn6IaQaWLs8jFHLNBu9VqfQt4 ckhnfIFnpmgweMvHI9kv6NbD5fVUMTs0cHszjbJSA0FJh79Y5RRfn6+K/rzbXdwU+E/K bb4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=7RTlb4yPLwyEbMekf/kZ3q59ewoUpiiohu1ETmUvaCM=; b=yupWY6TW9r4nNfz5mvaUnsgLFBlqov0iB140s7FKTalywBL5sSIBR4jHU/qb0szK8T b5YnsPiS/BdKbS9N5P2/LWrvpq8m88ZYTPggjHzKo2iI9GKMOn2HH2gVsiFc+1jXcjei auLqTVOCFHqCL9qtroEHpCkJyrLM+Cuznva0h9t89ovci4WTHkywAvDaxGnBSU9Pcy3+ EejF1W8se/9QjGxiFr6+KRq/MsuKlnKvn6iZ5PYhPwfXT2rPaClQCs+CrjnkwLJzxKMw OBc0oXyJtEgf6xVa16viLQJGj9rLJ7QIdaYYj6udlg14uW3puzClGZZxdrXJELOijUwz wXfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=tjSVD2GD; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ciFx69qJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k64-20020a638443000000b0053079e594aasi8101180pgd.498.2023.05.16.10.52.03; Tue, 16 May 2023 10:52:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=tjSVD2GD; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ciFx69qJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231433AbjEPRrx (ORCPT + 99 others); Tue, 16 May 2023 13:47:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231165AbjEPRru (ORCPT ); Tue, 16 May 2023 13:47:50 -0400 Received: from new4-smtp.messagingengine.com (new4-smtp.messagingengine.com [66.111.4.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AD399EE4; Tue, 16 May 2023 10:47:40 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailnew.nyi.internal (Postfix) with ESMTP id 9F99D581012; Tue, 16 May 2023 13:47:39 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Tue, 16 May 2023 13:47:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1684259259; x=1684266459; bh=7R Tlb4yPLwyEbMekf/kZ3q59ewoUpiiohu1ETmUvaCM=; b=tjSVD2GDDI6vJ83hu2 J0wG8DQCFOFbtD4wryKKIsm8NrKyYWw9AxEpnAygm+AGD4nEF+j2mlJ4DdXq8T7f 5QNxCwjCLFwN4LQVkqurLDF0jW1A9Zzz9wuP8KmJ+dOKMC7ySN2l+XD2DB+vAURd 6HwY0kPm0vBIX61vZDEmsG6v4odA+Wveqknzg8HJe84D9+Q/i7EzXkxjhIOGsu4K Bn3sr+SEQpMQKfLLbdVTMEAMgMrfED9RHqZwlTkKYfdLgHhBCfQNds8ESPs0wA5+ 2AzSXtwnhzkb+RBCBVRlsb6shv5c3exsHtDbboEghfnX3UvEDusXCS9pSl0ALX42 +Xyg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1684259259; x=1684266459; bh=7RTlb4yPLwyEb Mekf/kZ3q59ewoUpiiohu1ETmUvaCM=; b=ciFx69qJrZA7yv8A1zotpocAWV1mM DnUP6xkiq9u2k7Phst28yF9pOYB+p24imZJrUwwQF6DaQRUyeCdMCHTN6yVxU/vW Zix27X67pchamsczOqs7J0fQmHu0V5swPms3kpa35adfR5aXURViqtvoRoUWTY5a VGrXwUFJRCfHN/YuNMUZDl9wn8yBTKr7VBmb16uia+BCMsXDlQJp7yj7UMvHEfiR Ebny8zc51oZx4GRbyjokzwqbrXLiBKtObXTWrW3CD5SJCpHHNRnP+f9Dsand+SZT dzhYqpvdJUL8oVoDvA2y4v+/D77Af1UZoXejTAWumnmNa1AN9KFpUQmtQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehledgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeevveeggeffjeeuieduheefhfehgfdujeetjeelueejjeffueeiudefveff hffhffenucffohhmrghinhepsghoohhtlhhinhdrtghomhenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E6956B60086; Tue, 16 May 2023 13:47:38 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-431-g1d6a3ebb56-fm-20230511.001-g1d6a3ebb Mime-Version: 1.0 Message-Id: <0d6d0620-ab14-47ba-90cd-5bce317ac1eb@app.fastmail.com> In-Reply-To: References: <20230516110038.2413224-1-schnelle@linux.ibm.com> <20230516110038.2413224-8-schnelle@linux.ibm.com> Date: Tue, 16 May 2023 19:47:18 +0200 From: "Arnd Bergmann" To: "Thomas Zimmermann" , "Niklas Schnelle" , "Dave Airlie" , "Gerd Hoffmann" , "Dave Airlie" , "Daniel Vetter" Cc: Linux-Arch , "Arnd Bergmann" , "Albert Ou" , "Rafael J . Wysocki" , "Greg Kroah-Hartman" , "Paul Walmsley" , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, "Alan Stern" , spice-devel@lists.freedesktop.org, =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , "Bjorn Helgaas" , "Geert Uytterhoeven" , "Mauro Carvalho Chehab" , "Palmer Dabbelt" Subject: Re: [PATCH v4 07/41] drm: handle HAS_IOPORT dependencies Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 16, 2023, at 19:13, Thomas Zimmermann wrote: > > Am 16.05.23 um 13:00 schrieb Niklas Schnelle: >> In a future patch HAS_IOPORT=n will result in inb()/outb() and friends >> not being declared. We thus need to add HAS_IOPORT as dependency for >> those drivers using them. In the bochs driver there is optional MMIO >> support detected at runtime, warn if this isn't taken when >> HAS_IOPORT is not defined. >> >> There is also a direct and hard coded use in cirrus.c which according to >> the comment is only necessary during resume. Let's just skip this as >> for example s390 which doesn't have I/O port support also doesen't >> support suspend/resume. >> >> Co-developed-by: Arnd Bergmann >> Signed-off-by: Arnd Bergmann >> Signed-off-by: Niklas Schnelle >> --- >> Note: The HAS_IOPORT Kconfig option was added in v6.4-rc1 so >> per-subsystem patches may be applied independently >> >> drivers/gpu/drm/qxl/Kconfig | 1 + >> drivers/gpu/drm/tiny/bochs.c | 17 +++++++++++++++++ >> drivers/gpu/drm/tiny/cirrus.c | 2 ++ > > There are more invocations in gma500. See[1] > > [1] > https://elixir.bootlin.com/linux/v6.3/source/drivers/gpu/drm/gma500/cdv_device.c#L30 GMA500 already has "depends on X86", so I don't think any changes are needed there -- x86 is already highly dependent on I/O ports for a number of reasons. Arnd