All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Felipe Infante de Castro" <felipe.infante.de.castro@gmail.com>
Cc: linux-pci@vger.kernel.org
Subject: Re: [PATCH v2] PCI: dwc: Skip the empty CFG1 window for a two-bus ECAM range
Date: Thu, 26 Nov 2026 19:45:29 +0000	[thread overview]
Message-ID: <sashiko-outbox-236118@kernel.org> (raw)
In-Reply-To: <CADy1qsZ_j7FnfZHQnwqFWiQKyxoQGLt+LJKG=Y-63Yi71uiNZQ@mail.gmail.com>

> From: Felipe Infante de Castro <felipe.infante.de.castro@gmail.com>
> Date: Thu, 26 Nov 2026 13:54:01 -0500
> Subject: [PATCH v2] PCI: dwc: Skip the empty CFG1 window for a two-bus ECAM range
> 
> With the iATU-based ECAM mechanism and a host bus resource of [bus 00-01]
> (bus-range = <0 1> in a device tree), dw_pcie_config_ecam_iatu() programs
> the CFG0 window for bus 1 and then requests a CFG1 window of zero bytes:
> 
>   atu.size = (SZ_1M * bus_range_max) - SZ_2M;
> 
> dw_pcie_prog_outbound_atu() rejects a zero-size window with -EINVAL, the
> error propagates through dw_pcie_host_init() and the host bridge is never
> registered.
> 
> resource_size() counts both ends of the range, so [bus 00-01] holds two
> [ ... ]
> 
> Fixes: f6fd357f7afb ("PCI: dwc: Prepare the driver for enabling ECAM mechanism using iATU 'CFG Shift Feature'")
> Assisted-by: OpenAI Codex
> Assisted-by: Claude Fable 5.2
> Signed-off-by: Felipe Infante de Castro <felipe.infante.de.castro@gmail.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/CADy1qsZ_j7FnfZHQnwqFWiQKyxoQGLt+LJKG=Y-63Yi71uiNZQ@mail.gmail.com?part=1

      reply	other threads:[~2026-11-26 19:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 19:41 [PATCH v2] PCI: dwc: Skip the empty CFG1 window for a two-bus ECAM range Felipe Infante de Castro
2026-11-26 19:45 ` sashiko-bot [this message]

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=sashiko-outbox-236118@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=felipe.infante.de.castro@gmail.com \
    --cc=linux-pci@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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.