Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp404617rdb; Thu, 19 Oct 2023 07:49:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFazGwBO2wEWonkogkPXIOZS2BTYHCNW/TuS/lHLJK3vXccHcnJkXkinqYFaohYwX6/+3iX X-Received: by 2002:a17:903:1210:b0:1c9:e4f2:a39d with SMTP id l16-20020a170903121000b001c9e4f2a39dmr2805340plh.49.1697726972842; Thu, 19 Oct 2023 07:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697726972; cv=none; d=google.com; s=arc-20160816; b=bfY87UGUHrDMWgA3x1gm8m+IhjidSp+ILraUsgPmDwbW5sEHtxeXJxaVsa2QjSkQ55 hAGccdIi5b3IZbRvtdIR9UxEfL8fdn1Ghgxpxshh54CyyeSWdBP2X63dIG0tWOk54yi4 uEvylqDU08ZL68zZvNA7u07Ei2JfZRL2LYAJ13DHVZjJvT1CNWHBwnRLUkWr94OwKHlH AoAaHb9z3/6FcMoGZWa4rHM5yg1csP6TMbySU82P/BQgn4fXtTTkRnit9Zx6v1Tp9BzG Ml76itoXMr+uQ52kz/wDG3pPRYuBBGTOLVsr51XGq3gqW6pZgQkp20XXeWmmmD7iwc+x T9oQ== 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=yrNauCukw6W9Jq1p3FNRxfqrVryxxfAZJsTod/QVeiA=; fh=lnMwRgW8WcEHZKxNCddiiCpbLwWU0CHqgNR7C/Q6h3s=; b=dGWt/AiC18eidJhFBbsWOfWkUgBbLqnVHnmyw6SAWPQFbhGs8YTXUnroZ9B8iXBJdD tQvQWplqIHa/SWhhc2FBudDp+WBWp/4V4odH3VKR6hRSCHz/TOfNiqJuPuuYCBScu0qj Rla9Hj+mIp7odqDxPbl545uH+Ua/6u+LCXfHVT4kre8QJMyY6YrszSEhDml8lPrmvhie 3D2eVy0zP3Uwbj8beEgFTNCnHrOau3N9gpaaMnt/I9rZfGhbwo367x8mqRz2ygdH0WMF 5Np0ui/juecztSZEX79bPSJmNmbMiI2D321BH6MuBYiLr5ydHffcgWy54TT9uCgWb4Vr 36LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iBeyiZmq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id i8-20020a17090332c800b001c9c8c4cfb6si2697618plr.214.2023.10.19.07.49.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 07:49:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iBeyiZmq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id CF695822B2F4; Thu, 19 Oct 2023 07:49:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346189AbjJSOtD (ORCPT + 99 others); Thu, 19 Oct 2023 10:49:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233200AbjJSOsu (ORCPT ); Thu, 19 Oct 2023 10:48:50 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A52CE114; Thu, 19 Oct 2023 07:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697726929; x=1729262929; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=TTxcbDUvyh2vAsNIAVwilw773kfOc9seLoPaqLvLi/M=; b=iBeyiZmqHsbhKpw5JUYU1wuIcoG9LWv90Oh5qNU+29cHcIgCYlQgPK34 a7lMf2eDIkE1dJxRMbgv32uwhM0oyU0DZlQL+E6+fXgerEOH3B+3BbtLK hi5aU7slquEMDdKZBFC/UtrPp8JBynCfkcedjLqnEw/iV/o6TrkECEfQ3 Dv/pW7H8dBhMbbD4k1FsRJvLr0LsvEG5+JEpSioRAMuS2VW5c62k0WbZV X1AoTWwsVIXhKs+H+E+ykvBpZN1dXV0gxDQqROVY3r8C0NGqEoyTcgpkD wSHKEdtwF57LKtcIk8xmjtJhipRNNq2DdoV3hKrVRR/ywBNJRMldVTx2S g==; X-IronPort-AV: E=McAfee;i="6600,9927,10868"; a="7832255" X-IronPort-AV: E=Sophos;i="6.03,237,1694761200"; d="scan'208";a="7832255" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2023 07:48:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10868"; a="706872108" X-IronPort-AV: E=Sophos;i="6.03,237,1694761200"; d="scan'208";a="706872108" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by orsmga003.jf.intel.com with ESMTP; 19 Oct 2023 07:48:45 -0700 Date: Thu, 19 Oct 2023 22:47:39 +0800 From: Xu Yilun To: gregkh@linuxfoundation.org, Marco Pagani Cc: Moritz Fischer , Wu Hao , Xu Yilun , Tom Rix , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fpga: disable KUnit test suites when module support is enabled Message-ID: References: <20231018163814.100803-1-marpagan@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231018163814.100803-1-marpagan@redhat.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Thu, 19 Oct 2023 07:49:30 -0700 (PDT) On Wed, Oct 18, 2023 at 06:38:13PM +0200, Marco Pagani wrote: > The fpga core currently assumes that all manager, bridge, and region > devices have a parent device associated with a driver that can be used > to take the module's refcount. This behavior causes the fpga test suites > to crash with a null-ptr-deref since parent fake devices do not have a > driver. This patch disables all fpga KUnit test suites when loadable > module support is enabled until the fpga core is fixed. Test suites > can still be run using the KUnit default UML kernel. > > Signed-off-by: Marco Pagani LGTM, I've tested on my machine. Acked-by: Xu Yilun Hi Greg: Could you help review and pull it in for 6.6-final if it's OK. https://lore.kernel.org/linux-fpga/2023101825-ligament-undergrad-cc4d@gregkh/ Thanks, Yilun > --- > drivers/fpga/tests/Kconfig | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/fpga/tests/Kconfig b/drivers/fpga/tests/Kconfig > index e4a64815f16d..d4e55204c092 100644 > --- a/drivers/fpga/tests/Kconfig > +++ b/drivers/fpga/tests/Kconfig > @@ -1,6 +1,6 @@ > config FPGA_KUNIT_TESTS > - tristate "KUnit test for the FPGA subsystem" if !KUNIT_ALL_TESTS > - depends on FPGA && FPGA_REGION && FPGA_BRIDGE && KUNIT=y > + bool "KUnit test for the FPGA subsystem" if !KUNIT_ALL_TESTS > + depends on FPGA=y && FPGA_REGION=y && FPGA_BRIDGE=y && KUNIT=y && MODULES=n > default KUNIT_ALL_TESTS > help > This builds unit tests for the FPGA subsystem > -- > 2.41.0 >