svn commit: r355701 - stable/11/sys/x86/x86

2019-12-12 Thread Scott Long
Author: scottl Date: Fri Dec 13 06:54:41 2019 New Revision: 355701 URL: https://svnweb.freebsd.org/changeset/base/355701 Log: Merge r355134,355375,355589 Clean up and clarify meta commentary on TAA. Add a state to denote that TSX doesn't exist on the CPU. x86: Add missed break to

svn commit: r355700 - head/usr.sbin/ntp

2019-12-12 Thread Conrad Meyer
Author: cem Date: Fri Dec 13 05:54:38 2019 New Revision: 355700 URL: https://svnweb.freebsd.org/changeset/base/355700 Log: ntpd(8): Don't use OpenSSL's RAND API The !USE_OPENSSL_CRYPTO_RAND path uses arc4random_buf() correctly. In general, we should prefer to avoid things OpenSSL does

svn commit: r355699 - head/contrib/telnet/libtelnet

2019-12-12 Thread Conrad Meyer
Author: cem Date: Fri Dec 13 05:42:57 2019 New Revision: 355699 URL: https://svnweb.freebsd.org/changeset/base/355699 Log: libtelnet: Replace bogus use of srandomdev + random to generate "public key pair" I'm pretty skeptical that any crypto in telnet is worth using, but if we're

svn commit: r355698 - stable/12/sys/x86/x86

2019-12-12 Thread Scott Long
Author: scottl Date: Fri Dec 13 05:29:26 2019 New Revision: 355698 URL: https://svnweb.freebsd.org/changeset/base/355698 Log: Merge r355134,355375,355589 Clean up and clarify meta commentary on TAA. Add a state to denote that TSX doesn't exist on the CPU. x86: Add missed break to

Re: svn commit: r355696 - head/lib/libtacplus

2019-12-12 Thread Benjamin Kaduk
On Thu, Dec 12, 2019 at 9:11 PM Conrad Meyer wrote: > Author: cem > Date: Fri Dec 13 05:11:34 2019 > New Revision: 355696 > URL: https://svnweb.freebsd.org/changeset/base/355696 > > Log: > libtacplus: Remove bogus srandomdev+random > > Replace with arc4random. > > TACAS+ is a 1993 Cisco

svn commit: r355697 - head/contrib/bsnmp/snmpd

2019-12-12 Thread Conrad Meyer
Author: cem Date: Fri Dec 13 05:13:25 2019 New Revision: 355697 URL: https://svnweb.freebsd.org/changeset/base/355697 Log: bsnmpd(1): Replace dubious srandomdev+random(3) with arc4random(3) Modified: head/contrib/bsnmp/snmpd/main.c Modified: head/contrib/bsnmp/snmpd/main.c

svn commit: r355696 - head/lib/libtacplus

2019-12-12 Thread Conrad Meyer
Author: cem Date: Fri Dec 13 05:11:34 2019 New Revision: 355696 URL: https://svnweb.freebsd.org/changeset/base/355696 Log: libtacplus: Remove bogus srandomdev+random Replace with arc4random. TACAS+ is a 1993 Cisco extension to the 1984 TACAS. Is this something we want in base

svn commit: r355695 - head/lib/libradius

2019-12-12 Thread Conrad Meyer
Author: cem Date: Fri Dec 13 04:55:17 2019 New Revision: 355695 URL: https://svnweb.freebsd.org/changeset/base/355695 Log: libradius: Rip out dubious use of srandomdev(3)+random(3) These functions appear to intend to produce unpredictable results. Just use arc4random. While here,

svn commit: r355694 - head/sys/kern

2019-12-12 Thread Conrad Meyer
Author: cem Date: Fri Dec 13 04:48:20 2019 New Revision: 355694 URL: https://svnweb.freebsd.org/changeset/base/355694 Log: kern/subr_unit: Rip srandomdev, random(3) out of dead code The simulation cannot be reproduced, so the value of using a deterministic PRNG like random(3) is

svn commit: r355693 - head/usr.bin/random

2019-12-12 Thread Conrad Meyer
Author: cem Date: Fri Dec 13 04:37:39 2019 New Revision: 355693 URL: https://svnweb.freebsd.org/changeset/base/355693 Log: random(6): produce random results This program is trash and there's no reason to keep it in base. But as long as we're shipping a silly program named 'random',

svn commit: r355692 - head/sbin/fsirand

2019-12-12 Thread Conrad Meyer
Author: cem Date: Fri Dec 13 04:12:13 2019 New Revision: 355692 URL: https://svnweb.freebsd.org/changeset/base/355692 Log: fsirand(8): Just use arc4random(3) Remove single use of dubious srandomdev(3) + random(3) and replace with arc4random(3), as is used already in this program.

svn commit: r355690 - in stable: 11/sys/kern 11/sys/sys 12/sys/kern 12/sys/sys

2019-12-12 Thread Kyle Evans
Author: kevans Date: Fri Dec 13 04:03:03 2019 New Revision: 355690 URL: https://svnweb.freebsd.org/changeset/base/355690 Log: MFC r352350: rangelock: add rangelock_cookie_assert A future change to posixshm to add file sealing will move locking out of shm_dotruncate as kern_shm_open()

svn commit: r355690 - in stable: 11/sys/kern 11/sys/sys 12/sys/kern 12/sys/sys

2019-12-12 Thread Kyle Evans
Author: kevans Date: Fri Dec 13 04:03:03 2019 New Revision: 355690 URL: https://svnweb.freebsd.org/changeset/base/355690 Log: MFC r352350: rangelock: add rangelock_cookie_assert A future change to posixshm to add file sealing will move locking out of shm_dotruncate as kern_shm_open()

svn commit: r355691 - head/usr.sbin/keyserv

2019-12-12 Thread Conrad Meyer
Author: cem Date: Fri Dec 13 04:03:05 2019 New Revision: 355691 URL: https://svnweb.freebsd.org/changeset/base/355691 Log: keyserv(8): unifdef out __FreeBSD__ and KEYSERV_RANDOM This doesn't appear to have some active upstream (and it's a steaming pile of bad 90s crypto design). Rip out

svn commit: r355689 - in stable: 11/sys/kern 12/sys/kern

2019-12-12 Thread Kyle Evans
Author: kevans Date: Fri Dec 13 03:29:54 2019 New Revision: 355689 URL: https://svnweb.freebsd.org/changeset/base/355689 Log: MFC r343777, r352244-r352245: kenv fix + assertions r343777: Fix zapping of static hints and env in init_static_kenv(). Environments are terminated by 2 NULs,

svn commit: r355689 - in stable: 11/sys/kern 12/sys/kern

2019-12-12 Thread Kyle Evans
Author: kevans Date: Fri Dec 13 03:29:54 2019 New Revision: 355689 URL: https://svnweb.freebsd.org/changeset/base/355689 Log: MFC r343777, r352244-r352245: kenv fix + assertions r343777: Fix zapping of static hints and env in init_static_kenv(). Environments are terminated by 2 NULs,

svn commit: r355688 - head/sys/dev/iicbus

2019-12-12 Thread Ian Lepore
Author: ian Date: Fri Dec 13 02:20:26 2019 New Revision: 355688 URL: https://svnweb.freebsd.org/changeset/base/355688 Log: If device_delete_children() returns an error, bail on the rest of the detach work and return the error. Especially don't call iicbus_reset() since the most likely

svn commit: r355687 - head/usr.sbin/bhyve

2019-12-12 Thread John Baldwin
Author: jhb Date: Fri Dec 13 02:18:44 2019 New Revision: 355687 URL: https://svnweb.freebsd.org/changeset/base/355687 Log: Document that the debug server supports writing to guest memory. This was added in r348212. Modified: head/usr.sbin/bhyve/bhyve.8 Modified:

svn commit: r355686 - head/usr.sbin/bhyve

2019-12-12 Thread John Baldwin
Author: jhb Date: Fri Dec 13 02:15:34 2019 New Revision: 355686 URL: https://svnweb.freebsd.org/changeset/base/355686 Log: Fix a mismerge in r355683 and remove the local gdb_port from main. Modified: head/usr.sbin/bhyve/bhyverun.c Modified: head/usr.sbin/bhyve/bhyverun.c

svn commit: r355685 - head/sys/dev/iicbus

2019-12-12 Thread Ian Lepore
Author: ian Date: Fri Dec 13 01:38:48 2019 New Revision: 355685 URL: https://svnweb.freebsd.org/changeset/base/355685 Log: Clean up some of my copyrights; add SPDX tag and remove All rights reserved. Modified: head/sys/dev/iicbus/ads111x.c head/sys/dev/iicbus/ds13rtc.c

svn commit: r355684 - in head/sys/fs: nfsclient nfsserver

2019-12-12 Thread Rick Macklem
Author: rmacklem Date: Fri Dec 13 01:34:25 2019 New Revision: 355684 URL: https://svnweb.freebsd.org/changeset/base/355684 Log: Add some more initializations to quiet riscv build. The one case in nfs_copy_file_range() was a legitimate case, although it would probably never occur in

svn commit: r355683 - head/usr.sbin/bhyve

2019-12-12 Thread John Baldwin
Author: jhb Date: Fri Dec 13 01:17:20 2019 New Revision: 355683 URL: https://svnweb.freebsd.org/changeset/base/355683 Log: Don't call into the debug server if it isn't configured. Reviewed by: markj (as part of a larger diff) MFC after:1 month Differential Revision:

svn commit: r355682 - head/sys/fs/nfsserver

2019-12-12 Thread Rick Macklem
Author: rmacklem Date: Fri Dec 13 00:45:14 2019 New Revision: 355682 URL: https://svnweb.freebsd.org/changeset/base/355682 Log: Fix the build for MAC not defined and a couple of might not be initialized. r355677 broke the build for the not MAC defined case and a couple of might not be

svn commit: r355681 - in head/sys: kern sys

2019-12-12 Thread Rick Macklem
Author: rmacklem Date: Fri Dec 13 00:14:12 2019 New Revision: 355681 URL: https://svnweb.freebsd.org/changeset/base/355681 Log: r355677 requires that vop_stdioctl() be global so it can be called from NFS. r355677 modified the NFS client so that it does lseek(SEEK_DATA/SEEK_HOLE) for

svn commit: r355680 - head/sys/vm

2019-12-12 Thread Mark Johnston
Author: markj Date: Thu Dec 12 23:55:34 2019 New Revision: 355680 URL: https://svnweb.freebsd.org/changeset/base/355680 Log: Avoid relying on silent type casting in the native atomic_load_32. Reported by: np Modified: head/sys/vm/vm_page.h Modified: head/sys/vm/vm_page.h

Re: svn commit: r355609 - head

2019-12-12 Thread Bryan Drewery
On 12/11/2019 6:54 AM, Ed Maste wrote: > Author: emaste > Date: Wed Dec 11 14:54:29 2019 > New Revision: 355609 > URL: https://svnweb.freebsd.org/changeset/base/355609 > > Log: > Make NOCLEAN an error instead of a warning > > The warning was added in r289728 (over four years ago) and at

svn commit: r355679 - head/sys/sys

2019-12-12 Thread Rick Macklem
Author: rmacklem Date: Thu Dec 12 23:37:04 2019 New Revision: 355679 URL: https://svnweb.freebsd.org/changeset/base/355679 Log: Bump __FreeBSD_version since r355677 changes the internal interface between the NFS modules such that they all need to be upgraded to post r355677 simultaneously.

svn commit: r355678 - head

2019-12-12 Thread Rick Macklem
false,junk:false' /etc/malloc.conf".) +20191212: + r355677 has modified the internal interface used between the + NFS modules in the kernel. As such, they must all be upgraded + simultaneously. I will do a version bump for this. + 20191205: The root certificates of the

svn commit: r355677 - in head/sys/fs: nfs nfsclient nfsserver

2019-12-12 Thread Rick Macklem
Author: rmacklem Date: Thu Dec 12 23:22:55 2019 New Revision: 355677 URL: https://svnweb.freebsd.org/changeset/base/355677 Log: Add support for NFSv4.2 to the NFS client and server. This patch adds support for NFSv4.2 (RFC-7862) and Extended Attributes (RFC-8276) to the NFS client and

svn commit: r355676 - head/libexec/rtld-elf

2019-12-12 Thread Konstantin Belousov
Author: kib Date: Thu Dec 12 22:59:22 2019 New Revision: 355676 URL: https://svnweb.freebsd.org/changeset/base/355676 Log: rtld: make checks for mmap(2) failures compliant with documentation. On error, mmap(2) returns MAP_FAILED. There is no need to use its definition or to cast.

