qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PULL 0/6] aspeed queue
@ 2023-06-15 17:35 Cédric Le Goater
  2023-06-16 10:29 ` Richard Henderson
  0 siblings, 1 reply; 10+ messages in thread
From: Cédric Le Goater @ 2023-06-15 17:35 UTC (permalink / raw)
  To: qemu-arm, qemu-devel; +Cc: Richard Henderson, Cédric Le Goater

The following changes since commit 7efd65423ab22e6f5890ca08ae40c84d6660242f:

  Merge tag 'pull-riscv-to-apply-20230614' of https://github.com/alistair23/qemu into staging (2023-06-14 05:28:51 +0200)

are available in the Git repository at:

  https://github.com/legoater/qemu/ tags/pull-aspeed-20230615

for you to fetch changes up to 42bea956f6f7477c06186c7add62fa0107a27a9c:

  target/arm: Allow users to set the number of VFP registers (2023-06-15 18:35:58 +0200)

----------------------------------------------------------------
aspeed queue:

* extension of the rainier machine with VPD contents
* fixes for Coverity issues
* new "bmc-console" machine option
* new "vfp-d32" ARM CPU property

----------------------------------------------------------------
Cédric Le Goater (5):
      aspeed/hace: Initialize g_autofree pointer
      aspeed: Introduce a boot_rom region at the machine level
      aspeed: Use the boot_rom region of the fby35 machine
      aspeed: Introduce a "bmc-console" machine option
      target/arm: Allow users to set the number of VFP registers

Ninad Palsule (1):
      hw/arm/aspeed: Add VPD data for Rainier machine

 docs/system/arm/aspeed.rst | 11 +++++++++
 hw/arm/aspeed_eeprom.h     |  5 ++++
 target/arm/cpu.h           |  2 ++
 hw/arm/aspeed.c            | 58 ++++++++++++++++++++++++++++++++++++++--------
 hw/arm/aspeed_ast2600.c    |  2 ++
 hw/arm/aspeed_eeprom.c     | 45 ++++++++++++++++++++++++++++++++++-
 hw/arm/fby35.c             | 29 ++++++++++++-----------
 hw/misc/aspeed_hace.c      |  2 +-
 target/arm/cpu.c           | 32 +++++++++++++++++++++++++
 9 files changed, 160 insertions(+), 26 deletions(-)


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PULL 0/6] aspeed queue
  2023-06-15 17:35 Cédric Le Goater
@ 2023-06-16 10:29 ` Richard Henderson
  0 siblings, 0 replies; 10+ messages in thread
From: Richard Henderson @ 2023-06-16 10:29 UTC (permalink / raw)
  To: Cédric Le Goater, qemu-arm, qemu-devel

On 6/15/23 19:35, Cédric Le Goater wrote:
> The following changes since commit 7efd65423ab22e6f5890ca08ae40c84d6660242f:
> 
>    Merge tag 'pull-riscv-to-apply-20230614' ofhttps://github.com/alistair23/qemu  into staging (2023-06-14 05:28:51 +0200)
> 
> are available in the Git repository at:
> 
>    https://github.com/legoater/qemu/  tags/pull-aspeed-20230615
> 
> for you to fetch changes up to 42bea956f6f7477c06186c7add62fa0107a27a9c:
> 
>    target/arm: Allow users to set the number of VFP registers (2023-06-15 18:35:58 +0200)
> 
> ----------------------------------------------------------------
> aspeed queue:
> 
> * extension of the rainier machine with VPD contents
> * fixes for Coverity issues
> * new "bmc-console" machine option
> * new "vfp-d32" ARM CPU property

Applied, thanks.  Please update https://wiki.qemu.org/ChangeLog/8.1 as appropriate.


