From patchwork Wed Jul 19 02:15:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Axtens X-Patchwork-Id: 9850339 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1E39A602A7 for ; Wed, 19 Jul 2017 02:17:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06ED828585 for ; Wed, 19 Jul 2017 02:17:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EFC3F285A1; Wed, 19 Jul 2017 02:17:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8DE6C28585 for ; Wed, 19 Jul 2017 02:17:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=+4S3Q//r0LQJJ5dUg7zHTvwfacc4VLn1NFfxXMjL6jU=; b=oxWs85OHokLN3PHbbKTjmRiuwV 9dk2HetTMo9zzKFCMapRZL5OOXRknjufvaGMZPB+5HTrOllxj0axMV6589B4v9Yl0xcdxLdkMpcnN S9ahxwdkQ4wONZtKl4IUbLHNbW2wIbPyn+dBq5KIZiQ/TMXBVmwrDgYvcv3VmMC1VSZK0ULF+TXoB rbNWpXU1LRok9qRZrKypSZR8B34rLZN0QPP2YSQjRWNhDfJxL4X3gQ0LRnZFarM4yYKaDqlW+m/5x VM5sLhOHxTX+B2jKDLnPv8olNJg4N0cvkmBZWFsCmwstM1JKX9rLfMGzPZF6lw54s5HhJoKzUb/NT 2NQ55rkA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dXeXv-0006a1-I6; Wed, 19 Jul 2017 02:17:03 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dXeXh-000679-6a for linux-arm-kernel@lists.infradead.org; Wed, 19 Jul 2017 02:16:53 +0000 Received: by mail-pf0-x242.google.com with SMTP id q85so4668775pfq.2 for ; Tue, 18 Jul 2017 19:16:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PNwllXDNCs6oYz9+PPS0l1xyE62Wtf9OU1ibrXasOxo=; b=jd1M1MgUgb0MCPlxwHnnQ6agG42UG9O7cG+JVexzdJsmwoPFDFFmLGMcdxEJ7CpZ11 /wf1SMAn4bjnJcfzMiV5KOb/5EKqX/TV6HnpXq9vtj188wYtA/TgntXWlGD3iLbnNCSw Ev0p1OKK+K34YtFFboVg8N9YT0LK7bxG7dcxQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PNwllXDNCs6oYz9+PPS0l1xyE62Wtf9OU1ibrXasOxo=; b=I4BTNyqwEgK/+2Ll1MMtL0Kst73l/AigBenWX/nzO1V9tKp6x5/2QARIBS4w/875XT ntuqLzGneXBHBGSuBND+w2CplfOzPUlGV3vcD48NKNusyHAnFZ2DtAI0p9+gKzYK+Vjn 7x8dnstGpSvb3TiHeEaWnMwNHmP2H1xdn0H0yVw/Jj39IxZB8M0vH2OOI6wG3Jh566Pf 7TUKOBZ52r/v+vWXpyfopMOxu/92/I6IsvqF4OLxBTbma7Rkh6eArEc62qcKLQ5ZLIVc 1NXDfPstTxZVzONPEXIqNS2NAijGh3ij0LRY8ZbmujYkTWHkpKjTX2LvVPk9uAPW5el3 sW3w== X-Gm-Message-State: AIVw1111O7jqD8MGMZe4n4yyA9W1PcANoXcQsDvnwNGG1UJunPIgZbti YEAnZNLpg4bapF8/ X-Received: by 10.99.185.25 with SMTP id z25mr550761pge.273.1500430591748; Tue, 18 Jul 2017 19:16:31 -0700 (PDT) Received: from localhost.localdomain (203-59-51-51.dyn.iinet.net.au. [203.59.51.51]) by smtp.gmail.com with ESMTPSA id d70sm8732241pfg.132.2017.07.18.19.16.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 19:16:31 -0700 (PDT) From: Daniel Axtens To: linux-pci@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 4/4] arm64: allow non-legacy VGA devices to be default Date: Wed, 19 Jul 2017 12:15:16 +1000 Message-Id: <20170719021516.24718-5-dja@axtens.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170719021516.24718-1-dja@axtens.net> References: <20170719021516.24718-1-dja@axtens.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170718_191649_624277_D081CA11 X-CRM114-Status: GOOD ( 11.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: gabriele.paoloni@huawei.com, airlied@linux.ie, benh@kernel.crashing.org, will.deacon@arm.com, z.liuxinliang@hisilicon.com, bhelgaas@google.com, alex.williamson@redhat.com, catalin.marinas@arm.com, zourongrong@gmail.com, daniel.vetter@intel.com, Daniel Axtens MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The VGA arbiter only marks a device as default if it can decode legacy I/O and memory ranges. This is often not the case on arm64, which doesn't use the legacy ranges. Enable the VGA arbiter to mark the first enabled VGA card as default. Signed-off-by: Daniel Axtens Acked-by: Will Deacon --- Tested on a D05 using the hibmc card. --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index dfd908630631..cefcbd442e4f 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -28,6 +28,7 @@ config ARM64 select ARCH_SUPPORTS_NUMA_BALANCING select ARCH_WANT_COMPAT_IPC_PARSE_VERSION select ARCH_WANT_FRAME_POINTERS + select ARCH_WANT_VGA_ARB_FALLBACK select ARCH_HAS_UBSAN_SANITIZE_ALL select ARM_AMBA select ARM_ARCH_TIMER