Re: [PATCH] fw_cfg: Set the max fw_cfg mem read size to 8 bytes

2021-05-18 Thread yangxiaojuan
Hi,Laszlo Thanks for your kindly reply.This is my first time to submit code to the community. I spent some time learning how to configure the email and reply. Yes you are right, fw_cfg_init_mem_wide can solve my problem. I just want to access 8 bytes width.I did not look at the code carefully.I

Re: [PATCH] fw_cfg: Set the max fw_cfg mem read size to 8 bytes

2021-05-18 Thread Laszlo Ersek
On 05/18/21 14:43, Xiaojuan Yang wrote: > From: yangxiaojuan > > fw_cfg_data_read() func supports access widths from > 1 to 8 bytes while the ops set the wrong read size. > > Most arch use 8 bytes to send ram_size to bios. > > Signed-off-by: yangxiaojuan > --- > hw/nvram/fw_cfg.c | 2 +- > 1

[PATCH] fw_cfg: Set the max fw_cfg mem read size to 8 bytes

2021-05-18 Thread Xiaojuan Yang
From: yangxiaojuan fw_cfg_data_read() func supports access widths from 1 to 8 bytes while the ops set the wrong read size. Most arch use 8 bytes to send ram_size to bios. Signed-off-by: yangxiaojuan --- hw/nvram/fw_cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git