tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y head: 689e89aee55c565fe90fcdf8a7e53f2f976c5946 commit: 5f2f616343b1d62d26f24316fbfc107ecf0983a9 [3189/5262] linux/compiler-clang.h: define HAVE_BUILTIN_BSWAP* config: mips-randconfig-r015-20210519 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8e93d10633d751a3e9169bf9fa68326925ffa097) 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 # install mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=5f2f616343b1d62d26f24316fbfc107ecf0983a9 git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git fetch --no-tags linux-stable-rc linux-5.10.y git checkout 5f2f616343b1d62d26f24316fbfc107ecf0983a9 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): >> drivers/usb/dwc2/hcd.c:3835:6: warning: stack frame size of 1032 bytes in function 'dwc2_hcd_dump_state' [-Wframe-larger-than=] void dwc2_hcd_dump_state(struct dwc2_hsotg *hsotg) ^ 1 warning generated. vim +/dwc2_hcd_dump_state +3835 drivers/usb/dwc2/hcd.c 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3830 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3831 /* 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3832 * NOTE: This function will be removed once the peripheral controller code 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3833 * is integrated and the driver is stable 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3834 */ 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 @3835 void dwc2_hcd_dump_state(struct dwc2_hsotg *hsotg) 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3836 { 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3837 #ifdef DEBUG 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3838 struct dwc2_host_chan *chan; 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3839 struct dwc2_hcd_urb *urb; 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3840 struct dwc2_qtd *qtd; 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3841 int num_channels; 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3842 u32 np_tx_status; 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3843 u32 p_tx_status; 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3844 int i; 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3845 bea8e86c51cf9c drivers/usb/dwc2/hcd.c John Youn 2016-11-03 3846 num_channels = hsotg->params.host_channels; 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3847 dev_dbg(hsotg->dev, "\n"); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3848 dev_dbg(hsotg->dev, 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3849 "************************************************************\n"); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3850 dev_dbg(hsotg->dev, "HCD State:\n"); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3851 dev_dbg(hsotg->dev, " Num channels: %d\n", num_channels); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3852 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3853 for (i = 0; i < num_channels; i++) { 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3854 chan = hsotg->hc_ptr_array[i]; 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3855 dev_dbg(hsotg->dev, " Channel %d:\n", i); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3856 dev_dbg(hsotg->dev, 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3857 " dev_addr: %d, ep_num: %d, ep_is_in: %d\n", 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3858 chan->dev_addr, chan->ep_num, chan->ep_is_in); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3859 dev_dbg(hsotg->dev, " speed: %d\n", chan->speed); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3860 dev_dbg(hsotg->dev, " ep_type: %d\n", chan->ep_type); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3861 dev_dbg(hsotg->dev, " max_packet: %d\n", chan->max_packet); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3862 dev_dbg(hsotg->dev, " data_pid_start: %d\n", 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3863 chan->data_pid_start); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3864 dev_dbg(hsotg->dev, " multi_count: %d\n", chan->multi_count); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3865 dev_dbg(hsotg->dev, " xfer_started: %d\n", 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3866 chan->xfer_started); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3867 dev_dbg(hsotg->dev, " xfer_buf: %p\n", chan->xfer_buf); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3868 dev_dbg(hsotg->dev, " xfer_dma: %08lx\n", 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3869 (unsigned long)chan->xfer_dma); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3870 dev_dbg(hsotg->dev, " xfer_len: %d\n", chan->xfer_len); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3871 dev_dbg(hsotg->dev, " xfer_count: %d\n", chan->xfer_count); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3872 dev_dbg(hsotg->dev, " halt_on_queue: %d\n", 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3873 chan->halt_on_queue); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3874 dev_dbg(hsotg->dev, " halt_pending: %d\n", 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3875 chan->halt_pending); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3876 dev_dbg(hsotg->dev, " halt_status: %d\n", chan->halt_status); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3877 dev_dbg(hsotg->dev, " do_split: %d\n", chan->do_split); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3878 dev_dbg(hsotg->dev, " complete_split: %d\n", 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3879 chan->complete_split); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3880 dev_dbg(hsotg->dev, " hub_addr: %d\n", chan->hub_addr); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3881 dev_dbg(hsotg->dev, " hub_port: %d\n", chan->hub_port); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3882 dev_dbg(hsotg->dev, " xact_pos: %d\n", chan->xact_pos); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3883 dev_dbg(hsotg->dev, " requests: %d\n", chan->requests); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3884 dev_dbg(hsotg->dev, " qh: %p\n", chan->qh); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3885 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3886 if (chan->xfer_started) { 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3887 u32 hfnum, hcchar, hctsiz, hcint, hcintmsk; 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3888 f25c42b8d604fb drivers/usb/dwc2/hcd.c Gevorg Sahakyan 2018-07-26 3889 hfnum = dwc2_readl(hsotg, HFNUM); f25c42b8d604fb drivers/usb/dwc2/hcd.c Gevorg Sahakyan 2018-07-26 3890 hcchar = dwc2_readl(hsotg, HCCHAR(i)); f25c42b8d604fb drivers/usb/dwc2/hcd.c Gevorg Sahakyan 2018-07-26 3891 hctsiz = dwc2_readl(hsotg, HCTSIZ(i)); f25c42b8d604fb drivers/usb/dwc2/hcd.c Gevorg Sahakyan 2018-07-26 3892 hcint = dwc2_readl(hsotg, HCINT(i)); f25c42b8d604fb drivers/usb/dwc2/hcd.c Gevorg Sahakyan 2018-07-26 3893 hcintmsk = dwc2_readl(hsotg, HCINTMSK(i)); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3894 dev_dbg(hsotg->dev, " hfnum: 0x%08x\n", hfnum); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3895 dev_dbg(hsotg->dev, " hcchar: 0x%08x\n", hcchar); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3896 dev_dbg(hsotg->dev, " hctsiz: 0x%08x\n", hctsiz); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3897 dev_dbg(hsotg->dev, " hcint: 0x%08x\n", hcint); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3898 dev_dbg(hsotg->dev, " hcintmsk: 0x%08x\n", hcintmsk); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3899 } 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3900 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3901 if (!(chan->xfer_started && chan->qh)) 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3902 continue; 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3903 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3904 list_for_each_entry(qtd, &chan->qh->qtd_list, qtd_list_entry) { 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3905 if (!qtd->in_process) 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3906 break; 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3907 urb = qtd->urb; 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3908 dev_dbg(hsotg->dev, " URB Info:\n"); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3909 dev_dbg(hsotg->dev, " qtd: %p, urb: %p\n", 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3910 qtd, urb); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3911 if (urb) { 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3912 dev_dbg(hsotg->dev, 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3913 " Dev: %d, EP: %d %s\n", 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3914 dwc2_hcd_get_dev_addr(&urb->pipe_info), 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3915 dwc2_hcd_get_ep_num(&urb->pipe_info), 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3916 dwc2_hcd_is_pipe_in(&urb->pipe_info) ? 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3917 "IN" : "OUT"); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3918 dev_dbg(hsotg->dev, babd183915e91a drivers/usb/dwc2/hcd.c Douglas Anderson 2019-05-31 3919 " Max packet size: %d (%d mult)\n", babd183915e91a drivers/usb/dwc2/hcd.c Douglas Anderson 2019-05-31 3920 dwc2_hcd_get_maxp(&urb->pipe_info), babd183915e91a drivers/usb/dwc2/hcd.c Douglas Anderson 2019-05-31 3921 dwc2_hcd_get_maxp_mult(&urb->pipe_info)); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3922 dev_dbg(hsotg->dev, 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3923 " transfer_buffer: %p\n", 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3924 urb->buf); 157dfaac1f2922 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-14 3925 dev_dbg(hsotg->dev, 157dfaac1f2922 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-14 3926 " transfer_dma: %08lx\n", 157dfaac1f2922 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-14 3927 (unsigned long)urb->dma); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3928 dev_dbg(hsotg->dev, 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3929 " transfer_buffer_length: %d\n", 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3930 urb->length); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3931 dev_dbg(hsotg->dev, " actual_length: %d\n", 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3932 urb->actual_length); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3933 } 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3934 } 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3935 } 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3936 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3937 dev_dbg(hsotg->dev, " non_periodic_channels: %d\n", 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3938 hsotg->non_periodic_channels); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3939 dev_dbg(hsotg->dev, " periodic_channels: %d\n", 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3940 hsotg->periodic_channels); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3941 dev_dbg(hsotg->dev, " periodic_usecs: %d\n", hsotg->periodic_usecs); f25c42b8d604fb drivers/usb/dwc2/hcd.c Gevorg Sahakyan 2018-07-26 3942 np_tx_status = dwc2_readl(hsotg, GNPTXSTS); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3943 dev_dbg(hsotg->dev, " NP Tx Req Queue Space Avail: %d\n", d6ec53e04bf790 drivers/staging/dwc2/hcd.c Matthijs Kooijman 2013-08-30 3944 (np_tx_status & TXSTS_QSPCAVAIL_MASK) >> TXSTS_QSPCAVAIL_SHIFT); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3945 dev_dbg(hsotg->dev, " NP Tx FIFO Space Avail: %d\n", d6ec53e04bf790 drivers/staging/dwc2/hcd.c Matthijs Kooijman 2013-08-30 3946 (np_tx_status & TXSTS_FSPCAVAIL_MASK) >> TXSTS_FSPCAVAIL_SHIFT); f25c42b8d604fb drivers/usb/dwc2/hcd.c Gevorg Sahakyan 2018-07-26 3947 p_tx_status = dwc2_readl(hsotg, HPTXSTS); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3948 dev_dbg(hsotg->dev, " P Tx Req Queue Space Avail: %d\n", d6ec53e04bf790 drivers/staging/dwc2/hcd.c Matthijs Kooijman 2013-08-30 3949 (p_tx_status & TXSTS_QSPCAVAIL_MASK) >> TXSTS_QSPCAVAIL_SHIFT); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3950 dev_dbg(hsotg->dev, " P Tx FIFO Space Avail: %d\n", d6ec53e04bf790 drivers/staging/dwc2/hcd.c Matthijs Kooijman 2013-08-30 3951 (p_tx_status & TXSTS_FSPCAVAIL_MASK) >> TXSTS_FSPCAVAIL_SHIFT); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3952 dwc2_dump_global_registers(hsotg); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3953 dwc2_dump_host_registers(hsotg); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3954 dev_dbg(hsotg->dev, 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3955 "************************************************************\n"); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3956 dev_dbg(hsotg->dev, "\n"); 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3957 #endif 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3958 } 7359d482eb4d39 drivers/staging/dwc2/hcd.c Paul Zimmerman 2013-03-11 3959 :::::: The code at line 3835 was first introduced by commit :::::: 7359d482eb4d3967cc8be354405ae6be6eaf732c staging: HCD files for the DWC2 driver :::::: TO: Paul Zimmerman <Paul.Zimmerman@xxxxxxxxxxxx> :::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip