Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp302250imn; Wed, 27 Jul 2022 06:44:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sE3Xci34PW4svxg4OqIMCMk+BYjX+UkHDb/JjhY4BQ3U0RXP5ucDT70pqMa80Ztcw4Q5tw X-Received: by 2002:a17:90a:e7cd:b0:1f0:2304:f579 with SMTP id kb13-20020a17090ae7cd00b001f02304f579mr4755191pjb.212.1658929489373; Wed, 27 Jul 2022 06:44:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658929489; cv=none; d=google.com; s=arc-20160816; b=GRb5kTpj8tpkxXhAZCsAKUFpYzXq6pdGtZdmbx6xCdpOthZw+jXfG2Wrhnfh+7eq5i lN8Z80B15uN5qF9CWVz9rubQu0buFG2f/PRa/v/XCF4J8/bIrC7Tj4D94u31/23UeV2p F3kzNpqVmGqjg0WJsgrLOJQIigz0DBL+c7IfuyvDh9GH41a23Xnk1kU0gYPfFCkKG+/A Kz9MExwab7emIO5D1UHkknOaTezr5vkJ15xpRY7BOduhmNRRVZAYEYf7vNbR+jA24sQ8 S7qaj0lakMEBSvxDsLWF3kKRKBEwJFsyDWgpkZvArMVZyhntG/4+xUmZTlwZGMZO2wTU r4hg== 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=cvZ06lGmOJPF4q95s5Qbzce613w6hLaaIdCUOB7OWs4=; b=gnLspA5fiu1aLW1WPUb2su9sppsk34wsl00iajgU6xinEodxl8iy2nHM6UiUomDh6w tp46xyFVEgvb9nu0+2Ufj3YnBSYpSD42KHu0ePw5uvo+LVmPlBKpYwcHiDDOGKI8oA1S sQuqV4CISVNwxTjuM2ozR/wEXD1Iu0DfTRQKfsE7Puh+ubNwG/JQ5SoA489KZJdWCQZW Y5Gh2F3H1hYayFaf+muTv4e3ZP6JwJAdvRuG2M/4+v4lQ/9gUUbeILdDOoR5hfnGd/aD f76Vg7A5Bce3XuEStcVBhoFOW1lBm9W2BaGJaE5R/2DZluhLpMj8sMEUXmryVdA32lrh aSVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1mvs57Ij; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bj1-20020a170902850100b001678ce9091bsi18813484plb.554.2022.07.27.06.44.34; Wed, 27 Jul 2022 06:44:49 -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=@linuxfoundation.org header.s=korg header.b=1mvs57Ij; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233210AbiG0NJb (ORCPT + 99 others); Wed, 27 Jul 2022 09:09:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbiG0NJ3 (ORCPT ); Wed, 27 Jul 2022 09:09:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C566F3C for ; Wed, 27 Jul 2022 06:09:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AEEFD6165E for ; Wed, 27 Jul 2022 13:09:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0747C433D6; Wed, 27 Jul 2022 13:09:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658927368; bh=IYDLcAKXv/t7eNqAwBTA6CMf/htt9xYg7+mFITnxwmU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1mvs57IjIqp4Fh7iev+2LO1V+4e1RjgVA+QWd4SvGXfL5pI6p80JJ1/oAsIVhowfE IMvVdA/9Aa5/xHLVf+nH9BocrQVmhcc4AmtIbkY33+uBADHWIDzwWMpHKHZP4mPrg0 LZ5aQGXq3FQSKIk9B1zKeK9Ei9wMrA1j56dm5RCI= Date: Wed, 27 Jul 2022 15:09:25 +0200 From: Greg KH To: Jiho Chu Cc: arnd@arndb.de, linux-kernel@vger.kernel.org, yelini.jeong@samsung.com, myungjoo.ham@samsung.com Subject: Re: [PATCH 4/9] trinity: Add schduler module Message-ID: References: <20220725065308.2457024-1-jiho.chu@samsung.com> <20220725065308.2457024-5-jiho.chu@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220725065308.2457024-5-jiho.chu@samsung.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Mon, Jul 25, 2022 at 03:53:03PM +0900, Jiho Chu wrote: > This patch includes NPU scheduler interface. > > Tasks can be pushed to the NPU in order by the scheduler. The default > schduling algorithm is provided using Priority policy. > The scheduler waits request from the user. When the requests are > invoked, it submits each request to the NPU by the priority, and waits > until complete interrupt arrives. The priority is calculated with > remained time to requested timeout. > > Thus the scheduler algorithm may be added more in the later, it > provides an interface which can support various schedulers. Please do not add interfaces that you do not use at all. Just make it simple for the first version and then, if you really need to add new types of "schedulers" add them later on. As it is, this is a whole layer of abstraction that is not needed and can be removed. thanks, greg k-h