All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron via <qemu-devel@nongnu.org>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: <qemu-devel@nongnu.org>, Fan Ni <fan.ni@samsung.com>,
	Paolo Bonzini <pbonzini@redhat.com>, <mst@redhat.com>
Subject: Re: [PATCH 1/2] hw/cxl: Remove unused component_registers::io_registers[] array
Date: Thu, 23 Jan 2025 09:49:35 +0000	[thread overview]
Message-ID: <20250123094935.00003937@huawei.com> (raw)
In-Reply-To: <20250122065624.34203-2-philmd@linaro.org>

On Wed, 22 Jan 2025 07:56:23 +0100
Philippe Mathieu-Daudé <philmd@linaro.org> wrote:

> Avoid wasting 4K for each component, remove unused io_registers[].
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>

These may need to come back for correctness if anyone starts
actually accessing them in the OS, but for now this is fine.
We'd have to deal with filling them with plausible values anyway
if that becomes an issue.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

I can pick these up and send on in a set to mst, or mst pick up
directly, or got through another tree. Don't mind!
> ---
>  include/hw/cxl/cxl_component.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/include/hw/cxl/cxl_component.h b/include/hw/cxl/cxl_component.h
> index 945ee6ffd04..ac61c3f33a5 100644
> --- a/include/hw/cxl/cxl_component.h
> +++ b/include/hw/cxl/cxl_component.h
> @@ -218,7 +218,6 @@ typedef struct component_registers {
>       *   0xe000 - 0xe3ff CXL ARB/MUX registers
>       *   0xe400 - 0xffff RSVD
>       */
> -    uint32_t io_registers[CXL2_COMPONENT_IO_REGION_SIZE >> 2];
>      MemoryRegion io;
>  
>      uint32_t cache_mem_registers[CXL2_COMPONENT_CM_REGION_SIZE >> 2];



  reply	other threads:[~2025-01-23  9:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-22  6:56 [PATCH 0/2] hw/cxl: Add tracing for component I/O region Philippe Mathieu-Daudé
2025-01-22  6:56 ` [PATCH 1/2] hw/cxl: Remove unused component_registers::io_registers[] array Philippe Mathieu-Daudé
2025-01-23  9:49   ` Jonathan Cameron via [this message]
2025-01-22  6:56 ` [PATCH 2/2] hw/cxl: Allow tracing component I/O accesses Philippe Mathieu-Daudé
2025-01-23  9:51   ` Jonathan Cameron via
2025-01-24 16:20     ` Jonathan Cameron via
2025-01-24 16:28       ` Philippe Mathieu-Daudé
2025-01-31 19:07         ` Jonathan Cameron via

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=20250123094935.00003937@huawei.com \
    --to=qemu-devel@nongnu.org \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=fan.ni@samsung.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.