r~



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PULL 0/6] aspeed queue
@ 2024-07-02  8:00 Cédric Le Goater
  2024-07-02  8:00 ` [PULL 1/6] hw/gpio/aspeed: Add reg_table_count to AspeedGPIOClass Cédric Le Goater
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Cédric Le Goater @ 2024-07-02  8:00 UTC (permalink / raw)
  To: qemu-arm, qemu-devel; +Cc: Cédric Le Goater

The following changes since commit c80a339587fe4148292c260716482dd2f86d4476:

  Merge tag 'pull-target-arm-20240701' of https://git.linaro.org/people/pmaydell/qemu-arm into staging (2024-07-01 10:41:45 -0700)

are available in the Git repository at:

  https://github.com/legoater/qemu/ tags/pull-aspeed-20240702

for you to fetch changes up to 5b0961f7ad6790f473623703834351b6e43fbaa6:

  hw/net:ftgmac100: fix coding style (2024-07-02 07:53:53 +0200)

----------------------------------------------------------------
aspeed queue:

* Coverity fixes
* Deprecation of tacoma-bmc machine
* Buffer overflow fix in GPIO model
* Minor cleanup

----------------------------------------------------------------
Cédric Le Goater (2):
      aspeed: Deprecate the tacoma-bmc machine
      aspeed/sdmc: Check RAM size value at realize time

Jamin Lin (3):
      aspeed/soc: Fix possible divide by zero
      aspeed/sdmc: Remove extra R_MAIN_STATUS case
      hw/net:ftgmac100: fix coding style

Zheyu Ma (1):
      hw/gpio/aspeed: Add reg_table_count to AspeedGPIOClass

 docs/about/deprecated.rst     |  8 ++++++++
 include/hw/gpio/aspeed_gpio.h |  1 +
 hw/arm/aspeed.c               |  2 ++
 hw/arm/aspeed_ast27x0.c       |  2 ++
 hw/gpio/aspeed_gpio.c         | 17 +++++++++++++++++
 hw/misc/aspeed_sdmc.c         |  7 ++++++-
 hw/net/ftgmac100.c            | 12 ++++++++----
 7 files changed, 44 insertions(+), 5 deletions(-)



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PULL 1/6] hw/gpio/aspeed: Add reg_table_count to AspeedGPIOClass
  2024-07-02  8:00 [PULL 0/6] aspeed queue Cédric Le Goater
@ 2024-07-02  8:00 ` Cédric Le Goater
  2024-07-02  8:00 ` [PULL 2/6] aspeed: Deprecate the tacoma-bmc machine Cédric Le Goater
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Cédric Le Goater @ 2024-07-02  8:00 UTC (permalink / raw)
  To: qemu-arm, qemu-devel
  Cc: Zheyu Ma, Philippe Mathieu-Daudé, Andrew Jeffery

From: Zheyu Ma <zheyuma97@gmail.com>

ASan detected a global-buffer-overflow error in the aspeed_gpio_read()
function. This issue occurred when reading beyond the bounds of the
reg_table.

To enhance the safety and maintainability of the Aspeed GPIO code, this commit
introduces a reg_table_count member to the AspeedGPIOClass structure. This
change ensures that the size of the GPIO register table is explicitly tracked
and initialized, reducing the risk of errors if new register tables are
introduced in the future.

Reproducer:
cat << EOF | qemu-system-aarch64 -display none \
-machine accel=qtest, -m 512M -machine ast1030-evb -qtest stdio
readq 0x7e780272
EOF

ASAN log indicating the issue:
==2602930==ERROR: AddressSanitizer: global-buffer-overflow on address 0x55a5da29e128 at pc 0x55a5d700dc62 bp 0x7fff096c4e90 sp 0x7fff096c4e88
READ of size 2 at 0x55a5da29e128 thread T0
    #0 0x55a5d700dc61 in aspeed_gpio_read hw/gpio/aspeed_gpio.c:564:14
    #1 0x55a5d933f3ab in memory_region_read_accessor system/memory.c:445:11
    #2 0x55a5d92fba40 in access_with_adjusted_size system/memory.c:573:18
    #3 0x55a5d92f842c in memory_region_dispatch_read1 system/memory.c:1426:16
    #4 0x55a5d92f7b68 in memory_region_dispatch_read system/memory.c:1459:9
    #5 0x55a5d9376ad1 in flatview_read_continue_step system/physmem.c:2836:18
    #6 0x55a5d9376399 in flatview_read_continue system/physmem.c:2877:19
    #7 0x55a5d93775b8 in flatview_read system/physmem.c:2907:12

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2355
Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au>
---
 include/hw/gpio/aspeed_gpio.h |  1 +
 hw/gpio/aspeed_gpio.c         | 17 +++++++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/include/hw/gpio/aspeed_gpio.h b/include/hw/gpio/aspeed_gpio.h
index 904eecf62c4c..90a12ae3182a 100644
--- a/include/hw/gpio/aspeed_gpio.h
+++ b/include/hw/gpio/aspeed_gpio.h
@@ -75,6 +75,7 @@ struct AspeedGPIOClass {
     uint32_t nr_gpio_pins;
     uint32_t nr_gpio_sets;
     const AspeedGPIOReg *reg_table;
+    unsigned reg_table_count;
 };
 
 struct AspeedGPIOState {
diff --git a/hw/gpio/aspeed_gpio.c b/hw/gpio/aspeed_gpio.c
index c1781e2ba36f..6474bb8de5b5 100644
--- a/hw/gpio/aspeed_gpio.c
+++ b/hw/gpio/aspeed_gpio.c
@@ -559,6 +559,12 @@ static uint64_t aspeed_gpio_read(void *opaque, hwaddr offset, uint32_t size)
         return debounce_value;
     }
 
+    if (idx >= agc->reg_table_count) {
+        qemu_log_mask(LOG_GUEST_ERROR, "%s: idx 0x%" PRIx64 " out of bounds\n",
+                      __func__, idx);
+        return 0;
+    }
+
     reg = &agc->reg_table[idx];
     if (reg->set_idx >= agc->nr_gpio_sets) {
         qemu_log_mask(LOG_GUEST_ERROR, "%s: no getter for offset 0x%"
@@ -785,6 +791,12 @@ static void aspeed_gpio_write(void *opaque, hwaddr offset, uint64_t data,
         return;
     }
 
+    if (idx >= agc->reg_table_count) {
+        qemu_log_mask(LOG_GUEST_ERROR, "%s: idx 0x%" PRIx64 " out of bounds\n",
+                      __func__, idx);
+        return;
+    }
+
     reg = &agc->reg_table[idx];
     if (reg->set_idx >= agc->nr_gpio_sets) {
         qemu_log_mask(LOG_GUEST_ERROR, "%s: no setter for offset 0x%"
@@ -1117,6 +1129,7 @@ static void aspeed_gpio_ast2400_class_init(ObjectClass *klass, void *data)
     agc->nr_gpio_pins = 216;
     agc->nr_gpio_sets = 7;
     agc->reg_table = aspeed_3_3v_gpios;
+    agc->reg_table_count = GPIO_3_3V_REG_ARRAY_SIZE;
 }
 
 static void aspeed_gpio_2500_class_init(ObjectClass *klass, void *data)
@@ -1127,6 +1140,7 @@ static void aspeed_gpio_2500_class_init(ObjectClass *klass, void *data)
     agc->nr_gpio_pins = 228;
     agc->nr_gpio_sets = 8;
     agc->reg_table = aspeed_3_3v_gpios;
+    agc->reg_table_count = GPIO_3_3V_REG_ARRAY_SIZE;
 }
 
 static void aspeed_gpio_ast2600_3_3v_class_init(ObjectClass *klass, void *data)
@@ -1137,6 +1151,7 @@ static void aspeed_gpio_ast2600_3_3v_class_init(ObjectClass *klass, void *data)
     agc->nr_gpio_pins = 208;
     agc->nr_gpio_sets = 7;
     agc->reg_table = aspeed_3_3v_gpios;
+    agc->reg_table_count = GPIO_3_3V_REG_ARRAY_SIZE;
 }
 
 static void aspeed_gpio_ast2600_1_8v_class_init(ObjectClass *klass, void *data)
@@ -1147,6 +1162,7 @@ static void aspeed_gpio_ast2600_1_8v_class_init(ObjectClass *klass, void *data)
     agc->nr_gpio_pins = 36;
     agc->nr_gpio_sets = 2;
     agc->reg_table = aspeed_1_8v_gpios;
+    agc->reg_table_count = GPIO_1_8V_REG_ARRAY_SIZE;
 }
 
 static void aspeed_gpio_1030_class_init(ObjectClass *klass, void *data)
@@ -1157,6 +1173,7 @@ static void aspeed_gpio_1030_class_init(ObjectClass *klass, void *data)
     agc->nr_gpio_pins = 151;
     agc->nr_gpio_sets = 6;
     agc->reg_table = aspeed_3_3v_gpios;
+    agc->reg_table_count = GPIO_3_3V_REG_ARRAY_SIZE;
 }
 
 static const TypeInfo aspeed_gpio_info = {
-- 
2.45.2



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PULL 2/6] aspeed: Deprecate the tacoma-bmc machine
  2024-07-02  8:00 [PULL 0/6] aspeed queue Cédric Le Goater
  2024-07-02  8:00 ` [PULL 1/6] hw/gpio/aspeed: Add reg_table_count to AspeedGPIOClass Cédric Le Goater
