NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: GOP and using monitor



Hello RVP,

I have tried first to change the GENERIC configuration, it changes to
the genfb0 to use the other output. But did not work.

I have then tried the hack, and the dmesg output is as such:

[     1.016451] genfb1 at pci0 dev 1 function 0: vendor 1002 product
1309 (rev. 0x00)
[     1.016451] genfb1: framebuffer at 0xe0000000, size 1366x768,
depth 32, stride 5632
[     1.016451] genfb1: shadow framebuffer enabled, size 4224 KB
[     1.016451] wsdisplay0 at genfb1 kbdmux 1: console (default, vt100
emulation), using wskbd0
[     1.016451] drm at genfb1 not configured
[     1.016451] genfb0 at pci1 dev 0 function 0: vendor 1002 product
6604 (rev. 0x00)
[     1.017188] genfb0 at pci1 dev 0 function 0: vendor 1002 product
6604 (rev. 0x00)
[     1.017188] genfb0: framebuffer at 0xe0000000, size 1366x768,
depth 32, stride 5632
[     1.017188] genfb0: shadow framebuffer enabled, size 4224 KB
[     1.017188] wsdisplay0 at genfb0 kbdmux 1: console (default, vt100
emulation), using wskbd0
[     1.017188] drm at genfb0 not configured

It looks like it is setting the same framebuffer to both the output.
But can not see any output on the monitor.

The monitor has a different resolution than the laptop screen. It is
bigger. That might be a problem maybe. Or the output is not enabled on
the radeon, since the driver is not enabled, but I am not sure about
this.

Regards,
Riza


On Thu, Oct 7, 2021 at 4:52 AM Riza Dindir <riza.dindir%gmail.com@localhost> wrote:
>
> Hello RVP,
>
> On Wed, Oct 6, 2021 at 10:33 AM RVP <rvp%sdf.org@localhost> wrote:
> >
> > On Tue, 5 Oct 2021, Riza Dindir wrote:
> >
> > > [Tue Oct  5 18:26:58 UTC 2021] genfb0 at pci0 dev 1 function 0: vendor 1002 product 1309 (rev. 0x00)
> > > [Tue Oct  5 18:26:58 UTC 2021] genfb0: framebuffer at 0xe0000000, size 1366x768, depth 32, stride 5632
> > > [Tue Oct  5 18:26:58 UTC 2021] genfb0: shadow framebuffer enabled, size 4224 KB
> > > [Tue Oct  5 18:26:58 UTC 2021] wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
> > > [Tue Oct  5 18:26:58 UTC 2021] drm at genfb0 not configured
> > > [Tue Oct  5 18:26:58 UTC 2021] genfb1 at pci1 dev 0 function 0: vendor 1002 product 6604 (rev. 0x00)
> > > [Tue Oct  5 18:26:58 UTC 2021] genfb1 at pci0 dev 1 function 0: vendor 1002 product 1309 (rev. 0x00)
> > > [Tue Oct  5 18:26:58 UTC 2021] genfb1: framebuffer at 0xe0000000, size 1366x768, depth 32, stride 5632
> > > [Tue Oct  5 18:26:58 UTC 2021] genfb1: shadow framebuffer enabled, size 4224 KB
> > > [Tue Oct  5 18:26:58 UTC 2021] wsdisplay0 at genfb1 kbdmux 1: console (default, vt100 emulation), using wskbd0
> > > [Tue Oct  5 18:26:58 UTC 2021] drm at genfb1 not configured
> > > [Tue Oct  5 18:26:58 UTC 2021] genfb0 at pci1 dev 0 function 0: vendor 1002 product 6604 (rev. 0x00)
> > >
> >
> > This is a mess: looks like both genfb0 and genfb1 have attached to
> > pci0 dev 1 function 0: vendor 1002 product 1309.
> >
> > Put back the original GENERIC config file, then compile a new kernel
> > with this patch:
> >
> > ---START PATCH---
> > --- sys/dev/pci/genfb_pci.c.orig        2016-07-07 06:55:41.000000000 +0000
> > +++ sys/dev/pci/genfb_pci.c     2021-10-06 07:07:49.948384764 +0000
> > @@ -83,6 +83,11 @@
> >         if (genfb_is_console())
> >                 matchlvl = 5;   /* beat VGA */
> >
> > +       /* XXX: HACK */
> > +       if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_ATI &&
> > +           PCI_PRODUCT(pa->pa_id) == 0x1309)
> > +               return 0;       /* skip AMD/ATI Kaveri [Radeon R6/R7 Graphics]
> > +
> >         if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_APPLE &&
> >             PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_APPLE_CONTROL)
> >                 return matchlvl;
> > ---END PATCH---
> >
> > You should, hopefully, get output on the external monitor _if_ that
> > VGA connector is attached to the other ATI card.
>
> I will try this hack on genfb_pci.c. But I am still not sure why the
> configuration change did not work. Will try that change again, first.
>
> >
> > -RVP
>
> Regards,
> Riza


Home | Main Index | Thread Index | Old Index