All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: Andrew Scull <ascull@google.com>
Cc: U-Boot Mailing List <u-boot@lists.denx.de>,
	Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH v3 12/18] pci: Map bars with offset and length
Date: Fri, 22 Apr 2022 14:52:06 +0800	[thread overview]
Message-ID: <CAEUhbmVRvy-uC6bvC7bCS=BKr9JSuFRd6K2FU-tGVKh6Exf-Ng@mail.gmail.com> (raw)
In-Reply-To: <20220421161116.1202023-13-ascull@google.com>

On Fri, Apr 22, 2022 at 12:11 AM Andrew Scull <ascull@google.com> wrote:
>
> Evolve dm_pci_map_bar() to include an offset and length parameter. These
> allow a portion of the memory to be mapped and range checks to be
> applied.
>
> Passing both the offset and length as zero results in the previous
> behaviour and this is used to migrate the previous callers.
>
> Signed-off-by: Andrew Scull <ascull@google.com>
> ---
>  arch/x86/cpu/baytrail/cpu.c             |  2 +-
>  drivers/ata/ahci.c                      |  8 ++++----
>  drivers/ata/sata_sil.c                  |  4 ++--
>  drivers/gpio/octeon_gpio.c              |  2 +-
>  drivers/i2c/designware_i2c_pci.c        |  2 +-
>  drivers/i2c/intel_i2c.c                 |  2 +-
>  drivers/i2c/octeon_i2c.c                |  2 +-
>  drivers/mmc/octeontx_hsmmc.c            |  2 +-
>  drivers/mmc/pci_mmc.c                   |  2 +-
>  drivers/mtd/nand/raw/octeontx_bch.c     |  4 ++--
>  drivers/mtd/nand/raw/octeontx_nand.c    |  2 +-
>  drivers/net/bnxt/bnxt.c                 |  6 +++---
>  drivers/net/e1000.c                     |  2 +-
>  drivers/net/fsl_enetc.c                 |  2 +-
>  drivers/net/fsl_enetc_mdio.c            |  2 +-
>  drivers/net/mscc_eswitch/felix_switch.c |  4 ++--
>  drivers/net/octeontx/bgx.c              |  2 +-
>  drivers/net/octeontx/nic_main.c         |  2 +-
>  drivers/net/octeontx/nicvf_main.c       |  2 +-
>  drivers/net/octeontx/smi.c              |  2 +-
>  drivers/net/octeontx2/cgx.c             |  2 +-
>  drivers/net/octeontx2/rvu_af.c          |  2 +-
>  drivers/net/octeontx2/rvu_pf.c          |  2 +-
>  drivers/net/pch_gbe.c                   |  2 +-
>  drivers/nvme/nvme_pci.c                 |  4 ++--
>  drivers/pci/pci-uclass.c                | 27 ++++++++++++++++---------
>  drivers/spi/octeon_spi.c                |  2 +-
>  drivers/usb/host/ehci-pci.c             |  2 +-
>  drivers/usb/host/ohci-pci.c             |  2 +-
>  drivers/usb/host/xhci-pci.c             |  2 +-
>  drivers/virtio/virtio_pci_legacy.c      |  2 +-
>  include/pci.h                           |  5 ++++-
>  test/dm/pci.c                           | 12 +++++------
>  33 files changed, 67 insertions(+), 55 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

  reply	other threads:[~2022-04-22  6:52 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-21 16:10 [PATCH v3 00/18] virtio: pci: Add and fix consistency checks Andrew Scull
2022-04-21 16:10 ` [PATCH v3 01/18] virtio: pci: Allow exclusion of legacy driver Andrew Scull
2022-05-03 23:10   ` Tom Rini
2022-04-21 16:11 ` [PATCH v3 02/18] virtio: pci: Fix discovery of device config length Andrew Scull
2022-04-21 16:11 ` [PATCH v3 03/18] virtio: pci: Bounds check device config access Andrew Scull
2022-04-21 16:11 ` [PATCH v3 04/18] virtio: pci: Bounds check notification writes Andrew Scull
2022-04-21 16:11 ` [PATCH v3 05/18] virtio: pci: Check virtio common config size Andrew Scull
2022-04-21 16:11 ` [PATCH v3 06/18] virtio: pci: Check virtio capability is in bounds Andrew Scull
2022-04-21 16:11 ` [PATCH v3 07/18] virtio: pci: Read entire capability into memory Andrew Scull
2022-04-21 16:11 ` [PATCH v3 08/18] pci: Fix use of flags in dm_pci_map_bar() Andrew Scull
2022-04-22  6:37   ` Bin Meng
2022-04-21 16:11 ` [PATCH v3 09/18] pci: Check region ranges are addressable Andrew Scull
2022-04-21 16:11 ` [PATCH v3 10/18] pci: Range check address conversions Andrew Scull
2022-04-21 16:11 ` [PATCH v3 11/18] test: pci: Test PCI address conversion functions Andrew Scull
2022-04-22  6:50   ` Bin Meng
2022-04-21 16:11 ` [PATCH v3 12/18] pci: Map bars with offset and length Andrew Scull
2022-04-22  6:52   ` Bin Meng [this message]
2022-04-21 16:11 ` [PATCH v3 13/18] pci: Match region flags using a mask Andrew Scull
2022-04-21 16:11 ` [PATCH v3 14/18] pci: Update dm_pci_bus_to_virt() parameters Andrew Scull
2022-04-22  7:38   ` Bin Meng
2022-04-21 16:11 ` [PATCH v3 15/18] pci: Add mask parameter to dm_pci_map_bar() Andrew Scull
2022-04-22  7:39   ` Bin Meng
2022-04-21 16:11 ` [PATCH v3 16/18] virtio: pci: Check virtio configs are mapped Andrew Scull
2022-04-21 16:11 ` [PATCH v3 17/18] virtio: pci: Make use of dm_pci_map_bar() Andrew Scull
2022-04-21 16:11 ` [PATCH v3 18/18] pci: Add config for Enhanced Allocation Andrew Scull

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='CAEUhbmVRvy-uC6bvC7bCS=BKr9JSuFRd6K2FU-tGVKh6Exf-Ng@mail.gmail.com' \
    --to=bmeng.cn@gmail.com \
    --cc=ascull@google.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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.