Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5151389pxj; Wed, 9 Jun 2021 10:16:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNO6fJfbORNLpsV57dQPDj6dT0Ioa0nnzM9iw81BNuLNpjfmQPUIfCR3x7f931sQ0kCyOh X-Received: by 2002:a17:906:c1d2:: with SMTP id bw18mr877193ejb.123.1623258992885; Wed, 09 Jun 2021 10:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623258992; cv=none; d=google.com; s=arc-20160816; b=HFrCNm6Ix+B/49o1UW4btbAXTbNteF/4fBgiqvlaSRrqd8MikQQdiClpxpC2EXJiYv oFvAsqCTovsNFbNpvifUDGxlVT4T1oRSIyxzXIRAuRpusrGJm1NXDOPhDRSjGlaHgK79 q1QdktcFJR+U8kMp5adQHpReXuD4f/VcPLy174ssYCHoVBnjAEHbX4EM1zfd2j7IT0HN fEJ153z7wkvorPObqDE0cn+gDVQgjfJ3tEdNXNEXfWJZCWARUnz3sE62ZsZfDzZnZZ7G f1UAy9hA89+mcKIO3X09Ar77LVg14XnRVcBiit8cBB1vpUKvB6qhMb5LX5Q/l1vPqqbQ BIPA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=z41Cr+HEWGY0CsHaBd8pm3xNtEWwWXvXTvPBLBMGN/o=; b=sLcdjrT6Mj6EnNcr8hhykhkWioSs3Sk1upwd/fgHj+SN4nAr+Tkkfld7jYcIywVkcF kwwBiZpqSZmbDpv7NCe2oRxrt/j9rJ4PMSU3ImiDx26Kj2HYmoHbGn/Q942Mhd30asC5 B4RNg+s7TmKw+lHtLLD69PJFrm/bxR/sMnJ2LzKZNG3xDxtloeOZzGrDGGwhFgDoMpsl N/dRfcJmRGP1QhDOqJU3X9bdVT9yO2JmIwVU88CAti3qOiE4IEL5NkN2KGu9Qa4+OdB6 G7fJjcUd8zU6ytFelUlki9bSDxWBHS49ZluVtXopEl+9OhuNuuY52d8Tp35aqp8TUyME j3Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wxnDktWn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j18si187111edj.276.2021.06.09.10.16.07; Wed, 09 Jun 2021 10:16:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wxnDktWn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238823AbhFIK1A (ORCPT + 99 others); Wed, 9 Jun 2021 06:27:00 -0400 Received: from mail-lj1-f182.google.com ([209.85.208.182]:41961 "EHLO mail-lj1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238806AbhFIK0w (ORCPT ); Wed, 9 Jun 2021 06:26:52 -0400 Received: by mail-lj1-f182.google.com with SMTP id z22so15033431ljh.8 for ; Wed, 09 Jun 2021 03:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z41Cr+HEWGY0CsHaBd8pm3xNtEWwWXvXTvPBLBMGN/o=; b=wxnDktWnokbe9vdca0sig349xZwGFRxYuFMA+W0zn7C/YzUSGShW9nf9GwP+zBWewr KcIhMUvVU7R6230pLSzbrXrkFRT/Krbs6bdsqTll3nVZEW43N6ica7F+OuHFDn1OihUc hBhJPbDM0gVwJ1TfOFHiHSuSlWi2MY5Ve5RS1pVhKTTTTnrxXlZGZRLcToK4DORu19mq TPhX6S+52cWPuBj74jpI+I2yLXiv8faJT7DJz0Isu5f+C3H4wfp6hr/sqtLAOxm621j0 yRad3i1pPSmuIGfc5oOhDfFuQZGEpYj3jjjJ0TUkjmlv8E8CK6Zso99mhY4Nk9tmdoPB vDZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=z41Cr+HEWGY0CsHaBd8pm3xNtEWwWXvXTvPBLBMGN/o=; b=ldBbgEHZCDxAxYkxZvhbNJasy0qvuflK3B4mZeovipJre2f6BNLC57xBkLXS03MTKT dXUtUNeezGmroZN65o6AmyqM3MVwJKAyXoSjppzI8CkGcAGY7lYYWMrP6kBfQFa/hU3C KZnQjWB826Tky2n7TgkG6ScFpT7OaNuGdRSIbPww3bHziGox08VgJ30bZk2XIB5Kdmoc 0E5+QcCXbVmNwJ0rBTjYY07dLlKp0l+M2dZDqNjmRzoGo20b2xCY9bi4ze96sPyP274U SvkssW4QYMIO+gRPo0XKtvNH0GjeaxfVB3kETh6dNMp+nfCMow5/1PifP52K+CCEopZA 2Jfg== X-Gm-Message-State: AOAM5336tgpUkbBlW0AjAJ2qqjylF3bsKyhGhStOg+97jy+GIyhuGq0m iwdcN+D4/VIQcGeNg0bg2UXZ6E5xpAsWekE3 X-Received: by 2002:a2e:bc1b:: with SMTP id b27mr4023293ljf.65.1623234222427; Wed, 09 Jun 2021 03:23:42 -0700 (PDT) Received: from jade.urgonet (h-79-136-85-3.A175.priv.bahnhof.se. [79.136.85.3]) by smtp.gmail.com with ESMTPSA id m4sm302966ljp.9.2021.06.09.03.23.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jun 2021 03:23:42 -0700 (PDT) From: Jens Wiklander To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, op-tee@lists.trustedfirmware.org Cc: Sumit Garg , Herbert Xu , Sakkinen , Sasha Levin , Thirupathaiah Annapureddy , Vikas Gupta , "David S . Miller" , Tyler Hicks , Jens Wiklander Subject: [PATCH 6/7] firmware: tee_bnxt: use tee_shm_alloc_kernel_buf() Date: Wed, 9 Jun 2021 12:23:23 +0200 Message-Id: <20210609102324.2222332-7-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210609102324.2222332-1-jens.wiklander@linaro.org> References: <20210609102324.2222332-1-jens.wiklander@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Uses the new simplified tee_shm_alloc_kernel_buf() function instead of the old deprecated tee_shm_alloc() function which required specific TEE_SHM-flags. Signed-off-by: Jens Wiklander --- drivers/firmware/broadcom/tee_bnxt_fw.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/firmware/broadcom/tee_bnxt_fw.c b/drivers/firmware/broadcom/tee_bnxt_fw.c index ed10da5313e8..56d00ddd4357 100644 --- a/drivers/firmware/broadcom/tee_bnxt_fw.c +++ b/drivers/firmware/broadcom/tee_bnxt_fw.c @@ -212,10 +212,9 @@ static int tee_bnxt_fw_probe(struct device *dev) pvt_data.dev = dev; - fw_shm_pool = tee_shm_alloc(pvt_data.ctx, MAX_SHM_MEM_SZ, - TEE_SHM_MAPPED | TEE_SHM_DMA_BUF); + fw_shm_pool = tee_shm_alloc_kernel_buf(pvt_data.ctx, MAX_SHM_MEM_SZ); if (IS_ERR(fw_shm_pool)) { - dev_err(pvt_data.dev, "tee_shm_alloc failed\n"); + dev_err(pvt_data.dev, "tee_shm_alloc_kernel_buf failed\n"); err = PTR_ERR(fw_shm_pool); goto out_sess; } -- 2.31.1