Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp155200rwe; Tue, 30 Aug 2022 23:43:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR5GE6CgD6H4FI9vmh3HlsgPJkzT9kF+EAoxVTfiQly2NzAwkT+cuwpL+FYRCFqULtmOBq34 X-Received: by 2002:a17:907:9493:b0:73b:e605:f3b with SMTP id dm19-20020a170907949300b0073be6050f3bmr20330109ejc.37.1661928205987; Tue, 30 Aug 2022 23:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661928205; cv=none; d=google.com; s=arc-20160816; b=myKQ0+sVaB6fXQEuYjTAEN/r5fJMcOXnmbXXCv5p+4ZTpERk+VcFr0s/pmPW7wYChW Y3WceM8Bk5p/aWcqisPLNAJmUSxFgXH034gz44VyBIUJ6FnR2qz9zeKuVrPAPSueomag MnrVnX/toScwVzG7da+F4hFnDkYZWjjWY+C9by+35vis5eDq7TsQa+1m23aFEC3wit1S dXXvvHjpYe7esedwBsj7UgSYDX/ETRcwer4KIVcK55ZfDBGBFS4CEKzI0TDfq5vaG2I1 7Ols9JDI4+wbeLLkxuOHHRjLLa9hNjoV8XbhGrxWA8ILex7wgzId0X5swoHfxerFAnWA Tmog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5Uji14+TdZrnvcT0vtEfCUN+mbWQ8EBkoUebh8FZEU8=; b=ZlvHoXkzm8YpficY+ysw60SLbGQJTwpUj6Yvs46QY7OfKbmY1IR8CFTVnNnnLSsMhW F330xC0b6sKEPSoEzYqcdrsK/NH+8j6PTyMMROWU4XwVpmKoTa5yeZCHaAMgtyf/00hw +ozxUTY9xYleDgGOx1aPe0u/g90HBdLRAptRx6unFW7dmLUexlYSQe7C4oY2GxxTa0hs O1WpmALM9P3fWmP7pPCpEMJ60l8EWxC8lDQLcdLperkbg7R/CmGUQD1skpZUpj9KYMuX TdxI9ktIhZuhmYAXrMJuUs3uN+iPedkkKtRmJN7m8bdzM6nOwR5OFFi2y0WtL6ILY9RW u6Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Y2jD8zNY; 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=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw9-20020a1709066a0900b007414f1bf78dsi8482632ejc.832.2022.08.30.23.42.56; Tue, 30 Aug 2022 23:43: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=@google.com header.s=20210112 header.b=Y2jD8zNY; 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=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229811AbiHaGUJ (ORCPT + 99 others); Wed, 31 Aug 2022 02:20:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230143AbiHaGUG (ORCPT ); Wed, 31 Aug 2022 02:20:06 -0400 Received: from mail-vs1-xe35.google.com (mail-vs1-xe35.google.com [IPv6:2607:f8b0:4864:20::e35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8227F1DA48 for ; Tue, 30 Aug 2022 23:20:02 -0700 (PDT) Received: by mail-vs1-xe35.google.com with SMTP id b128so10024418vsc.1 for ; Tue, 30 Aug 2022 23:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=5Uji14+TdZrnvcT0vtEfCUN+mbWQ8EBkoUebh8FZEU8=; b=Y2jD8zNY3VvF7yFZcZLYhg5Gfzu1o+2UpwAtIZ2QspR4u/sFWVRH4h00lTQdl/47MW U5odU8htYcZ2Axj1dl79B3wZsOZ6AaAPdjRQHp0WvPY18nb6X5oZ7E/qv2UrdCqSqcvZ fcm5ILO5TV8jpnS/soWNXWi/byQir7ZtOy2l6E/jPNrxOkqN9uQhq344Wv4lLGrr1sG3 +X5uaZ6rKLsXBsGJpEd6Qw01wUEnqrQcnhJ7fvdlYWjpk58o8N+20uN7tysYr0ICkUCb aZdQZEo8jA8A1s3kXHfKh/Al/ymnrr3XYS0CpXGICVRZbwu2b/gMHYq+pxWvc293raeZ +sBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=5Uji14+TdZrnvcT0vtEfCUN+mbWQ8EBkoUebh8FZEU8=; b=4ouK/vPlU6aTpyfqgGWRaL1vaipz6X4se65vE/l24gAoxJqHdGuK7VMkayuoP1ZMNu MTperFII+I6rQOuUgZwRzeFcT9K0Dovti9vZcCSPfkpLrm77DWMRd5n25ZjqBTb3JXeP mITvsyGJcv2La6sWpFaSkbUOxHEbekKmvdL60f3QfTcMKWphGsSnasSJASBNiqsAK1de kl/P/2ter/w7ZEcAQ2NuZSVlZs7kYgq+m6d4i9zZmc8QyBgTl4dgHLoDRVl/Go/hgNzl ghzloexylx4rNVNkKGROpRcrvC2bQEkN+Yz3Bf/nREMy8pkkSK3cVVWob/UhSrrs4UBI 66aw== X-Gm-Message-State: ACgBeo3AgZCjmvzgPpOd5EcaFTQUwHiqgbnxdIZ7AbMN+4fkFpziEoY8 fkiZP2jauqpWIMQ48sFjnUVO1sxBe5HBm/P5hhNs6HgmA9U= X-Received: by 2002:a05:6102:e93:b0:390:d839:9aa2 with SMTP id l19-20020a0561020e9300b00390d8399aa2mr5535835vst.65.1661926801397; Tue, 30 Aug 2022 23:20:01 -0700 (PDT) MIME-Version: 1.0 References: <20220829232934.3277747-1-yuzhao@google.com> <202208310701.LKr1WDCh-lkp@intel.com> In-Reply-To: <202208310701.LKr1WDCh-lkp@intel.com> From: Yu Zhao Date: Wed, 31 Aug 2022 00:19:25 -0600 Message-ID: Subject: Re: [PATCH] Revert "swiotlb: panic if nslabs is too small" To: Dan Carpenter Cc: kbuild@lists.01.org, Christoph Hellwig , Marek Szyprowski , Robin Murphy , Dongli Zhang , kernel test robot , kbuild-all@lists.01.org, iommu@lists.linux.dev, linux-kernel Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham 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 Wed, Aug 31, 2022 at 12:01 AM Dan Carpenter wrote: > > Hi Yu, > > url: https://github.com/intel-lab-lkp/linux/commits/Yu-Zhao/Revert-swiotlb-panic-if-nslabs-is-too-small/20220830-073123 > base: c40e8341e3b3bb27e3a65b06b5b454626234c4f0 > config: x86_64-randconfig-m001 (https://download.01.org/0day-ci/archive/20220831/202208310701.LKr1WDCh-lkp@intel.com/config) > compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 > > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot > Reported-by: Dan Carpenter > > smatch warnings: > kernel/dma/swiotlb.c:334 swiotlb_init_remap() error: uninitialized symbol 'nslabs'. > > vim +/nslabs +334 kernel/dma/swiotlb.c > > 7374153d294eb5 kernel/dma/swiotlb.c Christoph Hellwig 2022-03-14 307 void __init swiotlb_init_remap(bool addressing_limit, unsigned int flags, > 7374153d294eb5 kernel/dma/swiotlb.c Christoph Hellwig 2022-03-14 308 int (*remap)(void *tlb, unsigned long nslabs)) > ^^^^^^ > > abbceff7d7a884 lib/swiotlb.c FUJITA Tomonori 2010-05-10 309 { > 6424e31b1c050a kernel/dma/swiotlb.c Christoph Hellwig 2022-03-15 310 struct io_tlb_mem *mem = &io_tlb_default_mem; > 20347fca71a387 kernel/dma/swiotlb.c Tianyu Lan 2022-07-08 311 unsigned long nslabs; > ^^^^^^ > Merge issue? How does this compile? Sorry, I deleted an extra line while resolving the conflict. Resending the patch.