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: 9850335 X-Patchwork-Delegate: bhelgaas@google.com 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 F1EA1602A7 for ; Wed, 19 Jul 2017 02:16:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DACA528585 for ; Wed, 19 Jul 2017 02:16:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF7E72859E; Wed, 19 Jul 2017 02:16:33 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E3E328585 for ; Wed, 19 Jul 2017 02:16:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752473AbdGSCQc (ORCPT ); Tue, 18 Jul 2017 22:16:32 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36330 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752375AbdGSCQc (ORCPT ); Tue, 18 Jul 2017 22:16:32 -0400 Received: by mail-pf0-f194.google.com with SMTP id a11so4680410pfj.3 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=Yl0wS6odYww7erm5Er7g+2ds+7euUL5BYiIthd9ZQNVE2nlAMWypg6W5qFdtPJ9QLb uD1oFjCbUEql06gSh8Tyca9HbX+XtVEba2ddGOQMEB92efZVzHVmGCc5xlnaWsvHPNuN eb3Mnrp8L94h/+NGjeSFTYciNQKJJAmqlzPc2dm1vi58UmONVkLCBR9kGSXm/3J7Ni6I 2CoFAw1yYpZlRJWeT6SSppsVtR7PfWa0TZIizF1BGtcPd+atuzDbNGuDEwy1aOLoOyP2 kDYjMmP3MxcR4L8MKzfByXAxxYp3zR82TrMQVRXdk3wPEet3JrXjX3dGu2RdGpuGib7u uF4Q== X-Gm-Message-State: AIVw110Vij71jk9NrwBRk8ND5KXNSrFfw7jqNUuUoo7kJKb0gag0lVeX 2ESbjIwfA2uBWz/EO23KVg== 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 Cc: benh@kernel.crashing.org, z.liuxinliang@hisilicon.com, zourongrong@gmail.com, catalin.marinas@arm.com, will.deacon@arm.com, gabriele.paoloni@huawei.com, bhelgaas@google.com, airlied@linux.ie, daniel.vetter@intel.com, alex.williamson@redhat.com, Daniel Axtens 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> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.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