From: Sinan Kaya <hidden> Date: 2018-05-18 14:18:01
Get rid of base and size variables in favor of a struct resource.
The conditional for checking window can be replaced with
resource_contains().
Signed-off-by: Sinan Kaya <redacted>
---
drivers/video/fbdev/efifb.c | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
From: Sinan Kaya <hidden> Date: 2018-05-18 14:18:24
A host bridge is allowed to remap BAR addresses using _TRA attribute in
_CRS windows.
pci_bus 0000:00: root bus resource [mem 0x80100100000-0x8011fffffff window] (bus address [0x00100000-0x1fffffff])
pci 0000:02:00.0: reg 0x10: [mem 0x8011e000000-0x8011effffff]
When a VGA device is behind such a host bridge and the resource is
translated efifb driver is trying to do ioremap against bus address
rather than the resource address and is failing to probe.
efifb: probing for efifb
efifb: cannot reserve video memory at 0x1e000000
efifb: framebuffer at 0x1e000000, using 1920k, total 1875k
efifb: mode is 800x600x32, linelength200, pages=1
efifb: scrolling: redraw
efifb: Truecolor: size=8:8:8:8, shift$:16:8:0
Use the host bridge offset information to convert bus address to
resource address in the fixup.
Signed-off-by: Sinan Kaya <redacted>
---
drivers/video/fbdev/efifb.c | 5 +++++
1 file changed, 5 insertions(+)
From: Sinan Kaya <hidden> Date: 2018-06-13 14:22:12
Hi Ard,
On 5/18/2018 10:17 AM, Sinan Kaya wrote:
A host bridge is allowed to remap BAR addresses using _TRA attribute in
_CRS windows.
pci_bus 0000:00: root bus resource [mem 0x80100100000-0x8011fffffff window] (bus address [0x00100000-0x1fffffff])
pci 0000:02:00.0: reg 0x10: [mem 0x8011e000000-0x8011effffff]
When a VGA device is behind such a host bridge and the resource is
translated efifb driver is trying to do ioremap against bus address
rather than the resource address and is failing to probe.
efifb: probing for efifb
efifb: cannot reserve video memory at 0x1e000000
efifb: framebuffer at 0x1e000000, using 1920k, total 1875k
efifb: mode is 800x600x32, linelength200, pages=1
efifb: scrolling: redraw
efifb: Truecolor: size=8:8:8:8, shift$:16:8:0
Use the host bridge offset information to convert bus address to
resource address in the fixup.
Signed-off-by: Sinan Kaya <redacted>
---
I didn't see any messages about these getting picked up for 4.18.
Are they queued on your own branch?
Sinan
--
Sinan Kaya
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
On 13 June 2018 at 16:22, Sinan Kaya [off-list ref] wrote:
Hi Ard,
On 5/18/2018 10:17 AM, Sinan Kaya wrote:
quoted
A host bridge is allowed to remap BAR addresses using _TRA attribute in
_CRS windows.
pci_bus 0000:00: root bus resource [mem 0x80100100000-0x8011fffffff window] (bus address [0x00100000-0x1fffffff])
pci 0000:02:00.0: reg 0x10: [mem 0x8011e000000-0x8011effffff]
When a VGA device is behind such a host bridge and the resource is
translated efifb driver is trying to do ioremap against bus address
rather than the resource address and is failing to probe.
efifb: probing for efifb
efifb: cannot reserve video memory at 0x1e000000
efifb: framebuffer at 0x1e000000, using 1920k, total 1875k
efifb: mode is 800x600x32, linelength200, pages=1
efifb: scrolling: redraw
efifb: Truecolor: size=8:8:8:8, shift$:16:8:0
Use the host bridge offset information to convert bus address to
resource address in the fixup.
Signed-off-by: Sinan Kaya <redacted>
---
I didn't see any messages about these getting picked up for 4.18.
Are they queued on your own branch?
On 13 June 2018 at 16:22, Sinan Kaya [off-list ref] wrote:
quoted
Hi Ard,
On 5/18/2018 10:17 AM, Sinan Kaya wrote:
quoted
A host bridge is allowed to remap BAR addresses using _TRA attribute
in
_CRS windows.
pci_bus 0000:00: root bus resource [mem 0x80100100000-0x8011fffffff
window] (bus address [0x00100000-0x1fffffff])
pci 0000:02:00.0: reg 0x10: [mem 0x8011e000000-0x8011effffff]
When a VGA device is behind such a host bridge and the resource is
translated efifb driver is trying to do ioremap against bus address
rather than the resource address and is failing to probe.
efifb: probing for efifb
efifb: cannot reserve video memory at 0x1e000000
efifb: framebuffer at 0x1e000000, using 1920k, total 1875k
efifb: mode is 800x600x32, linelength200, pages=1
efifb: scrolling: redraw
efifb: Truecolor: size=8:8:8:8, shift$:16:8:0
Use the host bridge offset information to convert bus address to
resource address in the fixup.
Signed-off-by: Sinan Kaya <redacted>
---
I didn't see any messages about these getting picked up for 4.18.
Are they queued on your own branch?
No, you never cc'ed me on them until now.
Ouch, I hoped that you would get it via get_maintainer script. Sorry for
that.
On 13 June 2018 at 16:22, Sinan Kaya [off-list ref] wrote:
quoted
Hi Ard,
On 5/18/2018 10:17 AM, Sinan Kaya wrote:
quoted
A host bridge is allowed to remap BAR addresses using _TRA attribute in
_CRS windows.
pci_bus 0000:00: root bus resource [mem 0x80100100000-0x8011fffffff
window] (bus address [0x00100000-0x1fffffff])
pci 0000:02:00.0: reg 0x10: [mem 0x8011e000000-0x8011effffff]
When a VGA device is behind such a host bridge and the resource is
translated efifb driver is trying to do ioremap against bus address
rather than the resource address and is failing to probe.
efifb: probing for efifb
efifb: cannot reserve video memory at 0x1e000000
efifb: framebuffer at 0x1e000000, using 1920k, total 1875k
efifb: mode is 800x600x32, linelength200, pages=1
efifb: scrolling: redraw
efifb: Truecolor: size=8:8:8:8, shift$:16:8:0
Use the host bridge offset information to convert bus address to
resource address in the fixup.
Signed-off-by: Sinan Kaya <redacted>
---
I didn't see any messages about these getting picked up for 4.18.
Are they queued on your own branch?
No, you never cc'ed me on them until now.
Ouch, I hoped that you would get it via get_maintainer script. Sorry for
that.
Actually, get_maintainer is right: this should go through the fbdev
tree not the EFI tree
Were you going to resend them? If not, I can find them in my archive
and ack them, and we will ask Bartlomiej to take them for v4.19
On 13 June 2018 at 16:22, Sinan Kaya [off-list ref] wrote:
quoted
Hi Ard,
On 5/18/2018 10:17 AM, Sinan Kaya wrote:
quoted
A host bridge is allowed to remap BAR addresses using _TRA
attribute in
_CRS windows.
pci_bus 0000:00: root bus resource [mem 0x80100100000-0x8011fffffff
window] (bus address [0x00100000-0x1fffffff])
pci 0000:02:00.0: reg 0x10: [mem 0x8011e000000-0x8011effffff]
When a VGA device is behind such a host bridge and the resource is
translated efifb driver is trying to do ioremap against bus address
rather than the resource address and is failing to probe.
efifb: probing for efifb
efifb: cannot reserve video memory at 0x1e000000
efifb: framebuffer at 0x1e000000, using 1920k, total 1875k
efifb: mode is 800x600x32, linelength200, pages=1
efifb: scrolling: redraw
efifb: Truecolor: size=8:8:8:8, shift$:16:8:0
Use the host bridge offset information to convert bus address to
resource address in the fixup.
Signed-off-by: Sinan Kaya <redacted>
---
I didn't see any messages about these getting picked up for 4.18.
Are they queued on your own branch?
No, you never cc'ed me on them until now.
Ouch, I hoped that you would get it via get_maintainer script. Sorry
for
that.
Actually, get_maintainer is right: this should go through the fbdev
tree not the EFI tree
Were you going to resend them? If not, I can find them in my archive
and ack them, and we will ask Bartlomiej to take them for v4.19
On 18 May 2018 at 16:17, Sinan Kaya [off-list ref] wrote:
Get rid of base and size variables in favor of a struct resource.
The conditional for checking window can be replaced with
resource_contains().
Signed-off-by: Sinan Kaya <redacted>
On 18 May 2018 at 16:17, Sinan Kaya [off-list ref] wrote:
A host bridge is allowed to remap BAR addresses using _TRA attribute in
_CRS windows.
pci_bus 0000:00: root bus resource [mem 0x80100100000-0x8011fffffff window] (bus address [0x00100000-0x1fffffff])
pci 0000:02:00.0: reg 0x10: [mem 0x8011e000000-0x8011effffff]
When a VGA device is behind such a host bridge and the resource is
translated efifb driver is trying to do ioremap against bus address
rather than the resource address and is failing to probe.
efifb: probing for efifb
efifb: cannot reserve video memory at 0x1e000000
efifb: framebuffer at 0x1e000000, using 1920k, total 1875k
efifb: mode is 800x600x32, linelength200, pages=1
efifb: scrolling: redraw
efifb: Truecolor: size=8:8:8:8, shift$:16:8:0
Use the host bridge offset information to convert bus address to
resource address in the fixup.
Signed-off-by: Sinan Kaya <redacted>
Reviewed-by: Ard Biesheuvel <redacted>
Bartlomiej, could you please take these via the fbdev tree for v4.19?
Peter already gave his ack but Sinan dropped it (presumably because of
the split in v2)
Sinan, does this need to go to -stable? I.e., has it ever worked before?
On 18 May 2018 at 16:17, Sinan Kaya [off-list ref] wrote:
quoted
A host bridge is allowed to remap BAR addresses using _TRA attribute
in
_CRS windows.
pci_bus 0000:00: root bus resource [mem 0x80100100000-0x8011fffffff
window] (bus address [0x00100000-0x1fffffff])
pci 0000:02:00.0: reg 0x10: [mem 0x8011e000000-0x8011effffff]
When a VGA device is behind such a host bridge and the resource is
translated efifb driver is trying to do ioremap against bus address
rather than the resource address and is failing to probe.
efifb: probing for efifb
efifb: cannot reserve video memory at 0x1e000000
efifb: framebuffer at 0x1e000000, using 1920k, total 1875k
efifb: mode is 800x600x32, linelength200, pages=1
efifb: scrolling: redraw
efifb: Truecolor: size=8:8:8:8, shift$:16:8:0
Use the host bridge offset information to convert bus address to
resource address in the fixup.
Signed-off-by: Sinan Kaya <redacted>
Reviewed-by: Ard Biesheuvel <redacted>
Bartlomiej, could you please take these via the fbdev tree for v4.19?
Peter already gave his ack but Sinan dropped it (presumably because of
the split in v2)
Sinan, does this need to go to -stable? I.e., has it ever worked
before?
Yes, it needs to go to stable. It never worked before. Issue was found
during a graphics bring up with AST driver.
It needs a 32 bit graphics card and a 32 bit translating host bridge to
hit the issue.
On Wednesday, June 13, 2018 05:45:48 PM Ard Biesheuvel wrote:
On 18 May 2018 at 16:17, Sinan Kaya [off-list ref] wrote:
quoted
A host bridge is allowed to remap BAR addresses using _TRA attribute in
_CRS windows.
pci_bus 0000:00: root bus resource [mem 0x80100100000-0x8011fffffff window] (bus address [0x00100000-0x1fffffff])
pci 0000:02:00.0: reg 0x10: [mem 0x8011e000000-0x8011effffff]
When a VGA device is behind such a host bridge and the resource is
translated efifb driver is trying to do ioremap against bus address
rather than the resource address and is failing to probe.
efifb: probing for efifb
efifb: cannot reserve video memory at 0x1e000000
efifb: framebuffer at 0x1e000000, using 1920k, total 1875k
efifb: mode is 800x600x32, linelength200, pages=1
efifb: scrolling: redraw
efifb: Truecolor: size=8:8:8:8, shift$:16:8:0
Use the host bridge offset information to convert bus address to
resource address in the fixup.
Signed-off-by: Sinan Kaya <redacted>
Reviewed-by: Ard Biesheuvel <redacted>
Bartlomiej, could you please take these via the fbdev tree for v4.19?
Sure, I will queue it after the current merge window.
Peter already gave his ack but Sinan dropped it (presumably because of
the split in v2)
Peter, can I (re)add your ACK to V2 patches?
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
On 13 June 2018 at 18:08, Bartlomiej Zolnierkiewicz
[off-list ref] wrote:
On Wednesday, June 13, 2018 05:45:48 PM Ard Biesheuvel wrote:
quoted
On 18 May 2018 at 16:17, Sinan Kaya [off-list ref] wrote:
quoted
A host bridge is allowed to remap BAR addresses using _TRA attribute in
_CRS windows.
pci_bus 0000:00: root bus resource [mem 0x80100100000-0x8011fffffff window] (bus address [0x00100000-0x1fffffff])
pci 0000:02:00.0: reg 0x10: [mem 0x8011e000000-0x8011effffff]
When a VGA device is behind such a host bridge and the resource is
translated efifb driver is trying to do ioremap against bus address
rather than the resource address and is failing to probe.
efifb: probing for efifb
efifb: cannot reserve video memory at 0x1e000000
efifb: framebuffer at 0x1e000000, using 1920k, total 1875k
efifb: mode is 800x600x32, linelength200, pages=1
efifb: scrolling: redraw
efifb: Truecolor: size=8:8:8:8, shift$:16:8:0
Use the host bridge offset information to convert bus address to
resource address in the fixup.
Signed-off-by: Sinan Kaya <redacted>
Reviewed-by: Ard Biesheuvel <redacted>
Bartlomiej, could you please take these via the fbdev tree for v4.19?
Sure, I will queue it after the current merge window.
quoted
Peter already gave his ack but Sinan dropped it (presumably because of
the split in v2)
Peter, can I (re)add your ACK to V2 patches?
Actually, it would be better if we could take this through the EFI
tree instead, with your ack. Would you mind?
There are some other efifb changes coming up, some of which depend on
core EFI changes, and taking these through different trees is going to
be more trouble than it's worth.
https://marc.info/?l=linux-efi&m2929425329015&w=2 from Hans, and the series
[PATCH v2 0/2] efi: add support for cacheable efifb mappings
that I just cc'ed you on a minute ago.
Thanks.
On Friday, June 22, 2018 09:54:22 AM Ard Biesheuvel wrote:
On 13 June 2018 at 18:08, Bartlomiej Zolnierkiewicz
[off-list ref] wrote:
quoted
On Wednesday, June 13, 2018 05:45:48 PM Ard Biesheuvel wrote:
quoted
On 18 May 2018 at 16:17, Sinan Kaya [off-list ref] wrote:
quoted
A host bridge is allowed to remap BAR addresses using _TRA attribute in
_CRS windows.
pci_bus 0000:00: root bus resource [mem 0x80100100000-0x8011fffffff window] (bus address [0x00100000-0x1fffffff])
pci 0000:02:00.0: reg 0x10: [mem 0x8011e000000-0x8011effffff]
When a VGA device is behind such a host bridge and the resource is
translated efifb driver is trying to do ioremap against bus address
rather than the resource address and is failing to probe.
efifb: probing for efifb
efifb: cannot reserve video memory at 0x1e000000
efifb: framebuffer at 0x1e000000, using 1920k, total 1875k
efifb: mode is 800x600x32, linelength200, pages=1
efifb: scrolling: redraw
efifb: Truecolor: size=8:8:8:8, shift$:16:8:0
Use the host bridge offset information to convert bus address to
resource address in the fixup.
Signed-off-by: Sinan Kaya <redacted>
Reviewed-by: Ard Biesheuvel <redacted>
Bartlomiej, could you please take these via the fbdev tree for v4.19?
Sure, I will queue it after the current merge window.
quoted
Peter already gave his ack but Sinan dropped it (presumably because of
the split in v2)
Peter, can I (re)add your ACK to V2 patches?
Actually, it would be better if we could take this through the EFI
tree instead, with your ack. Would you mind?
Fine with me.
There are some other efifb changes coming up, some of which depend on
core EFI changes, and taking these through different trees is going to
be more trouble than it's worth.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
On Friday, June 22, 2018 12:07:48 PM Bartlomiej Zolnierkiewicz wrote:
On Friday, June 22, 2018 09:54:22 AM Ard Biesheuvel wrote:
quoted
On 13 June 2018 at 18:08, Bartlomiej Zolnierkiewicz
[off-list ref] wrote:
quoted
On Wednesday, June 13, 2018 05:45:48 PM Ard Biesheuvel wrote:
quoted
On 18 May 2018 at 16:17, Sinan Kaya [off-list ref] wrote:
quoted
A host bridge is allowed to remap BAR addresses using _TRA attribute in
_CRS windows.
pci_bus 0000:00: root bus resource [mem 0x80100100000-0x8011fffffff window] (bus address [0x00100000-0x1fffffff])
pci 0000:02:00.0: reg 0x10: [mem 0x8011e000000-0x8011effffff]
When a VGA device is behind such a host bridge and the resource is
translated efifb driver is trying to do ioremap against bus address
rather than the resource address and is failing to probe.
efifb: probing for efifb
efifb: cannot reserve video memory at 0x1e000000
efifb: framebuffer at 0x1e000000, using 1920k, total 1875k
efifb: mode is 800x600x32, linelength200, pages=1
efifb: scrolling: redraw
efifb: Truecolor: size=8:8:8:8, shift$:16:8:0
Use the host bridge offset information to convert bus address to
resource address in the fixup.
Signed-off-by: Sinan Kaya <redacted>
Reviewed-by: Ard Biesheuvel <redacted>
Bartlomiej, could you please take these via the fbdev tree for v4.19?
Sure, I will queue it after the current merge window.
quoted
Peter already gave his ack but Sinan dropped it (presumably because of
the split in v2)
Peter, can I (re)add your ACK to V2 patches?
Actually, it would be better if we could take this through the EFI
tree instead, with your ack. Would you mind?
Fine with me.
Acked-by: Bartlomiej Zolnierkiewicz <redacted>
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
On Wednesday, June 13, 2018 05:42:11 PM Ard Biesheuvel wrote:
On 18 May 2018 at 16:17, Sinan Kaya [off-list ref] wrote:
quoted
Get rid of base and size variables in favor of a struct resource.
The conditional for checking window can be replaced with
resource_contains().
Signed-off-by: Sinan Kaya <redacted>
Reviewed-by: Ard Biesheuvel <redacted>
Acked-by: Bartlomiej Zolnierkiewicz <redacted>
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics