Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8941675rwd; Wed, 21 Jun 2023 00:29:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5KMdiYNk30JH7F85B5Iv5tXApUbOGpeAGFSvu9EeRvZ8TQV/bOWUZEIpOarZJuH55McF61 X-Received: by 2002:a17:90b:118e:b0:25c:a8b:4f34 with SMTP id gk14-20020a17090b118e00b0025c0a8b4f34mr9142476pjb.23.1687332598456; Wed, 21 Jun 2023 00:29:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687332598; cv=none; d=google.com; s=arc-20160816; b=WBJNH2Ev9pM4kievolWMr4/I9Ye+sClYUN0D3VEO45A/Jxp0hd9obZchL6osVclW+/ Vs3C3egx93GPFw+fEKdQ1/eVck7WRX9o7FeaZDah1Kk7Sube4FhOE6XoI1VFATLi1ZjA IZcvHiKqitYCJ0widG2R6M7mwSz8QIrzxPQLoBJoxF5AQeGIW1j964MqlQIMUBQOgFLU 4fARqUnKYGYdQd1j+8LKFHSC4rnHprhzjombtzt25uoo6bXZiWl2XvkXxXpao+AS/9it DmBhSJ0ZGPYg4AIJCz3Nk6XvVEnzk7ZnecxGYYpQqxdyH2WgEmgk2vYTTT6vxhl/vahY CXyA== 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=FSAXigUZ1oBHunPtMrndI2idsQFPVyTUq2f49FAnM0s=; b=h/2cWi7icCk1qupcZhh0LDt4Sj702yjXvRzco/2QfPeg+knGYxM1BMY3y1CcOzGhYx OwKXJ1W5999HVaYDree1axaPn60iQp5kYMazW1JviSB5wTE0HhKkctnTbS+6pnvgUq6M cr16uNsY++nF/Hi4LQlFtPIcKAzhPl3xHm/XCMZ7q17HfFRcR+QNK659s1G9XNa9LyAl kdwPPebk7sB676XabZ5u08TspPFr3/HZ8+JU2iU19FR9mgL7x9ZJjN8ks9VSRk6Byofc 1B8/lMrNl3VF+N07RMxIvlbWKvBx4eRNFTLHIlSHl6si0k0ruzpHOKTYxYetdCbrNiiz ZYgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IbVr1nnO; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m12-20020a17090a5a4c00b00250ab2f31besi3840860pji.71.2023.06.21.00.29.46; Wed, 21 Jun 2023 00:29:58 -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=@intel.com header.s=Intel header.b=IbVr1nnO; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230475AbjFUGuS (ORCPT + 99 others); Wed, 21 Jun 2023 02:50:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231186AbjFUGte (ORCPT ); Wed, 21 Jun 2023 02:49:34 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12D0F2735 for ; Tue, 20 Jun 2023 23:47:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687330044; x=1718866044; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=d3xuT8j8LOYHVkbndEK2xBaA4wAzaQvUC0MqemTUsOI=; b=IbVr1nnOLsnT/YS4eSNedDexVF5yBy8X3t/awVQtQ102aiYQH6cP6ZEN C3d9P3gaCOoaTN4zz0ecJ/i+nOhvUfoouFbVdK6KlW1gd0nYq13GqbDya PKp3uNUD7ALC0GSkPSnms/EQZ9oHYNeCMaXjsQc61pkbkB2LPBa8lHmvH YJuZd6Y6zwgKjdY55nt/00LFYjcpiObWId/10G8FZc9VMIwwBujtC5YXQ m+MteaO4XUgy79zSEaB9DYKx4jR/UF092tIpHlxFANr8a3owxGBry0qdt +X5/Fh9PK14MsCD7JvuQ6WbJgi0QdlHBr9v9g9RA+nBKPHy5k9bZK5SfY A==; X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="389511902" X-IronPort-AV: E=Sophos;i="6.00,259,1681196400"; d="scan'208";a="389511902" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2023 23:47:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="779728074" X-IronPort-AV: E=Sophos;i="6.00,259,1681196400"; d="scan'208";a="779728074" Received: from unknown (HELO localhost.localdomain) ([10.226.216.90]) by fmsmga008.fm.intel.com with ESMTP; 20 Jun 2023 23:47:17 -0700 From: tien.sung.ang@intel.com To: Dinh Nguyen Cc: linux-kernel@vger.kernel.org, Ang Tien Sung Subject: [PATCH v2 0/2] firmware: stratix10-svc: support N clients Date: Wed, 21 Jun 2023 14:46:43 +0800 Message-Id: <20230621064645.1431883-1-tien.sung.ang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 From: Ang Tien Sung hi, In order to support N clients sending concurrent messages to svc driver, we need to have all clients owning up to their individual threads. And, to cater for the limitation of the mailbox device driver in secure monitor firmware that only permits a single message at a time, a mutex is used to prevent the multiple clients from sending a message to SDM. Also, added a fix on the removal of the driver that resulted in a kernel panic due to badly used drv_set_drvdata. changelog from V1: - Added "Fixes:" tag to the 2nd patch to detail the fix location. changelog from V2: - Remove newline from the 2nd patch after the tag "Fixes:" Ang Tien Sung (2): firmware: stratix10-svc: Support up to N SVC clients firmware: stratix10-svc: fix bug in saving controller data drivers/firmware/stratix10-svc.c | 188 ++++++++++++++++++++----------- 1 file changed, 123 insertions(+), 65 deletions(-) -- 2.25.1