From owner-freebsd-mips@freebsd.org Fri May 8 22:22:54 2020 Return-Path: Delivered-To: freebsd-mips@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3D8532E6424 for ; Fri, 8 May 2020 22:22:54 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49JlFn0qnmz3MLZ for ; Fri, 8 May 2020 22:22:53 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qt1-x829.google.com with SMTP id i68so2819560qtb.5 for ; Fri, 08 May 2020 15:22:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DvxLlDzpojhDaCGDE8LAgIp14MphdDBwX0E7fJlV5s4=; b=VUuE9QGyOPVANbdeDiDp4yKwFALdp+gXsi4zZvGiC+7xIRsaOMMGjxQ6EwojKj/H0q z5fTh11xxfYv2s5KA+ucW35HOkCTs+Qq1TqhhlzKiwXY6uvfddW/QRRfqvKBvpL5RQn3 4yXjLmU58a/l2KuBPWkOfPurZEdUQtLIlC7uxOm2q7xxqKu8WosxFtMZRMagJa6vXviE wcQZnvIfFU8tFvWK0oVVkdozp9KEjbSIFQUPsz/s6LCWJAvEhpFIRsfSjLByQpxvnoGb NdWdiR/cpJJnX/Luf9cXvpANOjKaEGfFVUFxCeVzvsaVVEgsssUqh5WLOpmHQPbBtA6D cRUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DvxLlDzpojhDaCGDE8LAgIp14MphdDBwX0E7fJlV5s4=; b=E9XGunft5pPO3AhA3v+eMjtw26+dOvLcBxU1PB7foSLTSN9yrOgwYKYBgwgYQFf7p5 X7akF5PbKt+2RjjwXn4FbCbgzdOnQDYZSNdXr5fwUcIWiRxYnUX7X6EY9vqoCunsHfaS pvLgBBZe+r6noxumU7ABlqngSw1p+x0/Bakirpvg58PjZsZHu4u8Y4WbYCjOspVCook4 MkoY3m5mRnL7WdKFCW5F5q2cQ0TXw0BBH7P/9hwgsBMBWP1SASp7qULRR4PczWiSxuL7 nB7bsnvGfrbjUBx5iW4UnXdb1xiSdLBJRHa7nODFx8ozbm0XghI8Hup+eV1e1lMeMPS3 RM1w== X-Gm-Message-State: AGi0Pual/ci7nlTJ1CLe6Nf6BPqSSuWti0QfYP2GKMV0sF3jenOffuMK 3Jf3ljYqcf8K6C8j5GpYd70rnKzzbEgcI5ZLTVY= X-Google-Smtp-Source: APiQypJRk3DV5n+4vONJNTjatV5TJ3nc+0gzK0BHk5WGs6AIEhfcPxLwbIfnSrgAT4tD0iunnqB3ilg6mrhEJ3PxZFQ= X-Received: by 2002:ac8:c8b:: with SMTP id n11mr4890443qti.49.1588976572241; Fri, 08 May 2020 15:22:52 -0700 (PDT) MIME-Version: 1.0 References: <1126553482.4132161.1585714894446.JavaMail.yahoo.ref@mail.yahoo.co.jp> <1126553482.4132161.1585714894446.JavaMail.yahoo@mail.yahoo.co.jp> <1913964975.170961.1585956280139.JavaMail.yahoo@mail.yahoo.co.jp> In-Reply-To: From: Adrian Chadd Date: Fri, 8 May 2020 15:22:39 -0700 Message-ID: Subject: Re: can not get mib from ar8316 on etherswitch To: Mori Hiroki Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 49JlFn0qnmz3MLZ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=VUuE9QGy; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::829 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[yahoo.co.jp]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.26), ipnet: 2607:f8b0::/32(-0.33), asn: 15169(-0.43), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-mips@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[9.2.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.32 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2020 22:22:54 -0000 Done, thanks! Let me know if you'd like to work on etherswitch/arswitch extensions to dump out the per-port MIBs. I'd really like to see that support show up. -adrian On Fri, 8 May 2020 at 15:02, Adrian Chadd wrote: > > hi! > > I can change the API to 32 bits. lemme do that on my test devices at home! > > > > -adrian > > On Fri, 3 Apr 2020 at 18:31, Mori Hiroki wrote: > > > > Hi > > > > I think this change have no compatibility. > > But Atheros switch code use 32Bit address > > value at register access. > > > > I make get mib script by mruby for AR8316 and RTL8366. > > > > https://github.com/ZRouter/ZRouter/tree/yamori813_modify/profiles/estools/files/usr/local/bin > > > > > > I use this script on bsnmp-ucd. > > > > > > ----- Original Message ----- > > > From: Mori Hiroki > > > To: "freebsd-mips@freebsd.org" > > > Cc: > > > Date: 2020/4/1, Wed 13:21 > > > Subject: can not get mib from ar8316 on etherswitch > > > > > > Hi > > > > > > I try to get mib from AR8316. But I can not get value. > > > > > > AR8316 mib start from 0x20000. This is over 16bit. > > > > > > But member is only 16Bit in sys/dev/etherswitch/etherswitch.h. > > > > > > struct etherswitch_reg { > > > uint16_t reg; > > > uint32_t val; > > > > > > }; > > > > > > I think good that is change to uint32_t at reg. > > > > > > Do you think this ? > > > > > > Thanks > > > > > > Hiroki Mori > > > > > > _______________________________________________ > > > freebsd-mips@freebsd.org mailing list > > > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > > > To unsubscribe, send any mail to > > > "freebsd-mips-unsubscribe@freebsd.org" > > > > > > > _______________________________________________ > > freebsd-mips@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"