Linux-ACPI Archive mirror
 help / color / mirror / Atom feed
From: Sudeep Holla <sudeep.holla@arm.com>
To: linux-kernel@vger.kernel.org, Jassi Brar <jassisinghbrar@gmail.com>
Cc: linux-acpi@vger.kernel.org, Justin He <justin.he@arm.com>,
	Sudeep Holla <sudeep.holla@arm.com>
Subject: Re: [PATCH] mailbox: pcc: Handle all PCC subtypes correctly in pcc_mbox_irq
Date: Wed, 22 Dec 2021 13:40:53 +0000	[thread overview]
Message-ID: <20211222134053.7yibtok42iluc5go@bogus> (raw)
In-Reply-To: <20211209092146.620024-1-sudeep.holla@arm.com>

Hi Jassi,

On Thu, Dec 09, 2021 at 09:21:46AM +0000, Sudeep Holla wrote:
> Commit c45ded7e1135 ("mailbox: pcc: Add support for PCCT extended PCC
> subspaces(type 3/4)") enabled the type3/4 of PCCT, but the change in
> pcc_mbox_irq breaks the other PCC subtypes.
> 
> The kernel reports a warning on an Ampere eMag server
> 
> -->8
>  CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.16.0-rc4 #127
>  Hardware name: MiTAC RAPTOR EV-883832-X3-0001/RAPTOR, BIOS 0.14 02/22/2019
>  Call trace:
>   dump_backtrace+0x0/0x200
>   show_stack+0x20/0x30
>   dump_stack_lvl+0x68/0x84
>   dump_stack+0x18/0x34
>   __report_bad_irq+0x54/0x17c
>   note_interrupt+0x330/0x428
>   handle_irq_event_percpu+0x90/0x98
>   handle_irq_event+0x4c/0x148
>   handle_fasteoi_irq+0xc4/0x188
>   generic_handle_domain_irq+0x44/0x68
>   gic_handle_irq+0x84/0x2ec
>   call_on_irq_stack+0x28/0x34
>   do_interrupt_handler+0x88/0x90
>   el1_interrupt+0x48/0xb0
>   el1h_64_irq_handler+0x18/0x28
>   el1h_64_irq+0x7c/0x80
> ---
> 
> The main reason for that is the command complete register is read as 0
> if the GAS register doesn't exist for the same which is the case for
> PCC subtypes 0-2. Fix it by checking for non-zero value before masking
> with the status flag and checking for command completion.
> 
> Fixes: c45ded7e1135 ("mailbox: pcc: Add support for PCCT extended PCC subspaces(type 3/4)")

Can you take this patch and [1] for v5.17 ? This one is a bug fix and good
to get it merged ASAP.

-- 
Regards,
Sudeep

[1]  https://lore.kernel.org/r/20211209082143.619354-1-sudeep.holla@arm.com

      reply	other threads:[~2021-12-22 13:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-09  9:21 [PATCH] mailbox: pcc: Handle all PCC subtypes correctly in pcc_mbox_irq Sudeep Holla
2021-12-22 13:40 ` Sudeep Holla [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211222134053.7yibtok42iluc5go@bogus \
    --to=sudeep.holla@arm.com \
    --cc=jassisinghbrar@gmail.com \
    --cc=justin.he@arm.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).