Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1224701rdb; Sat, 18 Nov 2023 07:39:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEFiH7dKz+FdiB8L5KcVeDftNel51BEDWEkHbnsbZ4MGszyGHRUHHAJ9ooTruGSYwVqTsFU X-Received: by 2002:a05:6808:1642:b0:3a7:52b9:cbfe with SMTP id az2-20020a056808164200b003a752b9cbfemr2421871oib.32.1700321996840; Sat, 18 Nov 2023 07:39:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700321996; cv=none; d=google.com; s=arc-20160816; b=dqqVs/AimD+gX8a/UjCembi8uIxnJ3M05hXDnVQC8nAk1EtdxyrrceI1Pptg/3XLuM e4FcY2eNifnMpgDpo8FwZ8d54HTAW4+CwWn8AGbQQz/Z9OZxhAXPTrGeIcbiYIo4OG8J 0qM/OvL+psl0cV51TToVdjmuQGZDC08opadzeLNzudl/TrjFbI8CEYz4ifx6KZ7b9ghQ p8IYOw3eogLFpSDuAx5CRqsFfE9XchxvftdtHeWRDYwP26pc7T+5U4h/wgeCk4qXfum7 4bDHup3/cVz5aLtUStRSMmvXIvW3bDcoNRcZtmDfqGIOSkEGYf/L49+mygWYPXHahUxE jS/A== 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=HD5fRC5Dc9fC56TheNanPM4XToEUF1Wrs0DOgNNQK4k=; fh=5ksfKO+F1HX+igOLxIeEuzGmrqC4ucGyPnYGDWtTqmc=; b=rrCDuwqUywlscZCllBQSGR3IaijTHfb/HadtWT7vdJZ9G5F1L0ZEZiFUdeHYOkZtt+ MvNoU7uhcwcWq+mlJ/Ka6buKJLap8RXw3YoIvyzvL4kBPDgNFxRzqD2nUPExEprZVwwO PF8GMhRIqDKMNiso3lGpAFF82rBcN2W5aoUEQN6aR+NVL92saN3BzTb+IccROChu+5n4 N/Zavqvm74fzGeUhVzthLNzWtD8zQ6xZXOu080ZaPjzsW/zKHEdodMTCOKA4IOtIlarm /Vnz0ySnMcXHSmZolevtVfUlniwpWaSLygMKAGtsHwOSGsR3sYlSsNYpuiDgrl1tFnhp UNSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kruzKMwY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id bq22-20020a056a02045600b00566022bbcafsi4938166pgb.566.2023.11.18.07.39.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 07:39:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kruzKMwY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 39B718053623; Sat, 18 Nov 2023 07:39:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229929AbjKRPjW (ORCPT + 99 others); Sat, 18 Nov 2023 10:39:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjKRPjW (ORCPT ); Sat, 18 Nov 2023 10:39:22 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74525131; Sat, 18 Nov 2023 07:39:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700321958; x=1731857958; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=SoEaugOlvtLEtzbNvKRSg3fDFOr14Tg3H/Xwo8luSdM=; b=kruzKMwYW2rt6CBsieUnvmY2kPXBvdSwl8QTRMgF/E2g6iDKPtL1XdVB InQfJw/43uW4Uha1POnI69/4b8F826AkoQC6OiWYo21zv7bq5h60ydDKa Hpp4Ex7vnoJ9ZETSAzkg9v8T2NpVbaPQ9g1pmEbOCiYCgh+6U3TYxmdbq GaEy9bqeStH0lbUMaGLKlue55ZsgjGERLtiUIrNfurz/4cVg6iiHAUhr7 Kemr8R9Vobr+Qn/xRR/Uw5/Q0ne88j2XLqF2KbkgyRKomjbYwiY7XxgPX auWly2s8RwNKIW167mqeqszXP16qJI3fQ3vuGKmYdGwXO7beTbPAUWvHV Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10898"; a="390297620" X-IronPort-AV: E=Sophos;i="6.04,209,1695711600"; d="scan'208";a="390297620" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2023 07:39:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,209,1695711600"; d="scan'208";a="7298519" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by fmviesa002.fm.intel.com with ESMTP; 18 Nov 2023 07:39:16 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r4NPd-000419-0A; Sat, 18 Nov 2023 15:39:13 +0000 Date: Sat, 18 Nov 2023 23:38:21 +0800 From: kernel test robot To: Prashanth K , stable@vger.kernel.org, Thinh Nguyen , Greg Kroah-Hartman Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Mathias Nyman , Tejas Joglekar , linux-kernel@vger.kernel.org, linux-usbyy@vger.kernel.org, Prashanth K Subject: Re: [PATCH 1/2] usb: dwc3: core: Add support for xhci-sg-trb-cache-size-quirk Message-ID: <202311182312.lJrwZFwZ-lkp@intel.com> References: <20231118055455.249088-2-quic_prashk@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231118055455.249088-2-quic_prashk@quicinc.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sat, 18 Nov 2023 07:39:38 -0800 (PST) Hi Prashanth, kernel test robot noticed the following build errors: [auto build test ERROR on usb/usb-testing] [also build test ERROR on usb/usb-next usb/usb-linus linus/master v6.7-rc1 next-20231117] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Prashanth-K/usb-dwc3-core-Add-support-for-xhci-sg-trb-cache-size-quirk/20231118-135837 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing patch link: https://lore.kernel.org/r/20231118055455.249088-2-quic_prashk%40quicinc.com patch subject: [PATCH 1/2] usb: dwc3: core: Add support for xhci-sg-trb-cache-size-quirk config: hexagon-randconfig-002-20231118 (https://download.01.org/0day-ci/archive/20231118/202311182312.lJrwZFwZ-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231118/202311182312.lJrwZFwZ-lkp@intel.com/reproduce) 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 | Closes: https://lore.kernel.org/oe-kbuild-all/202311182312.lJrwZFwZ-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/usb/dwc3/host.c:10: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:337: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 547 | val = __raw_readb(PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from drivers/usb/dwc3/host.c:10: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:337: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from drivers/usb/dwc3/host.c:10: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:337: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 584 | __raw_writeb(value, PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ >> drivers/usb/dwc3/host.c:66:26: error: variable has incomplete type 'struct xhci_plat_priv' 66 | struct xhci_plat_priv dwc3_xhci_plat_priv = {0}; | ^ drivers/usb/dwc3/host.c:66:9: note: forward declaration of 'struct xhci_plat_priv' 66 | struct xhci_plat_priv dwc3_xhci_plat_priv = {0}; | ^ >> drivers/usb/dwc3/host.c:92:33: error: use of undeclared identifier 'XHCI_SG_TRB_CACHE_SIZE_QUIRK' 92 | dwc3_xhci_plat_priv.quirks |= XHCI_SG_TRB_CACHE_SIZE_QUIRK; | ^ 6 warnings and 2 errors generated. vim +66 drivers/usb/dwc3/host.c 61 62 int dwc3_host_init(struct dwc3 *dwc) 63 { 64 struct property_entry props[4]; 65 struct platform_device *xhci; > 66 struct xhci_plat_priv dwc3_xhci_plat_priv = {0}; 67 int ret, irq; 68 int prop_idx = 0; 69 70 irq = dwc3_host_get_irq(dwc); 71 if (irq < 0) 72 return irq; 73 74 xhci = platform_device_alloc("xhci-hcd", PLATFORM_DEVID_AUTO); 75 if (!xhci) { 76 dev_err(dwc->dev, "couldn't allocate xHCI device\n"); 77 return -ENOMEM; 78 } 79 80 xhci->dev.parent = dwc->dev; 81 82 dwc->xhci = xhci; 83 84 ret = platform_device_add_resources(xhci, dwc->xhci_resources, 85 DWC3_XHCI_RESOURCES_NUM); 86 if (ret) { 87 dev_err(dwc->dev, "couldn't add resources to xHCI device\n"); 88 goto err; 89 } 90 91 if (dwc->xhci_sg_trb_cache_size_quirk) > 92 dwc3_xhci_plat_priv.quirks |= XHCI_SG_TRB_CACHE_SIZE_QUIRK; 93 94 ret = platform_device_add_data(xhci, &dwc3_xhci_plat_priv, 95 sizeof(dwc3_xhci_plat_priv)); 96 if (ret) 97 goto err; 98 99 memset(props, 0, sizeof(struct property_entry) * ARRAY_SIZE(props)); 100 101 if (dwc->usb3_lpm_capable) 102 props[prop_idx++] = PROPERTY_ENTRY_BOOL("usb3-lpm-capable"); 103 104 if (dwc->usb2_lpm_disable) 105 props[prop_idx++] = PROPERTY_ENTRY_BOOL("usb2-lpm-disable"); 106 107 /** 108 * WORKAROUND: dwc3 revisions <=3.00a have a limitation 109 * where Port Disable command doesn't work. 110 * 111 * The suggested workaround is that we avoid Port Disable 112 * completely. 113 * 114 * This following flag tells XHCI to do just that. 115 */ 116 if (DWC3_VER_IS_WITHIN(DWC3, ANY, 300A)) 117 props[prop_idx++] = PROPERTY_ENTRY_BOOL("quirk-broken-port-ped"); 118 119 if (prop_idx) { 120 ret = device_create_managed_software_node(&xhci->dev, props, NULL); 121 if (ret) { 122 dev_err(dwc->dev, "failed to add properties to xHCI\n"); 123 goto err; 124 } 125 } 126 127 ret = platform_device_add(xhci); 128 if (ret) { 129 dev_err(dwc->dev, "failed to register xHCI device\n"); 130 goto err; 131 } 132 133 return 0; 134 err: 135 platform_device_put(xhci); 136 return ret; 137 } 138 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki