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

Re: [PATCH] xen/arm: Fix arm32 build failure when early printk is enabled


  • To: Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Thu, 29 Feb 2024 13:32:34 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=xen.org 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=FlaPRp4dxBv1LE1vxL6Yk9Nptb5zzoJhHzbFlvkzh90=; b=isXVQ4P7z0sCDJm16JN5bhh/Nl6XJt+d1/mEadGmk3f1LfXQAJrYN1TjN3nmLDvtf7vm2tf26UJogrC7KT1s8FWGGvMEFAcH7OZ0KbNVXQfwMItkW7jiz+TBVT56rY8hkDk56wYRj7gMmQ+ezcHhkLE2vSwaLa0ohhI7qtQUhbwuv+yEkohf5RACJg6ppk1h6gpDBaRCu2BqlJQyIoWdRnEynGB/6L7tJKPcRChL36vWjGLXk9miGRjXez9PKkDHxpA4ZinE5evOHwG0SmmEHWOdBVJ9N1hXTGH55STZsvrZBD7mwMDH/vH0jjGxeP5RZCAaFiOma1rjguQC3YAHHw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EIltx6Sz8sr5t+Ht/MdXpzOkYwyw1DsQv63EumAQWepxxj3rZIqQw4QjzZ2t+P13y/3nOKLoiNQ6cfszM3F2Cwyf0jEXK3js+srylU3jrFwfHNJjjYl1B+X02fPxqRyyCgREzHr5t/C3rFNgl5B2GT6BrnbU1mfdSSygpDfoUeoCSCC3uLax6XgTx5ofRobqLqhlpcyg4XeBy1K2pC8tck08lczomg91yE77C+QrwzlXR4FoC91qZyjdGpkHzl3HGwn1oehWP0yyebwlBGb56WPxpkbxrJYYfJ36x5eLFnII6Njen79TzEQVH3nKf8QI8DEcdnded+WpYx5gOXwB7Q==
  • Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Thu, 29 Feb 2024 12:32:44 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 29/02/2024 11:10, Julien Grall wrote:
> 
> 
> Hi,
> 
> On 29/02/2024 10:07, Michal Orzel wrote:
>>
>>
>> On 28/02/2024 23:27, Stefano Stabellini wrote:
>>>
>>>
>>> On Wed, 28 Feb 2024, Michal Orzel wrote:
>>>> Hi Julien,
>>>>
>>>> On 28/02/2024 12:42, Julien Grall wrote:
>>>>>
>>>>>
>>>>> Hi Michal,
>>>>>
>>>>> On 28/02/2024 10:35, Michal Orzel wrote:
>>>>>> Commit 0441c3acc7e9 forgot to rename FIXMAP_CONSOLE to FIX_CONSOLE in
>>>>>> TEMPORARY_EARLY_UART_VIRTUAL_ADDRESS macro. This results in a build
>>>>>> failure on arm32, when early printk is enabled:
>>>>>> arch/arm/arm32/mmu/head.S:311: Error: invalid operands (*UND* and *ABS* 
>>>>>> sections) for `*'
>>>>>
>>>>> Good catch! Somewhat related I wonder whether we should add earlyprintk
>>>>> testing in gitlab?
>>>> I thought about adding this and I think we should at least have build jobs 
>>>> (hypervisor only, no toolstack)
>>>> selecting early printk. When it comes to testing if early printk works, 
>>>> I'm not sure. It'd be nice
>>>> but FWIR we have limited bandwidth.
>>>>
>>>> @Stefano, what's your opinion?
>>>
>>> I think it would be a good and quick test to have. To save testing
>>> bandwidth I think we should reduce the amount of debug/non-debug
>>> variations of the same tests that we have.
>> Yes, I suggested that some time ago. We could keep both versions for generic 
>> tests,
>> but remove the non-debug version (unless you prefer to do the opposite) for:
> 
> I think it makes sense during development window to use the debug
> version. However, I think we want some non-debug testing during the
> hardening phase.
> 
> Can gitlab read CONFIG_DEBUG from Config.mk?
At the moment, we have 2 types of jobs - non debug and debug (with -debug 
suffix).
They set "debug" variable accordingly, which is used later on to modify .config:
echo "CONFIG_DEBUG=${debug}" >> xen/.config

Without this line, Xen would be built according to default value of 
CONFIG_DEBUG.
That said, I don't think we want to get back to this behavior.

If we want to save some bandwidth, we should make a decision whether to keep 
debug or non-debug versions.
x86 has both versions for build jobs and mostly debug test jobs.

~Michal



 


Rackspace

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