MA there)
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
---
drivers/firmware/qemu_fw_cfg.c | 47 ++
1 file changed, 34 insertions(+), 13 deletions(-)
diff --git a/drivers/firmware/qemu_fw_cfg.c b/drivers/firmware/qemu_fw_cfg.c
index fd5
MA there)
Signed-off-by: Marc-André Lureau
---
drivers/firmware/qemu_fw_cfg.c | 47 ++
1 file changed, 34 insertions(+), 13 deletions(-)
diff --git a/drivers/firmware/qemu_fw_cfg.c b/drivers/firmware/qemu_fw_cfg.c
index fd576ba7b337..3721dc868a2b 100644
--- a
gt;
CC: Dave Young <dyo...@redhat.com>
CC: Dave Young <dyo...@redhat.com>
CC: Hari Bathini <hbath...@linux.vnet.ibm.com>
CC: Tony Luck <tony.l...@intel.com>
CC: Vivek Goyal <vgo...@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Ack
: Tony Luck
CC: Vivek Goyal
Signed-off-by: Marc-André Lureau
Acked-by: Gabriel Somlo
---
kernel/crash_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/crash_core.c b/kernel/crash_core.c
index 4f63597c824d..a93590cdd9e1 100644
--- a/kernel/crash_core.c
+++ b/kernel/crash_core.c
Add an optional kernel module (or command line) parameter
using the following syntax:
[qemu_fw_cfg.]ioport=@[::[:]]
or
[qemu_fw_cfg.]mmio=@[::[:]]
and initializes the register address using given or default offset.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.
Add an optional kernel module (or command line) parameter
using the following syntax:
[qemu_fw_cfg.]ioport=@[::[:]]
or
[qemu_fw_cfg.]mmio=@[::[:]]
and initializes the register address using given or default offset.
Signed-off-by: Marc-André Lureau
Reviewed-by: Gabriel Somlo
If the "etc/vmcoreinfo" fw_cfg file is present and we are not running
the kdump kernel, write the addr/size of the vmcoreinfo ELF note.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Reviewed-by: Gabriel Somlo <so...@cmu.edu>
---
drivers/firmw
If the "etc/vmcoreinfo" fw_cfg file is present and we are not running
the kdump kernel, write the addr/size of the vmcoreinfo ELF note.
Signed-off-by: Marc-André Lureau
Reviewed-by: Gabriel Somlo
---
drivers/firmware/qemu_fw_cfg.c | 84 ++
1 fi
gt;
CC: Dave Young <dyo...@redhat.com>
CC: Dave Young <dyo...@redhat.com>
CC: Hari Bathini <hbath...@linux.vnet.ibm.com>
CC: Tony Luck <tony.l...@intel.com>
CC: Vivek Goyal <vgo...@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Ack
: Tony Luck
CC: Vivek Goyal
Signed-off-by: Marc-André Lureau
Acked-by: Gabriel Somlo
---
kernel/crash_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/crash_core.c b/kernel/crash_core.c
index 4f63597c824d..a93590cdd9e1 100644
--- a/kernel/crash_core.c
+++ b/kernel/crash_core.c
al changes.
So far, only one call in fw_cfg_register_dir_entries() is using
kmalloc'ed buf and is thus clearly eligible to DMA read. But the
fw_cfg_dma_transfer() code is common to the write operation added in a
next patch.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
---
al changes.
So far, only one call in fw_cfg_register_dir_entries() is using
kmalloc'ed buf and is thus clearly eligible to DMA read. But the
fw_cfg_dma_transfer() code is common to the write operation added in a
next patch.
Signed-off-by: Marc-André Lureau
---
drivers/firmware/qemu_fw_c
Add an optional kernel module (or command line) parameter
using the following syntax:
[qemu_fw_cfg.]ioport=@[::[:]]
or
[qemu_fw_cfg.]mmio=@[::[:]]
and initializes the register address using given or default offset.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.
Add an optional kernel module (or command line) parameter
using the following syntax:
[qemu_fw_cfg.]ioport=@[::[:]]
or
[qemu_fw_cfg.]mmio=@[::[:]]
and initializes the register address using given or default offset.
Signed-off-by: Marc-André Lureau
Reviewed-by: Gabriel Somlo
ad, except for kmalloc() memory we allocated
ourself (only fw_cfg_register_dir_entries() so far)
v11:
- add #include in last patch,
fixing kbuild .config test
Marc-André Lureau (4):
fw_cfg: add DMA register
fw_cfg: do DMA read operation
crash: export paddr_vmcoreinfo_note()
fw_cfg: write
ad, except for kmalloc() memory we allocated
ourself (only fw_cfg_register_dir_entries() so far)
v11:
- add #include in last patch,
fixing kbuild .config test
Marc-André Lureau (4):
fw_cfg: add DMA register
fw_cfg: do DMA read operation
crash: export paddr_vmcoreinfo_note()
fw_cfg: write
If the "etc/vmcoreinfo" fw_cfg file is present and we are not running
the kdump kernel, write the addr/size of the vmcoreinfo ELF note.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Reviewed-by: Gabriel Somlo <so...@cmu.edu>
---
drivers/firmw
If the "etc/vmcoreinfo" fw_cfg file is present and we are not running
the kdump kernel, write the addr/size of the vmcoreinfo ELF note.
Signed-off-by: Marc-André Lureau
Reviewed-by: Gabriel Somlo
---
drivers/firmware/qemu_fw_cfg.c | 84 ++
1 fi
gt;
CC: Dave Young <dyo...@redhat.com>
CC: Dave Young <dyo...@redhat.com>
CC: Hari Bathini <hbath...@linux.vnet.ibm.com>
CC: Tony Luck <tony.l...@intel.com>
CC: Vivek Goyal <vgo...@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Ack
: Tony Luck
CC: Vivek Goyal
Signed-off-by: Marc-André Lureau
Acked-by: Gabriel Somlo
---
kernel/crash_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/crash_core.c b/kernel/crash_core.c
index 4f63597c824d..a93590cdd9e1 100644
--- a/kernel/crash_core.c
+++ b/kernel/crash_core.c
al changes.
We may want to switch all the *buf addresses to use only kmalloc'ed
buffers (instead of using stack/image addresses with dma=false).
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
---
drivers/firmware/qemu_fw_cfg.c | 131 ++---
al changes.
We may want to switch all the *buf addresses to use only kmalloc'ed
buffers (instead of using stack/image addresses with dma=false).
Signed-off-by: Marc-André Lureau
---
drivers/firmware/qemu_fw_cfg.c | 131 ++---
1 file changed, 111 inserti
Add an optional kernel module (or command line) parameter
using the following syntax:
[qemu_fw_cfg.]ioport=@[::[:]]
or
[qemu_fw_cfg.]mmio=@[::[:]]
and initializes the register address using given or default offset.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.
Add an optional kernel module (or command line) parameter
using the following syntax:
[qemu_fw_cfg.]ioport=@[::[:]]
or
[qemu_fw_cfg.]mmio=@[::[:]]
and initializes the register address using given or default offset.
Signed-off-by: Marc-André Lureau
Reviewed-by: Gabriel Somlo
Hi,
This series adds DMA operations support to the qemu fw_cfg kernel
module and populates "etc/vmcoreinfo" with vmcoreinfo location
details (since qemu 2.11).
v11:
- add #include in last patch,
fixing kbuild .config test
Marc-André Lureau (4):
fw_cfg: add DMA register
fw_c
Hi,
This series adds DMA operations support to the qemu fw_cfg kernel
module and populates "etc/vmcoreinfo" with vmcoreinfo location
details (since qemu 2.11).
v11:
- add #include in last patch,
fixing kbuild .config test
Marc-André Lureau (4):
fw_cfg: add DMA register
fw_c
If the "etc/vmcoreinfo" fw_cfg file is present and we are not running
the kdump kernel, write the addr/size of the vmcoreinfo ELF note.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Reviewed-by: Gabriel Somlo <so...@cmu.edu>
---
drivers/firmw
If the "etc/vmcoreinfo" fw_cfg file is present and we are not running
the kdump kernel, write the addr/size of the vmcoreinfo ELF note.
Signed-off-by: Marc-André Lureau
Reviewed-by: Gabriel Somlo
---
drivers/firmware/qemu_fw_cfg.c | 83 ++
1 fi
gt;
CC: Dave Young <dyo...@redhat.com>
CC: Dave Young <dyo...@redhat.com>
CC: Hari Bathini <hbath...@linux.vnet.ibm.com>
CC: Tony Luck <tony.l...@intel.com>
CC: Vivek Goyal <vgo...@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Ack
: Tony Luck
CC: Vivek Goyal
Signed-off-by: Marc-André Lureau
Acked-by: Gabriel Somlo
---
kernel/crash_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/crash_core.c b/kernel/crash_core.c
index 4f63597c824d..a93590cdd9e1 100644
--- a/kernel/crash_core.c
+++ b/kernel/crash_core.c
al changes.
We may want to switch all the *buf addresses to use only kmalloc'ed
buffers (instead of using stack/image addresses with dma=false).
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
---
drivers/firmware/qemu_fw_cfg.c | 131 ++---
Add an optional kernel module (or command line) parameter
using the following syntax:
[qemu_fw_cfg.]ioport=@[::[:]]
or
[qemu_fw_cfg.]mmio=@[::[:]]
and initializes the register address using given or default offset.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.
al changes.
We may want to switch all the *buf addresses to use only kmalloc'ed
buffers (instead of using stack/image addresses with dma=false).
Signed-off-by: Marc-André Lureau
---
drivers/firmware/qemu_fw_cfg.c | 131 ++---
1 file changed, 111 inserti
Add an optional kernel module (or command line) parameter
using the following syntax:
[qemu_fw_cfg.]ioport=@[::[:]]
or
[qemu_fw_cfg.]mmio=@[::[:]]
and initializes the register address using given or default offset.
Signed-off-by: Marc-André Lureau
Reviewed-by: Gabriel Somlo
figuration)
- switch back to kalloc'd struct vmci, to fix DMA garbage operations
- do not attempt to write vmcoreinfo if the entry exists but DMA isn't supported
- removed a copy-pasta memset() on write operation error
Marc-André Lureau (4):
fw_cfg: add DMA register
fw_cfg: do DMA read opera
figuration)
- switch back to kalloc'd struct vmci, to fix DMA garbage operations
- do not attempt to write vmcoreinfo if the entry exists but DMA isn't supported
- removed a copy-pasta memset() on write operation error
Marc-André Lureau (4):
fw_cfg: add DMA register
fw_cfg: do DMA read opera
Hi Mike
On Thu, Dec 21, 2017 at 1:40 AM, Mike Kravetz <mike.krav...@oracle.com> wrote:
> On 12/20/2017 04:26 PM, Andrew Morton wrote:
>> On Wed, 20 Dec 2017 16:10:51 +0100 Michal Hocko <mho...@kernel.org> wrote:
>>
>>> On Wed 20-12-17 15:15:50, Marc-André Lu
Hi Mike
On Thu, Dec 21, 2017 at 1:40 AM, Mike Kravetz wrote:
> On 12/20/2017 04:26 PM, Andrew Morton wrote:
>> On Wed, 20 Dec 2017 16:10:51 +0100 Michal Hocko wrote:
>>
>>> On Wed 20-12-17 15:15:50, Marc-André Lureau wrote:
>>>> Hi
>>>>
&g
emfd_file_seals_ptr()
>> - update commit messages
>> - added reviewed-by tags
>>
>> RFC->v1:
>> - split rfc patch, after early review feedback
>> - added patch for memfd-test changes
>> - fix build with hugetlbfs disabled
>> - small code and commit
gt; - update commit messages
>> - added reviewed-by tags
>>
>> RFC->v1:
>> - split rfc patch, after early review feedback
>> - added patch for memfd-test changes
>> - fix build with hugetlbfs disabled
>> - small code and commit messages improvements
>>
Add an optional kernel module (or command line) parameter
using the following syntax:
[qemu_fw_cfg.]ioport=@[::[:]]
or
[qemu_fw_cfg.]mmio=@[::[:]]
and initializes the register address using given or default offset.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.
Add an optional kernel module (or command line) parameter
using the following syntax:
[qemu_fw_cfg.]ioport=@[::[:]]
or
[qemu_fw_cfg.]mmio=@[::[:]]
and initializes the register address using given or default offset.
Signed-off-by: Marc-André Lureau
Reviewed-by: Gabriel Somlo
gt;
CC: Dave Young <dyo...@redhat.com>
CC: Dave Young <dyo...@redhat.com>
CC: Hari Bathini <hbath...@linux.vnet.ibm.com>
CC: Tony Luck <tony.l...@intel.com>
CC: Vivek Goyal <vgo...@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Ack
If the "etc/vmcoreinfo" fw_cfg file is present and we are not running
the kdump kernel, write the addr/size of the vmcoreinfo ELF note.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Reviewed-by: Gabriel Somlo <so...@cmu.edu>
---
drivers/firmw
: Tony Luck
CC: Vivek Goyal
Signed-off-by: Marc-André Lureau
Acked-by: Gabriel Somlo
---
kernel/crash_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/crash_core.c b/kernel/crash_core.c
index b3663896278e..2394f0501c65 100644
--- a/kernel/crash_core.c
+++ b/kernel/crash_core.c
If the "etc/vmcoreinfo" fw_cfg file is present and we are not running
the kdump kernel, write the addr/size of the vmcoreinfo ELF note.
Signed-off-by: Marc-André Lureau
Reviewed-by: Gabriel Somlo
---
drivers/firmware/qemu_fw_cfg.c | 82 +-
1 fi
e name" patch
- fix build of "fw_cfg: add DMA register" with CONFIG_FW_CFG_SYSFS_CMDLINE=y
- fix 'Wshift-count-overflow'
v2:
- use platform device for dma mapping
- add etc/vmcoreinfo patch
- some code cleanups
Marc-André Lureau (4):
fw_cfg: add DMA register
fw_cfg: do DMA read operati
e name" patch
- fix build of "fw_cfg: add DMA register" with CONFIG_FW_CFG_SYSFS_CMDLINE=y
- fix 'Wshift-count-overflow'
v2:
- use platform device for dma mapping
- add etc/vmcoreinfo patch
- some code cleanups
Marc-André Lureau (4):
fw_cfg: add DMA register
fw_cfg: do DMA read operati
al changes.
We may want to switch all the *buf addresses to use only kmalloc'ed
buffers (instead of using stack/image addresses with dma=false).
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
---
drivers/firmware/qemu_fw_cfg.c | 161 -
al changes.
We may want to switch all the *buf addresses to use only kmalloc'ed
buffers (instead of using stack/image addresses with dma=false).
Signed-off-by: Marc-André Lureau
---
drivers/firmware/qemu_fw_cfg.c | 161 -
1 file changed, 141 inserti
On driver remove(), all objects created during probe() should be
removed, but sysfs qemu_fw_cfg/rev file was left. Also reorder
functions to match probe() error cleanup code.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
---
drivers/firmware/qemu_fw_cfg.c | 3 ++-
1 file c
On driver remove(), all objects created during probe() should be
removed, but sysfs qemu_fw_cfg/rev file was left. Also reorder
functions to match probe() error cleanup code.
Signed-off-by: Marc-André Lureau
---
drivers/firmware/qemu_fw_cfg.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion
gt;
CC: Dave Young <dyo...@redhat.com>
CC: Dave Young <dyo...@redhat.com>
CC: Hari Bathini <hbath...@linux.vnet.ibm.com>
CC: Tony Luck <tony.l...@intel.com>
CC: Vivek Goyal <vgo...@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Ack
If the "etc/vmcoreinfo" fw_cfg file is present and we are not running
the kdump kernel, write the addr/size of the vmcoreinfo ELF note.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Reviewed-by: Gabriel Somlo <so...@cmu.edu>
---
drivers/firmw
: Tony Luck
CC: Vivek Goyal
Signed-off-by: Marc-André Lureau
Acked-by: Gabriel Somlo
---
kernel/crash_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/crash_core.c b/kernel/crash_core.c
index b3663896278e..2394f0501c65 100644
--- a/kernel/crash_core.c
+++ b/kernel/crash_core.c
If the "etc/vmcoreinfo" fw_cfg file is present and we are not running
the kdump kernel, write the addr/size of the vmcoreinfo ELF note.
Signed-off-by: Marc-André Lureau
Reviewed-by: Gabriel Somlo
---
drivers/firmware/qemu_fw_cfg.c | 82 +-
1 fi
Add an optional kernel module (or command line) parameter
using the following syntax:
[qemu_fw_cfg.]ioport=@[::[:]]
or
[qemu_fw_cfg.]mmio=@[::[:]]
and initializes the register address using given or default offset.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.
Add an optional kernel module (or command line) parameter
using the following syntax:
[qemu_fw_cfg.]ioport=@[::[:]]
or
[qemu_fw_cfg.]mmio=@[::[:]]
and initializes the register address using given or default offset.
Signed-off-by: Marc-André Lureau
Reviewed-by: Gabriel Somlo
al changes.
We may want to switch all the *buf addresses to use only kmalloc'ed
buffers (instead of using stack/image addresses with dma=false).
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
---
drivers/firmware/qemu_fw_cfg.c | 147 -
al changes.
We may want to switch all the *buf addresses to use only kmalloc'ed
buffers (instead of using stack/image addresses with dma=false).
Signed-off-by: Marc-André Lureau
---
drivers/firmware/qemu_fw_cfg.c | 147 -
1 file changed, 130 inserti
tc/vmcoreinfo patch
- some code cleanups
Marc-André Lureau (5):
fw_cfg: fix driver remove
fw_cfg: add DMA register
fw_cfg: do DMA read operation
crash: export paddr_vmcoreinfo_note()
fw_cfg: write vmcoreinfo details
drivers/firmware/qemu_fw_cfg.c | 283 ++
tc/vmcoreinfo patch
- some code cleanups
Marc-André Lureau (5):
fw_cfg: fix driver remove
fw_cfg: add DMA register
fw_cfg: do DMA read operation
crash: export paddr_vmcoreinfo_note()
fw_cfg: write vmcoreinfo details
drivers/firmware/qemu_fw_cfg.c | 283 ++
Hi
- Original Message -
> On Mon, Nov 20, 2017 at 10:55:17AM +0100, Marc-André Lureau wrote:
> > Modify fw_cfg_read_blob() to use DMA if the device supports it.
> > Return errors, because the operation may fail.
> >
> > The DMA operation is expected to run sy
Hi
- Original Message -
> On Mon, Nov 20, 2017 at 10:55:17AM +0100, Marc-André Lureau wrote:
> > Modify fw_cfg_read_blob() to use DMA if the device supports it.
> > Return errors, because the operation may fail.
> >
> > The DMA operation is expected to run sy
make HUGETLBFS
> depend on TMPFS.
>
> This patch series is built on top of the Marc-André Lureau v3 series
> "memfd: add sealing to hugetlb-backed memory":
> http://lkml.kernel.org/r/20171107122800.25517-1-marcandre.lur...@redhat.com
Are you waiting for this series to be mer
TMPFS.
>
> This patch series is built on top of the Marc-André Lureau v3 series
> "memfd: add sealing to hugetlb-backed memory":
> http://lkml.kernel.org/r/20171107122800.25517-1-marcandre.lur...@redhat.com
Are you waiting for this series to be merged before resending as
_CMDLINE=y
- fix 'Wshift-count-overflow'
v2:
- use platform device for dma mapping
- add etc/vmcoreinfo patch
- some code cleanups
Marc-André Lureau (5):
fw_cfg: fix driver remove
fw_cfg: add DMA register
fw_cfg: do DMA read operation
crash: export paddr_vmcoreinfo_note()
fw_cfg: write vmcorei
_CMDLINE=y
- fix 'Wshift-count-overflow'
v2:
- use platform device for dma mapping
- add etc/vmcoreinfo patch
- some code cleanups
Marc-André Lureau (5):
fw_cfg: fix driver remove
fw_cfg: add DMA register
fw_cfg: do DMA read operation
crash: export paddr_vmcoreinfo_note()
fw_cfg: write vmcorei
On driver remove(), all objects created during probe() should be
removed, but sysfs qemu_fw_cfg/rev file was left. Also reorder
functions to match probe() error cleanup code.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
---
drivers/firmware/qemu_fw_cfg.c | 3 ++-
1 file c
If the "etc/vmcoreinfo" fw_cfg file is present and we are not running
the kdump kernel, write the addr/size of the vmcoreinfo ELF note.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Reviewed-by: Gabriel Somlo <so...@cmu.edu>
---
drivers/firmw
gt;
CC: Dave Young <dyo...@redhat.com>
CC: Dave Young <dyo...@redhat.com>
CC: Hari Bathini <hbath...@linux.vnet.ibm.com>
CC: Tony Luck <tony.l...@intel.com>
CC: Vivek Goyal <vgo...@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Ack
On driver remove(), all objects created during probe() should be
removed, but sysfs qemu_fw_cfg/rev file was left. Also reorder
functions to match probe() error cleanup code.
Signed-off-by: Marc-André Lureau
---
drivers/firmware/qemu_fw_cfg.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion
If the "etc/vmcoreinfo" fw_cfg file is present and we are not running
the kdump kernel, write the addr/size of the vmcoreinfo ELF note.
Signed-off-by: Marc-André Lureau
Reviewed-by: Gabriel Somlo
---
drivers/firmware/qemu_fw_cfg.c | 82 +-
1 fi
: Tony Luck
CC: Vivek Goyal
Signed-off-by: Marc-André Lureau
Acked-by: Gabriel Somlo
---
kernel/crash_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/crash_core.c b/kernel/crash_core.c
index b3663896278e..2394f0501c65 100644
--- a/kernel/crash_core.c
+++ b/kernel/crash_core.c
Add an optional kernel module (or command line) parameter
using the following syntax:
[qemu_fw_cfg.]ioport=@[::[:]]
or
[qemu_fw_cfg.]mmio=@[::[:]]
and initializes the register address using given or default offset.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.
al changes.
We may want to switch all the *buf addresses to use only kmalloc'ed
buffers (instead of using stack/image addresses with dma=false).
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
---
drivers/firmware/qemu_fw_cfg.c | 140 -
al changes.
We may want to switch all the *buf addresses to use only kmalloc'ed
buffers (instead of using stack/image addresses with dma=false).
Signed-off-by: Marc-André Lureau
---
drivers/firmware/qemu_fw_cfg.c | 140 -
1 file changed, 123 inserti
Add an optional kernel module (or command line) parameter
using the following syntax:
[qemu_fw_cfg.]ioport=@[::[:]]
or
[qemu_fw_cfg.]mmio=@[::[:]]
and initializes the register address using given or default offset.
Signed-off-by: Marc-André Lureau
Reviewed-by: Gabriel Somlo
Hi
- Original Message -
> On 11/16, Michael S. Tsirkin wrote:
> >On Thu, Nov 16, 2017 at 08:58:13AM +0800, kernel test robot wrote:
> >>
> >> FYI, we noticed the following commit (built with gcc-6):
> >>
> >> commit: 05b5d5161b9e6c72e1d06f36614edbdbfe192cc7 ("fw_cfg: do DMA read
> >>
Hi
- Original Message -
> On 11/16, Michael S. Tsirkin wrote:
> >On Thu, Nov 16, 2017 at 08:58:13AM +0800, kernel test robot wrote:
> >>
> >> FYI, we noticed the following commit (built with gcc-6):
> >>
> >> commit: 05b5d5161b9e6c72e1d06f36614edbdbfe192cc7 ("fw_cfg: do DMA read
> >>
Hi
- Original Message -
> On Mon, Nov 13, 2017 at 08:29:58PM +0100, Marc-André Lureau wrote:
> > If the "etc/vmcoreinfo" fw_cfg file is present and we are not running
> > the kdump kernel, write the addr/size of the vmcoreinfo ELF note.
> >
>
Hi
- Original Message -
> On Mon, Nov 13, 2017 at 08:29:58PM +0100, Marc-André Lureau wrote:
> > If the "etc/vmcoreinfo" fw_cfg file is present and we are not running
> > the kdump kernel, write the addr/size of the vmcoreinfo ELF note.
> >
>
Hi
- Original Message -
> On Mon, Nov 13, 2017 at 08:29:56PM +0100, Marc-André Lureau wrote:
> > Modify fw_cfg_read_blob() to use DMA if the device supports it.
> > Return errors, because the operation may fail.
> >
> > To avoid polling with unbound amount
Hi
- Original Message -
> On Mon, Nov 13, 2017 at 08:29:56PM +0100, Marc-André Lureau wrote:
> > Modify fw_cfg_read_blob() to use DMA if the device supports it.
> > Return errors, because the operation may fail.
> >
> > To avoid polling with unbound amount
Hi
- Original Message -
> On Mon, Nov 13, 2017 at 08:27:48PM +0100, Marc-André Lureau wrote:
> > Modify fw_cfg_read_blob() to use DMA if the device supports it.
> > Return errors, because the operation may fail.
> >
> > To avoid polling with unbound amount
Hi
- Original Message -
> On Mon, Nov 13, 2017 at 08:27:48PM +0100, Marc-André Lureau wrote:
> > Modify fw_cfg_read_blob() to use DMA if the device supports it.
> > Return errors, because the operation may fail.
> >
> > To avoid polling with unbound amount
If the "etc/vmcoreinfo" fw_cfg file is present and we are not running
the kdump kernel, write the addr/size of the vmcoreinfo ELF note.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Reviewed-by: Gabriel Somlo <so...@cmu.edu>
---
drivers/firmw
If the "etc/vmcoreinfo" fw_cfg file is present and we are not running
the kdump kernel, write the addr/size of the vmcoreinfo ELF note.
Signed-off-by: Marc-André Lureau
Reviewed-by: Gabriel Somlo
---
drivers/firmware/qemu_fw_cfg.c | 87 +-
1 fi
gt;
CC: Dave Young <dyo...@redhat.com>
CC: Dave Young <dyo...@redhat.com>
CC: Hari Bathini <hbath...@linux.vnet.ibm.com>
CC: Tony Luck <tony.l...@intel.com>
CC: Vivek Goyal <vgo...@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Ack
: Tony Luck
CC: Vivek Goyal
Signed-off-by: Marc-André Lureau
Acked-by: Gabriel Somlo
---
kernel/crash_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/crash_core.c b/kernel/crash_core.c
index 6db80fc0810b..47541c891810 100644
--- a/kernel/crash_core.c
+++ b/kernel/crash_core.c
only kmalloc'ed
buffers (instead of using stack/image addresses with dma=false).
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Reviewed-by: Gabriel Somlo <so...@cmu.edu>
---
drivers/firmware/qemu_fw_cfg.c | 154 -
1 file changed, 13
Add an optional kernel module (or command line) parameter
using the following syntax:
[qemu_fw_cfg.]ioport=@[::[:]]
or
[qemu_fw_cfg.]mmio=@[::[:]]
and initializes the register address using given or default offset.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.
only kmalloc'ed
buffers (instead of using stack/image addresses with dma=false).
Signed-off-by: Marc-André Lureau
Reviewed-by: Gabriel Somlo
---
drivers/firmware/qemu_fw_cfg.c | 154 -
1 file changed, 137 insertions(+), 17 deletions(-)
diff --git a/drivers
Add an optional kernel module (or command line) parameter
using the following syntax:
[qemu_fw_cfg.]ioport=@[::[:]]
or
[qemu_fw_cfg.]mmio=@[::[:]]
and initializes the register address using given or default offset.
Signed-off-by: Marc-André Lureau
Reviewed-by: Gabriel Somlo
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Acked-by: Gabriel Somlo <so...@cmu.edu>
---
drivers/firmware/qemu_fw_cfg.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/firmware/qemu_fw_cfg.c b/drivers/firmware/qemu_fw_cfg.c
index
Signed-off-by: Marc-André Lureau
Acked-by: Gabriel Somlo
---
drivers/firmware/qemu_fw_cfg.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/firmware/qemu_fw_cfg.c b/drivers/firmware/qemu_fw_cfg.c
index 0e2011636fbb..5cfe39f7a45f 100644
--- a/drivers/firmware
uild of "fw_cfg: add DMA register" with CONFIG_FW_CFG_SYSFS_CMDLINE=y
- fix 'Wshift-count-overflow'
v2:
- use platform device for dma mapping
- add etc/vmcoreinfo patch
- some code cleanups
Marc-André Lureau (5):
fw_cfg: fix the command line module name
fw_cfg: add DMA register
uild of "fw_cfg: add DMA register" with CONFIG_FW_CFG_SYSFS_CMDLINE=y
- fix 'Wshift-count-overflow'
v2:
- use platform device for dma mapping
- add etc/vmcoreinfo patch
- some code cleanups
Marc-André Lureau (5):
fw_cfg: fix the command line module name
fw_cfg: add DMA register
only kmalloc'ed
buffers (instead of using stack/image addresses with dma=false).
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Reviewed-by: Gabriel Somlo <so...@cmu.edu>
---
drivers/firmware/qemu_fw_cfg.c | 154 -
1 file changed, 13
only kmalloc'ed
buffers (instead of using stack/image addresses with dma=false).
Signed-off-by: Marc-André Lureau
Reviewed-by: Gabriel Somlo
---
drivers/firmware/qemu_fw_cfg.c | 154 -
1 file changed, 137 insertions(+), 17 deletions(-)
diff --git a/drivers
101 - 200 of 296 matches
Mail list logo