@ 2024-07-02  8:00 ` Cédric Le Goater
  2024-07-02  8:00 ` [PULL 3/6] aspeed/sdmc: Check RAM size value at realize time Cédric Le Goater
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Cédric Le Goater @ 2024-07-02  8:00 UTC (permalink / raw)
  To: qemu-arm, qemu-devel; +Cc: Cédric Le Goater, Philippe Mathieu-Daudé

The tacoma-bmc machine was a board including an AST2600 SoC based BMC
and a witherspoon like OpenPOWER system. It was used for bring up of
the AST2600 SoC in labs. It can be easily replaced by the rainier-bmc
machine which is part of a real product offering.

Signed-off-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 docs/about/deprecated.rst | 8 ++++++++
 hw/arm/aspeed.c           | 2 ++
 2 files changed, 10 insertions(+)

diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst
index ff3da68208ac..5d9e4d8de725 100644
--- a/docs/about/deprecated.rst
+++ b/docs/about/deprecated.rst
@@ -256,6 +256,14 @@ images are not available, OpenWRT dropped support in 2019, U-Boot in
 2017, Linux also is dropping support in 2024. It is time to let go of
 this ancient hardware and focus on newer CPUs and platforms.
 
+Arm ``tacoma-bmc`` machine (since 9.1)
+''''''''''''''''''''''''''''''''''''''''
+
+The ``tacoma-bmc`` machine was a board including an AST2600 SoC based
+BMC and a witherspoon like OpenPOWER system. It was used for bring up
+of the AST2600 SoC in labs.  It can be easily replaced by the
+``rainier-bmc`` machine which is a real product.
+
 Backend options
 ---------------
 
diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c
index 40dc0e4c76db..53a4f665d0d0 100644
--- a/hw/arm/aspeed.c
+++ b/hw/arm/aspeed.c
@@ -1379,6 +1379,8 @@ static void aspeed_machine_tacoma_class_init(ObjectClass *oc, void *data)
     amc->i2c_init  = witherspoon_bmc_i2c_init; /* Same board layout */
     mc->default_ram_size = 1 * GiB;
     aspeed_machine_class_init_cpus_defaults(mc);
+
+    mc->deprecation_reason = "Please use the similar 'rainier-bmc' machine";
 };
 
 static void aspeed_machine_g220a_class_init(ObjectClass *oc, void *data)
-- 
2.45.2



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PULL 3/6] aspeed/sdmc: Check RAM size value at realize time
  2024-07-02  8:00 [PULL 0/6] aspeed queue Cédric Le Goater
  2024-07-02  8:00 ` [PULL 1/6] hw/gpio/aspeed: Add reg_table_count to AspeedGPIOClass Cédric Le Goater
  2024-07-02  8:00 ` [PULL 2/6] aspeed: Deprecate the tacoma-bmc machine Cédric Le Goater
@ 2024-07-02  8:00 ` Cédric Le Goater
  2024-07-02  8:00 ` [PULL 4/6] aspeed/soc: Fix possible divide by zero Cédric Le Goater
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Cédric Le Goater @ 2024-07-02  8:00 UTC (permalink / raw)
  To: qemu-arm, qemu-devel; +Cc: Cédric Le Goater, Jamin_lin

The RAM size of the SDMC device is validated for the SoC and set when
the Aspeed machines are initialized and then later used by several
SoC implementations. However, the SDMC model never checks that the RAM
size has been actually set before being used. Do that at realize.

Signed-off-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Jamin_lin < jamin_lin@aspeedtech.com>
---
 hw/misc/aspeed_sdmc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/hw/misc/aspeed_sdmc.c b/hw/misc/aspeed_sdmc.c
index 93e2e29ead87..44da085e10cb 100644
--- a/hw/misc/aspeed_sdmc.c
+++ b/hw/misc/aspeed_sdmc.c
@@ -271,6 +271,12 @@ static void aspeed_sdmc_realize(DeviceState *dev, Error **errp)
     AspeedSDMCClass *asc = ASPEED_SDMC_GET_CLASS(s);
 
     assert(asc->max_ram_size < 4 * GiB || asc->is_bus64bit);
+
+    if (!s->ram_size) {
+        error_setg(errp, "RAM size is not set");
+        return;
+    }
+
     s->max_ram_size = asc->max_ram_size;
 
     memory_region_init_io(&s->iomem, OBJECT(s), &aspeed_sdmc_ops, s,
-- 
2.45.2



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PULL 4/6] aspeed/soc: Fix possible divide by zero
  2024-07-02  8:00 [PULL 0/6] aspeed queue Cédric Le Goater
                   ` (2 preceding siblings ...)
  2024-07-02  8:00 ` [PULL 3/6] aspeed/sdmc: Check RAM size value at realize time Cédric Le Goater
@ 2024-07-02  8:00 ` Cédric Le Goater
  2024-07-02  8:00 ` [PULL 5/6] aspeed/sdmc: Remove extra R_MAIN_STATUS case Cédric Le Goater
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Cédric Le Goater @ 2024-07-02  8:00 UTC (permalink / raw)
  To: qemu-arm, qemu-devel; +Cc: Jamin Lin, Cédric Le Goater

From: Jamin Lin <jamin_lin@aspeedtech.com>

Coverity reports a possible DIVIDE_BY_ZERO issue regarding the
"ram_size" object property. This can not happen because RAM has
predefined valid sizes per SoC. Nevertheless, add a test to
close the issue.

Fixes: Coverity CID 1547113
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
[ clg: Rewrote commit log ]
Signed-off-by: Cédric Le Goater <clg@redhat.com>
---
 hw/arm/aspeed_ast27x0.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/arm/aspeed_ast27x0.c b/hw/arm/aspeed_ast27x0.c
index b6876b4862ff..18e6a8b10cae 100644
--- a/hw/arm/aspeed_ast27x0.c
+++ b/hw/arm/aspeed_ast27x0.c
@@ -211,6 +211,8 @@ static void aspeed_ram_capacity_write(void *opaque, hwaddr addr, uint64_t data,
     ram_size = object_property_get_uint(OBJECT(&s->sdmc), "ram-size",
                                         &error_abort);
 
+    assert(ram_size > 0);
+
     /*
      * Emulate ddr capacity hardware behavior.
      * If writes the data to the address which is beyond the ram size,
-- 
2.45.2



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PULL 5/6] aspeed/sdmc: Remove extra R_MAIN_STATUS case
  2024-07-02  8:00 [PULL 0/6] aspeed queue Cédric Le Goater
                   ` (3 preceding siblings ...)
  2024-07-02  8:00 ` [PULL 4/6] aspeed/soc: Fix possible divide by zero Cédric Le Goater
@ 2024-07-02  8:00 ` Cédric Le Goater
  2024-07-02  8:00 ` [PULL 6/6] hw/net:ftgmac100: fix coding style Cédric Le Goater
  2024-07-02 22:47 ` [PULL 0/6] aspeed queue Richard Henderson
  6 siblings, 0 replies; 10+ messages in thread
From: Cédric Le Goater @ 2024-07-02  8:00 UTC (permalink / raw)
  To: qemu-arm, qemu-devel; +Cc: Jamin Lin, Cédric Le Goater

From: Jamin Lin <jamin_lin@aspeedtech.com>

Coverity reports that the newly added 'case R_MAIN_STATUS' is DEADCODE
because it can not be reached. This is because R_MAIN_STATUS is handled
before in the "Unprotected registers" switch statement. Remove it.

Fixes: Coverity CID 1547112
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
[ clg: Rewrote commit log ]
Signed-off-by: Cédric Le Goater <clg@redhat.com>
---
 hw/misc/aspeed_sdmc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hw/misc/aspeed_sdmc.c b/hw/misc/aspeed_sdmc.c
index 44da085e10cb..ebf139cb5c91 100644
--- a/hw/misc/aspeed_sdmc.c
+++ b/hw/misc/aspeed_sdmc.c
@@ -595,7 +595,6 @@ static void aspeed_2700_sdmc_write(AspeedSDMCState *s, uint32_t reg,
     case R_INT_STATUS:
     case R_INT_CLEAR:
     case R_INT_MASK:
-    case R_MAIN_STATUS:
     case R_ERR_STATUS:
     case R_ECC_FAIL_STATUS:
     case R_ECC_FAIL_ADDR:
-- 
2.45.2



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PULL 6/6] hw/net:ftgmac100: fix coding style
  2024-07-02  8:00 [PULL 0/6] aspeed queue Cédric Le Goater
                   ` (4 preceding siblings ...)
  2024-07-02  8:00 ` [PULL 5/6] aspeed/sdmc: Remove extra R_MAIN_STATUS case Cédric Le Goater
@ 2024-07-02  8:00 ` Cédric Le Goater
  2024-07-02 22:47 ` [PULL 0/6] aspeed queue Richard Henderson
  6 siblings, 0 replies; 10+ messages in thread
From: Cédric Le Goater @ 2024-07-02  8:00 UTC (permalink / raw)
  To: qemu-arm, qemu-devel; +Cc: Jamin Lin, Cédric Le Goater

From: Jamin Lin <jamin_lin@aspeedtech.com>

Fix coding style issues from checkpatch.pl

Test command:
./scripts/checkpatch.pl --no-tree -f hw/net/ftgmac100.c

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
---
 hw/net/ftgmac100.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/hw/net/ftgmac100.c b/hw/net/ftgmac100.c
index 74b6c3d9a75b..25e4c0cd5bfe 100644
--- a/hw/net/ftgmac100.c
+++ b/hw/net/ftgmac100.c
@@ -238,7 +238,8 @@ typedef struct {
  */
 #define FTGMAC100_MAX_FRAME_SIZE    9220
 
-/* Limits depending on the type of the frame
+/*
+ * Limits depending on the type of the frame
  *
  *   9216 for Jumbo frames (+ 4 for VLAN)
  *   1518 for other frames (+ 4 for VLAN)
@@ -533,8 +534,10 @@ static void ftgmac100_do_tx(FTGMAC100State *s, uint32_t tx_ring,
             break;
         }
 
-        /* record transmit flags as they are valid only on the first
-         * segment */
+        /*
+         * record transmit flags as they are valid only on the first
+         * segment
+         */
         if (bd.des0 & FTGMAC100_TXDES0_FTS) {
             flags = bd.des1;
         }
@@ -639,7 +642,8 @@ static bool ftgmac100_can_receive(NetClientState *nc)
  */
 static uint32_t ftgmac100_rxpoll(FTGMAC100State *s)
 {
-    /* Polling times :
+    /*
+     * Polling times :
      *
      * Speed      TIME_SEL=0    TIME_SEL=1
      *
-- 
2.45.2



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PULL 0/6] aspeed queue
  2024-07-02  8:00 [PULL 0/6] aspeed queue Cédric Le Goater
                   ` (5 preceding siblings ...)
  2024-07-02  8:00 ` [PULL 6/6] hw/net:ftgmac100: fix coding style Cédric Le Goater
@ 2024-07-02 22:47 ` Richard Henderson
  6 siblings, 0 replies; 10+ messages in thread
From: Richard Henderson @ 2024-07-02 22:47 UTC (permalink / raw)
  To: Cédric Le Goater, qemu-arm, qemu-devel

On 7/2/24 01:00, Cédric Le Goater wrote:
> The following changes since commit c80a339587fe4148292c260716482dd2f86d4476:
> 
>    Merge tag 'pull-target-arm-20240701' ofhttps://git.linaro.org/people/pmaydell/qemu-arm  into staging (2024-07-01 10:41:45 -0700)
> 
> are available in the Git repository at:
> 
>    https://github.com/legoater/qemu/  tags/pull-aspeed-20240702
> 
> for you to fetch changes up to 5b0961f7ad6790f473623703834351b6e43fbaa6:
> 
>    hw/net:ftgmac100: fix coding style (2024-07-02 07:53:53 +0200)
> 
> ----------------------------------------------------------------
> aspeed queue:
> 
> * Coverity fixes
> * Deprecation of tacoma-bmc machine
> * Buffer overflow fix in GPIO model
> * Minor cleanup

Applied, thanks.  Please update https://wiki.qemu.org/ChangeLog/9.1 as appropriate.


r~



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-07-02 22:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-02  8:00 [PULL 0/6] aspeed queue Cédric Le Goater
2024-07-02  8:00 ` [PULL 1/6] hw/gpio/aspeed: Add reg_table_count to AspeedGPIOClass Cédric Le Goater
2024-07-02  8:00 ` [PULL 2/6] aspeed: Deprecate the tacoma-bmc machine Cédric Le Goater
2024-07-02  8:00 ` [PULL 3/6] aspeed/sdmc: Check RAM size value at realize time Cédric Le Goater
2024-07-02  8:00 ` [PULL 4/6] aspeed/soc: Fix possible divide by zero Cédric Le Goater
2024-07-02  8:00 ` [PULL 5/6] aspeed/sdmc: Remove extra R_MAIN_STATUS case Cédric Le Goater
2024-07-02  8:00 ` [PULL 6/6] hw/net:ftgmac100: fix coding style Cédric Le Goater
2024-07-02 22:47 ` [PULL 0/6] aspeed queue Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
2023-06-15 17:35 Cédric Le Goater
2023-06-16 10:29 ` Richard Henderson

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 NNTP newsgroup(s).