Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp846805pxb; Wed, 27 Oct 2021 13:37:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrS7cbQdAIp5dEXikEQyK37HKsC9u59sY02GhUqmPQKGtoZ6H5b0Uuaf8tKJr5WBdF2HqK X-Received: by 2002:a17:907:1612:: with SMTP id hb18mr4738331ejc.491.1635367071260; Wed, 27 Oct 2021 13:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635367071; cv=none; d=google.com; s=arc-20160816; b=YIZ4H7Z/x6lP/Df1YJSKPhhfyYbFR3WncGpt4Csam6b7SPD9spiOVlGH4m0yQpvxmx xoZp40SgMGEaohjtw0eK/NNRDAwoHxVfxE/VwGklAP8D05LQ9gRRnc2JWy5aklONrLCJ ygbLzNMTwZJExsYxEPw56MezSLwOc2LDCAv0hvYdYSp+IK4GMyH1PwFQQQz13Eufa14U Xoyb2GzbxQHLKOLIPcDs5Xpk6sTZRndpX5Cpwh1UJUIhdLCWX7pj2E+TD5vqou+mBTfY O8TOI8Uva3n6fAvDMNUeZjbBVRqy+sVXInBZP9Cf3mVN3YUHbjY1axSi2swTr2BPS9B3 3Ldg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2s/FQ79PC6XkEYiIzPy8bx8P14QzrSmxySRxZyJ5I+g=; b=KiMq+ifks7NTLP915lT9k5mFj0+mqsDjLgTUMXTSclh2Gti6O8dRangFC1G9PThsIG hatHIrOr8B0076RfO3tkqapHl/WTSoz9ddtf2BFIiYJrYszHyHmNzfuF5Hu/dU5PKGRf JgfW9SEucGTIJhCZx6CqUcbvspAC6f4r+Qn9Xgs4ScvGJ3XG0vnvCodqTVN2UQsR/sbN GFU10GApIFQARfAahXyMwi4yStuz5SxC6VP9sws95XQOATnAI29uWLIv3b5HN0gJ3l2e vtE7o+NrpboUPr8aPbq+Ys6+th1S+neO8xUitFk4dvPG6NVqidN5atJTr+tkU4+yMDEa L0SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="U4fnaFa/"; 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j5si1115608ejm.413.2021.10.27.13.37.03; Wed, 27 Oct 2021 13:37:51 -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=@canonical.com header.s=20210705 header.b="U4fnaFa/"; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240484AbhJ0HeX (ORCPT + 99 others); Wed, 27 Oct 2021 03:34:23 -0400 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:36074 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240468AbhJ0HeW (ORCPT ); Wed, 27 Oct 2021 03:34:22 -0400 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 840493F17B for ; Wed, 27 Oct 2021 07:31:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1635319916; bh=2s/FQ79PC6XkEYiIzPy8bx8P14QzrSmxySRxZyJ5I+g=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=U4fnaFa/z2KU9TFg768RKyGh87x5gDHO2CzNUQ2KjIW1VmIdGwRXRjbO46eYInSJp l0DSKW1YzntjOYetWoVIPJvE8FPJeLZ4aqhuAGw6mZoXr9i7/GBnbckjYAmRnBZw2E XhV7erGaIt/5R6UCvum+R4JnKjiWiMFnvrdcyLAPceT+wAExzNuWazpYaQc7yMUQwA y/NHi5iM0jZon80LKVIHuJ5Ps4jChJuNRIkSmsPUPPb3VYedozCNS6W7FW+xj6Bvw8 1GQGJL+p5T7BxMHVAezauUhf6KH/OB80k3PR9Wx+knFTBr/jlJ1Nxg0kLRyg7GQacm 1wz+4gB1jOPyQ== Received: by mail-wm1-f72.google.com with SMTP id y12-20020a1c7d0c000000b0032ccaad73d0so872816wmc.5 for ; Wed, 27 Oct 2021 00:31:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=2s/FQ79PC6XkEYiIzPy8bx8P14QzrSmxySRxZyJ5I+g=; b=CKvo6qlaRtNLXxFSBpUJjTY9Av/Fe38zQhmjToeAzW8i/pxGuDZTHqMgpaUXC2dzMJ BYOYO77Ig0g9wn7nQHRWv9kTT5AxqVX3l3IphbYPqqCle3Qa9PUoG9q78Ud5dbEbmM+J frci/U4AyM492i6Pd2rawXxB7ewDMWawQvTVpZ6+XaZ2yrDR1TQJR5odELocR1vnk50D eA0CHg9VkwqWsLViSXVV5MGLsFLkmcWSg/MCvbhkwaM+L7MclRe5RU+jd3zoJpttGaoz vMCAeOXoraoDfgogB23l4YQAfLuuf/EzVuaR+hcdcfQtRAAcYNurOWR12cC+tuksV+GZ vOzw== X-Gm-Message-State: AOAM5311uC+OfQylF0tG2t9qDXxUb37lprxG0TtjYh3LIBwVGvhs+FQm 6V7UjQrNH2WpH4OJYiHr5pnAJ/S5E+MVwkwWW4hX8R4cIiAwLnq7yTeSikbOiyETmydcajjx0AE jxOdbH7nfOt8HmwWt1lTx77mRqNfJR9LbQYNIMkOpzA== X-Received: by 2002:a1c:7c02:: with SMTP id x2mr3910066wmc.165.1635319916223; Wed, 27 Oct 2021 00:31:56 -0700 (PDT) X-Received: by 2002:a1c:7c02:: with SMTP id x2mr3910043wmc.165.1635319915921; Wed, 27 Oct 2021 00:31:55 -0700 (PDT) Received: from [192.168.123.55] (ip-88-152-144-157.hsi03.unitymediagroup.de. [88.152.144.157]) by smtp.gmail.com with ESMTPSA id h22sm2872326wmq.42.2021.10.27.00.31.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Oct 2021 00:31:55 -0700 (PDT) Message-ID: Date: Wed, 27 Oct 2021 09:31:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.2 Subject: Re: [PATCH 1/1] riscv: defconfig: enable DRM_NOUVEAU Content-Language: en-US To: Damien Le Moal , Palmer Dabbelt Cc: Paul Walmsley , "aou@eecs.berkeley.edu" , Anup Patel , "axboe@kernel.dk" , "sagar.kadam@sifive.com" , Atish Patra , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" References: From: Heinrich Schuchardt In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/27/21 04:31, Damien Le Moal wrote: > On 2021/10/27 8:58, Palmer Dabbelt wrote: >> On Tue, 12 Oct 2021 09:46:58 PDT (-0700), heinrich.schuchardt@canonical.com wrote: >>> Both RADEON and NOUVEAU graphics cards are supported on RISC-V. Enabling >>> the one and not the other does not make sense. >>> >>> As typically at most one of RADEON, NOUVEAU, or VIRTIO GPU support will be >>> needed DRM drivers should be compiled as modules. >> >> Do you have an nVidia card that works on real hardware? Last I checked >> was a while ago, but they weren't working at the time (IIRC it was >> something to do with PCIe addressing, but it was a hardware limitation >> so I don't remember exactly how it all fits together). >> >> If they work then I'm happy to flip them on. My SiFive Unmatched is running KDE on a GT710. It would be unfair to treat the two major GPU vendors AMD and Nvidia differently. > > Why enable this at all ? If they do not work, then disabling theses cards make > sense. But if they do work, isn't leaving the config to be the default defined > by the driver the preferred approach ? Otherwise, we will eventually end-up with > a defconfig that has everything enabled... If you want to get your system up, having keyboard input and GPU output is the bare minimum that you need to proceed unless you are a developer working over UART and have a second system available. To keep the kernel small DRM drivers should be modules. Best regards Heinrich > >> >>> Signed-off-by: Heinrich Schuchardt >>> --- >>> arch/riscv/configs/defconfig | 7 ++++--- >>> 1 file changed, 4 insertions(+), 3 deletions(-) >>> >>> diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig >>> index 4ebc80315f01..c252fd5706d2 100644 >>> --- a/arch/riscv/configs/defconfig >>> +++ b/arch/riscv/configs/defconfig >>> @@ -72,9 +72,10 @@ CONFIG_GPIOLIB=y >>> CONFIG_GPIO_SIFIVE=y >>> # CONFIG_PTP_1588_CLOCK is not set >>> CONFIG_POWER_RESET=y >>> -CONFIG_DRM=y >>> -CONFIG_DRM_RADEON=y >>> -CONFIG_DRM_VIRTIO_GPU=y >>> +CONFIG_DRM=m >>> +CONFIG_DRM_RADEON=m >>> +CONFIG_DRM_NOUVEAU=m >>> +CONFIG_DRM_VIRTIO_GPU=m >>> CONFIG_FRAMEBUFFER_CONSOLE=y >>> CONFIG_USB=y >>> CONFIG_USB_XHCI_HCD=y >> >> _______________________________________________ >> linux-riscv mailing list >> linux-riscv@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-riscv >> > >