Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp345714pxb; Tue, 12 Apr 2022 03:24:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEeJMEXIPc/OobDH0kpGKI/wKGAeY3fWFBPUkeg1tL2bZ87A+wGbdn6LdbPDBc+mdh46kp X-Received: by 2002:a17:906:d1c4:b0:6d5:83bb:f58a with SMTP id bs4-20020a170906d1c400b006d583bbf58amr34042947ejb.672.1649759065984; Tue, 12 Apr 2022 03:24:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1649759065; cv=pass; d=google.com; s=arc-20160816; b=O0iYd35VR5+RjqbF/cEpruH3voB73BouR6t3zdivVYQ+aPA3nHzUlPLZ/JLqr32icn /gc5utLuYRKlmtbMqAq+w2SrSV8O1+FZN+uTsUeINF5iibr6Ew+y9aq3FuXAG6CoqzAz ONjLLEJySW2wiLqaPOtIQfFDrqBS6myTnD0hqjlNTYijPPKoYC8BaDB/wrkgjW/j4OvO l8wC8rQN8hkmQLxw3Plv6fQnfd6IQHrpCv0MDb04wBa8IYrPcKwLChys9A6JUNkVXETq IHVxRISOOjb78AdVsVTurTqLEW2lXYJNngXDMPe8y3fUav6g10+9vCswoJmojn5OVUtv aMig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kfKobq+otFMpGrYKWCo157EVROdoUL3+Gb/T8G872NE=; b=qp7+X+k3WjnJZnuf6sW+pYlWUHJJKbZ8MMzDPy4Y2V7euCnJFYPCoVrJqaW5aGYih1 EghhxDijpVvsRU/CDXCLbAQU3DhY4iE16COVrFnx85xHBCeW0TuZfWhpIXXZ0pG6LwoU 61xucEN33OIo5OgC4cr9HIxvPXqL6rYjDMOAb01fIM9/jdg87UYLYPRoEBh/G6OczWU8 V1FNpIewtNmqL9Wd4W6xDbIWN957dzEzKBR4iZvAL+HD8fuLhWA0G3URU+I77dPINzOD cevhmndCZ/uTu7YCx0/WMnUc8pLoPH6KLype6Qnrxf7znClJGsgBefruqdhpq+CHIow4 E04A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=VJ0+u2B+; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id zn12-20020a170906ff0c00b006e8421577ddsi1866423ejb.324.2022.04.12.03.23.45; Tue, 12 Apr 2022 03:24:25 -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=@Nvidia.com header.s=selector2 header.b=VJ0+u2B+; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233477AbiDHU0p (ORCPT + 99 others); Fri, 8 Apr 2022 16:26:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230500AbiDHU0n (ORCPT ); Fri, 8 Apr 2022 16:26:43 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam08on2051.outbound.protection.outlook.com [40.107.100.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF822A777D; Fri, 8 Apr 2022 13:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EFHKkvdgpFn4JhbdiNP4YjknSUfGc7ZlgwHHW1Ni6fhPCKsbVqz2tiwRQodu+riZl0eRaQQ2hLUwomrmqfTU6e8hkAFZd5Md91ltTF/XCloYiJLE4wl03ajVVgOt7HMNFBM8eBZIxM683TVfZC9j50zLUs8dikYWMlmCkjLBlEYn0OQKYvx/xGtdn7w4KUg04iG7KFQAltL6IxG7vEfGvBHXS9tulA7WAzJBgiHHZBiy49e7Js+/GNmySGhsysbfc2lfJkGElqvP0v7ScU1VXTvJqy1MYnDHjWkeUgOMs9LCuEARNxd0Ia4GNEho7GxbVKaoATfKSbLfJAyvmqqy+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kfKobq+otFMpGrYKWCo157EVROdoUL3+Gb/T8G872NE=; b=bhnwXplUaXpZx7IwG6cxDjgBaWGoosUE5DlY0heshx5Vr7e2idXKs6D7uBBE6+cYmlGvOiwVcwplGlLSXW6nYw3Hjr4Or3zac3v+q6ppy0kpOEbN/zt14ZxIaikR3FmAh4K5SPyoxvmZE/hE9QHLd3mje5C8YXdPUcZ53L+751xAv2pis2pPhCsTclhbWujdmW6USH6Jk2e3Ie/gUAXA8ITT/TT4nhPLX4hdBn4WzkMi80Wls/U/3YUgK1ldAc9fkjsPRrsU/Wt1fSoHD+Jch9uRwX2by2lDrfExRdRCcy39v4R2LV1LF8a5zsIggfcSPBHWK5sX/LyXB/91XNe3sQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kfKobq+otFMpGrYKWCo157EVROdoUL3+Gb/T8G872NE=; b=VJ0+u2B+atMxiSSvdi5/Q6c62zOZwm1gnV0zGbM/s7DXLCdTha+BfKJPJyrMUe/W+M9RZplgXkfQgaZoHgmY/f2Xk1c/HHkICYBInxGw6eIptO69Sq6draL2pGs2eBR9bZuhQ3H8GuxVHCvjN7jZjpF35h2TLqfo6kE6YLhKeDewJC+zBm9dY30JuB7xze2aTwP35SigJ8+pPksFrtfAWL4L18rW7oI3LVTPy3i4G+gTlKN/L0LU2PebUaisJ3u7lhq53nhuDyw3EcAFFtfV2tR8anB2J0Sgs0vvNPwBceD3oscI48vbF4EAVM8kQ/twQ2ZQgq5esXBSA6+ypI4ODw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB4192.namprd12.prod.outlook.com (2603:10b6:208:1d5::15) by BL0PR12MB4849.namprd12.prod.outlook.com (2603:10b6:208:1c2::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.23; Fri, 8 Apr 2022 20:24:35 +0000 Received: from MN2PR12MB4192.namprd12.prod.outlook.com ([fe80::cdfb:f88e:410b:9374]) by MN2PR12MB4192.namprd12.prod.outlook.com ([fe80::cdfb:f88e:410b:9374%6]) with mapi id 15.20.5144.026; Fri, 8 Apr 2022 20:24:35 +0000 Date: Fri, 8 Apr 2022 17:24:34 -0300 From: Jason Gunthorpe To: Alex Williamson Cc: Bjorn Helgaas , Joerg Roedel , Stuart Yoder , rafael@kernel.org, David Airlie , linux-pci@vger.kernel.org, Thierry Reding , Diana Craciun , Dmitry Osipenko , Will Deacon , Ashok Raj , Jonathan Hunter , Christoph Hellwig , Kevin Tian , Chaitanya Kulkarni , kvm@vger.kernel.org, Bjorn Helgaas , Dan Williams , Greg Kroah-Hartman , Cornelia Huck , linux-kernel@vger.kernel.org, Li Yang , iommu@lists.linux-foundation.org, Jacob jun Pan , Daniel Vetter , Robin Murphy Subject: Re: [PATCH v8 00/11] Fix BUG_ON in vfio_iommu_group_notifier() Message-ID: <20220408202434.GB2120790@nvidia.com> References: <20220408155922.GA317094@bhelgaas> <20220408100750.77fd9ffc.alex.williamson@redhat.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220408100750.77fd9ffc.alex.williamson@redhat.com> X-ClientProxiedBy: BL1PR13CA0104.namprd13.prod.outlook.com (2603:10b6:208:2b9::19) To MN2PR12MB4192.namprd12.prod.outlook.com (2603:10b6:208:1d5::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3df9cc82-4865-47e8-6a18-08da199dcbfd X-MS-TrafficTypeDiagnostic: BL0PR12MB4849:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9mSB8P5MN5zKjC85Md1PkD4cwxLpP/Uzoj8ckUToh+kzN/V3SAIUvk+ZM32yoAGZgYtgXtIkYL3+GseJh7x70ZPGN34925Z/I8ixl9pJf2bIgszkzDbNddLez0QfkU9TOq8yKz+T384/brf/3nErMmaZqkk4FKteYXhprNktC5AUlVp7ncBcIAVPKO/xv1aBlKu8vr959ilw6Eid+WFIeJI0UcNpqkAaRqOY2k18Jc6S9ryz5bXED8emHirS2Nyfzti2vqbjVpw+f4Owp0iw7H6GDnmbX4WcCg1iW68xS5XqfWeB7lQKTrwgjTSEvvpmnXDjAJAcc1GF1FAd01Aw5iSwcdRc+HgKqLI99UvW6dF1r88xq+Lb4MG4okuqv2H1kxO6uyvAtbVzghPHHoKsRYr/WwEIjaziFWyHl9NSAy13Li+X9Ielal1qPXHIpZasEeuWpQP/k7tnFSmeMLS001T8jXiE05AZ7xUgOwZraV2UQyFlXuKClUAmFyZK6YU8pvU4wwOn4EX+dO2EmC/62TV9dmV8fc89iRDrEZRIYSiXpoQtDzLSWL9CIA/DVDdyIEZA/Ux/I7tik2LKZnc0drsFMg6BQWnsrgV4B+BAECRoQx0/j/Ivu9tkoEl2vHuqKdJnD2gaH6VHUF+kUC73Lw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB4192.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(6916009)(8936002)(6512007)(5660300002)(33656002)(6486002)(4326008)(508600001)(8676002)(2616005)(66946007)(186003)(66476007)(26005)(2906002)(7416002)(316002)(1076003)(54906003)(86362001)(38100700002)(36756003)(6506007)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?M+mJcwhLVf5A237/ULK2HEHv1RGCk6Dse9ulVvcmij2RoJVUQDRqN0LAeQ8o?= =?us-ascii?Q?35bLRTg8zuorA98wv6xiSX4fT1LmxNYYiTf5yYOBNcXqJDPY5BioYgrelf2x?= =?us-ascii?Q?4TeSanAj1VkKIFyvt6i4E/zLeIDG0KegZtwFepdHXmy+1iipUsiH44hX6EAo?= =?us-ascii?Q?iKI3QV9WrOJxOAXly4w2MdScW0tFee3YfUhIYq6v7/dVICx7O3DRChH1N2/C?= =?us-ascii?Q?9784oUVwPApT6zDbqDCjEgRMWts1OAUsENq0b6XMh3kMPtzZ4xPh2kS3Mfkv?= =?us-ascii?Q?33Sb5fdooBfjG/CDSqXk4CWQAUg4WBqxxUBTKpbX2XMs2dBJ5QYUs3vlIKab?= =?us-ascii?Q?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72d?= =?us-ascii?Q?KU/+YsQQQriaTWIxcMvhaCSSI8PhARPZK7NuSTwx+YBvseFeETx0wdoW7Sbn?= =?us-ascii?Q?OWsSuxad8mVUKIQ4ecV7te4GckZs2ErHLRBhMSKoLcLY2phvPDtgtzIf4q8n?= =?us-ascii?Q?qph0NpKY8WAFjNR8cqasvgdlEdnMY6w8VAzn6mOCXvRDtyVqHYvI1POxUWaF?= =?us-ascii?Q?dOMwj3bmXOHs04gufCpoGJOjthYutuWE6/Q+c8/HcIH9rEHFu6tNSBaQaFN0?= =?us-ascii?Q?q9aMSB4D0LHE6807vJkm+EGMvUXV72BzWbYkIjpGR7xgk8OvQT/QvGON4sQB?= =?us-ascii?Q?/oPaOdGKcYoI+uLTW7StVb6u/EjW4gTNzzwu5Y9UYsbIVjmK87FjwOgd28pY?= =?us-ascii?Q?PZQ3Q3F7eI2tFoarzcoqwf5QDWROn/5qhGZ8PpxPXPIc+vGadATR9UAQS2HE?= =?us-ascii?Q?626KONK4xCNh7FsQ+m4xKOJkFh2cNmxUi3VW7s6Xn8uraatFV8dCVE+SpzeN?= =?us-ascii?Q?4SorTrdYKQ=3D=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3df9cc82-4865-47e8-6a18-08da199dcbfd X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB4192.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2022 20:24:35.2089 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: EWaf7WGcFimP9KGAJcltgh5RanH07JsD5juCmLzCtWxqv7o2yf1auMkwv7gMYzFZ X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4849 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Fri, Apr 08, 2022 at 10:07:50AM -0600, Alex Williamson wrote: > On Fri, 8 Apr 2022 10:59:22 -0500 > Bjorn Helgaas wrote: > > > On Fri, Apr 08, 2022 at 05:37:16PM +0200, Joerg Roedel wrote: > > > On Fri, Apr 08, 2022 at 11:17:47AM -0300, Jason Gunthorpe wrote: > > > > You might consider using a linear tree instead of the topic branches, > > > > topics are tricky and I'm not sure it helps a small subsystem so much. > > > > Conflicts between topics are a PITA for everyone, and it makes > > > > handling conflicts with rc much harder than it needs to be. > > > > > > I like the concept of a branch per driver, because with that I can just > > > exclude that branch from my next-merge when there are issues with it. > > > Conflicts between branches happen too, but they are quite manageable > > > when the branches have the same base. > > > > FWIW, I use the same topic branch approach for PCI. I like the > > ability to squash in fixes or drop things without having to clutter > > the history with trivial commits and reverts. I haven't found > > conflicts to be a problem. > > Same. I think I've generally modeled my branch handling after Bjorn > and Joerg, I don't always use topic branches, but will for larger > contributions and I don't generally find conflicts to be a problem. > I'm always open to adopting best practices though. Thanks, I don't know about best practices, but I see most maintainers fall somewhere on a continuum between how Andrew Morton works and how David Miller/Linus work. Andrew's model is to try and send patches that are perfect and he manipulates his queue continually. It is never quite clear what will get merged until Linus actually merges it. The David/Linus model is that git is immutable and they only move forward. Never rebase, never manipulate an applied patch. Andrew has significantly reigned in how much he manipulates his queue - mostly due to pressure from Linus. Some of the remarks on this topic over the last year are pretty informative. So I would say changing patches once applied, or any rebasing, is now being seen as not best practice. (Indeed if Linus catches it and a mistake was made you are likely to get a sharp email) Why I made the note, is that at least in my flow, I would not trade two weeks of accepting patches for topics. I'll probably have 20-30 patches merged already before rc3 comes out. I never have problems merging rc's because when a rc conflicts with the next I have only one branch and can just merge the rc and resolve the conflict, or merge the rc before applying a patch that would create a conflict in the first place. Linus has given some guidance on when/how he prefers to see those merges done. Though I tend to advocate for a philosophy more like DaveM that the maintainer role is to hurry up and accept good patches - to emphasize flow as a way to build involvement and community. That is not necessarily an entirely appropriate approach in some of the more critical subsystems like mm/pci - if they are broken in a way that impacts a large number of people at rc1 then it can cause a lot of impact. For instance our QA team is always paniced if rc1 doesn't work on our test environments. Cheers, Jason