Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp229224ima; Thu, 31 Jan 2019 15:32:59 -0800 (PST) X-Google-Smtp-Source: ALg8bN4UhGD2qrpfTVYohQfV+hqt3B/gv6/cq6whPb2jtL+TJ7znX/NeIX0nMCSjQbZSsTivNKkZ X-Received: by 2002:a17:902:227:: with SMTP id 36mr37028162plc.140.1548977579829; Thu, 31 Jan 2019 15:32:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548977579; cv=none; d=google.com; s=arc-20160816; b=KKKI+vgch+hwvU81Z2o5LDb0WvQ6gCkwnT4C+bb5o+fHgjf47Xhs9W1PTMzXOPg/0j TQBqvQ0EQokIMxSpVkH/fnG6XH2zZwOdYSIJU3F0GNl+d2LRjVbDR5BpbZWTJx87ep6a U9kM70vPjoB7zwUREdQwXiUhJ9RGkeFYlG8jT+KjVpAdC2HcS0AzNz0KSrgcFA+3QLg/ kfE2GSk9vrBU6I9H+aAzoM4mQ3secojzMTDWY6svoje+ryOQA2V/NwZk/u8UpON3WFAD RFDgVXB72Q6Odw+nBsXsScYTbQSttZcV6JCbt7B/DfZTRHRvDoUvI9thJv4LOzWlbVyb YzzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject; bh=dRIhJQtTRq/XQIiMMw/YZKcjMOQqmS/Dal2quNMB+Fg=; b=z4tlWz7LNO5i6/Ld/1vuW9bHNP0x/6qWc3LXZPqdSGj/bM0kHagx8i3NumQeFfxXK8 mGGfI1NhcwcsCso81lClxSzpVgf0Wkfv2G/GRK5R/uFbiBsTLVjZ1mDlTsSdWAn3ur1v 5JsHnvaulvg6DSIZTP2f0CcZgRT1OjumUBDqqE4uby7gDjUcOeA9vFeLU+ECQArAjUBI a6BixsPV3YdtRI54wl2ZmTRfiqTiWluKI2Q/QHvj7dWL2ZJAshqZvecFVLg/W9jgepSf npEcpJQh15JJUNefRJgqQYz7/uc7sF270mj+EGqk6XJKX3SSCoDHf/YMEPXs8a+TbKBy XKsg== 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 o73si4012165pfa.137.2019.01.31.15.32.44; Thu, 31 Jan 2019 15:32:59 -0800 (PST) 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 S1727598AbfAaX2w (ORCPT + 99 others); Thu, 31 Jan 2019 18:28:52 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:47236 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725915AbfAaX2w (ORCPT ); Thu, 31 Jan 2019 18:28:52 -0500 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x0VNSoAR062918 for ; Thu, 31 Jan 2019 18:28:51 -0500 Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.149]) by mx0a-001b2d01.pphosted.com with ESMTP id 2qcam1076p-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 31 Jan 2019 18:28:51 -0500 Received: from localhost by e31.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 31 Jan 2019 23:28:50 -0000 Received: from b03cxnp07028.gho.boulder.ibm.com (9.17.130.15) by e31.co.us.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 31 Jan 2019 23:28:46 -0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x0VNSf5e13238328 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 31 Jan 2019 23:28:41 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D22E8BE053; Thu, 31 Jan 2019 23:28:41 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 897FBBE04F; Thu, 31 Jan 2019 23:28:40 +0000 (GMT) Received: from [9.80.226.197] (unknown [9.80.226.197]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 31 Jan 2019 23:28:40 +0000 (GMT) Subject: Re: [PATCH] zcrypt: handle AP Info notification from CHSC SEI command To: Sebastian Ott Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Schwidefsky , Heiko Carstens , oberpar@linux.ibm.com, freude@linux.ibm.com, pmorel@linux.ibm.com, pasic@linux.ibm.com, cohuck@redhat.com References: <1548870526-30595-1-git-send-email-akrowiak@linux.ibm.com> From: Tony Krowiak Date: Thu, 31 Jan 2019 18:28:39 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 19013123-8235-0000-0000-00000E53FF49 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010512; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000277; SDB=6.01154550; UDB=6.00602055; IPR=6.00934982; MB=3.00025380; MTD=3.00000008; XFM=3.00000015; UTC=2019-01-31 23:28:48 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19013123-8236-0000-0000-0000444A730F Message-Id: <88b72363-9dca-4653-c326-9c37b6349a32@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-31_13:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 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-1901310169 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/30/19 1:32 PM, Sebastian Ott wrote: > On Wed, 30 Jan 2019, Tony Krowiak wrote: >> +#if IS_ENABLED(CONFIG_ZCRYPT) >> +void ap_bus_cfg_chg(void); >> +#else >> +#error "no CONFIG_ZCRYPT" > ^ > I don't think that's the right thing to do here. I'd like to leave it. If somebody edits .config and sets CONFIG_ZCRYPT=n, then the build will fail. The preprocessor error above tells them why. > > >> +++ b/drivers/s390/cio/chsc.h >> @@ -9,6 +9,7 @@ >> #include >> #include >> #include >> +#include > > This should be moved to chsc.c I can do that, but I'm curious why. > > >> +++ b/drivers/s390/crypto/ap_bus.c >> @@ -35,6 +35,7 @@ >> #include >> #include >> #include >> +#include > > This is not needed here. I'll remove it. > > >> /* >> +* A config change has happened, Force an ap bus rescan. >> +*/ >> +void ap_bus_cfg_chg(void) >> +{ >> + AP_DBF(DBF_INFO, "%s config change, forcing bus rescan\n", __func__); >> + >> + ap_bus_force_rescan(); >> +} >> +EXPORT_SYMBOL(ap_bus_cfg_chg); > > There is no need for the export symbol - you don't call that function > from module code. > As an unrelated question, just to be sure: ap_bus.c is compiled as > built-in even with ZCRYPT=m, right? No. If you edit .config and set CONFIG_ZCRYPT=m, ap_bus.c will be built into the zcrypt.ko module. Through some other magic, the zcrypt module is loaded when linux boots. > > Reviewed-by: Sebastian Ott > > Regards, > Sebastian >