[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 1/3] xen/arm: Add imx8q{m,x} platform glue


  • To: John Ernberg <john.ernberg@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Wed, 10 Apr 2024 09:05:30 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=actia.se smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=eErT36/RII/2aOMLaO00ftmzJ1j8KmvR+NeXdBzkLwo=; b=AAg2rthEIuPBrwtaDgckEC82nl3F0iElO8YPxO609vm/AGiD8cfRM+AO+xXA+WiTf9BKbxWrjrVi92XgI5aIuKO+DIGgfCQ6hD8BnwK6Loegt5faKG+noN9iqzWb+9sQW76B5FnTwGEpK+1XIRPBrTvszxU6Yk75X+i3b2ePTjI7ZUqSiWmGGhXCYK/6gG+3sW3cXx+knKUdC9AhC10BvvajChSQelxF6BVcGT1/zFMULJBi3DwPv9LTR+JzYefyw7bXuvbq6VawaFFJzz+CFSCtGfIxGtNMuCnTUYmlLvLU3QsuG77rnGE6umsg3jU/R1OKPMA5rGz1YI8uRJqVgw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D01+JqgpcXFSnItoaLxsZKsp8LY2aoJrT941NWyxVG0oyxy0NQDFrdIwu6RvVQXz61mxA4ksDqSdU48/6ldJzv7pFWuv65/CtJZoHb4vz3tBGKYojbGlUkcX1Lj6pZ/FR2Txym3iMMx/+KAQWoYZEV4Mb6Qgpkht3KbaoxssaoB9l/zYSu4PBINbA3vy5VS9B7CBkIb+3Fno/dx6XqHqUjoZ7d+aHPVGZUXc/T7yEygFlTFt+6Gv+MmF1LlfWzkkQee3PhLcBKYHVDDFB8YfYUnaGCVRqwL7vDTC/pRExvuY2atnWiK6i2YSArQ13Eh/OytLx2Pyhx7+XitRKhL5zA==
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Peng Fan <peng.fan@xxxxxxx>, Jonas Blixt <jonas.blixt@xxxxxxxx>
  • Delivery-date: Wed, 10 Apr 2024 07:05:40 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi John,

On 10/04/2024 08:53, John Ernberg wrote:
> 
> 
> On 4/9/24 8:47 AM, Michal Orzel wrote:
>> Hi John,
>>
>> On 08/04/2024 18:11, John Ernberg wrote:
>>>
>>>
>>> When using Linux for dom0 there are a bunch of drivers that need to do SMC
>>> SIP calls into the firmware to enable certain hardware bits like the
>>> watchdog.
>>>
>>> Provide a basic platform glue that implements the needed SMC forwarding.
>>>
>>> The format of these calls are as follows:
>>>   - reg 0: function ID
>>>   - reg 1: subfunction ID (when there's a subfunction)
>>>   remaining regs: args
>>>
>>> For now we only allow Dom0 to make these calls as they are all managing
>>> hardware. There is no specification for these SIP calls, the IDs and names
>>> have been extracted from the upstream linux kernel and the vendor kernel.
>>>
>>> Most of the SIP calls are only available for the iMX8M series of SoCs, so
>>> they are easy to reject and they need to be revisited when iMX8M series
>>> support is added.
>> Stale paragraph. Should be removed given that the driver targets only 
>> Q{M,XP}.
>>
>>>
>>>  From the other calls we can reject CPUFREQ because Dom0 cannot make an
>>> informed decision regarding CPU frequency scaling, WAKEUP_SRC is to wake
>>> up from suspend, which Xen doesn't support at this time.
>>>
>>> This leaves the TIME SIP, OTP SIPs, BUILDINFO SIP and TEMP ALARM SIP, which
>>> for now are allowed to Dom0.
>> BUILDINFO, TEMP ALARM are leftovers from previous revision.
>>
>>>
>>> NOTE: This code is based on code found in NXP Xen tree located here:
>>> https://github.com/nxp-imx/imx-xen/blob/lf-5.10.y_4.13/xen/arch/arm/platforms/imx8qm.c
>>>
>>> Signed-off-by: Peng Fan <peng.fan@xxxxxxx>
>>> [jernberg: Add SIP call filtering]
>>> Signed-off-by: John Ernberg <john.ernberg@xxxxxxxx>
>> Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>
>>
>> The commit msg can be fixed on commit.
>>
>> ~Michal
> 
> 
> Apologies for forgetting to adjust that. Let me know if it's easier for
> you if I do a v5 with the fixed commit message.
> 
> Thanks! // John Ernberg

The series is already committed and Stefano fixed my remarks on commit.

~Michal



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.