Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5696343rwl; Tue, 11 Apr 2023 08:47:22 -0700 (PDT) X-Google-Smtp-Source: AKy350ZngDqo6/9fPpJW/RZYTlKUI8b9ofGIEb1B8gipJH4RJFPMbI4dtN03FoOow7N5BhhtDrCX X-Received: by 2002:a17:906:245a:b0:94a:7968:e39f with SMTP id a26-20020a170906245a00b0094a7968e39fmr3812230ejb.59.1681228041843; Tue, 11 Apr 2023 08:47:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681228041; cv=none; d=google.com; s=arc-20160816; b=nxFIQNnrPq0iFMqZW4neV6cKNSjiSohZjBTBNUlVK2jMo7HdgcB8IizxS9YqWTV/7f 9W6GDNoJb5NL0U9wWIUvNnorNieyzCmWnRA08NQ1tVakDOYMpcmly2cRvZpBahE+kDiB AgUzG+MWDoQuosjCYg0MI8MUM3urY7Zg/xV0dn9lcHOpCuK/NE6YL/R5HUD9CD8r++oF CMgsPMWOhhsYNEwcClNd6CqkoKKBGgMOrLz5M6smHDlxvE+Jjw8HzdSTLbG8PCBohwcy ZhT4IkphpArDCqVCoDusm9tLYXavP4+8NYPoysZadoer5MAqAxmL0WqL0fNi31KzdigT bmVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=NXavlX3EV8sFIR/LzYDmEJH/U5nEoxc0lBizQkprCwE=; b=xNGfTITPLRVvVgL5/UjTlPWXltlkMgd/rLxTSQWUEFk3PhMUidTgYLPmF/ZWUaW+Vy 5R80gK/Poov0xSxfAKvC01ObTdLdwV1e/a4r55PwxYNXEuI0Fx4+JXIrpqJ/4Ke+V0KH 6uSaa+u6AOTJRpjKIfeJDDMie0Ds6Xas0MpXLdvMZlGQGYTelJScm/jLmkvw01Jaant8 3f/CQdbOhmaERQ8omRLYtnp5OTYeMjyl25vcGfrTiWTQrfPYRdVQQQCdN7aNkaWGdlTj L4JRz9RkS42heJj3RN4oliwaxc3eHCEnMAk7pPcPYFIVrXocLAoUqNF1K0oLkQCm4Kqj EtqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kSCAagRs; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id tc6-20020a1709078d0600b008e3da0ff1b2si597898ejc.879.2023.04.11.08.46.57; Tue, 11 Apr 2023 08:47:21 -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=@quicinc.com header.s=qcppdkim1 header.b=kSCAagRs; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230010AbjDKPaT (ORCPT + 99 others); Tue, 11 Apr 2023 11:30:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229571AbjDKPaP (ORCPT ); Tue, 11 Apr 2023 11:30:15 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 899EC26BE; Tue, 11 Apr 2023 08:29:56 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33BFCPr7003942; Tue, 11 Apr 2023 15:29:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : from : to : cc : references : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=NXavlX3EV8sFIR/LzYDmEJH/U5nEoxc0lBizQkprCwE=; b=kSCAagRsHx2ajmaK/9UQpiSqm5sllOEyXW/Btur3QH3aUAaEaebPNFSZUirMzP8VVqKp EmQdmxdE8yxElStzh9PvclR1dPzws83A7ECwJPAk9M4JGh6H4Dcyk0SXuLFpU4Aju2lx 5lH7D7n5xQEA1jz/tqcOEfon9YOJKYc3GhTqm4gMvMnTNzoDH1prhoPv7aycpunBerAX xdcnDnKl4LdRPlpgnNyBDJTOMfzzDvUeOz350jZD2xDWA/s3IvEKQR47kWCjemtCoiP2 dXCGGsepYiF87AxgK5aeF5kTwLDng5ZN0boaeczs+a0r2kGFdGAxv+7l56FnV6N8o3It qg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pw3cv8xtw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Apr 2023 15:29:36 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33BFTT7t030331 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Apr 2023 15:29:29 GMT Received: from [10.226.59.182] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Tue, 11 Apr 2023 08:29:28 -0700 Message-ID: <3879d287-81e0-5e25-8c58-f9554ce2303b@quicinc.com> Date: Tue, 11 Apr 2023 09:29:27 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: linux-next: build failure after merge of the driver-core tree Content-Language: en-US From: Jeffrey Hugo To: Greg KH CC: Oded Gabbay , Stephen Rothwell , Dave Airlie , Linux Kernel Mailing List , DRI , Pranjal Ramajor Asha Kanojiya , "Linux Next Mailing List" , Jacek Lawrynowicz References: <20230411143812.11a4b00d@canb.auug.org.au> <2023041123-tractor-quake-c44d@gregkh> <1094266f-d845-9fa4-9f44-85de8352c04f@quicinc.com> <2023041131-boxy-excavator-1183@gregkh> <04155e87-16f7-9916-6aa8-b4842ef92b83@quicinc.com> In-Reply-To: <04155e87-16f7-9916-6aa8-b4842ef92b83@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: JJtxyihkfiO8aAl-4pOEOVGV12uRvcQV X-Proofpoint-ORIG-GUID: JJtxyihkfiO8aAl-4pOEOVGV12uRvcQV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-11_10,2023-04-11_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 clxscore=1015 bulkscore=0 mlxlogscore=999 impostorscore=0 lowpriorityscore=0 mlxscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304110142 X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/11/2023 9:26 AM, Jeffrey Hugo wrote: > On 4/11/2023 9:13 AM, Greg KH wrote: >> On Tue, Apr 11, 2023 at 09:08:39AM -0600, Jeffrey Hugo wrote: >>> On 4/11/2023 9:01 AM, Daniel Vetter wrote: >>>> On Tue, Apr 11, 2023 at 12:40:28PM +0200, Greg KH wrote: >>>>> On Tue, Apr 11, 2023 at 11:55:20AM +0200, Daniel Vetter wrote: >>>>>> On Tue, Apr 11, 2023 at 02:38:12PM +1000, Stephen Rothwell wrote: >>>>>>> Hi all, >>>>>>> >>>>>>> After merging the driver-core tree, today's linux-next build (x86_64 >>>>>>> allmodconfig) failed like this: >>>>>>> >>>>>>> In file included from include/linux/linkage.h:7, >>>>>>>                    from include/linux/kernel.h:17, >>>>>>>                    from drivers/accel/qaic/mhi_qaic_ctrl.c:4: >>>>>>> drivers/accel/qaic/mhi_qaic_ctrl.c: In function >>>>>>> 'mhi_qaic_ctrl_init': >>>>>>> include/linux/export.h:27:22: error: passing argument 1 of >>>>>>> 'class_create' from incompatible pointer type >>>>>>> [-Werror=incompatible-pointer-types] >>>>>>>      27 | #define THIS_MODULE (&__this_module) >>>>>>>         |                     ~^~~~~~~~~~~~~~~ >>>>>>>         |                      | >>>>>>>         |                      struct module * >>>>>>> drivers/accel/qaic/mhi_qaic_ctrl.c:544:38: note: in expansion of >>>>>>> macro 'THIS_MODULE' >>>>>>>     544 |         mqc_dev_class = class_create(THIS_MODULE, >>>>>>> MHI_QAIC_CTRL_DRIVER_NAME); >>>>>>>         |                                      ^~~~~~~~~~~ >>>>>>> In file included from include/linux/device.h:31, >>>>>>>                    from include/linux/mhi.h:9, >>>>>>>                    from drivers/accel/qaic/mhi_qaic_ctrl.c:5: >>>>>>> include/linux/device/class.h:229:54: note: expected 'const char >>>>>>> *' but argument is of type 'struct module *' >>>>>>>     229 | struct class * __must_check class_create(const char >>>>>>> *name); >>>>>>>         |                                          ~~~~~~~~~~~~^~~~ >>>>>>> drivers/accel/qaic/mhi_qaic_ctrl.c:544:25: error: too many >>>>>>> arguments to function 'class_create' >>>>>>>     544 |         mqc_dev_class = class_create(THIS_MODULE, >>>>>>> MHI_QAIC_CTRL_DRIVER_NAME); >>>>>>>         |                         ^~~~~~~~~~~~ >>>>>>> include/linux/device/class.h:229:29: note: declared here >>>>>>>     229 | struct class * __must_check class_create(const char >>>>>>> *name); >>>>>>>         |                             ^~~~~~~~~~~~ >>>>>>> >>>>>>> Caused by commit >>>>>>> >>>>>>>     1aaba11da9aa ("driver core: class: remove module * from >>>>>>> class_create()") >>>>>>> >>>>>>> interacting with commit >>>>>>> >>>>>>>     566fc96198b4 ("accel/qaic: Add mhi_qaic_cntl") >>>>>>> >>>>>>> from the drm tree. >>>>>>> >>>>>>> I have applied the following merge fix patch for today. >>>>>>> >>>>>>> From: Stephen Rothwell >>>>>>> Date: Tue, 11 Apr 2023 14:16:57 +1000 >>>>>>> Subject: [PATCH] fixup for "driver core: class: remove module * >>>>>>> from class_create()" >>>>>>> >>>>>>> interacting with "accel/qaic: Add mhi_qaic_cntl" >>>>>>> >>>>>>> Signed-off-by: Stephen Rothwell >>>>>> >>>>>> Thanks for the fixup. Since Dave is out I've made a note about >>>>>> this in my >>>>>> handover mail so it won't get lost in the drm-next merge window >>>>>> pull. I >>>>>> don't think we need any other coordination than mention it in each >>>>>> pull to >>>>>> Linus, topic tree seems overkill for this. Plus there's no way I can >>>>>> untangle the drm tree anyway :-). >>>>> >>>>> Want me to submit a patch for the drm tree that moves this to use >>>>> class_register() instead, which will make the merge/build issue go >>>>> away >>>>> for you?  That's my long-term goal here anyway, so converting this new >>>>> code to this api today would be something I have to do eventually :) >>>> >>>> We kinda closed drm-next for feature work mostly already (just pulling >>>> stuff in from subtrees), so won't really help for this merge window. >>>> >>>> For everything else I think this is up to Oded, I had no idea qaic >>>> needed >>>> it's entire own dev class and I don't want to dig into this for the >>>> risk I >>>> might freak out :-) >>>> >>>> Adding Oded. >>>> >>>> Cheers, Daniel >>> >>> Sorry for the mess. >>> >>> I made a note to update to class_register() once my drm-misc access is >>> sorted out.  Looks like we'll address the conflict in the merge >>> window, and >>> catch the update to the new API in the following release. >> >> Wait, I think the large question is, "why does this need a separate >> class"?  Why are you not using the accel char device and class?  That is >> what everything under accel/ should be using, otherwise why put it in >> there? >> >> And what exactly are you using that class for?  Just device nodes?  If >> so, how many? >> >> thanks, >> >> greg k-h > > > Remember MHI_UCI that then evolved into the WWAN subsystem?  I pointed > out at the time that AIC100/QAIC would need the same functionality. > You/Jakub told myself/Mani/Loic that a combined implementation is not > acceptable, and every area needs to implement their own version of MHI_UCI. > > We took the WWAN subsystem and simplified it to meet our needs. > > The functionality is QAIC specific, so wedging it into the Accel node > seems to be a poor fit as it would subject Habana and iVPU to the same. Also, I forgot to mention. QAIC is sharing userspace components with WWAN, so we really cannot diverge from what WWAN has done and define a new API through the Accel node. > > We need (eventually) 128 device nodes.  We have systems with 32 QAIC > devices, and each QAIC device uses 4 device nodes (32 * 4 = 128).  WWAN > subsystem would be similar.  Looks like each 5G modem is 6 nodes per > device, so if you had 22 5G modems on a system, you'd have 132 device > nodes.  I'm not aware of any such system, but it could exist. > > -Jeff