Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1709902ybi; Wed, 17 Jul 2019 20:32:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqymidA5PR+7E0p7OVoTDd904HM2CKt2vCy54ucL7Yhcv1xPzWoy3W5FwH6ddI+US2L7lEyK X-Received: by 2002:a63:2006:: with SMTP id g6mr44442159pgg.287.1563420766141; Wed, 17 Jul 2019 20:32:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563420766; cv=none; d=google.com; s=arc-20160816; b=mcXo2E9yaWt4ol4zK61nz8Or/Fv0uA15pIFXno5DyuALrdXo09KSEmxz9brB/m8uws XMjZDw6ix11naRLEQ8n4irgE9ufiHkRLIDQ2Ern/fEIwKpqiSh9L5s9wiSRKju/gLmW0 lFtXVGCgLrv9fxo3swIgLqBh+Pf9gXvzkUZv/+2PEXvwpMWXigEBUzYUllb8Ln+cZ6hO 1tZa4ReHYJPPeTy6DIEGHWveE+kMeEFQoxL/GklCctHwSmx0YvP+ZyrhS1teTu1NBdbR Lvu43q3YWjo25Mfg1p2+TvxShSExbiOoUc0eFLd2efokHk4/KOku1lDmSm0SrMHAPAXC ZnFg== 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; bh=WGrqgO1L9OZ3aJjYREbypUC5UNX/xX7HiwkIIMRrcqE=; b=Xv/hOYfjYAdkxNCENHDX5q8+eTK71hhGcO35eEZ4YwlMhHpqRvTyDh9tF9SMI0AObf keORDkXJ9/p05TAmoPolhuk7YdZG8X90vGw/4J41Qw7XCX9pYayqVH8DW2ewwdIEKWlf MWaLkd4lAUBRlvO9mJJrcFcpFPb53FMvNx0wUrAStbJ03/mOSkj5+ObVT2U1WZNcpQ9Z nqNCZL9vUg2S8UHIOr2SNyCG+JhBGBOfvRz+CE0+jZ0cg01iEAGEJsBKcHTINurqK/ZI OJYrTrDuwXZxhMs3X+eS9RjbTAucgtRn/AeQ6PJ9MvK30t+4nF1wfzcI/7dV00xIi4gV +AqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x14si1425284pfn.61.2019.07.17.20.32.30; Wed, 17 Jul 2019 20:32:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389618AbfGRD3x (ORCPT + 99 others); Wed, 17 Jul 2019 23:29:53 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:7928 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389566AbfGRD3w (ORCPT ); Wed, 17 Jul 2019 23:29:52 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x6I3S3Ba059956; Wed, 17 Jul 2019 23:29:27 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ttcmeys60-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Jul 2019 23:29:27 -0400 Received: from m0098409.ppops.net (m0098409.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.27/8.16.0.27) with SMTP id x6I3S71a060109; Wed, 17 Jul 2019 23:29:26 -0400 Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ttcmeys5m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Jul 2019 23:29:26 -0400 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id x6I3QAC1026052; Thu, 18 Jul 2019 03:29:25 GMT Received: from b01cxnp23033.gho.pok.ibm.com (b01cxnp23033.gho.pok.ibm.com [9.57.198.28]) by ppma03dal.us.ibm.com with ESMTP id 2tq6x7mhxm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Jul 2019 03:29:25 +0000 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x6I3TOnJ47972778 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 Jul 2019 03:29:25 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D2FE9AE066; Thu, 18 Jul 2019 03:29:24 +0000 (GMT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 743F3AE05C; Thu, 18 Jul 2019 03:29:20 +0000 (GMT) Received: from morokweng.localdomain.com (unknown [9.85.129.123]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP; Thu, 18 Jul 2019 03:29:20 +0000 (GMT) From: Thiago Jung Bauermann To: x86@kernel.org Cc: iommu@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Christoph Hellwig , Marek Szyprowski , Robin Murphy , Konrad Rzeszutek Wilk , Alexey Dobriyan , Thomas Lendacky , Halil Pasic , Mike Anderson , Ram Pai , Thiago Jung Bauermann Subject: [PATCH v3 2/6] swiotlb: Remove call to sme_active() Date: Thu, 18 Jul 2019 00:28:54 -0300 Message-Id: <20190718032858.28744-3-bauerman@linux.ibm.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190718032858.28744-1-bauerman@linux.ibm.com> References: <20190718032858.28744-1-bauerman@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-07-18_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907180037 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org sme_active() is an x86-specific function so it's better not to call it from generic code. There's no need to mention which memory encryption feature is active, so just use a more generic message. Besides, other architectures will have different names for similar technology. Signed-off-by: Thiago Jung Bauermann --- kernel/dma/swiotlb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c index 62fa5a82a065..e52401f94e91 100644 --- a/kernel/dma/swiotlb.c +++ b/kernel/dma/swiotlb.c @@ -459,8 +459,7 @@ phys_addr_t swiotlb_tbl_map_single(struct device *hwdev, panic("Can not allocate SWIOTLB buffer earlier and can't now provide you with the DMA bounce buffer"); if (mem_encrypt_active()) - pr_warn_once("%s is active and system is using DMA bounce buffers\n", - sme_active() ? "SME" : "SEV"); + pr_warn_once("Memory encryption is active and system is using DMA bounce buffers\n"); mask = dma_get_seg_boundary(hwdev);