svn commit: r355674 - in stable/12/sys/fs: nfs nfsserver

2019-12-12 Thread Rick Macklem
Author: rmacklem Date: Thu Dec 12 22:00:10 2019 New Revision: 355674 URL: https://svnweb.freebsd.org/changeset/base/355674 Log: MFC: r354989 Fix the pNFS server's reporting of SpaceUsed (va_bytes). The pNFS server currently reports SpaceUsed (va_bytes) for the metadata file. This in

svn commit: r355673 - head/sys/dev/cxgbe

2019-12-12 Thread Navdeep Parhar
Author: np Date: Thu Dec 12 21:33:00 2019 New Revision: 355673 URL: https://svnweb.freebsd.org/changeset/base/355673 Log: cxgbe(4): Never use hardware checksumming in netmap tx. MFC after:1 week Sponsored by: Chelsio Communications Modified: head/sys/dev/cxgbe/t4_netmap.c

svn commit: r355672 - head/sys/vm

2019-12-12 Thread Mark Johnston
Author: markj Date: Thu Dec 12 21:13:20 2019 New Revision: 355672 URL: https://svnweb.freebsd.org/changeset/base/355672 Log: Implement atomic state updates using the new vm_page_astate_t structure. Introduce primitives vm_page_astate_load() and vm_page_astate_fcmpset() to operate on the

svn commit: r355671 - head/lib/libpmc/pmu-events

2019-12-12 Thread Ed Maste
Author: emaste Date: Thu Dec 12 20:55:43 2019 New Revision: 355671 URL: https://svnweb.freebsd.org/changeset/base/355671 Log: libpmc: add MIT SPDX tag to header file The jevents tool includes a copy of the jsmn json parser which is MIT licensed. Upstream the MIT license appears in the

svn commit: r355670 - head/sys/contrib/ipfilter/netinet

2019-12-12 Thread Cy Schubert
Author: cy Date: Thu Dec 12 20:44:49 2019 New Revision: 355670 URL: https://svnweb.freebsd.org/changeset/base/355670 Log: Rather than pass the address of the packet information control block to ipf_pcksum6(), directly pass the adddress of the mbuf to it. This reduces one pointer

svn commit: r355669 - head/sys/contrib/ipfilter/netinet

2019-12-12 Thread Cy Schubert
Author: cy Date: Thu Dec 12 20:44:46 2019 New Revision: 355669 URL: https://svnweb.freebsd.org/changeset/base/355669 Log: in6_cksum() returns zero when checksums are good. PR: 203275 Reported by: Frank Volf MFC after:3 days Modified:

svn commit: r355668 - in head/lib/libpmc/pmu-events/arch/s390: cf_z10 cf_z13 cf_z14 cf_z196 cf_zec12

2019-12-12 Thread Ed Maste
Author: emaste Date: Thu Dec 12 19:37:10 2019 New Revision: 355668 URL: https://svnweb.freebsd.org/changeset/base/355668 Log: libpmc: convert s390 events data to proper json Modified: head/lib/libpmc/pmu-events/arch/s390/cf_z10/basic.json

svn commit: r355667 - in head/lib/libpmc/pmu-events/arch/powerpc: power8 power9

2019-12-12 Thread Ed Maste
Author: emaste Date: Thu Dec 12 19:33:16 2019 New Revision: 355667 URL: https://svnweb.freebsd.org/changeset/base/355667 Log: libpmc: convert powerpc event files to proper json Modified: head/lib/libpmc/pmu-events/arch/powerpc/power8/cache.json

svn commit: r355666 - head/lib/libpmc/pmu-events/arch/x86/amdfam17h

2019-12-12 Thread Ed Maste
Author: emaste Date: Thu Dec 12 19:23:38 2019 New Revision: 355666 URL: https://svnweb.freebsd.org/changeset/base/355666 Log: libpmc: sort some amdfam17h entries to make valid json Modified: head/lib/libpmc/pmu-events/arch/x86/amdfam17h/core.json

svn commit: r355665 - in stable/12/sys: arm/broadcom/bcm2835 arm64/conf conf

2019-12-12 Thread Kyle Evans
Author: kevans Date: Thu Dec 12 19:21:16 2019 New Revision: 355665 URL: https://svnweb.freebsd.org/changeset/base/355665 Log: MFC Collection of Raspberry Pi fixes: r348803-r348804, r354488, r354524, r354560-r354561, r354563, r354577, r354579, r354823, r354825, r354844-r354846, r354868,

