tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 0d426553bb97ebfcb4ea34e8fd63477a44316644
commit: 857e8d34273e190118d5cb5002e1ed45d1b5185d [1231/1231] arm64/mpam: Using software-defined id for rdtgroup instead of 32-bit integer
config: arm64-randconfig-001-20241029 (https://download.01.org/0day-ci/archive/20241105/202411050407.BuL0Qgyb-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411050407.BuL0Qgyb-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411050407.BuL0Qgyb-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/arm64/kernel/mpam/mpam_resctrl.c:163:1: warning: conflicting types for 'mpam_get_raw_resctrl_resource' due to enum/integer mismatch; have 'struct raw_resctrl_resource *(enum resctrl_resource_level)' [-Wenum-int-mismatch]
163 | mpam_get_raw_resctrl_resource(enum resctrl_resource_level level)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/arm64/kernel/mpam/mpam_resctrl.c:47:
arch/arm64/kernel/mpam/mpam_internal.h:184:1: note: previous declaration of 'mpam_get_raw_resctrl_resource' with type 'struct raw_resctrl_resource *(u32)' {aka 'struct raw_resctrl_resource *(unsigned int)'}
184 | mpam_get_raw_resctrl_resource(u32 level);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/arm64/kernel/mpam/mpam_resctrl.c:520:5: warning: no previous prototype for 'closid_bitmap_init' [-Wmissing-prototypes]
520 | int closid_bitmap_init(void)
| ^~~~~~~~~~~~~~~~~~
arch/arm64/kernel/mpam/mpam_resctrl.c:875:5: warning: no previous prototype for 'cpus_ctrl_write' [-Wmissing-prototypes]
875 | int cpus_ctrl_write(struct rdtgroup *rdtgrp, cpumask_var_t newmask,
| ^~~~~~~~~~~~~~~
arch/arm64/kernel/mpam/mpam_resctrl.c:972:5: warning: no previous prototype for 'cpus_mon_write' [-Wmissing-prototypes]
972 | int cpus_mon_write(struct rdtgroup *rdtgrp, cpumask_var_t newmask,
| ^~~~~~~~~~~~~~
arch/arm64/kernel/mpam/mpam_resctrl.c: In function 'rdt_last_cmd_printf':
arch/arm64/kernel/mpam/mpam_resctrl.c:1116:9: warning: function 'rdt_last_cmd_printf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
1116 | seq_buf_vprintf(&last_cmd_status, fmt, ap);
| ^~~~~~~~~~~~~~~
--
arch/arm64/kernel/mpam/mpam_ctrlmon.c: In function 'resctrl_mkdir_mondata_all_subdir':
arch/arm64/kernel/mpam/mpam_ctrlmon.c:561:54: warning: variable 'rr' set but not used [-Wunused-but-set-variable]
561 | struct raw_resctrl_resource *rr;
| ^~
arch/arm64/kernel/mpam/mpam_ctrlmon.c:320: warning: Function parameter or member 's' not described in 'show_doms'
arch/arm64/kernel/mpam/mpam_ctrlmon.c:320: warning: Function parameter or member 'r' not described in 'show_doms'
arch/arm64/kernel/mpam/mpam_ctrlmon.c:320: warning: Function parameter or member 'schema_name' not described in 'show_doms'
>> arch/arm64/kernel/mpam/mpam_ctrlmon.c:320: warning: Function parameter or member 'closid' not described in 'show_doms'
vim +/closid_bitmap_init +520 arch/arm64/kernel/mpam/mpam_resctrl.c
519
> 520 int closid_bitmap_init(void)
521 {
522 int ret;
523
524 mpam_resctrl_closid_collect();
525 if (!num_intpartid || !num_reqpartid)
526 return -EINVAL;
527
528 if (intpartid_free_map)
529 kfree(intpartid_free_map);
530 if (reqpartid_free_map)
531 kfree(reqpartid_free_map);
532
533 ret = local_closid_bitmap_init(num_intpartid, &intpartid_free_map);
534 if (ret)
535 goto out;
536
537 ret = local_closid_bitmap_init(num_reqpartid, &reqpartid_free_map);
538 if (ret)
539 goto out;
540
541 return 0;
542 out:
543 return ret;
544 }
545
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: ab4fcabb7d813ddd7a455c85557f8d0891df4c41
commit: 11557c1ae4529f133483879b7ee00b7d8c653be7 [9864/16090] x86/cpu/zhaoxin: Encapsulate access to kh40000_dma_direct_ops within function
config: x86_64-buildonly-randconfig-003-20241104 (https://download.01.org/0day-ci/archive/20241105/202411050406.Ec1bzJ2a-lkp@…)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411050406.Ec1bzJ2a-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411050406.Ec1bzJ2a-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/x86/kernel/early-quirks.c:722:6: warning: no previous prototype for 'is_zhaoxin_kh40000' [-Wmissing-prototypes]
722 | bool is_zhaoxin_kh40000(void)
| ^~~~~~~~~~~~~~~~~~
>> arch/x86/kernel/early-quirks.c:727:34: warning: no previous prototype for 'kh40000_get_direct_dma_ops' [-Wmissing-prototypes]
727 | __weak const struct dma_map_ops *kh40000_get_direct_dma_ops(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/kh40000_get_direct_dma_ops +727 arch/x86/kernel/early-quirks.c
726
> 727 __weak const struct dma_map_ops *kh40000_get_direct_dma_ops(void)
728 {
729 return dma_ops;
730 }
731
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: ab4fcabb7d813ddd7a455c85557f8d0891df4c41
commit: 69181c3c9413ccaa4dab458057d13efda520cb60 [16076/16090] Net: nebula_matrix: fix ci build warning
config: x86_64-randconfig-011-20241104 (https://download.01.org/0day-ci/archive/20241105/202411050357.1eY1gMA4-lkp@…)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411050357.1eY1gMA4-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411050357.1eY1gMA4-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:7:
In file included from drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.h:10:
In file included from drivers/net/ethernet/nebula-matrix/nbl/nbl_core.h:10:
In file included from drivers/net/ethernet/nebula-matrix/nbl/nbl_include/nbl_product_base.h:10:
In file included from drivers/net/ethernet/nebula-matrix/nbl/nbl_include/nbl_include.h:12:
In file included from include/linux/pci.h:1669:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:2247:
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:404:6: warning: no previous prototype for function 'nbl_dev_free_abnormal_irq' [-Wmissing-prototypes]
404 | void nbl_dev_free_abnormal_irq(struct nbl_dev_mgt *dev_mgt)
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:404:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
404 | void nbl_dev_free_abnormal_irq(struct nbl_dev_mgt *dev_mgt)
| ^
| static
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1706:6: warning: no previous prototype for function 'nbl_dev_set_eth_mac_addr' [-Wmissing-prototypes]
1706 | void nbl_dev_set_eth_mac_addr(struct nbl_dev_mgt *dev_mgt, struct net_device *netdev)
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1706:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1706 | void nbl_dev_set_eth_mac_addr(struct nbl_dev_mgt *dev_mgt, struct net_device *netdev)
| ^
| static
>> drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1806:25: error: use of undeclared identifier 'PCI_IOV_RESOURCES'
1806 | res = &pdev->resource[PCI_IOV_RESOURCES];
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1828:6: warning: no previous prototype for function 'nbl_dev_unregister_net' [-Wmissing-prototypes]
1828 | void nbl_dev_unregister_net(struct nbl_adapter *adapter)
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1828:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1828 | void nbl_dev_unregister_net(struct nbl_adapter *adapter)
| ^
| static
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2409:21: warning: variable 'netdev' set but not used [-Wunused-but-set-variable]
2409 | struct net_device *netdev;
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2746:26: warning: variable 'net_priv' set but not used [-Wunused-but-set-variable]
2746 | struct nbl_netdev_priv *net_priv;
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2926:6: warning: no previous prototype for function 'nbl_dev_stop_common_dev' [-Wmissing-prototypes]
2926 | void nbl_dev_stop_common_dev(struct nbl_adapter *adapter)
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2926:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2926 | void nbl_dev_stop_common_dev(struct nbl_adapter *adapter)
| ^
| static
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2956:6: warning: no previous prototype for function 'nbl_dev_suspend_common_dev' [-Wmissing-prototypes]
2956 | void nbl_dev_suspend_common_dev(struct nbl_adapter *adapter)
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2956:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2956 | void nbl_dev_suspend_common_dev(struct nbl_adapter *adapter)
| ^
| static
8 warnings and 1 error generated.
vim +/PCI_IOV_RESOURCES +1806 drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c
bad535d287c9c1 Bennie Yan 2024-09-24 1770
bad535d287c9c1 Bennie Yan 2024-09-24 1771 static int nbl_dev_register_net(struct nbl_dev_mgt *dev_mgt,
bad535d287c9c1 Bennie Yan 2024-09-24 1772 struct nbl_register_net_result *register_result)
bad535d287c9c1 Bennie Yan 2024-09-24 1773 {
bad535d287c9c1 Bennie Yan 2024-09-24 1774 struct nbl_service_ops *serv_ops = NBL_DEV_MGT_TO_SERV_OPS(dev_mgt);
bad535d287c9c1 Bennie Yan 2024-09-24 1775 struct pci_dev *pdev = NBL_COMMON_TO_PDEV(NBL_DEV_MGT_TO_COMMON(dev_mgt));
bad535d287c9c1 Bennie Yan 2024-09-24 1776 struct resource *res;
bad535d287c9c1 Bennie Yan 2024-09-24 1777 u16 pf_bdf;
bad535d287c9c1 Bennie Yan 2024-09-24 1778 u64 pf_bar_start;
bad535d287c9c1 Bennie Yan 2024-09-24 1779 u64 vf_bar_start, vf_bar_size;
bad535d287c9c1 Bennie Yan 2024-09-24 1780 u16 total_vfs, offset, stride;
bad535d287c9c1 Bennie Yan 2024-09-24 1781 int pos;
bad535d287c9c1 Bennie Yan 2024-09-24 1782 u32 val;
bad535d287c9c1 Bennie Yan 2024-09-24 1783 struct nbl_register_net_param register_param = {0};
bad535d287c9c1 Bennie Yan 2024-09-24 1784 int ret = 0;
bad535d287c9c1 Bennie Yan 2024-09-24 1785
bad535d287c9c1 Bennie Yan 2024-09-24 1786 pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0, &val);
bad535d287c9c1 Bennie Yan 2024-09-24 1787 pf_bar_start = (u64)(val & PCI_BASE_ADDRESS_MEM_MASK);
bad535d287c9c1 Bennie Yan 2024-09-24 1788 pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0 + 4, &val);
bad535d287c9c1 Bennie Yan 2024-09-24 1789 pf_bar_start |= ((u64)val << 32);
bad535d287c9c1 Bennie Yan 2024-09-24 1790
bad535d287c9c1 Bennie Yan 2024-09-24 1791 register_param.pf_bar_start = pf_bar_start;
bad535d287c9c1 Bennie Yan 2024-09-24 1792
bad535d287c9c1 Bennie Yan 2024-09-24 1793 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_SRIOV);
bad535d287c9c1 Bennie Yan 2024-09-24 1794 if (pos) {
bad535d287c9c1 Bennie Yan 2024-09-24 1795 pf_bdf = PCI_DEVID(pdev->bus->number, pdev->devfn);
bad535d287c9c1 Bennie Yan 2024-09-24 1796
bad535d287c9c1 Bennie Yan 2024-09-24 1797 pci_read_config_word(pdev, pos + PCI_SRIOV_VF_OFFSET, &offset);
bad535d287c9c1 Bennie Yan 2024-09-24 1798 pci_read_config_word(pdev, pos + PCI_SRIOV_VF_STRIDE, &stride);
bad535d287c9c1 Bennie Yan 2024-09-24 1799 pci_read_config_word(pdev, pos + PCI_SRIOV_TOTAL_VF, &total_vfs);
bad535d287c9c1 Bennie Yan 2024-09-24 1800
bad535d287c9c1 Bennie Yan 2024-09-24 1801 pci_read_config_dword(pdev, pos + PCI_SRIOV_BAR, &val);
bad535d287c9c1 Bennie Yan 2024-09-24 1802 vf_bar_start = (u64)(val & PCI_BASE_ADDRESS_MEM_MASK);
bad535d287c9c1 Bennie Yan 2024-09-24 1803 pci_read_config_dword(pdev, pos + PCI_SRIOV_BAR + 4, &val);
bad535d287c9c1 Bennie Yan 2024-09-24 1804 vf_bar_start |= ((u64)val << 32);
bad535d287c9c1 Bennie Yan 2024-09-24 1805
bad535d287c9c1 Bennie Yan 2024-09-24 @1806 res = &pdev->resource[PCI_IOV_RESOURCES];
bad535d287c9c1 Bennie Yan 2024-09-24 1807 vf_bar_size = resource_size(res);
bad535d287c9c1 Bennie Yan 2024-09-24 1808
bad535d287c9c1 Bennie Yan 2024-09-24 1809 if (total_vfs) {
bad535d287c9c1 Bennie Yan 2024-09-24 1810 register_param.pf_bdf = pf_bdf;
bad535d287c9c1 Bennie Yan 2024-09-24 1811 register_param.vf_bar_start = vf_bar_start;
bad535d287c9c1 Bennie Yan 2024-09-24 1812 register_param.vf_bar_size = vf_bar_size;
bad535d287c9c1 Bennie Yan 2024-09-24 1813 register_param.total_vfs = total_vfs;
bad535d287c9c1 Bennie Yan 2024-09-24 1814 register_param.offset = offset;
bad535d287c9c1 Bennie Yan 2024-09-24 1815 register_param.stride = stride;
bad535d287c9c1 Bennie Yan 2024-09-24 1816 }
bad535d287c9c1 Bennie Yan 2024-09-24 1817 }
bad535d287c9c1 Bennie Yan 2024-09-24 1818
bad535d287c9c1 Bennie Yan 2024-09-24 1819 ret = serv_ops->register_net(NBL_DEV_MGT_TO_SERV_PRIV(dev_mgt),
bad535d287c9c1 Bennie Yan 2024-09-24 1820 ®ister_param, register_result);
bad535d287c9c1 Bennie Yan 2024-09-24 1821
bad535d287c9c1 Bennie Yan 2024-09-24 1822 if (!register_result->tx_queue_num || !register_result->rx_queue_num)
bad535d287c9c1 Bennie Yan 2024-09-24 1823 return -EIO;
bad535d287c9c1 Bennie Yan 2024-09-24 1824
bad535d287c9c1 Bennie Yan 2024-09-24 1825 return ret;
bad535d287c9c1 Bennie Yan 2024-09-24 1826 }
bad535d287c9c1 Bennie Yan 2024-09-24 1827
:::::: The code at line 1806 was first introduced by commit
:::::: bad535d287c9c1056d99de3666be7da84de4a8fc Net:nbl_core: Add nbl_core-driver for nebula-matrix S1055AS series smart NIC.
:::::: TO: Bennie Yan <bennie.yan(a)nebula-matrix.com>
:::::: CC: Bennie Yan <bennie.yan(a)nebula-matrix.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: ab4fcabb7d813ddd7a455c85557f8d0891df4c41
commit: 8eaba08b2d72718a40cafe3402ab4f26b0dc62eb [9863/16090] x86/cpu/zhaoxin: Encapsulate access to global variables within functions
config: x86_64-buildonly-randconfig-002-20241104 (https://download.01.org/0day-ci/archive/20241105/202411050336.auofJ1jN-lkp@…)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411050336.auofJ1jN-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411050336.auofJ1jN-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from arch/x86/kernel/early-quirks.c:13:
In file included from include/linux/pci.h:1666:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:2235:
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> arch/x86/kernel/early-quirks.c:722:6: warning: no previous prototype for function 'is_zhaoxin_kh40000' [-Wmissing-prototypes]
722 | bool is_zhaoxin_kh40000(void)
| ^
arch/x86/kernel/early-quirks.c:722:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
722 | bool is_zhaoxin_kh40000(void)
| ^
| static
arch/x86/kernel/early-quirks.c:737:14: error: use of undeclared identifier 'kh40000_dma_direct_ops'
737 | dma_ops = &kh40000_dma_direct_ops;
| ^
2 warnings and 1 error generated.
--
In file included from kernel/dma/contiguous.c:48:
In file included from include/linux/memblock.h:12:
In file included from include/linux/mm.h:2235:
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> kernel/dma/contiguous.c:209:13: warning: no previous prototype for function 'is_zhaoxin_kh40000' [-Wmissing-prototypes]
209 | bool __weak is_zhaoxin_kh40000(void)
| ^
kernel/dma/contiguous.c:209:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
209 | bool __weak is_zhaoxin_kh40000(void)
| ^
| static
kernel/dma/contiguous.c:73:26: warning: unused variable 'size_bytes' [-Wunused-const-variable]
73 | static const phys_addr_t size_bytes __initconst =
| ^~~~~~~~~~
3 warnings generated.
vim +/is_zhaoxin_kh40000 +722 arch/x86/kernel/early-quirks.c
721
> 722 bool is_zhaoxin_kh40000(void)
723 {
724 return zhaoxin_kh40000;
725 }
726
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: ab4fcabb7d813ddd7a455c85557f8d0891df4c41
commit: 69181c3c9413ccaa4dab458057d13efda520cb60 [16076/16090] Net: nebula_matrix: fix ci build warning
config: x86_64-randconfig-002-20241104 (https://download.01.org/0day-ci/archive/20241105/202411050228.sfGyzHzs-lkp@…)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411050228.sfGyzHzs-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411050228.sfGyzHzs-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:404:6: warning: no previous prototype for 'nbl_dev_free_abnormal_irq' [-Wmissing-prototypes]
404 | void nbl_dev_free_abnormal_irq(struct nbl_dev_mgt *dev_mgt)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1706:6: warning: no previous prototype for 'nbl_dev_set_eth_mac_addr' [-Wmissing-prototypes]
1706 | void nbl_dev_set_eth_mac_addr(struct nbl_dev_mgt *dev_mgt, struct net_device *netdev)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c: In function 'nbl_dev_register_net':
>> drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1806:39: error: 'PCI_IOV_RESOURCES' undeclared (first use in this function); did you mean 'PCI_NUM_RESOURCES'?
1806 | res = &pdev->resource[PCI_IOV_RESOURCES];
| ^~~~~~~~~~~~~~~~~
| PCI_NUM_RESOURCES
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1806:39: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c: At top level:
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1828:6: warning: no previous prototype for 'nbl_dev_unregister_net' [-Wmissing-prototypes]
1828 | void nbl_dev_unregister_net(struct nbl_adapter *adapter)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c: In function 'nbl_dev_remove_net_dev':
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2409:28: warning: variable 'netdev' set but not used [-Wunused-but-set-variable]
2409 | struct net_device *netdev;
| ^~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c: In function 'nbl_dev_stop_net_dev':
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2746:33: warning: variable 'net_priv' set but not used [-Wunused-but-set-variable]
2746 | struct nbl_netdev_priv *net_priv;
| ^~~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c: At top level:
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2926:6: warning: no previous prototype for 'nbl_dev_stop_common_dev' [-Wmissing-prototypes]
2926 | void nbl_dev_stop_common_dev(struct nbl_adapter *adapter)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2956:6: warning: no previous prototype for 'nbl_dev_suspend_common_dev' [-Wmissing-prototypes]
2956 | void nbl_dev_suspend_common_dev(struct nbl_adapter *adapter)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
--
drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_phy_leonis.c: In function 'nbl_phy_disable_rx_err_report':
>> drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_phy_leonis.c:2850:20: error: 'struct pci_dev' has no member named 'aer_cap'; did you mean 'ats_cap'?
2850 | if (!pdev->aer_cap)
| ^~~~~~~
| ats_cap
drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_phy_leonis.c:2853:42: error: 'struct pci_dev' has no member named 'aer_cap'; did you mean 'ats_cap'?
2853 | pci_read_config_byte(pdev, pdev->aer_cap + PCI_ERR_COR_MASK, &mask);
| ^~~~~~~
| ats_cap
drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_phy_leonis.c:2855:43: error: 'struct pci_dev' has no member named 'aer_cap'; did you mean 'ats_cap'?
2855 | pci_write_config_byte(pdev, pdev->aer_cap + PCI_ERR_COR_MASK, mask);
| ^~~~~~~
| ats_cap
--
drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c: In function 'nbl_res_adminq_add_cmd_filter_res_write':
>> drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:75:48: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
75 | struct nbl_res_fw_cmd_filter filter = {0};
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:75:48: note: (near initialization for 'filter')
>> drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:75:48: error: invalid initializer
drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:75:48: note: (near initialization for 'filter.<anonymous>')
drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c: In function 'nbl_res_adminq_pt_filter_out':
drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:1568:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
1568 | int ret = 0;
| ^~~
cc1: some warnings being treated as errors
--
drivers/net/ethernet/nebula-matrix/nbl/nbl_main.c:37:6: warning: no previous prototype for 'nbl_core_setup_product_ops' [-Wmissing-prototypes]
37 | void nbl_core_setup_product_ops(struct nbl_adapter *adapter, struct nbl_init_param *param,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_main.c: In function 'nbl_core_remove':
drivers/net/ethernet/nebula-matrix/nbl/nbl_main.c:123:33: warning: variable 'common' set but not used [-Wunused-but-set-variable]
123 | struct nbl_common_info *common;
| ^~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_main.c: At top level:
>> drivers/net/ethernet/nebula-matrix/nbl/nbl_main.c:429:12: warning: 'nbl_resume' defined but not used [-Wunused-function]
429 | static int nbl_resume(struct device *dev)
| ^~~~~~~~~~
>> drivers/net/ethernet/nebula-matrix/nbl/nbl_main.c:421:12: warning: 'nbl_suspend' defined but not used [-Wunused-function]
421 | static int nbl_suspend(struct device *dev)
| ^~~~~~~~~~~
vim +1806 drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c
bad535d287c9c1 Bennie Yan 2024-09-24 1770
bad535d287c9c1 Bennie Yan 2024-09-24 1771 static int nbl_dev_register_net(struct nbl_dev_mgt *dev_mgt,
bad535d287c9c1 Bennie Yan 2024-09-24 1772 struct nbl_register_net_result *register_result)
bad535d287c9c1 Bennie Yan 2024-09-24 1773 {
bad535d287c9c1 Bennie Yan 2024-09-24 1774 struct nbl_service_ops *serv_ops = NBL_DEV_MGT_TO_SERV_OPS(dev_mgt);
bad535d287c9c1 Bennie Yan 2024-09-24 1775 struct pci_dev *pdev = NBL_COMMON_TO_PDEV(NBL_DEV_MGT_TO_COMMON(dev_mgt));
bad535d287c9c1 Bennie Yan 2024-09-24 1776 struct resource *res;
bad535d287c9c1 Bennie Yan 2024-09-24 1777 u16 pf_bdf;
bad535d287c9c1 Bennie Yan 2024-09-24 1778 u64 pf_bar_start;
bad535d287c9c1 Bennie Yan 2024-09-24 1779 u64 vf_bar_start, vf_bar_size;
bad535d287c9c1 Bennie Yan 2024-09-24 1780 u16 total_vfs, offset, stride;
bad535d287c9c1 Bennie Yan 2024-09-24 1781 int pos;
bad535d287c9c1 Bennie Yan 2024-09-24 1782 u32 val;
bad535d287c9c1 Bennie Yan 2024-09-24 1783 struct nbl_register_net_param register_param = {0};
bad535d287c9c1 Bennie Yan 2024-09-24 1784 int ret = 0;
bad535d287c9c1 Bennie Yan 2024-09-24 1785
bad535d287c9c1 Bennie Yan 2024-09-24 1786 pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0, &val);
bad535d287c9c1 Bennie Yan 2024-09-24 1787 pf_bar_start = (u64)(val & PCI_BASE_ADDRESS_MEM_MASK);
bad535d287c9c1 Bennie Yan 2024-09-24 1788 pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0 + 4, &val);
bad535d287c9c1 Bennie Yan 2024-09-24 1789 pf_bar_start |= ((u64)val << 32);
bad535d287c9c1 Bennie Yan 2024-09-24 1790
bad535d287c9c1 Bennie Yan 2024-09-24 1791 register_param.pf_bar_start = pf_bar_start;
bad535d287c9c1 Bennie Yan 2024-09-24 1792
bad535d287c9c1 Bennie Yan 2024-09-24 1793 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_SRIOV);
bad535d287c9c1 Bennie Yan 2024-09-24 1794 if (pos) {
bad535d287c9c1 Bennie Yan 2024-09-24 1795 pf_bdf = PCI_DEVID(pdev->bus->number, pdev->devfn);
bad535d287c9c1 Bennie Yan 2024-09-24 1796
bad535d287c9c1 Bennie Yan 2024-09-24 1797 pci_read_config_word(pdev, pos + PCI_SRIOV_VF_OFFSET, &offset);
bad535d287c9c1 Bennie Yan 2024-09-24 1798 pci_read_config_word(pdev, pos + PCI_SRIOV_VF_STRIDE, &stride);
bad535d287c9c1 Bennie Yan 2024-09-24 1799 pci_read_config_word(pdev, pos + PCI_SRIOV_TOTAL_VF, &total_vfs);
bad535d287c9c1 Bennie Yan 2024-09-24 1800
bad535d287c9c1 Bennie Yan 2024-09-24 1801 pci_read_config_dword(pdev, pos + PCI_SRIOV_BAR, &val);
bad535d287c9c1 Bennie Yan 2024-09-24 1802 vf_bar_start = (u64)(val & PCI_BASE_ADDRESS_MEM_MASK);
bad535d287c9c1 Bennie Yan 2024-09-24 1803 pci_read_config_dword(pdev, pos + PCI_SRIOV_BAR + 4, &val);
bad535d287c9c1 Bennie Yan 2024-09-24 1804 vf_bar_start |= ((u64)val << 32);
bad535d287c9c1 Bennie Yan 2024-09-24 1805
bad535d287c9c1 Bennie Yan 2024-09-24 @1806 res = &pdev->resource[PCI_IOV_RESOURCES];
bad535d287c9c1 Bennie Yan 2024-09-24 1807 vf_bar_size = resource_size(res);
bad535d287c9c1 Bennie Yan 2024-09-24 1808
bad535d287c9c1 Bennie Yan 2024-09-24 1809 if (total_vfs) {
bad535d287c9c1 Bennie Yan 2024-09-24 1810 register_param.pf_bdf = pf_bdf;
bad535d287c9c1 Bennie Yan 2024-09-24 1811 register_param.vf_bar_start = vf_bar_start;
bad535d287c9c1 Bennie Yan 2024-09-24 1812 register_param.vf_bar_size = vf_bar_size;
bad535d287c9c1 Bennie Yan 2024-09-24 1813 register_param.total_vfs = total_vfs;
bad535d287c9c1 Bennie Yan 2024-09-24 1814 register_param.offset = offset;
bad535d287c9c1 Bennie Yan 2024-09-24 1815 register_param.stride = stride;
bad535d287c9c1 Bennie Yan 2024-09-24 1816 }
bad535d287c9c1 Bennie Yan 2024-09-24 1817 }
bad535d287c9c1 Bennie Yan 2024-09-24 1818
bad535d287c9c1 Bennie Yan 2024-09-24 1819 ret = serv_ops->register_net(NBL_DEV_MGT_TO_SERV_PRIV(dev_mgt),
bad535d287c9c1 Bennie Yan 2024-09-24 1820 ®ister_param, register_result);
bad535d287c9c1 Bennie Yan 2024-09-24 1821
bad535d287c9c1 Bennie Yan 2024-09-24 1822 if (!register_result->tx_queue_num || !register_result->rx_queue_num)
bad535d287c9c1 Bennie Yan 2024-09-24 1823 return -EIO;
bad535d287c9c1 Bennie Yan 2024-09-24 1824
bad535d287c9c1 Bennie Yan 2024-09-24 1825 return ret;
bad535d287c9c1 Bennie Yan 2024-09-24 1826 }
bad535d287c9c1 Bennie Yan 2024-09-24 1827
:::::: The code at line 1806 was first introduced by commit
:::::: bad535d287c9c1056d99de3666be7da84de4a8fc Net:nbl_core: Add nbl_core-driver for nebula-matrix S1055AS series smart NIC.
:::::: TO: Bennie Yan <bennie.yan(a)nebula-matrix.com>
:::::: CC: Bennie Yan <bennie.yan(a)nebula-matrix.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: ab4fcabb7d813ddd7a455c85557f8d0891df4c41
commit: 8eaba08b2d72718a40cafe3402ab4f26b0dc62eb [9863/16090] x86/cpu/zhaoxin: Encapsulate access to global variables within functions
config: x86_64-buildonly-randconfig-003-20241104 (https://download.01.org/0day-ci/archive/20241105/202411050256.qgVICxTA-lkp@…)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411050256.qgVICxTA-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411050256.qgVICxTA-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/x86/kernel/early-quirks.c:722:6: warning: no previous prototype for 'is_zhaoxin_kh40000' [-Wmissing-prototypes]
722 | bool is_zhaoxin_kh40000(void)
| ^~~~~~~~~~~~~~~~~~
arch/x86/kernel/early-quirks.c: In function 'quirk_zhaoxin_dma_patch':
arch/x86/kernel/early-quirks.c:737:28: error: 'kh40000_dma_direct_ops' undeclared (first use in this function)
737 | dma_ops = &kh40000_dma_direct_ops;
| ^~~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/early-quirks.c:737:28: note: each undeclared identifier is reported only once for each function it appears in
--
>> kernel/dma/contiguous.c:209:13: warning: no previous prototype for 'is_zhaoxin_kh40000' [-Wmissing-prototypes]
209 | bool __weak is_zhaoxin_kh40000(void)
| ^~~~~~~~~~~~~~~~~~
vim +/is_zhaoxin_kh40000 +722 arch/x86/kernel/early-quirks.c
721
> 722 bool is_zhaoxin_kh40000(void)
723 {
724 return zhaoxin_kh40000;
725 }
726
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: ab4fcabb7d813ddd7a455c85557f8d0891df4c41
commit: 25fd62f6e8c9636272009dfcbe04fb1a260cbf8d [10691/16090] perf/x86/zhaoxin/uncore: update KX-7000 support
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20241105/202411050150.UNuEIvNX-lkp@…)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411050150.UNuEIvNX-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411050150.UNuEIvNX-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from arch/x86/events/zhaoxin/uncore.c:3:
In file included from arch/x86/events/zhaoxin/uncore.h:3:
In file included from include/linux/pci.h:1666:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:2235:
include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
509 | item];
| ~~~~
include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
516 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
528 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
537 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
arch/x86/events/zhaoxin/uncore.c:2798:6: warning: no previous prototype for function 'kx5000_uncore_cpu_init' [-Wmissing-prototypes]
2798 | void kx5000_uncore_cpu_init(void)
| ^
arch/x86/events/zhaoxin/uncore.c:2798:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2798 | void kx5000_uncore_cpu_init(void)
| ^
| static
arch/x86/events/zhaoxin/uncore.c:2807:6: warning: no previous prototype for function 'kh40000_uncore_cpu_init' [-Wmissing-prototypes]
2807 | void kh40000_uncore_cpu_init(void)
| ^
arch/x86/events/zhaoxin/uncore.c:2807:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2807 | void kh40000_uncore_cpu_init(void)
| ^
| static
arch/x86/events/zhaoxin/uncore.c:2812:5: warning: no previous prototype for function 'kh40000_uncore_pci_init' [-Wmissing-prototypes]
2812 | int kh40000_uncore_pci_init(void)
| ^
arch/x86/events/zhaoxin/uncore.c:2812:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2812 | int kh40000_uncore_pci_init(void)
| ^
| static
>> arch/x86/events/zhaoxin/uncore.c:2828:6: warning: no previous prototype for function 'kx7000_uncore_cpu_init' [-Wmissing-prototypes]
2828 | void kx7000_uncore_cpu_init(void)
| ^
arch/x86/events/zhaoxin/uncore.c:2828:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2828 | void kx7000_uncore_cpu_init(void)
| ^
| static
>> arch/x86/events/zhaoxin/uncore.c:2843:5: warning: no previous prototype for function 'kx7000_uncore_pci_init' [-Wmissing-prototypes]
2843 | int kx7000_uncore_pci_init(void)
| ^
arch/x86/events/zhaoxin/uncore.c:2843:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2843 | int kx7000_uncore_pci_init(void)
| ^
| static
>> arch/x86/events/zhaoxin/uncore.c:2851:6: warning: no previous prototype for function 'kx7000_uncore_mmio_init' [-Wmissing-prototypes]
2851 | void kx7000_uncore_mmio_init(void)
| ^
arch/x86/events/zhaoxin/uncore.c:2851:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2851 | void kx7000_uncore_mmio_init(void)
| ^
| static
11 warnings generated.
vim +/kx7000_uncore_cpu_init +2828 arch/x86/events/zhaoxin/uncore.c
2827
> 2828 void kx7000_uncore_cpu_init(void)
2829 {
2830 u64 val;
2831 int cpu;
2832
2833 uncore_msr_uncores = kx7000_msr_uncores;
2834
2835 /* clear bit 16 of MSR 0x1877 so that HIF can work normally */
2836 for_each_present_cpu(cpu) {
2837 rdmsrl_on_cpu(cpu, 0x1877, &val);
2838 val = val & 0xfffffffffffeffffULL;
2839 wrmsrl_on_cpu(cpu, 0x1877, val);
2840 }
2841 }
2842
> 2843 int kx7000_uncore_pci_init(void)
2844 {
2845 uncore_pci_uncores = kx7000_pci_uncores;
2846 uncore_pci_driver = &kx7000_uncore_pci_driver;
2847
2848 return 0;
2849 }
2850
> 2851 void kx7000_uncore_mmio_init(void)
2852 {
2853 uncore_mmio_uncores = kx7000_mmio_uncores;
2854 }
2855
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 4d3056ab32e02139d7656adf048416e877e283b0
commit: c21dc717760f8594e1fccae49eb86eb05e9a5f12 [1360/1360] dt-bindings: arm: Add MPAM MSC binding
:::::: branch date: 2 hours ago
:::::: commit date: 10 months ago
config: loongarch-randconfig-052-20241104 (https://download.01.org/0day-ci/archive/20241104/202411041305.karqcxbp-lkp@…)
compiler: loongarch64-linux-gcc (GCC) 14.1.0
dtschema version: 2024.10.dev6+g12c3cd5
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241104/202411041305.karqcxbp-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/r/202411041305.karqcxbp-lkp@intel.com/
dtcheck warnings: (new ones prefixed by >>)
>> Documentation/devicetree/bindings/arm/arm,mpam-msc.yaml:76:15: [error] string value is redundantly quoted with any quotes (quoted-strings)
Documentation/devicetree/bindings/arm/arm,mpam-msc.yaml:82:15: [error] string value is redundantly quoted with any quotes (quoted-strings)
vim +76 Documentation/devicetree/bindings/arm/arm,mpam-msc.yaml
c21dc717760f85 Rob Herring 2024-01-22 8
c21dc717760f85 Rob Herring 2024-01-22 9 description: |
c21dc717760f85 Rob Herring 2024-01-22 10 The Arm MPAM specification can be found here:
c21dc717760f85 Rob Herring 2024-01-22 11
c21dc717760f85 Rob Herring 2024-01-22 12 https://developer.arm.com/documentation/ddi0598/latest
c21dc717760f85 Rob Herring 2024-01-22 13
c21dc717760f85 Rob Herring 2024-01-22 14 maintainers:
c21dc717760f85 Rob Herring 2024-01-22 15 - Rob Herring <robh(a)kernel.org>
c21dc717760f85 Rob Herring 2024-01-22 16
c21dc717760f85 Rob Herring 2024-01-22 17 properties:
c21dc717760f85 Rob Herring 2024-01-22 18 compatible:
c21dc717760f85 Rob Herring 2024-01-22 19 items:
c21dc717760f85 Rob Herring 2024-01-22 20 - const: arm,mpam-msc # Further details are discoverable
c21dc717760f85 Rob Herring 2024-01-22 21 - const: arm,mpam-memory-controller-msc
c21dc717760f85 Rob Herring 2024-01-22 22
c21dc717760f85 Rob Herring 2024-01-22 23 reg:
c21dc717760f85 Rob Herring 2024-01-22 24 maxItems: 1
c21dc717760f85 Rob Herring 2024-01-22 25 description: A memory region containing registers as defined in the MPAM
c21dc717760f85 Rob Herring 2024-01-22 26 specification.
c21dc717760f85 Rob Herring 2024-01-22 27
c21dc717760f85 Rob Herring 2024-01-22 28 interrupts:
c21dc717760f85 Rob Herring 2024-01-22 29 minItems: 1
c21dc717760f85 Rob Herring 2024-01-22 30 items:
c21dc717760f85 Rob Herring 2024-01-22 31 - description: error (optional)
c21dc717760f85 Rob Herring 2024-01-22 32 - description: overflow (optional, only for monitoring)
c21dc717760f85 Rob Herring 2024-01-22 33
c21dc717760f85 Rob Herring 2024-01-22 34 interrupt-names:
c21dc717760f85 Rob Herring 2024-01-22 35 oneOf:
c21dc717760f85 Rob Herring 2024-01-22 36 - items:
c21dc717760f85 Rob Herring 2024-01-22 37 - enum: [ error, overflow ]
c21dc717760f85 Rob Herring 2024-01-22 38 - items:
c21dc717760f85 Rob Herring 2024-01-22 39 - const: error
c21dc717760f85 Rob Herring 2024-01-22 40 - const: overflow
c21dc717760f85 Rob Herring 2024-01-22 41
c21dc717760f85 Rob Herring 2024-01-22 42 arm,not-ready-us:
c21dc717760f85 Rob Herring 2024-01-22 43 description: The maximum time in microseconds for monitoring data to be
c21dc717760f85 Rob Herring 2024-01-22 44 accurate after a settings change. For more information, see the
c21dc717760f85 Rob Herring 2024-01-22 45 Not-Ready (NRDY) bit description in the MPAM specification.
c21dc717760f85 Rob Herring 2024-01-22 46
c21dc717760f85 Rob Herring 2024-01-22 47 numa-node-id: true # see NUMA binding
c21dc717760f85 Rob Herring 2024-01-22 48
c21dc717760f85 Rob Herring 2024-01-22 49 '#address-cells':
c21dc717760f85 Rob Herring 2024-01-22 50 const: 1
c21dc717760f85 Rob Herring 2024-01-22 51
c21dc717760f85 Rob Herring 2024-01-22 52 '#size-cells':
c21dc717760f85 Rob Herring 2024-01-22 53 const: 0
c21dc717760f85 Rob Herring 2024-01-22 54
c21dc717760f85 Rob Herring 2024-01-22 55 patternProperties:
c21dc717760f85 Rob Herring 2024-01-22 56 '^ris@[0-9a-f]$':
c21dc717760f85 Rob Herring 2024-01-22 57 type: object
c21dc717760f85 Rob Herring 2024-01-22 58 additionalProperties: false
c21dc717760f85 Rob Herring 2024-01-22 59 description: |
c21dc717760f85 Rob Herring 2024-01-22 60 RIS nodes for each RIS in an MSC. These nodes are required for each RIS
c21dc717760f85 Rob Herring 2024-01-22 61 implementing known MPAM controls
c21dc717760f85 Rob Herring 2024-01-22 62
c21dc717760f85 Rob Herring 2024-01-22 63 properties:
c21dc717760f85 Rob Herring 2024-01-22 64 compatible:
c21dc717760f85 Rob Herring 2024-01-22 65 enum:
c21dc717760f85 Rob Herring 2024-01-22 66 # Bulk storage for cache
c21dc717760f85 Rob Herring 2024-01-22 67 - arm,mpam-cache
c21dc717760f85 Rob Herring 2024-01-22 68 # Memory bandwidth
c21dc717760f85 Rob Herring 2024-01-22 69 - arm,mpam-memory
c21dc717760f85 Rob Herring 2024-01-22 70
c21dc717760f85 Rob Herring 2024-01-22 71 reg:
c21dc717760f85 Rob Herring 2024-01-22 72 minimum: 0
c21dc717760f85 Rob Herring 2024-01-22 73 maximum: 0xf
c21dc717760f85 Rob Herring 2024-01-22 74
c21dc717760f85 Rob Herring 2024-01-22 75 cpus:
c21dc717760f85 Rob Herring 2024-01-22 @76 $ref: '/schemas/types.yaml#/definitions/phandle-array'
c21dc717760f85 Rob Herring 2024-01-22 77 description:
c21dc717760f85 Rob Herring 2024-01-22 78 Phandle(s) to the CPU node(s) this RIS belongs to. By default, the parent
c21dc717760f85 Rob Herring 2024-01-22 79 device's affinity is used.
c21dc717760f85 Rob Herring 2024-01-22 80
c21dc717760f85 Rob Herring 2024-01-22 81 arm,mpam-device:
c21dc717760f85 Rob Herring 2024-01-22 82 $ref: '/schemas/types.yaml#/definitions/phandle'
c21dc717760f85 Rob Herring 2024-01-22 83 description:
c21dc717760f85 Rob Herring 2024-01-22 84 By default, the MPAM enabled device associated with a RIS is the MSC's
c21dc717760f85 Rob Herring 2024-01-22 85 parent node. It is possible for each RIS to be associated with different
c21dc717760f85 Rob Herring 2024-01-22 86 devices in which case 'arm,mpam-device' should be used.
c21dc717760f85 Rob Herring 2024-01-22 87
c21dc717760f85 Rob Herring 2024-01-22 88 required:
c21dc717760f85 Rob Herring 2024-01-22 89 - compatible
c21dc717760f85 Rob Herring 2024-01-22 90 - reg
c21dc717760f85 Rob Herring 2024-01-22 91
c21dc717760f85 Rob Herring 2024-01-22 92 required:
c21dc717760f85 Rob Herring 2024-01-22 93 - compatible
c21dc717760f85 Rob Herring 2024-01-22 94 - reg
c21dc717760f85 Rob Herring 2024-01-22 95
c21dc717760f85 Rob Herring 2024-01-22 96 dependencies:
c21dc717760f85 Rob Herring 2024-01-22 97 interrupts: [ interrupt-names ]
c21dc717760f85 Rob Herring 2024-01-22 98
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 4d3056ab32e02139d7656adf048416e877e283b0
commit: ab9ff1e38569313e41ba5a036591f93cb55e5d87 [1360/1360] DRM: Phytium display DRM doc
:::::: branch date: 3 hours ago
:::::: commit date: 10 months ago
config: loongarch-randconfig-052-20241104 (https://download.01.org/0day-ci/archive/20241104/202411041414.IJjJzikx-lkp@…)
compiler: loongarch64-linux-gcc (GCC) 14.1.0
dtschema version: 2024.10.dev6+g12c3cd5
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241104/202411041414.IJjJzikx-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/r/202411041414.IJjJzikx-lkp@intel.com/
dtcheck warnings: (new ones prefixed by >>)
>> Documentation/devicetree/bindings/gpu/phytium,dc.yaml:40:8: [warning] wrong indentation: expected 2 but found 7 (indentation)
Documentation/devicetree/bindings/arm/arm,mpam-msc.yaml:76:15: [error] string value is redundantly quoted with any quotes (quoted-strings)
Documentation/devicetree/bindings/arm/arm,mpam-msc.yaml:82:15: [error] string value is redundantly quoted with any quotes (quoted-strings)
--
>> Documentation/devicetree/bindings/gpu/phytium,dc.yaml: properties:clocks:items: 'anyOf' conditional failed, one must be fixed:
['description:Display controller reference clock source'] is not of type 'object', 'boolean'
'description:Display controller reference clock source' is not of type 'object', 'boolean'
from schema $id: http://json-schema.org/draft-07/schema#
>> Documentation/devicetree/bindings/gpu/phytium,dc.yaml: properties:reg: 'oneOf' conditional failed, one must be fixed:
[{'description': 'Offset and length of the memory mapped registers'}] is too short
False schema does not allow 1
hint: "minItems" is only needed if less than the "items" list length
from schema $id: http://devicetree.org/meta-schemas/items.yaml#
>> Documentation/devicetree/bindings/gpu/phytium,dc.yaml: properties:clocks: 'oneOf' conditional failed, one must be fixed:
['description:Display controller reference clock source'] is too short
False schema does not allow 1
hint: "minItems" is only needed if less than the "items" list length
from schema $id: http://devicetree.org/meta-schemas/items.yaml#
>> Documentation/devicetree/bindings/gpu/phytium,dc.yaml: 'Example' is not one of ['$id', '$schema', 'title', 'description', 'examples', 'required', 'allOf', 'anyOf', 'oneOf', 'definitions', '$defs', 'additionalProperties', 'dependencies', 'dependentRequired', 'dependentSchemas', 'patternProperties', 'properties', 'not', 'if', 'then', 'else', 'unevaluatedProperties', 'deprecated', 'maintainers', 'select', '$ref']
from schema $id: http://devicetree.org/meta-schemas/base.yaml#
>> Documentation/devicetree/bindings/gpu/phytium,dc.yaml: properties:clocks: 'oneOf' conditional failed, one must be fixed:
>> Documentation/devicetree/bindings/gpu/phytium,dc.yaml: properties:clocks: 'anyOf' conditional failed, one must be fixed:
'maxItems' is a required property
hint: Only "maxItems" is required for a single entry if there are no constraints defined for the values.
'minItems' is not one of ['maxItems', 'description', 'deprecated']
hint: Only "maxItems" is required for a single entry if there are no constraints defined for the values.
'items' is not one of ['maxItems', 'description', 'deprecated']
hint: Only "maxItems" is required for a single entry if there are no constraints defined for the values.
'minItems' is not one of ['description', 'deprecated', 'const', 'enum', 'minimum', 'maximum', 'multipleOf', 'default', '$ref', 'oneOf']
'items' is not one of ['description', 'deprecated', 'const', 'enum', 'minimum', 'maximum', 'multipleOf', 'default', '$ref', 'oneOf']
['description:Display controller reference clock source'] is valid under each of {'type': 'array', 'maxItems': 1, 'items': {'allOf': [{'$ref': '#/array'}], 'required': ['items']}}, {'type': 'array', 'items': {'$ref': '#/single'}}
hint: "items" can be a list defining each entry or a schema applying to all items. A list has an implicit size. A schema requires minItems/maxItems to define the size.
hint: cell array properties must define how many entries and what the entries are when there is more than one entry.
from schema $id: http://devicetree.org/meta-schemas/clocks.yaml#
'minItems' is not one of ['type', 'description', 'dependencies', 'dependentRequired', 'dependentSchemas', 'properties', 'patternProperties', 'additionalProperties', 'unevaluatedProperties', 'deprecated', 'required', 'not', 'allOf', 'anyOf', 'oneOf', '$ref']
'items' is not one of ['type', 'description', 'dependencies', 'dependentRequired', 'dependentSchemas', 'properties', 'patternProperties', 'additionalProperties', 'unevaluatedProperties', 'deprecated', 'required', 'not', 'allOf', 'anyOf', 'oneOf', '$ref']
'type' is a required property
hint: DT nodes ("object" type in schemas) can only use a subset of json-schema keywords
from schema $id: http://devicetree.org/meta-schemas/clocks.yaml#
>> Documentation/devicetree/bindings/gpu/phytium,dc.yaml: $id: Cannot determine base path from $id, relative path/filename doesn't match actual path or filename
$id: http://devicetree.org/schemas/dc/snps,dc.yaml
file: Documentation/devicetree/bindings/gpu/phytium,dc.yaml
Documentation/devicetree/bindings/mfd/rockchip,rk808.yaml: ^(DCDC_REG[1-4]|LDO_REG[1-8]|SWITCH_REG[1-2])$: Missing additionalProperties/unevaluatedProperties constraint
--
>> Documentation/devicetree/bindings/gpu/phytium,dc.yaml: ignoring, error in schema: properties: clocks: items
/usr/local/lib/python3.11/dist-packages/dtschema/schemas/reserved-memory/framebuffer.yaml: warning: ignoring duplicate '$id' value 'http://devicetree.org/schemas/reserved-memory/framebuffer.yaml#'
/usr/local/lib/python3.11/dist-packages/dtschema/schemas/reserved-memory/shared-dma-pool.yaml: warning: ignoring duplicate '$id' value 'http://devicetree.org/schemas/reserved-memory/shared-dma-pool.yaml#'
/usr/local/lib/python3.11/dist-packages/dtschema/schemas/reserved-memory/reserved-memory.yaml: warning: ignoring duplicate '$id' value 'http://devicetree.org/schemas/reserved-memory/reserved-memory.yaml#'
/usr/local/lib/python3.11/dist-packages/dtschema/schemas/reserved-memory/memory-region.yaml: warning: ignoring duplicate '$id' value 'http://devicetree.org/schemas/reserved-memory/memory-region.yaml#'
Documentation/devicetree/bindings/display/panel/advantech,idk-2121wr.yaml: dual-lvds-odd-pixels: missing type definition
Documentation/devicetree/bindings/display/panel/advantech,idk-2121wr.yaml: dual-lvds-even-pixels: missing type definition
Documentation/devicetree/bindings/input/touchscreen/ti,tsc2005.yaml: ti,x-plate-ohms: missing type definition
Documentation/devicetree/bindings/sound/audio-graph-port.yaml: convert-sample-format: missing type definition
Documentation/devicetree/bindings/media/i2c/ti,ds90ub960.yaml: i2c-alias: missing type definition
Warning: Duplicate compatible "maxim,max6625" found in schemas matching "$id":
vim +40 Documentation/devicetree/bindings/gpu/phytium,dc.yaml
ab9ff1e3856931 lishuo 2024-01-19 33
ab9ff1e3856931 lishuo 2024-01-19 34 required:
ab9ff1e3856931 lishuo 2024-01-19 35 - compatible
ab9ff1e3856931 lishuo 2024-01-19 36 - reg
ab9ff1e3856931 lishuo 2024-01-19 37 - interrupts
ab9ff1e3856931 lishuo 2024-01-19 38
ab9ff1e3856931 lishuo 2024-01-19 39 Example:
ab9ff1e3856931 lishuo 2024-01-19 @40 /memreserve/ 0xf4000000 0x4000000; // (optional)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki