public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: bridges without VGA support
Date: Wed, 18 Feb 2026 06:47:57 +1000	[thread overview]
Message-ID: <review-overall-20260217170419.236739-1-Simon.Richter@hogyros.de> (raw)
In-Reply-To: <20260217170419.236739-1-Simon.Richter@hogyros.de>

Overall Series Review

Subject: bridges without VGA support
Author: Simon Richter <Simon.Richter@hogyros.de>
Patches: 6
Reviewed: 2026-02-18T06:47:57.209916

---

This series by Simon Richter adds error propagation for VGA arbitration failures, motivated by PCI bridges (such as the root bridge in IBM PowerNV) that silently refuse to enable VGA forwarding. The approach is: (1) detect bridge refusal by reading back the VGA control bit after writing it, (2) propagate the error through `pci_set_vga_state` -> `__vga_tryget` -> `vga_get` -> userspace, and (3) add `__must_check` annotations to encourage callers to handle the new failure mode.

The series has a logical structure and addresses a real problem. However, there are two concrete bugs: `vga_tryget()` is not updated to handle the new `ERR_PTR` returns from `__vga_tryget()`, which means it will misreport errors as `-EBUSY`; and the early return from `pci_set_vga_state` when a bridge refuses VGA decode leaves lower bridges with VGA forwarding enabled, creating an inconsistent hardware state. The series also introduces several coding style violations (missing space before `(`, opening brace placement on `if` blocks) that are inconsistent with kernel conventions. The `__must_check` annotations in patches 3 and 5 will generate new compiler warnings for the i915 driver, which doesn't check return values of `vga_get_uninterruptible`.

---
Generated by Claude Code Patch Reviewer

  parent reply	other threads:[~2026-02-17 20:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-17 17:04 [PATCH 0/5] bridges without VGA support Simon Richter
2026-02-17 17:04 ` [PATCH 1/5] vgaarb: pass vga_get errors to userspace Simon Richter
2026-02-17 20:47   ` Claude review: " Claude Code Review Bot
2026-02-17 17:04 ` [PATCH 2/5] vgaarb: pass errors from pci_set_vga_state up Simon Richter
2026-02-17 20:47   ` Claude review: " Claude Code Review Bot
2026-02-17 17:04 ` [PATCH 3/5] vgaarb: mark vga_get family as __must_check Simon Richter
2026-02-17 20:47   ` Claude review: " Claude Code Review Bot
2026-02-17 17:04 ` [PATCH 4/5] pci: check if VGA decoding was really activated Simon Richter
2026-02-17 20:47   ` Claude review: " Claude Code Review Bot
2026-02-17 17:04 ` [PATCH 5/5] pci: mark return value of pci_set_vga_state as __must_check Simon Richter
2026-02-17 20:47   ` Claude review: " Claude Code Review Bot
2026-02-17 20:47 ` Claude Code Review Bot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-03-07 17:35 [PATCH v3 0/5] Bridges without VGA support Simon Richter
2026-03-08 22:05 ` Claude review: " Claude Code Review Bot

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=review-overall-20260217170419.236739-1-Simon.Richter@hogyros.de \
    --to=claude-review@example.com \
    --cc=dri-devel-reviews@example.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox