Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4286745ybg; Mon, 21 Oct 2019 06:45:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzk9uOJAMlzG2o3fkZTCbXoznQzU3Nkk0SiuP/pKk6WtcrLdb43hfiKMN9C4GnhPhzxHwW X-Received: by 2002:a17:906:1be1:: with SMTP id t1mr22376468ejg.73.1571665517067; Mon, 21 Oct 2019 06:45:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571665517; cv=pass; d=google.com; s=arc-20160816; b=LUnieMtXS1Fgv0TlvlmXh04Yt5qVYvRvxMYNMEMnxVN1ZKipK31vHxjITppVV1aN6A kFEk7UZBAEOwU0vEBE/8bVHny4trFiFiDGtZ/ecQ3MKR8QgEZH7nKRH2xlMTYC2xk2eU YzYDAhgeJPxH8Z30RAnriyjcBkmolipjGqqgy0fKU0r7WWmfKxvGza2Gcgp9oD/LuaZl txq6xiyrFs980UbDmlXs3jfr9Bo+pUaG8ApGU88+qQf9qON5jPDwSXIuVOOlpA1U5CtH olsC2fkTL43U9w3Z9wc1Wx13MDmSMcFTrUu/eYKc3AVGRLad/M0a997B2crUwXdFY5lB 2wWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=apjZ2nAz6pU1SLya1E1RJBCHL5pryXplLcNLpoYNiqc=; b=Og9tC56yTwuxWVYgeegKnDF1qrGuJB72osn3xPRP0cq8KG1mz1V2fPVeQbqTbYjMmW z6u/m0N/V7zzx3wIwagij52O+yExQPF3lIC2UJoTiHBcKG2wjEgs5JzIwDsM0AIZEbbm BixexJANzTyLcFUpok69R1prTPRwqottOQmRGWsJnuuwgjwtS9KChwhdqpO/hcabIg63 jAcQeATET2t93xvOOrlbwFlXHNDNeWNAAFvaBOBrP4/ZUrOS8EJD5eP5NFiBl+mO7Kv6 jBqjv9ttoS5hliNqXnlH5icuQ+qVSzVc9xZCutzr+jilVX2aGAomsN8Zp3ojHUob29qk mAtQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=RkHzTz5I; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g38si10146356edg.127.2019.10.21.06.44.51; Mon, 21 Oct 2019 06:45:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=RkHzTz5I; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728714AbfJUNod (ORCPT + 99 others); Mon, 21 Oct 2019 09:44:33 -0400 Received: from mail-eopbgr790054.outbound.protection.outlook.com ([40.107.79.54]:25248 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728479AbfJUNod (ORCPT ); Mon, 21 Oct 2019 09:44:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SEPZLggS84ZeSAm7Lc28QOYY0jly0iR40+U2mZs2Y4qXRvnAmxCUNCgaKetiqVA5V+qxzhzRSdLpFh2YYgV1YNIVvBvf5SzqJKCn9an2CncnyG4BQ9NmN7gNvzB7iLFneWQSSm7ISejSrKF4mG+xf8bgm/Duh+sKqN0nDwb5T3L0vihrMpUEEx2GpJtZPN/wuOySfMX0C3u236kFxFIy3/AjDD8linY9NUkaOMmUtZ5bU2uQYP1vT1QQ7zb9MKYH4Y3zZhT+TFBiMtxnTtGZxmlHR5bHPY0AkTf2PByM/CtH7S4Dyw4KSe9GXQJe7mOhDFQwIMNHQKrlinZuxlEJ+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=apjZ2nAz6pU1SLya1E1RJBCHL5pryXplLcNLpoYNiqc=; b=SsfUPln4BN0Yg3CgmV14NJDLD6A/hEMbTtAjRKkd1u248yYGRHZni+3bN0OkYBbJl1gUizzeWZgRFVfPzfoLEqdU8SbZ56GsxDn6YXmZ7cJjdvHwzUJAGea8Kzn2+bp8ER0VgOOMj7ed9tVLnWu5UzDF9QtAL+hBJWloZws2S/6kPSypyFs1kE8u85d1Nf0Zooi3h+pXUNHkiDEfvjia9L6tkOEufa+FP1eyn7Tla6my0bU+VCTynw18Bv7hDwziGa6N/RTjN9YCBa0dbMchW65tBoygeWS/ru8et1jVKlC6VU0nZAkGpBD05ffqdjTU3cvBdiKQZdwTrq1y8jTEug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=apjZ2nAz6pU1SLya1E1RJBCHL5pryXplLcNLpoYNiqc=; b=RkHzTz5ItN0DfOWovBT3LHyjTqbMd00FqYM8wgJa/nvJ++BqSxIHtQ0UpbWBbJcHVmIWrclOO42zJu5ZyLiLsyi4UXjo3pyfJK7A+9zfRAwyDC/O2rQsKaoxTPt0pBvniG1s97fuuSI9fqi1jIJBTDPYYuPKj+sOSd9XuXm2qOI= Received: from DM5PR12MB1449.namprd12.prod.outlook.com (10.172.40.14) by DM5PR12MB2582.namprd12.prod.outlook.com (52.132.141.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.16; Mon, 21 Oct 2019 13:44:30 +0000 Received: from DM5PR12MB1449.namprd12.prod.outlook.com ([fe80::e0d2:a3e2:bf3d:a28f]) by DM5PR12MB1449.namprd12.prod.outlook.com ([fe80::e0d2:a3e2:bf3d:a28f%6]) with mapi id 15.20.2347.029; Mon, 21 Oct 2019 13:44:30 +0000 From: "Hook, Gary" To: "linux-crypto@vger.kernel.org" CC: "Lendacky, Thomas" , "herbert@gondor.apana.org.au" , "davem@davemloft.net" Subject: [PATCH v2 0/2] Improve CCP error handling messages Thread-Topic: [PATCH v2 0/2] Improve CCP error handling messages Thread-Index: AQHViBWqq9mvMBhS/Eacs79HREKsVQ== Date: Mon, 21 Oct 2019 13:44:30 +0000 Message-ID: <157166543871.28287.16899240336796713483.stgit@taos> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN4PR0401CA0023.namprd04.prod.outlook.com (2603:10b6:803:21::33) To DM5PR12MB1449.namprd12.prod.outlook.com (2603:10b6:4:10::14) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Gary.Hook@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.78.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 56516d6f-6a17-4c7f-9e47-08d7562ccc75 x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: DM5PR12MB2582: x-ld-processed: 3dd8961f-e488-4e60-8e11-a82d994e183d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 0197AFBD92 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(7916004)(4636009)(39860400002)(346002)(396003)(376002)(136003)(366004)(189003)(199004)(4744005)(25786009)(54906003)(6436002)(15650500001)(71200400001)(5660300002)(66946007)(64756008)(66446008)(66476007)(6916009)(86362001)(66556008)(71190400001)(52116002)(99286004)(186003)(2351001)(2501003)(103116003)(486006)(66066001)(386003)(6506007)(26005)(4326008)(8936002)(256004)(9686003)(14444005)(6512007)(8676002)(305945005)(14454004)(316002)(478600001)(7736002)(2906002)(81156014)(81166006)(102836004)(3846002)(476003)(6116002)(33716001)(6486002)(5640700003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR12MB2582;H:DM5PR12MB1449.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: O1/n5s31itDopLi8+zKZ6jGdM7hdOKNKTS+ialUg7sTNm4+QJ9bx89sEovuFubJq7XOHnySJtddAxFLi69oYwjcp4R9PANjX8PlXbniq63UuFkuR4puNKl3mXqpnjo5W+60wgxuOG3pilWNqy/U2BsVmcDJeyqikA4qfWD97/rQntLqg4TSpm/a3jm+Ijb2SRXe2k/QP2RBlRLzN9nGtVo4W2GLPDky4DbT2W3jhF5anOAdXSn2+uXfG13zWuROqN6Iuip6/lmMOz/2eL44j3baMlYkdgfb6MOhFhb7OwTbuD2lXu0ZaflIX+sge7f45oEJ9/1ugMAVB2UKu2Mwux/GDHm2/a5pyFo4D/JhPRX7Hq7gf84bl30qc+hTnKE0ClTLCb31YRFxw3HbJQC2uQ+a88ay9L5I5p0nKENwqfWj/fahGYUIo9D37AoQva9XP Content-Type: text/plain; charset="us-ascii" Content-ID: <4E421F129B795144A67B3630C1AA455C@namprd12.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 56516d6f-6a17-4c7f-9e47-08d7562ccc75 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Oct 2019 13:44:30.6294 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: FpfIyq35vV/V3qWDAijvWFqs1+1wZ2k62ZAZ3M2P/jaiQRb455Bqkyt8eI31BVeF X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB2582 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This pair of patches is intended to clarify the messaging produced by the CCP driver when known, but non-critical, problems arise. The precipitating conditions can be determined based on simple, unalarming messages in the system log. Changes since V1: - Change hex designation '0X' to '0x' in ccp-dev-v5.c --- Gary R Hook (2): crypto: ccp - Change a message to reflect status instead of failure crypto: ccp - Verify access to device registers before initializing drivers/crypto/ccp/ccp-dev-v5.c | 14 +++++++++++++- drivers/crypto/ccp/ccp-dev.c | 15 ++++++++++++--- drivers/crypto/ccp/psp-dev.c | 18 ++++++++++++++++-- 3 files changed, 41 insertions(+), 6 deletions(-) --