From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4532CC4332F for ; Wed, 12 Oct 2022 22:10:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230177AbiJLWKg (ORCPT ); Wed, 12 Oct 2022 18:10:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230172AbiJLWKP (ORCPT ); Wed, 12 Oct 2022 18:10:15 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F62B5A8BC for ; Wed, 12 Oct 2022 15:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665612516; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=e1Csc5OKDLMm08qWQhJj0nFioDDfbxhqyYmrCk7iHHE=; b=bvX5bF7A9nl4lkVxeLMm4BsS+p3QVtWIrA+6LCQ7OKTb6cWCCXIye+pQGj/rSYLaHTK+9g 54uJ4YchpJvIFv6MWvk0ZNG8S4TQV9h69MzUW3YahYtFl0cwmqjJan6XCowaDHb2EHeWMx byx30or5Tr8Cbwad85VEeHSV3A8H1uM= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-386-deq0nXbnOpahFwQxW-w-Xg-1; Wed, 12 Oct 2022 18:08:35 -0400 X-MC-Unique: deq0nXbnOpahFwQxW-w-Xg-1 Received: by mail-wm1-f71.google.com with SMTP id b7-20020a05600c4e0700b003bde2d860d1so17093wmq.8 for ; Wed, 12 Oct 2022 15:08:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=e1Csc5OKDLMm08qWQhJj0nFioDDfbxhqyYmrCk7iHHE=; b=gboI1wOWGWBc3Dh1rfG8M/SiV3YNQPYQ4vIObkvk+3WMKDBXeR4gdN+XGxtUO+m1Yo eY0w3hqV8O5NOWETZabBVR12QPyTDC6ajgClgxHmlftJQcvrZkDCoo8az3P1vHqhP9t8 hq9Hf1HOw5HrpZbQI8eX3Ijy2rBKdvDGGoHOAqGefkXgZTeokEHm9ue+lLEfF+wLiqnn bKYNyvmfYGuZU1/Q/8UFipjQ3Tuj8E8HKHiuxOSCQ7cyzxG+43VwOOIzDcqzrapSI4xE bJXlEu19F4k8lo0f+NgsdYTeGRvQELUOdBg1z7RGKxGvTLOuca58Ku8cec4u1uw1o6T0 ms7Q== X-Gm-Message-State: ACrzQf1lou/IAzSaGkN3yRsP79QXlcdRpfVhfRiluxbJ7BYMuGxhDB5N hZTqmFG0Vgp4YlixPSyVRskqdfnJRVrazh/B4MwD8/qyymVnWuqD8IUWOp9dQWFphBmk26a7Clu /N7+8zwZqO5X+2rK/ X-Received: by 2002:adf:d1cc:0:b0:22e:6371:65ad with SMTP id b12-20020adfd1cc000000b0022e637165admr19590802wrd.326.1665612512757; Wed, 12 Oct 2022 15:08:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Hfapj638ZSQQKBud2DiNS0QJza/l7oyJMq2zEMTl7MZoMYSzTy3MWiISMgB3bUUa2AIbrEw== X-Received: by 2002:adf:d1cc:0:b0:22e:6371:65ad with SMTP id b12-20020adfd1cc000000b0022e637165admr19590785wrd.326.1665612512531; Wed, 12 Oct 2022 15:08:32 -0700 (PDT) Received: from redhat.com ([2.54.162.123]) by smtp.gmail.com with ESMTPSA id a1-20020a05600c348100b003a5f4fccd4asm2812081wmq.35.2022.10.12.15.08.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Oct 2022 15:08:31 -0700 (PDT) Date: Wed, 12 Oct 2022 18:08:27 -0400 From: "Michael S. Tsirkin" To: Arnd Bergmann Cc: Linus Torvalds , 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 Subject: Re: [GIT PULL] virtio: fixes, features Message-ID: <20221012180806-mutt-send-email-mst@kernel.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <38893b2e-c7a1-4ad2-b691-7fbcbbeb310f@app.fastmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, Oct 12, 2022 at 11:06:54PM +0200, Arnd Bergmann wrote: > On Wed, Oct 12, 2022, at 7:22 PM, Linus Torvalds wrote: > > > > The NO_IRQ thing is mainly actually defined by a few drivers that just > > never got converted to the proper world order, and even then you can > > see the confusion (ie some drivers use "-1", others use "0", and yet > > others use "((unsigned int)(-1)". > > The last time I looked at removing it for arch/arm/, one problem was > that there were a number of platforms using IRQ 0 as a valid number. > We have converted most of them in the meantime, leaving now only > mach-rpc and mach-footbridge. For the other platforms, we just > renumbered all interrupts to add one, but footbridge apparently > relies on hardcoded ISA interrupts in device drivers. For rpc, > it looks like IRQ 0 (printer) already wouldn't work, and it > looks like there was never a driver referencing it either. Do these two boxes even have pci? > I see that openrisc and parisc also still define NO_IRQ to -1, but at > least openrisc already relies on 0 being the invalid IRQ (from > CONFIG_IRQ_DOMAIN), probably parisc as well. > > Arnd