From patchwork Wed Jun 9 10:23:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 456819 Delivered-To: patches@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp5115955jae; Wed, 9 Jun 2021 03:23:42 -0700 (PDT) X-Received: by 2002:a05:6512:22c3:: with SMTP id g3mr19128229lfu.495.1623234222795; Wed, 09 Jun 2021 03:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623234222; cv=none; d=google.com; s=arc-20160816; b=TCAT0ukSiqRIH7fqxUaq5sT7pWh47XfUDiWE+eQNgXYERTRGiF8jfN8LrhPmcQH+Qy VZygXJJKbew2aDDDoaqUTWZCGXynbGn4v0d6x5RZu6dRBqaZ/MmcG9+o6kuJzeGtVdNa AgpTBFxQjw4pn3U0KMsKnoOEyNcHpao+235SfOh5A5j/Ms8cuRXIQExsSPpKNSTkcL8j MFznfObd3KBIaPc+6tWHO0vLTDRC+uiqn2ZIWJ4ikkW/NZ3N7sqdLFxazEOwqfF8FAs+ csYy+mdh2msy3TGRo8Bxdz3wrrqcAv9pg1U0mrcumrVNIU6OPaZuH/V9Ov48Cbw0vM30 dabA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=z41Cr+HEWGY0CsHaBd8pm3xNtEWwWXvXTvPBLBMGN/o=; b=W3I0VBR9zO7PGaUvPPlwRx6tcH11AFLiWSjViKH0TyvFGj11u0Bfuk0O0zwtfNoVfM XJSiJi7aDpPaHnuvZ0WTWQWcfKQatzTpqXT4YlTHmTnW41P93Q6bZr6SRmmt7L+lmYHm nDnq+6GF7yXHgF5Mb35SdAxLbXfkBmeRtQp8KxxnFOw0yl612fiqQp5bsv83MBoatkiy sJmB2ZQqMxveNEozuAIWyO69inYn4j9/xgYrvzPDVewTA4H6Q412btfSsV5Pq5VcVFPH 0Ijb5VeWproiFsWQ4OCOfVJ1ZDEF2Umoj9SR7lv0Bp6NsPDwQrbPCa+Em1IVz18DXUCd Z2Tg== 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 jens.wiklander@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id r13sor1154264lji.29.2021.06.09.03.23.42 for (Google Transport Security); Wed, 09 Jun 2021 03:23:42 -0700 (PDT) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wxnDktWn; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=JLO35luOATdeNC5K95roAaXIoDzqlu+zsSzw5loNVuc5pKBhGsiEp2z6gUbg1/l37v WVfH09i/5QflYrsfb/qvKsV4bUbTBFIVZeLXPNes4Mh4A1cXxPBkCPZBjp1ObRQ+LdAm JsPoWWtbWpejLqy00k06Tt9PYFJe4nm0nhX4VPsC/7OWkmAyAMs8jfHzodoRJc+4bMaW 9FwNChQkz335V7A8ZdpfvmrK2yWs/uMhi6tCX37pOe60c1DIugAqGUVyqfn4rmTfWOJk mFgwVDEHtx5h6DkEDC6w+CCBpzbUGhePQ4yMLsA7yGPPFUa0frmvqdbj3mM6Cy/dFL0g ZDnQ== X-Gm-Message-State: AOAM530O1CGjKtAYzdn0Ds9FTGYWroliQc5o12DOIDltw3Iu274D4p3Q 2T+Louao2tknoqwcY6yfZ0oyzX4h X-Google-Smtp-Source: ABdhPJzypUn77FFisUbpoXFQUpt73CwKxfl7HpnfNmeGK3YRsOitn1ppydvc0cplYjzX2lC2zkT2mw== X-Received: by 2002:a2e:bc1b:: with SMTP id b27mr4023293ljf.65.1623234222427; Wed, 09 Jun 2021 03:23:42 -0700 (PDT) Return-Path: 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 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(-) -- 2.31.1 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; }