Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5865462ioo; Wed, 1 Jun 2022 14:26:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0nhv4pr5PFfsADCpOW9DSgrOjfrKL4AVivUEURdwhgy4+xIs0LlwFyHtYwetF+JC7duBb X-Received: by 2002:aa7:848a:0:b0:510:44da:223d with SMTP id u10-20020aa7848a000000b0051044da223dmr68517752pfn.66.1654118781568; Wed, 01 Jun 2022 14:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654118781; cv=none; d=google.com; s=arc-20160816; b=T/5hOmt+c7uhjWWBaUktPIDsS/ru7SS9g9I+7XTPITFZ4L/cYJTqKeetkReLjq6ebi IScaSim30d9O6kxvSPoez/Cfb6qNOlPONTfDnR8bO/BDtbyxUyBf6U4pUyDrKBpFRpKc yZY8pjlZa7ZygLlmlXiZuIQoISrJ/8rZcJz6LOfoqndvrCK0BG3G8l8COgw9cErCbbL3 kxjVEkPTKJoKHzNlfkd8O97OjM81kFXj7C7aHVIUG+wb/t+1njMWJ7CKLy/FCBTCoy6/ 0qYLbiDcbCxjyeI+rwQLcLfcUg5axkvIZoMHSiRGjnxKZ8uX8/kYh4xWJqO+RCawI3/H SAJA== 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=mCLptYXedfhjubmlw5BpJM5vBm1Qu0fjfrsKQvvk7a0=; b=E40HGTMj9EaHj6LxBDqto1CcmXdfNKMixaVxLt9F6NbIyXyLI4viJarJ8UPfTHSkbu e9bk6A31rUzVLKmcvn8bkzcDPtES4H9MRh2+io54RQdcx8O0qGjIS0NWTufjoVJewnEv Hm4uIdO7EDushnoxJAhe/vl0EEtlR92FbMfSNcqkzQ2X6jK/JqAdtqcbsoRhVTQ52+My e9e4MuvGPAjZ1BTYTntqsgBXJjqShA/7sVr5o2sTxneJROJI5JptSXSqc+UjwpDcjScm ZvB1PVnJYRPpR5yRu5gKVOcB0c2Hv+lF3Gfsyikpwf0WQx04q0KaeKUI4+hOlLNyD5xc u/DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nC5Eoo4x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s17-20020a17090a881100b001e016bba7bcsi3261568pjn.35.2022.06.01.14.26.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:26:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nC5Eoo4x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9193C245FB1; Wed, 1 Jun 2022 13:16:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346173AbiEaQcg (ORCPT + 99 others); Tue, 31 May 2022 12:32:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244921AbiEaQce (ORCPT ); Tue, 31 May 2022 12:32:34 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B4B32899E; Tue, 31 May 2022 09:32:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description; bh=mCLptYXedfhjubmlw5BpJM5vBm1Qu0fjfrsKQvvk7a0=; b=nC5Eoo4x8LEjS3jCnrkAdRn+Xl v659Gte5fzH4eSwXz7SESGqNma8VaWcPPENSqIx1zJl8H8vZIgoslN3fD1SooS/tQs7Ok/wJI3I8G dwXaiawIZwfLs6S1iNcbYhMmmfRZAnVDzJkeLdkLP+Iy9uUwb2dYmzDG74DHjRRMMLqxErb/QRJOh JK1i0MGCK1CKgd+8BnFvvLxXmEaqVCVoAwsaCGHoQuDdd3g1CwwwRcwJOnyn/vLbm5A1lQk0WktQf jADk5Qro9M5jXaV5/T78JglmKEeCPTPQxaL+VOjpyIynu5iyimUp3d4kJyjE5FQdnIk3zG/Z0Ng33 xtqcd6WA==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nw4nE-005WpB-9E; Tue, 31 May 2022 16:32:28 +0000 Message-ID: Date: Tue, 31 May 2022 09:32:22 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v16 4/4] m68k: introduce a virtual m68k machine Content-Language: en-US To: Laurent Vivier , linux-kernel@vger.kernel.org Cc: Alexandre Belloni , linux-m68k@lists.linux-m68k.org, Jiaxun Yang , linux-rtc@vger.kernel.org, Arnd Bergmann , Daniel Lezcano , John Stultz , Stephen Boyd , Thomas Gleixner , Geert Uytterhoeven , Alessandro Zummo References: <20220406201523.243733-1-laurent@vivier.eu> <20220406201523.243733-5-laurent@vivier.eu> <3b783435-e734-5391-e758-d709e0462839@infradead.org> <64ce78bf-b81b-1eec-74f3-650a72f2874b@vivier.eu> From: Randy Dunlap In-Reply-To: <64ce78bf-b81b-1eec-74f3-650a72f2874b@vivier.eu> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 5/30/22 23:05, Laurent Vivier wrote: > Le 31/05/2022 à 03:14, Randy Dunlap a écrit : >> Hi-- > > Hi, > >> On 4/6/22 13:15, Laurent Vivier wrote: >>> diff --git a/arch/m68k/Kconfig.machine b/arch/m68k/Kconfig.machine >>> index eeab4f3e6c19..188a8f8a0104 100644 >>> --- a/arch/m68k/Kconfig.machine >>> +++ b/arch/m68k/Kconfig.machine >>> @@ -149,6 +149,23 @@ config SUN3 >>>           If you don't want to compile a kernel exclusively for a Sun 3, say N. >>>   +config VIRT >>> +    bool "Virtual M68k Machine support" >>> +    depends on MMU >>> +    select GENERIC_CLOCKEVENTS >>> +    select GOLDFISH >>> +    select GOLDFISH_TIMER >>> +    select GOLDFISH_TTY >>> +    select M68040 >>> +    select MMU_MOTOROLA if MMU >>> +    select RTC_CLASS >>> +    select RTC_DRV_GOLDFISH >>> +    select TTY >>> +    select VIRTIO_MMIO >> >> This select VIRTIO_MMIO can cause a kconfig warning: >> >> WARNING: unmet direct dependencies detected for VIRTIO_MMIO >>    Depends on [n]: VIRTIO_MENU [=n] && HAS_IOMEM [=y] && HAS_DMA [=y] > > In my repo, VIRTIO_MMIO has no dependency on VIRTIO_MENU: > > ./drivers/virtio/Kconfig > config VIRTIO_MMIO >         tristate "Platform bus driver for memory mapped virtio devices" >         depends on HAS_IOMEM && HAS_DMA As Arnd explained... > >>    Selected by [y]: >>    - VIRT [=y] && M68KCLASSIC [=y] && MMU [=y] > > How do you generate this warning? It's just a random randconfig. > The first version of my patch added the VIRTIO_MENU but Geert said it's not necessary because VIRTIO_MENU defaults to y. > > https://lore.kernel.org/lkml/CAMuHMdUFh2W-bY5Ez1aOTZQjq0=THvmOf22JdxWoNNtFLskSzw@mail.gmail.com/ It's still a user-settable value and can be disabled, so the Kconfig entry should account for (allow for) that, either with 'select' or 'depends on'. >> >>> +    help >>> +      This options enable a pure virtual machine based on m68k, >>> +      VIRTIO MMIO devices and GOLDFISH interfaces (TTY, RTC, PIC) >> >> The sentence above needs an ending period ('.'). >> > > I agree. > > Thanks, > Laurent > -- ~Randy