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

Re: [PATCH v2 2/2] x86/APIC: modify error_interrupt() to output using single printk()


  • To: Elliott Mitchell <ehem+xen@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 20 Mar 2023 09:56:54 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • 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=O6PTzaf9u4xx5ygtYcxNBmdQSHSEboNcOLlvMIeyAJ4=; b=YfT3xidtpoLDOEBl1QRFba5wy6PwNFm17HwsV9mMzwzOnC3D3OrA1WB1WRhfgHYFEWwZZFmkFBs5e579llHlDET4TDrnHipcd6fFF+v4vMVv0RivgwtzP7T5j0nbe2ZH0ncDw6p0zRZ6FXXuHikUnwricrPH6Uh+WmJ81QCHnqtu30Ig/Y1wOgsfouJd+EYxU3JMfutAQfeYtxU9yojafjj4o08mDsqJV5j0FQ1dD2YSzm3pUUFZd4QeOwkUvPx4ON5f9+cs/4hcTbpNq0oUpm/ROdSn9DpaJFAzrOCyPVS+5q03m9LYBM0nMtWIu4IvtH+f1QlDDmeqPtbw1yO0qQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cMw4EV5VcqHVxDbx29OfYNWNHW+Kjhou1F2pdxzJo0gQbXDOqGEOddHb+7Zbcg/S8qcxWFtdciraAvus2GI1f4prD+Hc6KFd6FKegRAFN9ansEERDbUTZua8LcKYQ0LGIQYCgaszh/Z4GxmDtCmxNkzW7Lnodqm/XWVetX8npbw6At/bZ49IdUWGZPpmj5wVcDWzWWb+JEmKOS5c/W/SeWMB9OkRNeJzrn9lVsZu4MY2HE85svAjZ6pgk6L3p2d4LBvOIfWmfg6Azhh5zO/bsVqZc9EHlppKhS3Mnf5yq+XwvQ2tkQO5ubF9yAJduZxCb41ZHjCHv/M62DkZOGrIGw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 20 Mar 2023 08:57:04 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 17.03.2023 20:53, Elliott Mitchell wrote:
> This takes care of the issue of APIC errors tending to occur on multiple
> cores at one.  In turn this tends to causes the error messages to be

Nit: "at once"?

> merged together, making understanding them difficult.
> 
> Signed-off-by: Elliott Mitchell <ehem+xen@xxxxxxx>

Here it becomes clear why you're making the change in patch 1; as you say
in the cover letter these may better be folded (or else, as said there,
patch 1 needs better justification).

> @@ -1419,12 +1420,12 @@ static void cf_check error_interrupt(struct 
> cpu_user_regs *regs)
>      v1 = apic_read(APIC_ESR);
>      ack_APIC_irq();
>  
> -    printk(XENLOG_DEBUG "APIC error on CPU%u: %02x(%02x)",
> -            smp_processor_id(), v , v1);
>      for ( i = 7; i >= 0; --i )
> -        if ( v1 & (1 << i) )
> -            printk("%s", esr_fields[i]);
> -    printk("\n");
> +        entries[i] = v1 & (1 << i) ? esr_fields[i] : "";
> +    printk(XENLOG_DEBUG "APIC error on CPU%u: %02x(%02x)"
> +            "%s%s%s%s%s%s%s%s" "\n",
> +            smp_processor_id(), v , v1, entries[0], entries[1], entries[2],
> +            entries[3], entries[4], entries[5], entries[6], entries[7]);

Two style nits: Indentation wants fixing here (it was wrong in the original
code already), and the stray blank between v and the comma also wants
dropping at this occasion.

Jan



 


Rackspace

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