svn commit: r355664 - stable/11/usr.bin/netstat

2019-12-12 Thread Baptiste Daroussin
Author: bapt Date: Thu Dec 12 19:17:30 2019 New Revision: 355664 URL: https://svnweb.freebsd.org/changeset/base/355664 Log: MFC: r34 Fix: netstat -rs Routing statistics requires somes symbols that are only loaded when not running live. Load them only in that specific case

svn commit: r355663 - stable/12/usr.bin/netstat

2019-12-12 Thread Baptiste Daroussin
Author: bapt Date: Thu Dec 12 19:17:26 2019 New Revision: 355663 URL: https://svnweb.freebsd.org/changeset/base/355663 Log: MFC: r34 Fix: netstat -rs Routing statistics requires somes symbols that are only loaded when not running live. Load them only in that specific case

svn commit: r355662 - in stable: 11/lib/libbe 12/lib/libbe

2019-12-12 Thread Kyle Evans
Author: kevans Date: Thu Dec 12 18:53:45 2019 New Revision: 355662 URL: https://svnweb.freebsd.org/changeset/base/355662 Log: MFC r355460: libbe: fix build against sysutils/openzfs, part 1 This is the half of the changes required that work as-is with both in-tree ZFS and the new hotness,

svn commit: r355662 - in stable: 11/lib/libbe 12/lib/libbe

2019-12-12 Thread Kyle Evans
Author: kevans Date: Thu Dec 12 18:53:45 2019 New Revision: 355662 URL: https://svnweb.freebsd.org/changeset/base/355662 Log: MFC r355460: libbe: fix build against sysutils/openzfs, part 1 This is the half of the changes required that work as-is with both in-tree ZFS and the new hotness,

svn commit: r355661 - in stable: 11/stand/lua 12/stand/lua

2019-12-12 Thread Kyle Evans
Author: kevans Date: Thu Dec 12 18:51:32 2019 New Revision: 355661 URL: https://svnweb.freebsd.org/changeset/base/355661 Log: MFC r354247, r355349: lualoader try_include improvement r354247: lualoader: rewrite try_include using lfs + dofile Actual modules get require()'d in, rather

svn commit: r355661 - in stable: 11/stand/lua 12/stand/lua

2019-12-12 Thread Kyle Evans
Author: kevans Date: Thu Dec 12 18:51:32 2019 New Revision: 355661 URL: https://svnweb.freebsd.org/changeset/base/355661 Log: MFC r354247, r355349: lualoader try_include improvement r354247: lualoader: rewrite try_include using lfs + dofile Actual modules get require()'d in, rather

svn commit: r355660 - in head/sys: kern sys

2019-12-12 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Dec 12 18:45:31 2019 New Revision: 355660 URL: https://svnweb.freebsd.org/changeset/base/355660 Log: Add kern_sync(9), and make kernel code call it instead of going via sys_sync(2). Minor cleanup, no functional changes. Reviewed by: kib MFC after:2 weeks

svn commit: r355659 - in head/sys/arm64: arm64 include

2019-12-12 Thread Andrew Turner
Author: andrew Date: Thu Dec 12 18:27:54 2019 New Revision: 355659 URL: https://svnweb.freebsd.org/changeset/base/355659 Log: Add comments and macros to the tcr_el1 setting code to help understand it. This code is non-obvious when reading for the first time. To help with understanding of

svn commit: r355658 - in stable/12: include sys/sys

2019-12-12 Thread Dimitry Andric
Author: dim Date: Thu Dec 12 18:16:32 2019 New Revision: 355658 URL: https://svnweb.freebsd.org/changeset/base/355658 Log: MFC r355568: Correctly check for C++17 and higher when declaring timespec_get() Summary: In rS338751, the check to declare `timespec_get()` for C++17 and higher

svn commit: r355657 - head/libexec/rtld-elf

2019-12-12 Thread Brandon Bergren
Author: bdragon Date: Thu Dec 12 17:40:32 2019 New Revision: 355657 URL: https://svnweb.freebsd.org/changeset/base/355657 Log: rtld: do not try to mmap a zero-sized PT_LOAD When a PT_LOAD segment has a zero p_filesz, skip the data mmap, as mmapping zero bytes from a file is an error.

