[patch] sys/boot/fdt/fdt_loader_cmd.c

2015-02-20 Thread Dmitry Luhtionov
--- sys/boot/fdt/fdt_loader_cmd.c.orig 2015-02-04 10:06:18.0 +0200
+++ sys/boot/fdt/fdt_loader_cmd.c 2015-02-20 23:50:26.0 +0200
@@ -1299,13 +1299,12 @@ fdt_merge_strings(int argc, char *argv[]
  sz += argc - start;

  buf = (char *)malloc(sizeof(char) * sz);
- bzero(buf, sizeof(char) * sz);
-
  if (buf == NULL) {
  sprintf(command_errbuf, "could not allocate space "
 "for string");
  return (1);
  }
+ bzero(buf, sizeof(char) * sz);

  idx = 0;
  for (i = start, idx = 0; i < argc; i++) {
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


[Patch] Display IOMMU pci subclass

2014-05-06 Thread Dmitry Luhtionov
pciconf output, found on Tyan S8236 motherboard

none0@pci0:0:0:2:   class=0x080600 card=0x5a231002 chip=0x5a231002
rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'RD990 I/O Memory Management Unit (IOMMU)'
class  = base peripheral

References:

http://www.pcisig.com/specifications/conventional/ECN_subclass_IB.pdf
http://www.pcisig.com/specifications/pciexpress/specifications/ECN-Change_Root_Complex_Event_Collector_Class_Code_2012-12-13.pdf
--- /usr/src/sys/dev/pci/pcireg.h.orig	2014-05-06 12:04:18.0 +0300
+++ /usr/src/sys/dev/pci/pcireg.h	2014-05-06 12:14:53.0 +0300
@@ -321,6 +321,7 @@
 #define	PCIS_NETWORK_ISDN	0x04
 #define	PCIS_NETWORK_WORLDFIP	0x05
 #define	PCIS_NETWORK_PICMG	0x06
+#define	PCIS_NETWORK_INFINIBAND	0x07
 #define	PCIS_NETWORK_OTHER	0x80
 
 #define	PCIC_DISPLAY	0x03
@@ -384,6 +385,7 @@
 #define	PCIS_BASEPERIPH_RTC	0x03
 #define	PCIS_BASEPERIPH_PCIHOT	0x04
 #define	PCIS_BASEPERIPH_SDHC	0x05
+#define	PCIS_BASEPERIPH_IOMMU	0x06
 #define	PCIS_BASEPERIPH_OTHER	0x80
 
 #define	PCIC_INPUTDEV	0x09
--- /usr/src/usr.sbin/pciconf/pciconf.c.orig	2014-01-24 15:30:20.0 +0200
+++ /usr/src/usr.sbin/pciconf/pciconf.c	2014-05-06 12:38:43.0 +0300
@@ -466,6 +466,7 @@
 	{PCIC_BASEPERIPH,	PCIS_BASEPERIPH_RTC,	"realtime clock"},
 	{PCIC_BASEPERIPH,	PCIS_BASEPERIPH_PCIHOT,	"PCI hot-plug controller"},
 	{PCIC_BASEPERIPH,	PCIS_BASEPERIPH_SDHC,	"SD host controller"},
+	{PCIC_BASEPERIPH,	PCIS_BASEPERIPH_IOMMU,	"IOMMU"},
 	{PCIC_INPUTDEV,		-1,			"input device"},
 	{PCIC_INPUTDEV,		PCIS_INPUTDEV_KEYBOARD,	"keyboard"},
 	{PCIC_INPUTDEV,		PCIS_INPUTDEV_DIGITIZER,"digitizer"},
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Add support for Intel AMT technology on Intel Lynx Point chipset

2013-11-06 Thread Dmitry Luhtionov
--- /usr/src/sys/dev/uart/uart_bus_pci.c.orig2013-11-01
14:45:23.0 +0200
+++ /usr/src/sys/dev/uart/uart_bus_pci.c2013-11-04 11:15:54.0
+0200
@@ -122,6 +122,7 @@
 { 0x8086, 0x8812, 0x, 0, "Intel EG20T Serial Port 1", 0x10 },
 { 0x8086, 0x8813, 0x, 0, "Intel EG20T Serial Port 2", 0x10 },
 { 0x8086, 0x8814, 0x, 0, "Intel EG20T Serial Port 3", 0x10 },
+{ 0x8086, 0x8c3d, 0x, 0, "Intel Lynx Point KT Controller", 0x10 },
 { 0x9710, 0x9820, 0x1000, 1, "NetMos NM9820 Serial Port", 0x10 },
 { 0x9710, 0x9835, 0x1000, 1, "NetMos NM9835 Serial Port", 0x10 },
 { 0x9710, 0x9865, 0xa000, 0x1000, "NetMos NM9865 Serial Port", 0x10 },
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Add some non-standart usb device id's

2013-11-06 Thread Dmitry Luhtionov
--- /usr/src/sys/dev/usb/usbdevs.orig2013-11-01 14:44:43.0 +0200
+++ /usr/src/sys/dev/usb/usbdevs2013-11-04 13:56:17.0 +0200
@@ -2327,6 +2327,8 @@
 product INTEL TESTBOARD0x989082930 test board
 product INTEL2 IRMH0x0020Integrated Rate Matching Hub
 product INTEL2 IRMH20x0024Integrated Rate Matching Hub
+product INTEL2 IRMH30x8000Integrated Rate Matching Hub
+product INTEL2 IRMH40x8008Integrated Rate Matching Hub

 /* Interbiometric products */
 product INTERBIOMETRICS IOBOARD0x1002FTDI compatible adapter
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Add description for some cpuid bits

2013-11-06 Thread Dmitry Luhtionov
--- /usr/src/sys/amd64//amd64/identcpu.c.orig2013-11-01
14:43:15.0 +0200
+++ /usr/src/sys/amd64//amd64/identcpu.c2013-11-04 12:06:06.0
+0200
@@ -366,14 +366,14 @@
 "\017"
 "\020LWP"/* Lightweight Profiling */
 "\021FMA4"/* 4-operand FMA instructions */
-"\022"
+"\022TCE"/* Translation Cache Extension */
 "\023"
 "\024NodeId"/* NodeId MSR support */
 "\025"
 "\026TBM"/* Trailing Bit Manipulation */
 "\027Topology"/* Topology Extensions */
-"\030"
-"\031"
+"\030PCXC"/* Core performance counter extensions */
+"\031PNXC"/* NB performance counter extensions */
 "\032"
 "\033"
 "\034"
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"