Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp51231rwl; Tue, 28 Mar 2023 20:42:07 -0700 (PDT) X-Google-Smtp-Source: AKy350ZuDx0ZEPmukYJAkrggbRJ9hHFbJECmazjXvey1EfyC2Ae3oH3M9DbyBHmaQCt7gCOvRmmg X-Received: by 2002:a17:90b:1651:b0:23b:3b26:c612 with SMTP id il17-20020a17090b165100b0023b3b26c612mr808662pjb.20.1680061326749; Tue, 28 Mar 2023 20:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680061326; cv=none; d=google.com; s=arc-20160816; b=D+9TniGUBdRRqCXDcGbdQF7iiJWa/2oXqt/jShO/PyZkkSTVqSqMX+kV4HOxxS3P8L 8CnJZ+yaX6dukWo06Gm33iAfVFWJ36x+fgQhxCz6Z812TX3Qa6bwNQULPye1J0WajRJa 9G07JP6C7BnsKdhDjnGXnOBzjUJs3Ehp+1G4zBLXtf/6sRJxcVr7JXHpf+MFaMNkjEiY 0CdBZHFdqe1uDuohS+0wnQpsJ1KvXumH8Hldgub1sdbC+MRjOUn1Y57K8nenec0N9aMU E2KyxJjUZ1z5czfGkRQVgXnzhytaIRsVsSwhR8tAcc+HwBfiyzJFSr+VDgIwYWpbCR4b HEtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4te4VQEA7E3vJZuHoC3CmAqVMRzPhdr3g3HwXsBft6U=; b=HEGX2K/+1FvW+fM3e1f2N45zSc6PaxS3wSOVpDFHdo0/MSe9VHte+ekV4xwX0tJGwx 8XfyIBmSSyjoaOClR0aoAB+PikvIdD4xzIKxkDbN0zkAO/XmIxFu1tDeQ5qhP3N2iGRh Lhg3x3XaY4DzPF1ahzOZN660L5UysNCnU4yCoXI5eGW1DVVyF5DtzN0awSmrp609q4TL D8sKCQQGvx49DBM/jQqWoGpM1VeAfNeZ50a7xj0EJGeMS/IsYOXqQgFHo0zxlrK0soDB qjxG5XhM5ijsUd+j3viSl/B0pz4mS8kqToXV03ThruWCBt3KTxGwTfqNDxRN2re11kwF mt7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Cv3O0WEx; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x8-20020a17090a164800b0023b4d01f319si574258pje.75.2023.03.28.20.41.55; Tue, 28 Mar 2023 20:42:06 -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=@intel.com header.s=Intel header.b=Cv3O0WEx; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229802AbjC2D3p (ORCPT + 99 others); Tue, 28 Mar 2023 23:29:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjC2D3n (ORCPT ); Tue, 28 Mar 2023 23:29:43 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F82C19F; Tue, 28 Mar 2023 20:29:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680060582; x=1711596582; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=zux2cGUIRDkE6Z2IVIQOmNv5GDDvZe8t52R5ff09Pnc=; b=Cv3O0WExDU7a747t/vfnU81U3HsATfzfwmIAh+GzNYQfVMq02XKAFDhh jbOLwm9ssaWT7QGZ3oBVOuRiF7zQwB6fMwYSdRa2fZZKdgB2KUqr0BxGT YSChHZWz1bdL/bqXUMiY1I16/UFvzQlzGa0pqU9oBe89TFtWYAn3TCyOK l0aIiiA3i/Um+G7UdxtDS5nT750hD7CEGrPHlSknz5m3FxntkL589yaz/ 05poVXZLulQyYKdFznPvKmSKPKK0X9RknaX6AUiiUv9PUCnueplD0w2DS TG5GbgiLMJ0xPEPHzjwVkt+Bfmr/JE/DO5ksb538s/8mZCD69hzXJyglM Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10663"; a="329226698" X-IronPort-AV: E=Sophos;i="5.98,299,1673942400"; d="scan'208";a="329226698" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 20:29:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10663"; a="686660204" X-IronPort-AV: E=Sophos;i="5.98,299,1673942400"; d="scan'208";a="686660204" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 28 Mar 2023 20:29:37 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1phMVD-000JB9-0G; Wed, 29 Mar 2023 03:29:35 +0000 Date: Wed, 29 Mar 2023 11:29:33 +0800 From: kernel test robot To: Reinette Chatre , jgg@nvidia.com, yishaih@nvidia.com, shameerali.kolothum.thodi@huawei.com, kevin.tian@intel.com, alex.williamson@redhat.com Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, tglx@linutronix.de, darwi@linutronix.de, kvm@vger.kernel.org, dave.jiang@intel.com, jing2.liu@intel.com, ashok.raj@intel.com, fenghua.yu@intel.com, tom.zanussi@linux.intel.com, reinette.chatre@intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 8/8] vfio/pci: Clear VFIO_IRQ_INFO_NORESIZE for MSI-X Message-ID: <202303291158.UlMhtYCO-lkp@intel.com> References: <81a6066c0f0d6dfa06f41c016abfb7152064e33e.1680038771.git.reinette.chatre@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <81a6066c0f0d6dfa06f41c016abfb7152064e33e.1680038771.git.reinette.chatre@intel.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Hi Reinette, I love your patch! Yet something to improve: [auto build test ERROR on 197b6b60ae7bc51dd0814953c562833143b292aa] url: https://github.com/intel-lab-lkp/linux/commits/Reinette-Chatre/vfio-pci-Consolidate-irq-cleanup-on-MSI-MSI-X-disable/20230329-055735 base: 197b6b60ae7bc51dd0814953c562833143b292aa patch link: https://lore.kernel.org/r/81a6066c0f0d6dfa06f41c016abfb7152064e33e.1680038771.git.reinette.chatre%40intel.com patch subject: [PATCH V2 8/8] vfio/pci: Clear VFIO_IRQ_INFO_NORESIZE for MSI-X config: i386-randconfig-a014-20230327 (https://download.01.org/0day-ci/archive/20230329/202303291158.UlMhtYCO-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/39bc54993b029037b12b4a7e947d6cd500065c6b git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Reinette-Chatre/vfio-pci-Consolidate-irq-cleanup-on-MSI-MSI-X-disable/20230329-055735 git checkout 39bc54993b029037b12b4a7e947d6cd500065c6b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/vfio/pci/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303291158.UlMhtYCO-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/vfio/pci/vfio_pci_core.c:1116:6: error: implicit declaration of function 'pci_msix_can_alloc_dyn' is invalid in C99 [-Werror,-Wimplicit-function-declaration] !pci_msix_can_alloc_dyn(vdev->pdev))) ^ 1 error generated. vim +/pci_msix_can_alloc_dyn +1116 drivers/vfio/pci/vfio_pci_core.c 1082 1083 static int vfio_pci_ioctl_get_irq_info(struct vfio_pci_core_device *vdev, 1084 struct vfio_irq_info __user *arg) 1085 { 1086 unsigned long minsz = offsetofend(struct vfio_irq_info, count); 1087 struct vfio_irq_info info; 1088 1089 if (copy_from_user(&info, arg, minsz)) 1090 return -EFAULT; 1091 1092 if (info.argsz < minsz || info.index >= VFIO_PCI_NUM_IRQS) 1093 return -EINVAL; 1094 1095 switch (info.index) { 1096 case VFIO_PCI_INTX_IRQ_INDEX ... VFIO_PCI_MSIX_IRQ_INDEX: 1097 case VFIO_PCI_REQ_IRQ_INDEX: 1098 break; 1099 case VFIO_PCI_ERR_IRQ_INDEX: 1100 if (pci_is_pcie(vdev->pdev)) 1101 break; 1102 fallthrough; 1103 default: 1104 return -EINVAL; 1105 } 1106 1107 info.flags = VFIO_IRQ_INFO_EVENTFD; 1108 1109 info.count = vfio_pci_get_irq_count(vdev, info.index); 1110 1111 if (info.index == VFIO_PCI_INTX_IRQ_INDEX) 1112 info.flags |= 1113 (VFIO_IRQ_INFO_MASKABLE | VFIO_IRQ_INFO_AUTOMASKED); 1114 else if ((info.index != VFIO_PCI_MSIX_IRQ_INDEX) || 1115 (info.index == VFIO_PCI_MSIX_IRQ_INDEX && > 1116 !pci_msix_can_alloc_dyn(vdev->pdev))) 1117 info.flags |= VFIO_IRQ_INFO_NORESIZE; 1118 1119 return copy_to_user(arg, &info, minsz) ? -EFAULT : 0; 1120 } 1121 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests