Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1280489rwb; Wed, 16 Nov 2022 15:07:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf5pMadt3dURC7ERbjop+W2Ao/I086G0c86HRbx12v89Bz6yUuLJARnCWvMLuCQVIhx7NuCM X-Received: by 2002:aa7:c603:0:b0:460:fab2:c31f with SMTP id h3-20020aa7c603000000b00460fab2c31fmr21638591edq.335.1668640059040; Wed, 16 Nov 2022 15:07:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668640059; cv=none; d=google.com; s=arc-20160816; b=V1schBPjAcbeAtcohFmLg/CfM7vFB1mVs+qmRekJ3intL82IWvaw0ylyUMUJnoOjdK Tvx1K9mmkCOy3gqzXlenBzY06ygkIScUPGIZoBWt+joYB1ws44Gjf26OYBh8aweB4tiE nTJSz/FoHvkCIS10ck/ZyeyPSTVtmkmD5fpUqgRZRFwF59FhESVrlikopPGw0+JdChxd y4s0LUHBFMhTwjyihjJ1vyM4xHgtL/dKfsACld5eSZ0jX6wrMql5lvafxe4oCoh4iCXt VRwOU0uEHFQCWngAoqY+cb7W8QHQHQLpCv6CZMY34QulyScIozgtHfYl0Xfxvokd+gsZ Jc5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=og7VFGWgga/WDNrUO7ZE1y9YFk0rZZz1Y7SQa3rc/Bo=; b=KBktt9TwDl+WAI6LRxkiWy12JacY5CI6ZMosuDgH05opffT79VwxvdzPezsDw9NWSH m2hlobqEeF9L3VqB2OC8nhGmv9dle4QZEwhW7LLvjeUBQZv80LomIWgBnvqhEfMk+rO0 3PCIfmqOzXzFb7fBSghIYvJbljxV2awaoVoHtVcr+Oj+EyM7lt4+n5yFQs4OyUBfuDTY KB9dJn29f9azYMobH47djL9gFpoywF5OXgLb8srhyjjo3rs9szQwxM7IvuYpIQ2kFqgL 5wnkZv9CF/alUqB+FL++lSnQhmEQncH0SDie4UV/zTKc+0IehjLxh9vrXVObjEvt5Jg8 JacQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=sZmX6Yg3; dkim=neutral (no key) header.i=@linutronix.de header.b=57u6ql1e; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020a1709063f8e00b007815e9c5b80si12766980ejj.617.2022.11.16.15.07.17; Wed, 16 Nov 2022 15:07:39 -0800 (PST) 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=@linutronix.de header.s=2020 header.b=sZmX6Yg3; dkim=neutral (no key) header.i=@linutronix.de header.b=57u6ql1e; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232774AbiKPWwD (ORCPT + 90 others); Wed, 16 Nov 2022 17:52:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238685AbiKPWv5 (ORCPT ); Wed, 16 Nov 2022 17:51:57 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60C3518E0F; Wed, 16 Nov 2022 14:51:56 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1668639114; 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=og7VFGWgga/WDNrUO7ZE1y9YFk0rZZz1Y7SQa3rc/Bo=; b=sZmX6Yg3XezzZ2hq1tZefSPYyfecyqklALECXScfxof5PazPB2pQMWRIq3wUTu43H8z6hb WEwyl4EmYgpScWUlFaXeaT282S6rdI53Thh1Za1i6LXUb+psAzFJsG3vdZDfFLVyvw/JCw cwNu2XjbgPipQlBYCSry4kJc84H4Kg8smh1T7pMdbtgloyQJlj9sRzAx4eomTMleUHdPKo hlT3wRrONZpVSFl2GOjlxVJkbhazs1D90M/bX1BePMGs/NwN3nEx3gsHEQESH0iRS6Cpju DVXaRP9DDJutgsollRsjdoUnbJGLLBgUHHoh6qVhBUkccGZHxhG2kB4lpTMsRQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1668639114; 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=og7VFGWgga/WDNrUO7ZE1y9YFk0rZZz1Y7SQa3rc/Bo=; b=57u6ql1eCbyCY2SupG0ktAPUYRyn+XthnjW8tkxBEfsMcHX0R/8u/XSsMZf/nZLpWEX8UW CM5vMBglNyqiNVAA== To: Jason Gunthorpe Cc: LKML , x86@kernel.org, Joerg Roedel , Will Deacon , linux-pci@vger.kernel.org, Bjorn Helgaas , Lorenzo Pieralisi , Marc Zyngier , Greg Kroah-Hartman , Dave Jiang , Alex Williamson , Kevin Tian , Dan Williams , Logan Gunthorpe , Ashok Raj , Jon Mason , Allen Hubbe , "Ahmed S. Darwish" , Reinette Chatre , Michael Ellerman , Christophe Leroy , linuxppc-dev@lists.ozlabs.org Subject: Re: [patch 13/39] PCI/MSI: Use msi_domain_info::bus_token In-Reply-To: References: <20221111120501.026511281@linutronix.de> <20221111122014.352437595@linutronix.de> Date: Wed, 16 Nov 2022 23:51:54 +0100 Message-ID: <87fseio6lx.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham 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, Nov 16 2022 at 13:51, Jason Gunthorpe wrote: > On Fri, Nov 11, 2022 at 02:54:35PM +0100, Thomas Gleixner wrote: >> /* PCI-MSI is oneshot-safe */ >> info->chip->flags |= IRQCHIP_ONESHOT_SAFE; >> + /* Let the core update the bus token */ >> + info->bus_token = DOMAIN_BUS_PCI_MSI; > > comment seems a bit obvious :) > Reviewed-by: Jason Gunthorpe > > Should the callers be updated to set this in their "struct > msi_domain_info" ? For PCI/MSI we can handle that in the core for all of them. :) The other msi_domain_info usage in various places needs obviously special care. Thanks, tglx