Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B321BC433DF for ; Tue, 7 Jul 2020 02:07:09 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7BE89206E6 for ; Tue, 7 Jul 2020 02:07:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tOOyhBht" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7BE89206E6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:47632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jsd0m-0004yI-Mh for qemu-devel@archiver.kernel.org; Mon, 06 Jul 2020 22:07:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jsd0D-0004ZH-RT for qemu-devel@nongnu.org; Mon, 06 Jul 2020 22:06:33 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:41430) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jsd0C-0005Ut-9j for qemu-devel@nongnu.org; Mon, 06 Jul 2020 22:06:33 -0400 Received: by mail-wr1-x441.google.com with SMTP id z15so32167601wrl.8 for ; Mon, 06 Jul 2020 19:06:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=RoxAZjAvUhdHjos82XZVX05mNlHZ9fMXFIL32cpJius=; b=tOOyhBhtq/I23glMAyZ86tFJABtBp5AfEqLeKQaKF4mVQPlT6Yes++AtLCoQhWGrds 2bOAe4pCu6trHywvoM0NwWbTb37ywb4oioqkfMwKI5ylvTDiOlNmh0aOSkARANdOFEs1 ipdgvKAAHmUU9Q+bAO+k/XdZkJNOz7foQap/3q0dsVBqE6wo8oksxc225UXx+faYAPDD wj8yATszU9BVdyQq+ujzK51K/usxLtTuqWKofyW4rzgFgYr7GP7qP119Bg7XGIVGhwbP n4JnBqjhyRon4MOtuTiH46Z0O5NF2De76j/3hSDahn3Lszl4L7Vbq5XU3DDNj8MUapFw D9SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=RoxAZjAvUhdHjos82XZVX05mNlHZ9fMXFIL32cpJius=; b=nx7xsfq4dI6C7DPZUPgalxcLlBTZi76d0rGnoPa8xCmsT6HLAzlxs9t0a+cIY0n+Gy SFCUWWqNdFhohReS9gU9f8gdi7slhGkdLdGj8XsNTh/RJeI4LV4S7ufS5qdcwLOJvfDy 7tm0QWXp7V7/D9uEPl6hMPA5HN3KWDCV5pFfkuOdPRIpCBbLysBs35Vbi/XIBu3caqNm 1ksE0IzC9mXgXP0jxXJJq6mJ+72UTsgcAL+fhjcOTv5Sf4b0LBpddlJ1V93fdxqF9ZdP pac4H6Wn/qIzDmBtsvoqur99HtixDY2K3DQeN/yKam7pclyuthB/PEiIwe0mlPYONFDH 0Q4g== X-Gm-Message-State: AOAM530PzzO8UT1Yc6Pe7qdYOPVOBMWV/4ebod+8YveWr5IvTp7nOpo3 oGT6oa3CtZ/hbO6tFq/D26Y= X-Google-Smtp-Source: ABdhPJwdvmpDHXiEX3qhOdHVZwTGPw8jMGUhUoV0/Ka6tkoYduT75f09BkmfwpTFSq5TvEjNYoqiYg== X-Received: by 2002:a05:6000:11cc:: with SMTP id i12mr50728933wrx.224.1594087590656; Mon, 06 Jul 2020 19:06:30 -0700 (PDT) Received: from [192.168.1.36] (138.red-83-57-170.dynamicip.rima-tde.net. [83.57.170.138]) by smtp.gmail.com with ESMTPSA id d132sm1375504wmd.35.2020.07.06.19.06.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Jul 2020 19:06:29 -0700 (PDT) Subject: Re: [PATCH 2/4] hw/lm32/milkymist: Comment to remember some IRQs lines are left unwired To: Alistair Francis References: <20200705211016.15241-1-f4bug@amsat.org> <20200705211016.15241-3-f4bug@amsat.org> <68b27cb4-145b-47ed-bbed-428c7591f8c7@amsat.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Tue, 7 Jul 2020 04:06:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::441; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x441.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 0 X-Spam_score: 0.0 X-Spam_bar: / X-Spam_report: (0.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=1, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Michael Walle , Alistair Francis , "qemu-devel@nongnu.org Developers" , Markus Armbruster Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 7/6/20 8:32 PM, Alistair Francis wrote: > On Mon, Jul 6, 2020 at 11:04 AM Philippe Mathieu-Daudé wrote: >> >> On 7/6/20 6:19 PM, Alistair Francis wrote: >>> On Sun, Jul 5, 2020 at 2:10 PM Philippe Mathieu-Daudé wrote: >>>> >>>> The 'card is readonly' and 'card inserted' IRQs are not wired. >>>> Add a comment in case someone know where to wire them. >>>> >>>> Signed-off-by: Philippe Mathieu-Daudé >>> >>> I'm not convinced adding fixmes or todos in the code is the right >>> direction. It would be better to file bugs or use some other more >>> official tracking mechanism. >> >> This code is orphan :S >> >> I'll fill a launchpad bug ticket. > > I also mean in general (you have some other patches that add TODOs or FIXMEs). Not all developers look at launchpad, while all of them read the code ;) $ git grep -E '(TODO|FIXME)' | wc -l 1899 For orphan code, a comment in the code might be better to remember the technical debt to the next developers interested to rework this piece of code (I'd rather not trust they'll dig in the mailing list archive and launchpad tickets while staring at the code). > >> >> OTOH we could also log UNIMP for lost IRQs (triggered but >> no handler registered). > > That would also work. > > Alistair > >> >>> >>> Alistair >>> >>>> --- >>>> hw/lm32/milkymist.c | 1 + >>>> 1 file changed, 1 insertion(+) >>>> >>>> diff --git a/hw/lm32/milkymist.c b/hw/lm32/milkymist.c >>>> index 469e3c4322..117973c967 100644 >>>> --- a/hw/lm32/milkymist.c >>>> +++ b/hw/lm32/milkymist.c >>>> @@ -87,6 +87,7 @@ static DeviceState *milkymist_memcard_create(hwaddr base) >>>> dev = qdev_new("milkymist-memcard"); >>>> sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal); >>>> sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, base); >>>> + /* FIXME wire 'card is readonly' and 'card inserted' IRQs? */ >>>> >>>> return dev; >>>> } >>>> -- >>>> 2.21.3 >>>> >>>> >>> >