Current-Users archive

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

Re: product id of each model (Re: work around patch (Re: kern info: [drm] failed to find VBIOS tables



For Panasonic CF-SX2, 

I've put (nasty) adhoc change, and it is now working.
(although the console screen looks 1024x768 pixels,
9.0_STABLE) X11 works with 1600 x 900 pixels.

Feb 28 17:17:45 CF-SX2 /netbsd: [   6.2067174] /export/git-work/netbsd-src/sys/dev/pci/pci_map.c: 400: pci_find_rom * XXXXX mapped XXXX
Cc: 
   ...
Feb 28 17:17:45 CF-SX2 /netbsd: [   6.2464082] intelfb0: framebuffer at 0xffffa800f54f4000, size 1600x900, depth 32, stride 6400

-- 
Makoto Fujiwara
mef%NetBSD.org@localhost
makoto%if.t.u-tokyo.ac.jp@localhost
Key fingerprint = 0BFA FAEB EAD1 90BA 7498  8F85 6809 9E0B B7EF A12E

diff --git a/sys/dev/pci/pci_map.c b/sys/dev/pci/pci_map.c
index 4952e604423..67877f4c56b 100644
--- a/sys/dev/pci/pci_map.c
+++ b/sys/dev/pci/pci_map.c
@@ -395,6 +395,10 @@ pci_find_rom(const struct pci_attach_args *pa, bus_space_tag_t bst,
 		    offsetof(struct pci_rom, rom_vendor));
 		rom.rom_product = bus_space_read_2(bst, bsh, ptr +
 		    offsetof(struct pci_rom, rom_product));
+		if (rom.rom_product  == 0x0106 ) {
+		  rom.rom_product  = 0x0166; 
+		  printf( "%s:%4d: %s * XXXXX mapped XXXX\n", __FILE__, __LINE__, __func__);
+		}
 		rom.rom_class = bus_space_read_1(bst, bsh,
 		    ptr + offsetof (struct pci_rom, rom_class));
 		rom.rom_subclass = bus_space_read_1(bst, bsh,



| To: current-users%netbsd.org@localhost
| From: Makoto Fujiwara <makoto%ki.nu@localhost>
| Subject: product id of each model (Re: work around patch (Re: kern info: [drm] failed to find VBIOS tables
| Date: Sun, 24 Feb 2019 22:31:44 +0900
| Message-ID: <yfmva19fh33.wl-makoto%ki.nu@localhost>

> product id's are as follows:
> The problem exists on
>   Let's Note CF-J10    i915drmkms0 at pci0 dev 2 function 0: vendor 8086 product 0046 (rev. 0x02) 
>   Let's Note CF-N10    i915drmkms0 at pci0 dev 2 function 0: vendor 8086 product 0126 (rev. 0x09)
>   Let's Note CF-SX2    i915drmkms0 at pci0 dev 2 function 0: vendor 8086 product 0166 (rev. 0x09)
> but does not exist on
>   Let's Note CF-SX3    i915drmkms0 at pci0 dev 2 function 0: vendor 8086 product 0a16 (rev. 0x0b)


> debug print's from following variable are as follows:
> +   rom.rom_vendor,       PCI_VENDOR(pa->pa_id),
> +   rom.rom_product,    PCI_PRODUCT(pa->pa_id),
> +   rom.rom_class,      PCI_CLASS(pa->pa_class),
> +   rom.rom_subclass,   PCI_SUBCLASS(pa->pa_class),
> +   rom.rom_interface,  PCI_INTERFACE(pa->pa_class),
> +	 rom.rom_code_type,  type);

> rom                 rom    pa->pa_id
> CF-J10
> 8086      8086       46       46        3        3        0        0        0        0        0        0
> CF-N10
> 8086      8086      106      126        3        3        0        0        0        0        0        0
> CF-SX2
> 8086      8086      106      166        3        3        0        0        0        0        0        0

> CF-SX3
> 8086      8086      406      a16        3        3        0        0        0        0        0        0

> Thank you, for reading,
> -- 
> Makoto Fujiwara
> mef%NetBSD.org@localhost
> makoto%if.t.u-tokyo.ac.jp@localhost



Home | Main Index | Thread Index | Old Index