Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1215829rwi; Thu, 13 Oct 2022 10:30:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6AgoOKmhA+Gz33GscBD6hioEbsZPOA3NXspeHknZnJdaI/jpO9YHbjT9LgJ3APawajlrtK X-Received: by 2002:a17:907:75f5:b0:78d:fc53:7d96 with SMTP id jz21-20020a17090775f500b0078dfc537d96mr612438ejc.718.1665682226136; Thu, 13 Oct 2022 10:30:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665682226; cv=none; d=google.com; s=arc-20160816; b=0X7bG8qBGuXDJaJfMzin32x8+z8DIcEvNyDlW4troVSZwrKIKYevLyNiSkICE+Jdk2 70+IcChFtM9fGnvfyseuNuk6SRR7w/J2q+LAzXM5Jcbph+SWjw7hIUKhNu30Me7lGaWF Wrg88mOcZzbXXq0TzCmJLEV7flc+EOP8X2D5wgWv5hI+T2wshvQHcqN0SAalHjaVxanp 2aB6qRfR+XvXb/lBOsw9XPDzGxVbDfFKuC1ujp1FEbqXWyx4SKGpo76jYuZMhfxs08b9 rUT3UHJuDygbDXfpT2bEPiq/YeI3s/WxlNRpXfzhhws9Z/AgazYAxm5areZiOVHwzSK0 /r2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=j1qTz+oYugF8Lf770mKCIrdepvqmBbCEzwy+EaukMrM=; b=lPQlEzpOzCaWWJLu63xe3YBS17CqqllcyZTkgJXr4q6Gq4fEGHl7lmpfSytxhHYUgj /bujy7IuEPcrhqP/tlOPuw2HZrvoTw8OIrWwJEXfjQp7WRcJDOsOqXfm9i2xo/tOJ7RW eSJhmTDK0uc2jSlI2yQeTBxSnO8DQYOiRHrWHoEk+rpTLsVz3PaP43tNJDdcIR+6sA6b J0qOmCcW2CmsVCC74q6DaXvazFgM7j6KbVQqnCV3D4jGjUwYNL5voteYMm2gCQYO1PAg qaywSMkZXS/hKgKjrfj1m2H+ajS6rsatu5XB7FHgaJqiCl7Pq2dcYavGVYPQQjl8ZRwS gUyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=RwP93R0i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g5-20020a056402320500b0045c9c9d2558si268741eda.247.2022.10.13.10.29.59; Thu, 13 Oct 2022 10:30:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=RwP93R0i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229683AbiJMRTZ (ORCPT + 99 others); Thu, 13 Oct 2022 13:19:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbiJMRTW (ORCPT ); Thu, 13 Oct 2022 13:19:22 -0400 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 217F3D4A39 for ; Thu, 13 Oct 2022 10:19:22 -0700 (PDT) Received: by mail-oi1-x235.google.com with SMTP id l5so2438233oif.7 for ; Thu, 13 Oct 2022 10:19:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=j1qTz+oYugF8Lf770mKCIrdepvqmBbCEzwy+EaukMrM=; b=RwP93R0i/58OL7LRD+//xbsGSpXEvsNfrhi2GXL/rRnIR0fEBr1hhf0AxtH9ySaIuq fxnBUs5tBFF0nv+sS5fXPWTFdyDQIQyfW3oaIHCHCny57nHo+jkN3VT1oW56ATf0pSAn /cXKnAs4MWRb/mczWEGT2NYOdgosHqzbcK1Ec= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=j1qTz+oYugF8Lf770mKCIrdepvqmBbCEzwy+EaukMrM=; b=01/qR3lzyghl3B2HVRxBv6IAVrPZNspb9xw00kdBd/bqcfqfTmrQwkW2O3Iocw2cBq zgcqD4u+iBrZHv0HgVdQcR2rREiMTgIFVUF6aG3sfSax9iKfNPFBL7xb48CFTpoqYtAB ZMzAQnzS2ili1TGqyWMNOYhKOxBLvay40YArYqWYBRto1pmtaYAU9PW1aXUI6scHp3sJ 4suQl5mqOhWztADX0PxsX0C6ZOfYOFVlOrSV7+3mxMqsFwqqj9DdGGmhBCiYoI+qCZ7e mE1FaF9l4CYI7qL0HD5UQIk9agyH31o+sUbkS2k8xjApLVH2op+7SXetLe5wTGV4Wt/m S1EQ== X-Gm-Message-State: ACrzQf3dUyYbv9yoFEqlE6jkfgt0pP1uDahg08mxET2lnn2xf/tDnyGi p5FWpq1PKuQuh253OS86LHIVQH62lVsL0Q== X-Received: by 2002:aca:3e56:0:b0:355:afb:cdb1 with SMTP id l83-20020aca3e56000000b003550afbcdb1mr416552oia.81.1665681560780; Thu, 13 Oct 2022 10:19:20 -0700 (PDT) Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com. [209.85.210.45]) by smtp.gmail.com with ESMTPSA id b11-20020a9d6b8b000000b00661a30ea0d4sm217869otq.2.2022.10.13.10.19.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Oct 2022 10:19:19 -0700 (PDT) Received: by mail-ot1-f45.google.com with SMTP id t4-20020a9d7f84000000b00661c3d864f9so425121otp.10 for ; Thu, 13 Oct 2022 10:19:19 -0700 (PDT) X-Received: by 2002:a05:6830:4421:b0:661:8fdd:81e9 with SMTP id q33-20020a056830442100b006618fdd81e9mr528782otv.69.1665681558964; Thu, 13 Oct 2022 10:19:18 -0700 (PDT) MIME-Version: 1.0 References: <20221010132030-mutt-send-email-mst@kernel.org> <87r0zdmujf.fsf@mpe.ellerman.id.au> <20221012070532-mutt-send-email-mst@kernel.org> <87mta1marq.fsf@mpe.ellerman.id.au> <87edvdm7qg.fsf@mpe.ellerman.id.au> <20221012115023-mutt-send-email-mst@kernel.org> <38893b2e-c7a1-4ad2-b691-7fbcbbeb310f@app.fastmail.com> <20221012180806-mutt-send-email-mst@kernel.org> In-Reply-To: From: Linus Torvalds Date: Thu, 13 Oct 2022 10:19:02 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] virtio: fixes, features To: Arnd Bergmann Cc: "Michael S. Tsirkin" , xiujianfeng@huawei.com, kvm@vger.kernel.org, alvaro.karsz@solid-run.com, Jason Wang , angus.chen@jaguarmicro.com, wangdeming@inspur.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, virtualization@lists.linux-foundation.org, Netdev , Bjorn Helgaas , lingshan.zhu@intel.com, linuxppc-dev@lists.ozlabs.org, gavinl@nvidia.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Wed, Oct 12, 2022 at 11:29 PM Arnd Bergmann wrote: > > On Thu, Oct 13, 2022, at 12:08 AM, Michael S. Tsirkin wrote: > > > > Do these two boxes even have pci? > > Footbridge/netwinder has PCI and PC-style ISA on-board devices > (floppy, ps2 mouse/keyboard, parport, soundblaster, ...), RiscPC > has neither. It's worth noting that changing a driver that does if (dev->irq == NO_IRQ) return -ENODEV; to use if (!dev->irq) return -ENODEV; should be pretty much always fine. Even *if* that driver is then compiled and used on an architecture where NO_IRQ is one of the odd values, you end up having only two cases (a) irq 0 was actually a valid irq after all (b) you just get the error later when actually trying to use the odd NO_IRQ interrupt with request_irq() and friends and here (a) basically never happens - certainly not for any PCI setup - and (b) is harmless unless the driver was already terminally broken anyway. The one exception for (a) might be some platform irq code. On x86, that would be the legacy timer interrupt, of course. So if some odd platform actually has a "real" interrupt on irq0, that platform should either just fix the irq number mapping, or should consider that interrupt to be a platform-specific thing and handle it very very specially. On x86, for example, we do if (request_irq(0, timer_interrupt, flags, "timer", NULL)) early in boot, and that's basically what then makes sure that no driver can get that irq. It's done through the platform "timer_init" code at the "late_time_init()" call. (And that "late_time_init()" - despite the name - isn't very late at all. It's just later than the very early timekeeping init - after interrupts have been enabled at all. Linus