From patchwork Wed May 17 19:35:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeffrey Hugo X-Patchwork-Id: 9487 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp16398vqo; Wed, 17 May 2023 12:57:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4iBHTMZuG0boTBu3v7TFn2Z1HxDMCBcs9fvKvNffQiaVlAZdEMeQADEbyoKZEO7X/qNR7F X-Received: by 2002:a17:902:d509:b0:1a6:f93a:a136 with SMTP id b9-20020a170902d50900b001a6f93aa136mr4148843plg.22.1684353421054; Wed, 17 May 2023 12:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684353421; cv=none; d=google.com; s=arc-20160816; b=UMxGfHQo19V2qYG9XIu9jB64M966e/vy/5OC5iom1/S7F16tcEzLaNeC42pWCMmqzK s9uKVLukuIMJOlnjr74A4taIRPZ2EhSyqW+AxTsmSMzwXnEioUuCKCgAIgZs9UOOFLr8 hrrUTUwzm4Ty+nUS10MwRWGQ2u8HhOu2bU4S6uUanlnk8p1g5CRVmY9nPkJScd7OeXX/ 2Qv4cyhVZ/OqQBD2nj69XWpzYpLZ6rq5dzpKHmkKlXgKHXq/hDeaX8JfeTXNIj46TUbj iOJCugqOcjKbXnQ2XwH2aCS2zQgTyMif6wJYadJ08Gqj3J72OxlN0HbOc/JFuUF0i6Xx Jk3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=xA3BaMUdhySYpdcyg3JhGlNzUW+7jCWQoxSWw8L+Tow=; b=ulfkRKUihEOIS/kvzCGAZN9LU3TM1G9ujX6Ii2tC+fF3iz+TkB/A67C+vSb4e2ASDu tmu9n733A7gIN4VHOFpyA1hh+r0GmeXtIQSmHWyDYXPiA/pcw5KDXTDKyq21eFSv+Dh5 nXXM94B/rwPsm97cpwQ1/G7ElT+82vnD4II4mwpSZFoBVseAQ9QunHP/ZoPxmP7w+wE6 cy6RYJ0FOgZDjZ0Y4Wmb7B1qDygAfN7kLyZwLKwNKj2atM/7GkjbJAhn4hwHA2QDEtc3 WVoi0LPkLBb9n5Ax8CS9mZ8rC9AHlnTKeYPHIWsFK43f/fLj5E80Acgc97NL7PlcWxoC AAWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ItiNPow8; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a170903120f00b001a97fd670e6si22782816plh.208.2023.05.17.12.56.46; Wed, 17 May 2023 12:57:01 -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=ItiNPow8; 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 S229775AbjEQTgX (ORCPT + 99 others); Wed, 17 May 2023 15:36:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229511AbjEQTgV (ORCPT ); Wed, 17 May 2023 15:36:21 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1ABF109; Wed, 17 May 2023 12:36:17 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34HJTOfD030115; Wed, 17 May 2023 19:36:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=xA3BaMUdhySYpdcyg3JhGlNzUW+7jCWQoxSWw8L+Tow=; b=ItiNPow8PqGn5Skr/Su7577RBhd5gdxFJ8Yl2EWr3Lbr2MRaBzAMjNCELj3TRLZdWOAr DIVvOwRhRKN+ZAY3pD0Smbgh2N89O8NWHN6ep7d6tGj1YDxFlUC9fczOgeIxxsUMAIs4 ohlhqb4D7TXLz2FJSgTF8RKTeCg+V4gLJ0y/Oz/IvbO81ggis/n7dZSJO3WrNJ7wAEXc kXwWOJn74RU1iOvcP2lJFmdVdkmtacx4T7YsLPHnmApMrmjWr9+JWWu9Go4Ds4CY1Gdo R6oZE03k20dAdj5pUd36lvFt1vhN3dcvLic1R5htBZsoK5AllOqOa9nrAXnJaLcf+bY5 ng== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qn3fsg8xy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 May 2023 19:36:03 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34HJa3X7004882 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 May 2023 19:36:03 GMT Received: from jhugo-lnx.qualcomm.com (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; Wed, 17 May 2023 12:36:02 -0700 From: Jeffrey Hugo To: , , , , , CC: , , , Jeffrey Hugo Subject: [PATCH 0/5] accel/qaic fixes for 6.4 Date: Wed, 17 May 2023 13:35:35 -0600 Message-ID: <20230517193540.14323-1-quic_jhugo@quicinc.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-ORIG-GUID: I76tEy0jDJsr931TU_XuZ0JDXpayV1tt X-Proofpoint-GUID: I76tEy0jDJsr931TU_XuZ0JDXpayV1tt X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-17_04,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 impostorscore=0 mlxlogscore=912 priorityscore=1501 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305170162 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766172572579537927?= X-GMAIL-MSGID: =?utf-8?q?1766172572579537927?= During development of new features, we noticed some spots in the code that could be improved based on review feedback from the initial driver series. Also two race condition fixes, one found during stress testing and another via code inspection. Jeffrey Hugo (1): accel/qaic: Fix NNC message corruption Pranjal Ramajor Asha Kanojiya (4): accel/qaic: Validate user data before grabbing any lock accel/qaic: Validate if BO is sliced before slicing accel/qaic: Flush the transfer list again accel/qaic: Grab ch_lock during QAIC_ATTACH_SLICE_BO drivers/accel/qaic/qaic_control.c | 41 ++++++++------ drivers/accel/qaic/qaic_data.c | 91 +++++++++++++++---------------- 2 files changed, 70 insertions(+), 62 deletions(-)