Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2062191rwd; Fri, 26 May 2023 00:47:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6PLqZdmmMc10vKwk2/lH6f3rQzHRrEXQVJXwCM+nWVVIx6N/sr3VmYBYOdO1JEVSqtn2MM X-Received: by 2002:a05:6a21:6d8a:b0:10b:78d6:a2c8 with SMTP id wl10-20020a056a216d8a00b0010b78d6a2c8mr1369158pzb.15.1685087272633; Fri, 26 May 2023 00:47:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685087272; cv=none; d=google.com; s=arc-20160816; b=zOqGsv/z1lFkouzAYs5SznHzo1CELUkiY0lduwxczNigMerhRpGEPnvWXUTiRX3hhC zVvrUZyseNi0yABB8bQSZVXW8rhmVpyy79W/yXErScd+m704KAI8ys9QqLQFQhEoZ+K+ xaSLiOaZ8oGqECtQXOCLInAZSkfO12eJ1RQxwMpVKifeHLV3tt8vqzMwR2UfM/tVJqlu gH3nsnqDwuVFspMw8oXpV42EWbNg46hbIMKukIEihOk4tbaoX/XKlrrzozwqquX0s2+T 0uHjPIcjlYh3ACOm2XbWcO0BU0tWAlFAgSkmYCU7DnmrNC23cAye8cu0XVn4aK8nIpea 8kEA== 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=+hUU5R1QGvwYDGAAcub4T8Efe1eGSkZZeuBCiW0ox3I=; b=LL9bWNVUoSriLicUqNr7FIjkLsSlm5ZHpNh1WLp3RcI2E5Amj3MeoFvzx0w0/inZD9 8IKqRjZpzlvB3EvUsr87PK2FAQdUTZFyo3/pwlFjJh+wqCvcAyvAoQTTcmX7ahHFDcp5 EqVAGljMgOo66YmLZsE53/4pQ53vCoFX0YY1pRr6pqDqq3rYNgszha56qrSuF2yT+Ubq UUs0jKCrKM0RU4YYng1Y6P7mfQ3pYIg+w+7OeWGLYKdMkRV0e0xtPL+yUvnF01qwQGC/ cbqmT95t25zqwgHOflYX57L6e9KSDwZvP3lKvBL8YBYruf9cK88cg65WZv2pJxj8tteX CKFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C7fEt4aT; 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pt18-20020a17090b3d1200b00244883db2c7si372579pjb.99.2023.05.26.00.47.39; Fri, 26 May 2023 00:47:52 -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=@intel.com header.s=Intel header.b=C7fEt4aT; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242494AbjEZHjb (ORCPT + 99 others); Fri, 26 May 2023 03:39:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242451AbjEZHj3 (ORCPT ); Fri, 26 May 2023 03:39:29 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1ED6E52 for ; Fri, 26 May 2023 00:39:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685086743; x=1716622743; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xi7TBBQPejEGgobEw64w8lH8esKp08fZJkFWOZYLoxk=; b=C7fEt4aTb7pGSywmCDhT+p3q/lea+rfmittXDb1uS+UNcoiissJ0YL1Z cDz4f/f2lhoTUuz48G/tuwLDBv8zh3gMfCAOPsReq/p10Yjrs8lR49Zxy OvPPCSVwciNy5wI22dfw92xkestRAjvExPucrffC4nZCCsOnFNhcIDZgj axyNB/uyGmWP9WZmMyIbkyGg8b0BWSffHuPK7KxpUSSo8JBdnTD8LFQu+ kpVz0KhpBo7VdyDGFVAYLsfg80Vt6VfV079O6aFyLQSBFVHBm7H7L7f70 wzVhQWiDlxkOpMuY8If8sH82RHezuV8eTelMp3FhcrQ+Q5BWnrnYYJB1C w==; X-IronPort-AV: E=McAfee;i="6600,9927,10721"; a="352984372" X-IronPort-AV: E=Sophos;i="6.00,193,1681196400"; d="scan'208";a="352984372" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2023 00:36:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10721"; a="682641409" X-IronPort-AV: E=Sophos;i="6.00,193,1681196400"; d="scan'208";a="682641409" Received: from joe-255.igk.intel.com (HELO localhost) ([10.91.220.57]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2023 00:36:55 -0700 Date: Fri, 26 May 2023 09:36:53 +0200 From: Stanislaw Gruszka To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, kernel test robot , Oded Gabbay , dri-devel@lists.freedesktop.org, Jacek Lawrynowicz , Andrzej Kacprowski , Krystian Pradzynski , Jeffrey Hugo , Daniel Vetter Subject: Re: [PATCH] accel/ivpu: ivpu_ipc needs GENERIC_ALLOCATOR Message-ID: <20230526073653.GA903183@linux.intel.com> References: <20230526044519.13441-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230526044519.13441-1-rdunlap@infradead.org> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Thu, May 25, 2023 at 09:45:19PM -0700, Randy Dunlap wrote: > Drivers that use the gen_pool*() family of functions should > select GENERIC_ALLOCATOR to prevent build errors like these: > > ld: drivers/accel/ivpu/ivpu_ipc.o: in function `gen_pool_free': > include/linux/genalloc.h:172: undefined reference to `gen_pool_free_owner' > ld: drivers/accel/ivpu/ivpu_ipc.o: in function `gen_pool_alloc_algo': > include/linux/genalloc.h:138: undefined reference to `gen_pool_alloc_algo_owner' > ld: drivers/accel/ivpu/ivpu_ipc.o: in function `gen_pool_free': > include/linux/genalloc.h:172: undefined reference to `gen_pool_free_owner' > ld: drivers/accel/ivpu/ivpu_ipc.o: in function `ivpu_ipc_init': > drivers/accel/ivpu/ivpu_ipc.c:441: undefined reference to `devm_gen_pool_create' > ld: drivers/accel/ivpu/ivpu_ipc.o: in function `gen_pool_add_virt': > include/linux/genalloc.h:104: undefined reference to `gen_pool_add_owner' > > Fixes: 5d7422cfb498 ("accel/ivpu: Add IPC driver and JSM messages") > Signed-off-by: Randy Dunlap > Reported-by: kernel test robot > Link: https://lore.kernel.org/all/202305221206.1TaugDKP-lkp@intel.com/ > Cc: Oded Gabbay > Cc: dri-devel@lists.freedesktop.org > Cc: Jacek Lawrynowicz > Cc: Stanislaw Gruszka > Cc: Andrzej Kacprowski > Cc: Krystian Pradzynski > Cc: Jeffrey Hugo > Cc: Daniel Vetter Acked-by: Stanislaw Gruszka > --- > drivers/accel/ivpu/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff -- a/drivers/accel/ivpu/Kconfig b/drivers/accel/ivpu/Kconfig > --- a/drivers/accel/ivpu/Kconfig > +++ b/drivers/accel/ivpu/Kconfig > @@ -7,6 +7,7 @@ config DRM_ACCEL_IVPU > depends on PCI && PCI_MSI > select FW_LOADER > select SHMEM > + select GENERIC_ALLOCATOR > help > Choose this option if you have a system that has an 14th generation Intel CPU > or newer. VPU stands for Versatile Processing Unit and it's a CPU-integrated