svn commit: r355656 - in head: lib/libc/powerpcspe/gen lib/msun/powerpc sys/powerpc/booke

2019-12-12 Thread Brandon Bergren
Author: bdragon Date: Thu Dec 12 17:12:18 2019 New Revision: 355656 URL: https://svnweb.freebsd.org/changeset/base/355656 Log: [PowerPC] Fix SPE floating point environment manipulation Fix multiple problems in the powerpcspe floating point code. * Endianness handling of the SPEFSCR in

svn commit: r355655 - head/sys/powerpc/aim

2019-12-12 Thread Brandon Bergren
Author: bdragon Date: Thu Dec 12 16:49:55 2019 New Revision: 355655 URL: https://svnweb.freebsd.org/changeset/base/355655 Log: [PowerPC] Fix powerpc 32 bit build in mmu_oea64.c Due to ppc32 building mmu_oea64.c (for use when in bridge mode on a G5), we need to guard the new

svn commit: r355654 - in head/lib/libpmc/pmu-events/arch/s390: cf_z13 cf_z14

2019-12-12 Thread Ed Maste
Author: emaste Date: Thu Dec 12 14:52:37 2019 New Revision: 355654 URL: https://svnweb.freebsd.org/changeset/base/355654 Log: libpmc: remove undesired prefix from two s390 counters Two counters included a prefix 'Counter:###\tName:XXX' in their descriptions that appears to be a leftover

svn commit: r355653 - in stable/11/sys/dev/mlx5: . mlx5_core mlx5_en

2019-12-12 Thread Konstantin Belousov
Author: kib Date: Thu Dec 12 13:48:23 2019 New Revision: 355653 URL: https://svnweb.freebsd.org/changeset/base/355653 Log: MFC r355422: mlx5: Do not poke hardware for statistic after teardown is started. Modified: stable/11/sys/dev/mlx5/driver.h

svn commit: r355652 - in stable/12/sys/dev/mlx5: . mlx5_core mlx5_en

2019-12-12 Thread Konstantin Belousov
Author: kib Date: Thu Dec 12 13:47:02 2019 New Revision: 355652 URL: https://svnweb.freebsd.org/changeset/base/355652 Log: MFC r355422: mlx5: Do not poke hardware for statistic after teardown is started. Modified: stable/12/sys/dev/mlx5/driver.h

svn commit: r355651 - stable/12/sys/fs/tmpfs

2019-12-12 Thread Konstantin Belousov
Author: kib Date: Thu Dec 12 13:46:02 2019 New Revision: 355651 URL: https://svnweb.freebsd.org/changeset/base/355651 Log: MFC r355407: Stop using per-mount tmpfs zones. Modified: stable/12/sys/fs/tmpfs/tmpfs.h stable/12/sys/fs/tmpfs/tmpfs_subr.c stable/12/sys/fs/tmpfs/tmpfs_vfsops.c

svn commit: r355650 - in head/sys: modules/ipfw_nat64 netpfil/ipfw/nat64

2019-12-12 Thread Andrey V. Elsukov
Author: ae Date: Thu Dec 12 13:28:46 2019 New Revision: 355650 URL: https://svnweb.freebsd.org/changeset/base/355650 Log: Follow RFC 4443 p2.2 and always use own addresses for reflected ICMPv6 datagrams. Previously destination address from original datagram was used. That looked

svn commit: r355649 - head/sys/arm64/rockchip

2019-12-12 Thread Emmanuel Vadot
Author: manu Date: Thu Dec 12 13:21:43 2019 New Revision: 355649 URL: https://svnweb.freebsd.org/changeset/base/355649 Log: arm64: rockchip: rk_pinctrl: Fix parse_bias for RK3399 Only bank 0 and bank 2 are different than other rockchip SoC, fix this. While here remove some debug printfs

svn commit: r355648 - head/sys/arm64/rockchip

2019-12-12 Thread Emmanuel Vadot
Author: manu Date: Thu Dec 12 13:02:22 2019 New Revision: 355648 URL: https://svnweb.freebsd.org/changeset/base/355648 Log: arm64: rockchip: rk_pinctrl: Add bias parsing based on the SoC type Not all rockchip have the same value for pullup/pulldown so add a function per SoC and call the