Received: by 10.223.176.5 with SMTP id f5csp2396806wra; Mon, 5 Feb 2018 03:26:40 -0800 (PST) X-Google-Smtp-Source: AH8x2255PozhD4JHt+IOl13/OXT7tLeEy5GeFgpOJAm+aWrHjdYz86PPEcLl6pyL996/PAz6BGAg X-Received: by 10.99.9.1 with SMTP id 1mr31524214pgj.257.1517830000706; Mon, 05 Feb 2018 03:26:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517830000; cv=none; d=google.com; s=arc-20160816; b=RRAV6lerR0pW2TWkMznxLk3JWJ4x7lmu0j/Won1UVh9yrz8BCxStPraM7Y5/nSz4FS /k+aNmYRF3T3KnHm6IRskD3SX+qguf0WgYhKvZc4aOltfo7VQnnA2xQWcwAOtvwrZa9H SLgVWc6uBuTVVseZt7rK2nRSDKE1JViqTLNdtCSKpkfmF6EAiotGdpdUwkCyaUkIOtUF +8toEa9oPp5KrvRxBC6KcqC7zUf/EYCMJ1ns+lb2ST19IfYQcxompvBLJXeCHHLmhASO 2tWMSakVWifYCjflWp58q7Cj6WKSpQLZxuIAcmFrXfR1wAjU7s7J85vKHT/ceP5qAq4F zsIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=2kKZ2qSSKWOPXCKETB2WSQV0iBl+euK1x3LOh+XlN9w=; b=XTQ+F+nvstGAPe3r+1X2cJOqkzBiuWTBik9Eq5nkIBGtBMWquFUnTRTx6zW6T7wObN o1fKk+EfNYw6CQemhDYqsYe8VZemOhfGGxknhzNbUiIKVOMj+QunNMcHVZhxo2v64uyD ULPl/N0T2iDJGQ7odH6X7jFTY0EiIrjAgPeSm1XNz/fpEQggpuBoc35iJJEHUw9T8pRY 2RgOY5JQZX//pZuPLwKqtMi6VExTBw1hl29VthbcZWLYcOXbX+gjQM8+8zbAICNxiJU0 HsN1W6UMxjebvdIVMiuJfgzc0iKDnPCDUTomY0CvVK5nSZZ/rre06AkiQfJdPBWBo6Ee FWRg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r21si381685pfh.1.2018.02.05.03.26.26; Mon, 05 Feb 2018 03:26:40 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752494AbeBELYl convert rfc822-to-8bit (ORCPT + 99 others); Mon, 5 Feb 2018 06:24:41 -0500 Received: from szxga03-in.huawei.com ([45.249.212.189]:2106 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752253AbeBELYf (ORCPT ); Mon, 5 Feb 2018 06:24:35 -0500 Received: from DGGEMA402-HUB.china.huawei.com (unknown [172.30.72.54]) by Forcepoint Email with ESMTP id ECF1F94A24068; Mon, 5 Feb 2018 19:24:31 +0800 (CST) Received: from DGGEMA503-MBS.china.huawei.com ([169.254.2.193]) by DGGEMA402-HUB.china.huawei.com ([10.3.20.43]) with mapi id 14.03.0361.001; Mon, 5 Feb 2018 19:24:26 +0800 From: gengdongjiu To: James Morse CC: "christoffer.dall@linaro.org" , "marc.zyngier@arm.com" , "linux@armlinux.org.uk" , "catalin.marinas@arm.com" , "rjw@rjwysocki.net" , "bp@alien8.de" , "robert.moore@intel.com" , "lv.zheng@intel.com" , "corbet@lwn.net" , "will.deacon@arm.com" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.cs.columbia.edu" , "linux-acpi@vger.kernel.org" , "devel@acpica.org" , Huangshaoyu , "Liujun (Jun Liu)" Subject: Re: [PATCH v9 3/7] acpi: apei: Add SEI notification type support for ARMv8 Thread-Topic: [PATCH v9 3/7] acpi: apei: Add SEI notification type support for ARMv8 Thread-Index: AdOec8IPP3yhjBs7S8ikN8+tj1CENQ== Date: Mon, 5 Feb 2018 11:24:26 +0000 Message-ID: <0184EA26B2509940AA629AE1405DD7F201AC71DE@DGGEMA503-MBS.china.huawei.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.142.68.147] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [...] > > > Yes, I know you are dong that. Your serial's patch will consider all above > things, right? > > Assuming I got it right, yes. It currently makes the race Xie XiuQi spotted worse, > which I want to fix too. (details on the cover letter) Ok. > > > > If your patch can be consider that, this patch can based on your patchset. > thanks. > > I'd like to pick these patches onto the end of that series, but first I want to > know what NOTIFY_SEI means for any OS. The ACPI spec doesn't say, and > because its asynchronous, route-able and mask-able, there are many more > corners than NOTFIY_SEA. > > This thing is a notification using an emulated SError exception. (emulated > because physical-SError must be routed to EL3 for firmware-first, and > virtual-SError belongs to EL2). > > Does your firmware emulate SError exactly as the TakeException() pseudo code > in the Arm-Arm? Yes, it is. > Is the emulated SError routed following the routing rules for HCR_EL2.{AMO, > TGE}? Yes, it is. > What does your firmware do when it wants to emulate SError but its masked? > (e.g.1: The physical-SError interrupted EL2 and the SPSR shows EL2 had > PSTATE.A set. > e.g.2: The physical-SError interrupted EL2 but HCR_EL2 indicates the > emulated SError should go to EL1. This effectively masks SError.) Currently we does not consider much about the mask status(SPSR). I remember that you ever suggested firmware should reboot if the mask status is set(SPSR), right? I ever suggest our firmware team to evaluate that, but there is no response. I CC "liu jun" who is our UEFI firmware Architect, if you have firmware requirements, you can raise again. > > Answers to these let us determine whether a bug is in the firmware or the > kernel. If firmware is expecting the OS to do something special, I'd like to know > about it from the beginning! I know your meaning, thanks for raising it again. > > > >>> Expose API ghes_notify_sei() to external users. External modules can > >>> call this exposed API to parse APEI table and handle the SEI > >>> notification. > >> > >> external modules? You mean called by the arch code when it gets this > NOTIFY_SEI? > > > yes, called by kernel ARCH code, such as below, I remember I have discussed > with you. > > Sure. The phrase 'external modules' usually means the '.ko' files that live in > /lib/modules, nothing outside the kernel tree should be doing this stuff. I will rename 'external modules' to other name. Thanks. > > > Thanks, > > James