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

Re: [Xen-devel] [PATCH v4 07/21] arm/acpi: Print GIC information when MADT is parsed



On Sat, 23 Jan 2016, Shannon Zhao wrote:
> From: Shannon Zhao <shannon.zhao@xxxxxxxxxx>
> 
> When MADT is parsed, print GIC information to make the boot log look
> pretty.
> 
> Signed-off-by: Hanjun Guo <hanjun.guo@xxxxxxxxxx>
> Signed-off-by: Tomasz Nowicki <tomasz.nowicki@xxxxxxxxxx>
> Signed-off-by: Shannon Zhao <shannon.zhao@xxxxxxxxxx>

Reviewed-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>


> V4: use PRIx64 instead of %llx
> ---
>  xen/drivers/acpi/tables.c | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
> 
> diff --git a/xen/drivers/acpi/tables.c b/xen/drivers/acpi/tables.c
> index 4e590de..84a290f 100644
> --- a/xen/drivers/acpi/tables.c
> +++ b/xen/drivers/acpi/tables.c
> @@ -189,6 +189,28 @@ void __init acpi_table_print_madt_entry(struct 
> acpi_subtable_header *header)
>               }
>               break;
>  
> +     case ACPI_MADT_TYPE_GENERIC_INTERRUPT:
> +             {
> +                     struct acpi_madt_generic_interrupt *p =
> +                             (struct acpi_madt_generic_interrupt *)header;
> +                     printk(KERN_INFO PREFIX
> +                            "GICC (acpi_id[0x%04x] address[0x%"PRIx64"] 
> MPIDR[0x%"PRIx64"] %s)\n",
> +                            p->uid, p->base_address, p->arm_mpidr,
> +                            (p->flags & ACPI_MADT_ENABLED) ? "enabled" : 
> "disabled");
> +
> +             }
> +             break;
> +
> +     case ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR:
> +             {
> +                     struct acpi_madt_generic_distributor *p =
> +                             (struct acpi_madt_generic_distributor *)header;
> +                     printk(KERN_INFO PREFIX
> +                            "GIC Distributor (gic_id[0x%04x] 
> address[0x%"PRIx64"] gsi_base[%d])\n",
> +                            p->gic_id, p->base_address, p->global_irq_base);
> +             }
> +             break;
> +
>       default:
>               printk(KERN_WARNING PREFIX
>                      "Found unsupported MADT entry (type = %#x)\n",
> -- 
> 2.0.4
> 
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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