Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1487433ybh; Mon, 13 Jul 2020 22:01:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKMUjyjui/iZC+p+HH4g6IE4rmCMMpEhRkUu5qEcnbmfD4It7gUJOoZkoMRBMXAi0JLYCJ X-Received: by 2002:a05:6402:306a:: with SMTP id bs10mr2604386edb.51.1594702865527; Mon, 13 Jul 2020 22:01:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594702865; cv=none; d=google.com; s=arc-20160816; b=HX1InTca7E7SX8rq+wxhFWgC7sbdvXx/YmEbe3Sc77fPbbbjVCZTZFwMTPzhh2zl0V RikMNrQIuUGQ9Q87gEe+GUPjliYae2IYNAAebTS1h6ugAKTvHF5W9wPSDLnNpCMUxhya kpklaPyVAMELO8L1fXdSN9ILm0/PkxISKkBaH1UWzrX9zjH+82v4apaIA8NouJpfAvpz DogjnvGJcIRARzQ7RPSaZwfhjFxkPhVz8UGuKdWGK35jngYZg/RPADYBPL/5001DAydy my8ujcNTDsbjpPHhH3xHWG2oh6ifuBxBg/uLMAe44mMuQWeQQ5UR/SRU4RsccBVsNsz7 Eytw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=i/edOp4Ak5/v8uEvTvaFWmM61UPCIIBiDRWqpfNG9p8=; b=s2ao17IJSvjcoDNiCuET8jTGHXOb7NcQIEl4wEmY/eQKhfKqusC1WgC6cVI3qKu8Xv GciaxhLM4+PgLglfOaFQFQRIParq7i8MyXsD2xxvBiyDL4Q/CxEn/ZmiimyfsUqm9npJ W/oVsO/HsdwW4lg589+JLG9LazR9Qrcf++zkRY8vDBCgmp5qhDCxjQGXC0+rgh11efIs 6Mi+7xIAjKTr5JNGbBS5P2rpiP4vEbkrivOSR+bqWp6ozMmkKwBkLYwsn2fJKkmJbF3w AtfIXFigwpprtqsgcbnn7BUXyfEIboxUbwcTXmKC+2bv5z3IqwgrdEq8SQ3oLzUrzi/l AiZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=z4pAkkYB; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si6264893ejq.743.2020.07.13.22.00.42; Mon, 13 Jul 2020 22:01:05 -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=@oracle.com header.s=corp-2020-01-29 header.b=z4pAkkYB; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726729AbgGNE7Y (ORCPT + 99 others); Tue, 14 Jul 2020 00:59:24 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:54180 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbgGNE7V (ORCPT ); Tue, 14 Jul 2020 00:59:21 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 06E4wRIx100119; Tue, 14 Jul 2020 04:59:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=corp-2020-01-29; bh=i/edOp4Ak5/v8uEvTvaFWmM61UPCIIBiDRWqpfNG9p8=; b=z4pAkkYBn0q/EA/pLW+9xuEBtS4DxKI7m5WCNvGQr3Mz/CZL/7mgW/5j2OaoP3nQK5ZC JD+9IR8mrx0q/kLHeakpHW4OVRx7xcErXGxJnZRMHwm4AUbqiNghYaJH4bUqZ+1BUcp/ FKK41DGwUKgLwWMZ+cizN8e3PL/R4qTLhDKuK0uoPRBm6wiis+w/appuJ1+eIQxeBtaO A4Up5oKu8wfZO92zKOtUS3dEEvEY1Iavf2I9xZWOftCqlujkhRYEGp7Lfu9XQeIayk6V xdi5zpRzuOv3/iB9bqVnfwWAq2OFiAMrNyDwNDoh9lSxbQ7TUGjbLRFOwlJaNFFSqfIe xA== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 3274ur2yqc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 14 Jul 2020 04:59:00 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 06E4vXfW174045; Tue, 14 Jul 2020 04:59:00 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 327qb2nusv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Jul 2020 04:58:59 +0000 Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 06E4wvhU022060; Tue, 14 Jul 2020 04:58:58 GMT Received: from ca-mkp.ca.oracle.com (/10.156.108.201) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 13 Jul 2020 21:58:57 -0700 From: "Martin K. Petersen" To: linux-scsi@vger.kernel.org, satyat@google.com, avri.altman@wdc.com, jejb@linux.ibm.com, Stanley Chu , alim.akhtar@samsung.com, ebiggers@kernel.org Cc: "Martin K . Petersen" , kuohong.wang@mediatek.com, cc.chou@mediatek.com, linux-kernel@vger.kernel.org, matthias.bgg@gmail.com, chaotian.jing@mediatek.com, peter.wang@mediatek.com, andy.teng@mediatek.com, chun-hung.wu@mediatek.com, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH v3] scsi: ufs-mediatek: Add inline encryption support Date: Tue, 14 Jul 2020 00:58:45 -0400 Message-Id: <159470266468.11195.3653329950550952550.b4-ty@oracle.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200712003226.7593-1-stanley.chu@mediatek.com> References: <20200712003226.7593-1-stanley.chu@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9681 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 mlxscore=0 spamscore=0 phishscore=0 suspectscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007140037 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9681 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 phishscore=0 spamscore=0 mlxlogscore=999 malwarescore=0 mlxscore=0 priorityscore=1501 adultscore=0 bulkscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007140037 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 12 Jul 2020 08:32:26 +0800, Stanley Chu wrote: > Add inline encryption support to ufs-mediatek. > > The standards-compliant parts, such as querying the crypto capabilities > and enabling crypto for individual UFS requests, are already handled by > ufshcd-crypto.c, which itself is wired into the blk-crypto framework. > > However MediaTek UFS host requires a vendor-specific hce_enable operation > to allow crypto-related registers being accessed normally in kernel. > After this step, MediaTek UFS host can work as standard-compliant host > for inline-encryption related functions. Applied to 5.9/scsi-queue, thanks! [1/1] scsi: ufs-mediatek: Add inline encryption support https://git.kernel.org/mkp/scsi/c/46426552e74f -- Martin K. Petersen Oracle Linux Engineering