From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f13.google.com (mail-wm2-f13.google.com [74.125.225.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82F953F8252 for ; Mon, 28 Sep 2026 18:56:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790621792; cv=none; b=Pzg/PkI1kZXIRGGk4vOOce/Q8fJoJDskaQI/qGwQvMGKEcAZ3UZri5bSV8wZaZKuJrreIEax1SQ5JHoZyiUJrg/PGkZLYqEtn6oY3tKCrAOy056LF2O+s4WHBQYoq0qqRrO4p+zDcRXpJeVKJmHQrnacd5WjgL/CsgLXw8ejbsw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790621792; c=relaxed/simple; bh=n7rrWwU0s9ggul7JuiFbx+85HACZBLjrWg3YZUUQI4M=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NLfIpicnaH4GEOLmQgMRxPZJMKxfFR6sj9GM4e9H45SbulgtyUvQgDkzuESrFvAsBWfYfXjv1AItFi2dvdALTwYrrwfe8ClHC0r56KehkSJi4u0MEnDB4MKyGpi+qyyME9goYJrm0IkotbeUJ1DmT03VPh2d7jy+cR+5tLl9sUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FGwHOVMr; arc=none smtp.client-ip=74.125.225.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FGwHOVMr" Received: by mail-wm2-f13.google.com with SMTP id 5b1f17b1804b1-49b912d37b6so18450415e9.0 for ; Mon, 28 Sep 2026 11:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790621788; x=1791226588; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=UlGFsX/Ls46WgCFLV1KYmW3Gnb4dDClBQv1c5lbc9ow=; b=FGwHOVMrY0LNjRNgnB8Y41Iicam17g4Em7db71S7O8ZIAyNEwVT78P+a6utI9g1DhC E/SXuucY3LJWPpVPxtbkN81NqbrCwz+08eAFPS0hHhe+1ZMhbfUX+zGf3U1zs78VkCTp tXSyhvp/bmlcpQ91+V1fA8YIaSJIdgEyASClk/lnfslrZVBnVQx45LmhIWwmA84iflLG GC4/bv/QgeU4Yt6FES1Uv6DpDtdqy5wa2CkkV52YQgjMdxp5up/2/y1EOTGe6XgsHbW6 3K6+pRv4W4ve+ZIR+unK1Kth3sH7GlTgjY9Cs+S/Dfgrpj0iKue56pwKsOM6gvhSDULI BaFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790621788; x=1791226588; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=UlGFsX/Ls46WgCFLV1KYmW3Gnb4dDClBQv1c5lbc9ow=; b=GF6Ca6YQzgMwsL7rZYs1rPrbIseBamhODnSVQv3G2J4pojQS4rMfePrX0/3nsYPm8g JOTpGY++c/impPksVcniKROzHmldLiAD4hIIV6Rm9UvFLgJJ0OpeaJx27/LTknGKxGW9 qtr/4/fXa+MJdydU73eINBbgxZOWrqwKBuRjLsGgV4/wSVuFQg93bvS0/ZzBpBd127wC xyVCWdJvxY8qepFNlM6k0nuCxEpHahreqrXaS/6PrKCxN5W31rl/8ilbkRw6CVndSDxB KHbmJzL64OyM0N05NbJMVRT0nsX8R9gaFqSgPp3YoJ6kJm95MHaJ9IwrC86Kox1dFMAY buPA== X-Forwarded-Encrypted: i=1; AKwUvBxXBr4DFFhYBT4Q7UAhYoXsOct2BotJ5z4iOZpTKvfY/2m6xHlv4PBdyE5UeY6TfS3tIELuc9iLQfcUVvM=@vger.kernel.org X-Gm-Message-State: AFuF++kUzRbdbt97PH6YWcwPwTvaZNNv62eaihQUIhw3yNfQwKWkol4P 9X0jgJNXrU6OUXHPLsGzYE1l9sC0Ykw2Q+1gXdryWXqYHA/QAkHKh/uy X-Gm-Gg: AYBFou17yIYMQbj2xFA97XG53E3O2/bosm2KzPt7tfWqDDEW8iJguBiOlxAub3p6tun 8tJGb8s+fAY2pAYX3v7TJLVQQD+oE+uaJbwOw1QSlwLSqxNrqmqf6mP+BPmgama7WniwG/g5VRY jK9aybWnXCZMeDIKMD4KkgQK2M+SJxWyAlNrmE1c8DHtJBS06b6ZwKdcNjBXQWyvVQEZzXWp0+2 RtMNvGvk9IYxktkAZWNn4+OqeAK0Rz9EekX9FwJ2dAWNjV21/Su4Lss38f2XdLJC9OX1Y8L3cMf ZjiJA/TDGi1fln8SPfkEZntYq3hicend7Hds1HLeVZ99opc/o0LXoOsY5WFhNotDriFCkGD1+Eg 5Ktyjzij1a2I2epsyeh34gf/amHirGDdu99HutgI7AzBn+WeUfKitci+nBllYLD4sj3ZL/pLdXL xGamv0Z4ppuMfcnJ9sSVCG0dwqaFyHQefOw+aWhdL9O/b8xQtxxDipFB8MjvptxarQvV7e6S00s iIY1js3kvvq9s0kfczAMMhysIFaYksUymU= X-Received: by 2002:a05:600c:3b98:b0:49f:ce78:3564 with SMTP id 5b1f17b1804b1-49fe66f187cmr271554715e9.21.1790621788116; Mon, 28 Sep 2026 11:56:28 -0700 (PDT) Received: from pumpkin (82-69-66-36.dsl.in-addr.zen.co.uk. [82.69.66.36]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a00d0f66cfsm12682225e9.14.2026.09.28.11.56.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2026 11:56:27 -0700 (PDT) Date: Mon, 28 Sep 2026 19:56:26 +0100 From: David Laight To: Ilpo =?UTF-8?B?SsOkcnZpbmVu?= Cc: Bjorn Helgaas , "Rafael J. Wysocki" , Maciej Grochowski , Nikolas Joshua Britton , Geramy Loveless , Eric Auger , Alexey Fomenko , Bjorn Helgaas , Lorenzo Pieralisi , Rob Herring , Krzysztof =?UTF-8?B?V2lsY3p5xYRza2k=?= , linux-pci@vger.kernel.org, LKML Subject: Re: [PATCH 5/5] PCI/quirks: Avoid certain BAR 0 address with igb Message-ID: <20260928195626.1e878a20@pumpkin> In-Reply-To: <77f7d79b-d3fb-0576-0b6d-eef4efd8d634@linux.intel.com> References: <20260924202056.GA2001522@bhelgaas> <447e3daa-c8a5-2b0c-2c6d-3f3eb92e94cc@linux.intel.com> <20260928141936.2539ad5f@pumpkin> <77f7d79b-d3fb-0576-0b6d-eef4efd8d634@linux.intel.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; arm-unknown-linux-gnueabihf) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 28 Sep 2026 17:30:41 +0300 (EEST) Ilpo J=C3=A4rvinen wrote: > On Mon, 28 Sep 2026, David Laight wrote: >=20 > > On Mon, 28 Sep 2026 15:20:13 +0300 (EEST) > > Ilpo J=C3=A4rvinen wrote: > > =20 > > > On Thu, 24 Sep 2026, Bjorn Helgaas wrote: > > > =20 > > > > [+cc Rafael, ACPI resource question] > > > >=20 > > > > On Wed, Sep 23, 2026 at 04:17:55PM +0300, Ilpo J=C3=A4rvinen wrote:= =20 > > > > > While testing the resource placement changes, my tests hit a case= where > > > > > igb fails to probe when BAR 0 is placed at 0x9c000000: > > > > >=20 > > > > > 90000000-9cffffff : PCI Bus 0000:a0 > > > > > - 90000000-902fffff : PCI Bus 0000:a1 > > > > > - 90000000-900fffff : 0000:a1:00.0 > > > > > - 90000000-900fffff : igb > > > > > - 90100000-901fffff : 0000:a1:00.0 > > > > > - 90200000-90203fff : 0000:a1:00.0 > > > > > - 90200000-90203fff : igb > > > > > + 9be00000-9c0fffff : PCI Bus 0000:a1 =20 > >=20 > > Is that valid? > > I'm no expect but I wouldn't expect an address range to cross a power o= f 2 boundary. =20 >=20 > Hi, >=20 > Bridge windows are defined by a base/limit pair, both with 1M granularity= .=20 > There's nothing that disallows a bridge window crossing a power of 2=20 > boundary in the spec (AFAIK). >=20 > Note that after this quirk is applied reshuffling the device BAR=20 > resources, the same crossing is still there and the device works. >=20 > Perhaps you mixed this up with BAR resources that indeed must to be=20 > naturally aligned. >=20 I did say I wasn't an expert :-) The PCIe book I've got is just over 20 years old (only 1000 pages). I know rather more about the TLPs - we had a problem with some fpga logic that didn't like getting two completions for a single read. But it would be consistent with something 'not liking' BAR0 being at 9bxxxxxx and BAR1 at 9cxxxxxx. David