From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 26320C0218C for ; Thu, 23 Jan 2025 09:29:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8FF4E10E7A5; Thu, 23 Jan 2025 09:29:39 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="TV0ErsCe"; dkim-atps=neutral Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by gabe.freedesktop.org (Postfix) with ESMTPS id 152FF10E164; Thu, 23 Jan 2025 09:29:38 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 32B27A4059A; Thu, 23 Jan 2025 09:27:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 281D1C4CED3; Thu, 23 Jan 2025 09:29:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737624576; bh=VFSaTc+ZUJdJo937pvPau4ssAcTSLVldlFqrOW1y0T8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TV0ErsCeNxHQ1jafiFOkR7xb4mc2zUxns6zh8w0owyFmIxKNf9maliyX7ku/7vtCi 7IAUMWG3trF31MQNbqRQmSlLgZPLuVROUricCwuknuB4uomj+9ItCWoPasd1KuU9tl mpdPNqzTyr1OVwk2jLEa8ilt8zEIzjt6DufTknWCVz1p7IM+GCcVt1eWcaa8o99Nue oMdeQ2uu8LRYTgdQIHwJhkfC64rNfiCAkhNSG9WjDxU01JCFL5jaLrNQfQf30L6QeD 8eVtgTp8wEWa+PI1QN6UQfQQbAhYVcrBIGuhU1tx0AtlHTpBiAGfeg2Hq32EEPYzUx q0mVTarZCdhwQ== Date: Thu, 23 Jan 2025 10:29:24 +0100 From: Danilo Krummrich To: phasta@kernel.org Cc: Boris Brezillon , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , Xinhui Pan , David Airlie , Simona Vetter , Lucas Stach , Russell King , Christian Gmeiner , Frank Binns , Matt Coster , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Qiang Yu , Rob Clark , Sean Paul , Konrad Dybcio , Abhinav Kumar , Dmitry Baryshkov , Marijn Suijten , Karol Herbst , Lyude Paul , Rob Herring , Steven Price , Liviu Dudau , Luben Tuikov , Matthew Brost , Melissa Wen , =?iso-8859-1?Q?Ma=EDra?= Canal , Lucas De Marchi , Thomas =?iso-8859-1?Q?Hellstr=F6m?= , Rodrigo Vivi , Sunil Khatri , Lijo Lazar , Mario Limonciello , Ma Jun , Yunxiang Li , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, etnaviv@lists.freedesktop.org, lima@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, nouveau@lists.freedesktop.org, intel-xe@lists.freedesktop.org Subject: Re: [PATCH] drm/sched: Use struct for drm_sched_init() params Message-ID: References: <20250122140818.45172-3-phasta@kernel.org> <20250122181227.491b7881@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" On Thu, Jan 23, 2025 at 08:33:01AM +0100, Philipp Stanner wrote: > On Wed, 2025-01-22 at 18:16 +0100, Boris Brezillon wrote: > > On Wed, 22 Jan 2025 15:08:20 +0100 > > Philipp Stanner wrote: > > > > >  int drm_sched_init(struct drm_gpu_scheduler *sched, > > > -    const struct drm_sched_backend_ops *ops, > > > -    struct workqueue_struct *submit_wq, > > > -    u32 num_rqs, u32 credit_limit, unsigned int hang_limit, > > > -    long timeout, struct workqueue_struct *timeout_wq, > > > -    atomic_t *score, const char *name, struct device *dev); > > > + const struct drm_sched_init_params *params); > > > > > > Another nit: indenting is messed up here. > > That was done on purpose. Let's not change this convention, it's used all over the kernel tree, including the GPU scheduler. People are used to read code that is formatted this way, plus the attempt of changing it will make code formatting inconsistent.