Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2487528rwb; Mon, 7 Nov 2022 14:01:42 -0800 (PST) X-Google-Smtp-Source: AMsMyM5bVEMayyVbFNWDxCOPd4DOI9AemTn5Mo/UKCpaFlLHSkLN+59uKbf4ATwHhxhzVrJTkjO/ X-Received: by 2002:a62:4c6:0:b0:55f:c739:51e0 with SMTP id 189-20020a6204c6000000b0055fc73951e0mr51955018pfe.49.1667858501763; Mon, 07 Nov 2022 14:01:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667858501; cv=none; d=google.com; s=arc-20160816; b=YiqCfTkXsfrjNrF17j/OvvnMOIehTomh5MDzSUBJBaxDkfW62VdGKabVea2QKvJCar 6Zg5YQEFY/0Emm+l+d+6tJROkX5nPxfukO7jI2cj0RRTNexMt32akGW78i0q69X+2DEq 49sIkBS5kYHb6uz1Lb9z7hbov5MdreMZj9sumdopRsq5TWmDJX5WmQnRHLNfRztBbanV TWW15FoOSAftacP0iNBbzW1OQOq3jLOfQIBNMPj1TZhXDQmZoimtVOms3T86K+OGXPuR /64X/2lqCTLt3E5B4w/za5fGFJ+tnpsuk72885l8gouUNvbCMtlMQ3refNwlFJCp8BU+ RtzQ== 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=/WXYPasVjCTXHjJ6KRnuJ/Ps3Z0bkpekoFm9jtBls6I=; b=UOq8H0kGz/RX9LB2UzL0yuEqcNpHT25GwJNuOIuXDHDbO7fNmFKZrSsux6k/aQZIQY l0XUEwa9NsRPNFn87VyLm6qF+HKwOlkrTDgJm6wTU+RFa6kKQMvrd4o4JrqSjQQOyNU1 kGy+jrgnH3uu7SJWp1sIwPlaZxhdoz1UPTo7+2rHWmq2K4Ljs3PojDlvxp+GxVja7l0k 03o6+qg1q4/9A1+3sCpXsoQhM3LoEV6Pxyg1BC68/0IDHg19M36kZZK3xt5qPeAqhSIf 4vk5NifIgWiSJi2yW9LsUr2j4V8Jz7oSBeJEYE8chpftsxQ2Y0WhVqgTaYqCLva/8WID AKCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AabtWJNm; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020a170902c40e00b0017d9b373175si14582198plk.415.2022.11.07.14.01.29; Mon, 07 Nov 2022 14:01:41 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=AabtWJNm; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233293AbiKGVGo (ORCPT + 91 others); Mon, 7 Nov 2022 16:06:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233126AbiKGVFk (ORCPT ); Mon, 7 Nov 2022 16:05:40 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB1972CCA6 for ; Mon, 7 Nov 2022 13:05:12 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 9D7B0B816A6 for ; Mon, 7 Nov 2022 21:05:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FF39C43147 for ; Mon, 7 Nov 2022 21:05:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667855110; bh=Zu50tGqg124bPyOMVvcoQdIculJ+KYQtsiSpZtdQVq4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=AabtWJNmq1Z8Xd62qXornOCd4ZK3WhKppXVm4YynDe4++xb8YguttfBdNQXXw9utL ErdH/vNsCDN8KIsmTq9VxUiAtXIeQ4Ym2zOTYTesPPe8oPEIjn8k+qudKhLVrJsiCQ rSnVdbr93iQONLOAfi4cgOnEf/svFjIQ6d+uVIiVa2gHuhdFwrTMU5NlhLcyZuFsOJ M+/SaZrHlzd31Ao7huJTDQendPxB+OQUJLL6GzEmsFpt4IoDClYFHnxLljwjlPIf2M 0bVUNEqbvngAnGlGkK4+fQ3I16nfHkCVST+31DDbyv++DM73sb/Cb8PceNxog9/lzY kTz3wiMBcWqfQ== Received: by mail-yb1-f179.google.com with SMTP id e123so10839859ybh.11 for ; Mon, 07 Nov 2022 13:05:10 -0800 (PST) X-Gm-Message-State: ANoB5pmVAs/4KEeyFVx4qkBPY9o7+Htl7ONEM/UXIt2Lef6PFCQFhanI omLVCu+nLHQW896hNfeP5/EUItRkdOodtXV6vdo= X-Received: by 2002:a25:2389:0:b0:6d8:7f81:edaf with SMTP id j131-20020a252389000000b006d87f81edafmr3758306ybj.443.1667855109196; Mon, 07 Nov 2022 13:05:09 -0800 (PST) MIME-Version: 1.0 References: <20221106210225.2065371-1-ogabbay@kernel.org> <20221106210225.2065371-4-ogabbay@kernel.org> <2537e41d-f863-4819-57d2-09b9554f801b@quicinc.com> In-Reply-To: <2537e41d-f863-4819-57d2-09b9554f801b@quicinc.com> From: Oded Gabbay Date: Mon, 7 Nov 2022 23:04:42 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v3 3/3] drm: initialize accel framework To: Jeffrey Hugo Cc: David Airlie , Daniel Vetter , Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Jason Gunthorpe , John Hubbard , Alex Deucher , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Yuji Ishikawa , Jiho Chu , Daniel Stone , Tvrtko Ursulin , Christoph Hellwig , Kevin Hilman , Jagan Teki , Jacek Lawrynowicz , Maciej Kwapulinski , Stanislaw Gruszka , Randy Dunlap Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 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, Nov 7, 2022 at 6:25 PM Jeffrey Hugo wrote: > > On 11/6/2022 2:02 PM, Oded Gabbay wrote: > > > @@ -603,6 +626,14 @@ static int drm_dev_init(struct drm_device *dev, > > /* no per-device feature limits by default */ > > dev->driver_features = ~0u; > > > > + if (drm_core_check_feature(dev, DRIVER_COMPUTE_ACCEL) && > > + (drm_core_check_feature(dev, DRIVER_RENDER) || > > + drm_core_check_feature(dev, DRIVER_MODESET))) { > > Shouldn't the indentation for the 2nd and 3rd line be such that the > start of the lines is aligned with the "(" on the first line? afaik there is no such rule. If there was, checkpatch should have reported that. Oded