From owner-freebsd-hackers@freebsd.org Sun Mar 22 05:21:08 2020 Return-Path: Delivered-To: freebsd-hackers@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 03A6A27723C; Sun, 22 Mar 2020 05:21:08 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) (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 48lQpV65NVz4WDG; Sun, 22 Mar 2020 05:21:06 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: by mail-wr1-x434.google.com with SMTP id j17so8981148wru.13; Sat, 21 Mar 2020 22:21:06 -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; bh=esIcIld/4dxS4Q7Q2Hd+Oki6LmCOr8OltakdKnu8BI4=; b=CuLXI+QyBy8a6QyygSzZLUn+co7fjcdaiuyox4+O+c/kCyOeXtfKpvgnf637EfEP9u IdcCOihGT+z9LB4tU5DOYx9uTGuAQmHBgGNgk1MOilxfXE8lF4l9SH4n4X/fFVJTEk/q meUmdQ6k2aEMFHwkygfTPm4ZPDcDMsEfRtf5tB1E78PiDAaz0j+u9/5MCbMqsfDVgj3y XGd7dWsWS4JkIKCzJ+LPxCKg7yn74xFL0LcX46KbjShJJZoRNxHCDyd3Utw/Yqb7GU/6 pkJ8erxBSD5/GeABgetia1RWFjScelZ8au7fdpnyvcThUc1IcwnQzFsSRqUV9pncwwV5 75iQ== 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; bh=esIcIld/4dxS4Q7Q2Hd+Oki6LmCOr8OltakdKnu8BI4=; b=UHpHoCUWqs4FYRNbuieeJm4AxshMku0D26qloAdCrGAUWo8G+qgd3WR1K1x1qrZc6V AHNKeJU9dgwu07EPv3583cuQLxB8HdhRfpurdJuBFxtu3+c+czQk97eYB+tE8AHp3fO4 ZMoUEHblEhoNlzmJ3/FxThlZ8q2Ghu8CSvNor5LX5qFfz30z/Up+t9MdU9Z0FapGGLMx E2pHMmcWrDcCAF32JZOcwsrq2+K6OzcJ9Du3vTjKkT5lpFukBi/SdNf+lOdPwx6l74t7 znwdXim6zghi5ciUKxaQkg2cRAfI14W43nnd71k4j+JqpR4ifaY4MbAhZBwp+NUIAu5t VONQ== X-Gm-Message-State: ANhLgQ2HMoQe94S2CZpZ7zfqoy7X1/5Ptv2SwExcS6KEPErqANnfxKsA iGcueyjYGURPEhV25ZFdyoCrcpRyAub4j9e0DMmAFw== X-Google-Smtp-Source: ADFU+vvVecpt+k2fKLubONIqrvdjUvkAZwUk+Q9hCtqoMFggLornhGDrP80UuH+Lu3QSnO6WXiJyRNFwZkNeQkgGLaY= X-Received: by 2002:a5d:4d07:: with SMTP id z7mr20694876wrt.89.1584854464778; Sat, 21 Mar 2020 22:21:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Rajesh Kumar Date: Sun, 22 Mar 2020 10:50:51 +0530 Message-ID: Subject: Re: How to build a out-of-box network module with RSS To: freebsd-drivers@freebsd.org, FreeBSD Hackers X-Rspamd-Queue-Id: 48lQpV65NVz4WDG X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=CuLXI+Qy; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rajfbsd@gmail.com designates 2a00:1450:4864:20::434 as permitted sender) smtp.mailfrom=rajfbsd@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; 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)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; IP_SCORE(0.00)[ip: (-9.40), ipnet: 2a00:1450::/32(-2.39), asn: 15169(-0.74), country: US(-0.05)]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[4.3.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2020 05:21:08 -0000 Hi, Any thoughts about how to build a out-of-box network module with RSS enabled? Thanks, Rajesh. On Fri, Mar 20, 2020 at 11:34 AM Rajesh Kumar wrote: > Hi, > > I am writing a network driver. I am trying to test with RSS feature. I see > the default kernel config doesn't have RSS included. So, I built a custom > kernel with the following options set and installed the kernel with a > different name > > options PCBGROUP > options RSS > > After booting to the custom kernel, I am trying to build my network module > with opt_rss.h in my makefile. But I don't see "#define RSS 1" in > opt_rss.h in my module object directory. But I see it defined the custom > kernel OBJ directory. > > So, should I build my network modules as inbuilt module to have it work > with RSS? Or anyway I can build my module out-of-box with RSS? > > Please let me know if any details needed. > > Thanks, > Rajesh. > From owner-freebsd-hackers@freebsd.org Sun Mar 22 08:35:19 2020 Return-Path: Delivered-To: freebsd-hackers@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 D4ACF27AC22; Sun, 22 Mar 2020 08:35:19 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) (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 48lW6Z6F1lz4HMl; Sun, 22 Mar 2020 08:35:18 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: by mail-wm1-x343.google.com with SMTP id z18so2085368wmk.2; Sun, 22 Mar 2020 01:35:18 -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; bh=EYIQJb1muH+DqawygoCbMbt+0ntrkdsrjLtRTAPbABY=; b=lSn5i/47yfFEj+ZJgRSikBSxwXN+qpUqogBM5IX0LeAoshqVNU+BJTRNUNt2t+PIRm tOf+S83fVh3rKB8cGXQ9CzBW3Y2Wf/ioWuS6XD56o3WxrgTBdFhUGShDyKcf4xy9lDNf imaCrrmONk+Muh2ubxIPpIaLOGYouivETp6dceMxVdN1iFpABO0NK1kA+4HRHsfziEjt IzejI0I/HYj37lUH0teUlEsDhNlgbDYHp+erTpvHoNkE9ksntkAZzfuteyOR6+3/rNhU 8rilhusJi6XqKl32LNaH8XpiL1YMXoLr3scdUVxh97h9vIcNTs8MmvtBlnR3rbTJfDaM ccFw== 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; bh=EYIQJb1muH+DqawygoCbMbt+0ntrkdsrjLtRTAPbABY=; b=XJ/+qMPEBPpQQwpaRR+eGUJp16+Igu3THNBXjIl7KQvBMPJDS1vzUkXXDdr6w1PWiR Soi73L0tZIcJZ/0mdrueci3KlMAVmldTXXZvf5zyJN2sJI2JQRZ25OQq4PprMCrBBvG8 LaLuAbaI2LLgm6zryCUfe/OqA0aQQnPAMwTtQd0LsLXRKGNYOYSbrPkY0fbb0uZdJJog +nYsXh/zF/1aceYUsiKebcZUIUCGrK5ubAkCiRLdocJcte5xGejQ3oZdEJlLodsAHqfB cY4sflwjFEynOLjsSfqY4itCO7tWubHi0jVCqiHaOBW9h+zwdw5xvxH4GTK8U4/gauDT YPuQ== X-Gm-Message-State: ANhLgQ25uRH4NceJ8NWd8HIISE0SNHi0WammXJuI6VGPl+dWN4lQAARs fFq0I2ZwNRzT5NiTIVcnrVRUizFqkHFMdvdLca1mS8zR X-Google-Smtp-Source: ADFU+vvbT6ihRx18N1JVvH1QHNTmkLlgiOFAQ8bmp0r4Vi+1HYmlcT/+6kWc+5K7SJP1nbsGKe+u94xbRTwkHiyPn18= X-Received: by 2002:a1c:f607:: with SMTP id w7mr5994970wmc.162.1584866117019; Sun, 22 Mar 2020 01:35:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Rajesh Kumar Date: Sun, 22 Mar 2020 14:05:02 +0530 Message-ID: Subject: Re: How to build a out-of-box network module with RSS To: freebsd-drivers@freebsd.org, FreeBSD Hackers X-Rspamd-Queue-Id: 48lW6Z6F1lz4HMl X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=lSn5i/47; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rajfbsd@gmail.com designates 2a00:1450:4864:20::343 as permitted sender) smtp.mailfrom=rajfbsd@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; IP_SCORE(0.00)[ip: (2.94), ipnet: 2a00:1450::/32(-2.39), asn: 15169(-0.72), country: US(-0.05)]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[3.4.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2020 08:35:19 -0000 Hi Konstantin, > Set KERNBUILDDIR env (or make) variable to the full path of the > build directory for your custom kernel. Thanks for your inputs. I tried setting the KERNBUILDDIR, but seems still it's not taking the opt_rss.h properly. Not sure I am missing something. I built and installed the custom kernel from a directory "freebsd_12_kern" with the sys/amd64/conf/GENERIC added with the PCBGROUP and RSS options. I see the following obj directory */usr/obj/root/freebsd_12_kern/amd64.amd64/sys/GENERIC* -> where opt_rss.h file has RSS defined. After that, I tried to build my network module from another directory "freebsd_12_dev" as below *freebsd_12_dev/sys/modules/netgbe # make KERNBUILDDIR= /usr/obj/root/freebsd_12_kern/amd64.amd64/sys/GENERIC * which generates the following object module directory */usr/obj/root/freebsd_12_dev/amd64.amd64/sys/modules/netgbe* -> where opt_rss.h file has RSS NOT defined. Am I missing something? or doing something wrong? Thanks, Rajesh On Sun, Mar 22, 2020 at 10:50 AM Rajesh Kumar wrote: > Hi, > > Any thoughts about how to build a out-of-box network module with RSS > enabled? > > Thanks, > Rajesh. > > On Fri, Mar 20, 2020 at 11:34 AM Rajesh Kumar wrote: > >> Hi, >> >> I am writing a network driver. I am trying to test with RSS feature. I >> see the default kernel config doesn't have RSS included. So, I built a >> custom kernel with the following options set and installed the kernel with >> a different name >> >> options PCBGROUP >> options RSS >> >> After booting to the custom kernel, I am trying to build my network >> module with opt_rss.h in my makefile. But I don't see "#define RSS 1" in >> opt_rss.h in my module object directory. But I see it defined the custom >> kernel OBJ directory. >> >> So, should I build my network modules as inbuilt module to have it work >> with RSS? Or anyway I can build my module out-of-box with RSS? >> >> Please let me know if any details needed. >> >> Thanks, >> Rajesh. >> > From owner-freebsd-hackers@freebsd.org Sun Mar 22 11:39:12 2020 Return-Path: Delivered-To: freebsd-hackers@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 D5D7727E6E8; Sun, 22 Mar 2020 11:39:12 +0000 (UTC) (envelope-from kib@freebsd.org) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48lbBm2VBWz4Ypj; Sun, 22 Mar 2020 11:39:12 +0000 (UTC) (envelope-from kib@freebsd.org) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id 02MBcviq069340 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 22 Mar 2020 13:39:00 +0200 (EET) (envelope-from kib@freebsd.org) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 02MBcviq069340 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id 02MBcvln069339; Sun, 22 Mar 2020 13:38:57 +0200 (EET) (envelope-from kib@freebsd.org) X-Authentication-Warning: tom.home: kostik set sender to kib@freebsd.org using -f Date: Sun, 22 Mar 2020 13:38:57 +0200 From: Konstantin Belousov To: Rajesh Kumar Cc: freebsd-drivers@freebsd.org, FreeBSD Hackers Subject: Re: How to build a out-of-box network module with RSS Message-ID: <20200322113857.GU1992@kib.kiev.ua> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on tom.home X-Rspamd-Queue-Id: 48lbBm2VBWz4Ypj X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [1.74 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_SPAM_LONG(0.99)[0.987,0]; NEURAL_SPAM_MEDIUM(0.75)[0.748,0]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2020 11:39:12 -0000 On Sun, Mar 22, 2020 at 02:05:02PM +0530, Rajesh Kumar wrote: > Hi Konstantin, > > > Set KERNBUILDDIR env (or make) variable to the full path of the > > build directory for your custom kernel. > > Thanks for your inputs. I tried setting the KERNBUILDDIR, but seems still > it's not taking the opt_rss.h properly. Not sure I am missing something. > > I built and installed the custom kernel from a directory "freebsd_12_kern" > with the sys/amd64/conf/GENERIC added with the PCBGROUP and RSS options. I > see the following obj directory > > */usr/obj/root/freebsd_12_kern/amd64.amd64/sys/GENERIC* -> where opt_rss.h > file has RSS defined. > > After that, I tried to build my network module from another directory > "freebsd_12_dev" as below > > *freebsd_12_dev/sys/modules/netgbe # make KERNBUILDDIR= > /usr/obj/root/freebsd_12_kern/amd64.amd64/sys/GENERIC * > > which generates the following object module directory > > */usr/obj/root/freebsd_12_dev/amd64.amd64/sys/modules/netgbe* -> where > opt_rss.h file has RSS NOT defined. opt_rss.h must not be generated in the module build directory. The point of KERNBUILDDIR is that it is taken from the kernel config dir. > > Am I missing something? or doing something wrong? No idea. > > Thanks, > Rajesh > > On Sun, Mar 22, 2020 at 10:50 AM Rajesh Kumar wrote: > > > Hi, > > > > Any thoughts about how to build a out-of-box network module with RSS > > enabled? > > > > Thanks, > > Rajesh. > > > > On Fri, Mar 20, 2020 at 11:34 AM Rajesh Kumar wrote: > > > >> Hi, > >> > >> I am writing a network driver. I am trying to test with RSS feature. I > >> see the default kernel config doesn't have RSS included. So, I built a > >> custom kernel with the following options set and installed the kernel with > >> a different name > >> > >> options PCBGROUP > >> options RSS > >> > >> After booting to the custom kernel, I am trying to build my network > >> module with opt_rss.h in my makefile. But I don't see "#define RSS 1" in > >> opt_rss.h in my module object directory. But I see it defined the custom > >> kernel OBJ directory. > >> > >> So, should I build my network modules as inbuilt module to have it work > >> with RSS? Or anyway I can build my module out-of-box with RSS? > >> > >> Please let me know if any details needed. > >> > >> Thanks, > >> Rajesh. > >> > > > _______________________________________________ > freebsd-drivers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-drivers > To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" From owner-freebsd-hackers@freebsd.org Sun Mar 22 13:20:36 2020 Return-Path: Delivered-To: freebsd-hackers@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 5C34E261179; Sun, 22 Mar 2020 13:20:36 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (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 48ldRm1pzrz4cqG; Sun, 22 Mar 2020 13:20:36 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: by mail-wr1-x431.google.com with SMTP id h9so13194808wrc.8; Sun, 22 Mar 2020 06:20:36 -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=YpzLvzaut23noywhqJdtiWc3XYASm+UtjTOBaFX89DM=; b=L7yO71rUvwYjY3T8vzdTCABmr8Xgb+AsU2lMmloRmYPrME7gogcqdeLdwCMCGzSjtO dTBAhc9acfJjVBEBxDp0zRPYiH4AM2e3cNT/8wDjAQwxAoL3brzv2w8dchhWXoxjelD9 6khy6CoVuVLNT/JUT6eUQXGfBZCqdlwGcl5aDQH24joz7GrMx7p69kYPISCCLQi4ndAk oPdb3T8W+1HdmU0pHQYMnSMr7jutbIvtv8ceklVgZOyskf2D17yIHc6wYRVqy6+nvDBp EZ4SLu4pA6h8IT3FU+5ye3Mth8lVzG+e/KKFqKHzt7/NWdxZkjMUpGFjn22eAYfxEv/O Ed4A== 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=YpzLvzaut23noywhqJdtiWc3XYASm+UtjTOBaFX89DM=; b=hWR5TrqnHyyGUie71JximDMvPRWj+PbI3h8IiMGlDxeei246X5beJ2CR10Vb35R4gg Fm10TIisoOFGfePxZfxSvNRONKD38mDflLHOh55n2ahNEzgKOL56HGeOj6RxfIXtwDBC kTgBwfwIk1mqwvBjrwvvweZpqBx7Uw1jqDXszAjoqYtFagcZf4USufTUeSrv/U5KRf11 pywe8hTj5kZAGFawBJuuwg6mTy9Llm/FZXODcscR/HsV6z5rHHI9EByFycW1k//HkDhh fGJvot5IX6i593p5xgRV4iDAekBMGAaL2rYJIunob15eXxRyz6LAZrMHvtNRkg5goejW twMQ== X-Gm-Message-State: ANhLgQ1LAGvbPPe3DkYHznpBZrK8gTq3ghqKwVTa8/PQ2mUgcscfIKpP UFAhATvTpjX7Xlm0qmTJD4rXSnyO2QTV7ned31kVqw== X-Google-Smtp-Source: ADFU+vsVY6wSauu4AujpXdE1+TMWEh2nwhLsz+zTaa/tNoQEwtZ4saVI3VUnBog8r4O3C9EujviTanHv5NCOcBZ8R6I= X-Received: by 2002:a5d:674f:: with SMTP id l15mr5044002wrw.196.1584883234286; Sun, 22 Mar 2020 06:20:34 -0700 (PDT) MIME-Version: 1.0 References: <20200322113857.GU1992@kib.kiev.ua> In-Reply-To: <20200322113857.GU1992@kib.kiev.ua> From: Rajesh Kumar Date: Sun, 22 Mar 2020 18:50:22 +0530 Message-ID: Subject: Re: How to build a out-of-box network module with RSS To: Konstantin Belousov Cc: freebsd-drivers@freebsd.org, FreeBSD Hackers X-Rspamd-Queue-Id: 48ldRm1pzrz4cqG X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-5.96 / 15.00]; NEURAL_HAM_MEDIUM(-0.97)[-0.971,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-0.99)[-0.993,0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2020 13:20:36 -0000 Ok. Thanks for your inputs Konstantin. I will do some more tests to see how I can use that and will update the thread if I could figure out. On Sun, Mar 22, 2020 at 5:09 PM Konstantin Belousov wrote: > On Sun, Mar 22, 2020 at 02:05:02PM +0530, Rajesh Kumar wrote: > > Hi Konstantin, > > > > > Set KERNBUILDDIR env (or make) variable to the full path of the > > > build directory for your custom kernel. > > > > Thanks for your inputs. I tried setting the KERNBUILDDIR, but seems still > > it's not taking the opt_rss.h properly. Not sure I am missing something. > > > > I built and installed the custom kernel from a directory > "freebsd_12_kern" > > with the sys/amd64/conf/GENERIC added with the PCBGROUP and RSS > options. I > > see the following obj directory > > > > */usr/obj/root/freebsd_12_kern/amd64.amd64/sys/GENERIC* -> where > opt_rss.h > > file has RSS defined. > > > > After that, I tried to build my network module from another directory > > "freebsd_12_dev" as below > > > > *freebsd_12_dev/sys/modules/netgbe # make KERNBUILDDIR= > > /usr/obj/root/freebsd_12_kern/amd64.amd64/sys/GENERIC * > > > > which generates the following object module directory > > > > */usr/obj/root/freebsd_12_dev/amd64.amd64/sys/modules/netgbe* -> where > > opt_rss.h file has RSS NOT defined. > opt_rss.h must not be generated in the module build directory. The point > of KERNBUILDDIR is that it is taken from the kernel config dir. > > > > > Am I missing something? or doing something wrong? > No idea. > > > > > Thanks, > > Rajesh > > > > On Sun, Mar 22, 2020 at 10:50 AM Rajesh Kumar wrote: > > > > > Hi, > > > > > > Any thoughts about how to build a out-of-box network module with RSS > > > enabled? > > > > > > Thanks, > > > Rajesh. > > > > > > On Fri, Mar 20, 2020 at 11:34 AM Rajesh Kumar > wrote: > > > > > >> Hi, > > >> > > >> I am writing a network driver. I am trying to test with RSS feature. I > > >> see the default kernel config doesn't have RSS included. So, I built > a > > >> custom kernel with the following options set and installed the kernel > with > > >> a different name > > >> > > >> options PCBGROUP > > >> options RSS > > >> > > >> After booting to the custom kernel, I am trying to build my network > > >> module with opt_rss.h in my makefile. But I don't see "#define RSS > 1" in > > >> opt_rss.h in my module object directory. But I see it defined the > custom > > >> kernel OBJ directory. > > >> > > >> So, should I build my network modules as inbuilt module to have it > work > > >> with RSS? Or anyway I can build my module out-of-box with RSS? > > >> > > >> Please let me know if any details needed. > > >> > > >> Thanks, > > >> Rajesh. > > >> > > > > > _______________________________________________ > > freebsd-drivers@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-drivers > > To unsubscribe, send any mail to " > freebsd-drivers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@freebsd.org Sun Mar 22 13:46:44 2020 Return-Path: Delivered-To: freebsd-hackers@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 3C8A0261D8B for ; Sun, 22 Mar 2020 13:46:44 +0000 (UTC) (envelope-from salvadore@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48lf1w0YdDz48Dd for ; Sun, 22 Mar 2020 13:46:44 +0000 (UTC) (envelope-from salvadore@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1472) id 7D5B21EA68; Sun, 22 Mar 2020 13:46:43 +0000 (UTC) To: freebsd-hackers@FreeBSD.org Subject: [LAST OFFICIAL REMINDER] Call for 2020Q1 quarterly status reports Message-Id: <20200322134643.7D5B21EA68@freefall.freebsd.org> Date: Sun, 22 Mar 2020 13:46:43 +0000 (UTC) From: Lorenzo Salvadore X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2020 13:46:44 -0000 Dear FreeBSD Community, The deadline for the next FreeBSD Quarterly Status update is April 1, 2020, for work done since the last round of Quarterly Reports: January, 2020 - March, 2020. I would like to remind you that reports are collected during the last month of every quarter. Status report submissions do not need to be very long. They may be about anything happening in the FreeBSD project and community, and they provide a great way to inform FreeBSD users and developers about work that is underway or has been completed. Report submissions are not limited to committers; anyone doing anything interesting and FreeBSD related can -- and should -- write one! The preferred method is to follow the guidelines at the Quarterly GitHub repository: https://github.com/freebsd/freebsd-quarterly Alternatively you can fetch the Markdown template, fill it in, and email it to quarterly@FreeBSD.org. The template can be found at: https://raw.githubusercontent.com/freebsd/freebsd-quarterly/master/report-sample.md We look forward to seeing your 2020Q1 reports! Thanks, Lorenzo Salvadore (on behalf of quarterly@) From owner-freebsd-hackers@freebsd.org Mon Mar 23 00:56:11 2020 Return-Path: Delivered-To: freebsd-hackers@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 D1B1F27302A; Mon, 23 Mar 2020 00:56:11 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (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 48lwtM0xbsz44P4; Mon, 23 Mar 2020 00:56:10 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: by mail-wr1-x444.google.com with SMTP id p10so2540489wrt.6; Sun, 22 Mar 2020 17:56:10 -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:content-transfer-encoding; bh=mx60zlOly3RycrQwigv7uqntUd6EbC/Vc0Wbag9SYpg=; b=CqmLOJybybbnWaNVS0zcPnVmTNF5j7RrxB8Zq/Nqjh5m/50q5ZU2xhuP12zvmg0wzd 7aDHjiONQa0IpMfss5W7AxlitRFc/jyxCkesHjD5GC2BJJyZNIfLkMx6+cLfrqr3beVB 4qAKDtBIbDrEzqm0N2gFWYtfpA/x5n4supM/hTB2x0h59SiUjb8LhQgYAXFOmi9LsQR6 2TB4Ss+cVogxqLhThbyfGSkFas5Os91ZYabRm1wywluf1y9nwoVktxsfJxzxyy9ZYrRY T0mgbRP0QoaJEsDCzc12wmTh2zlWOTFdcHG0xR/QnYDwrXW4TfLyWdq+6NEwJwgV7nTx InJw== 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:content-transfer-encoding; bh=mx60zlOly3RycrQwigv7uqntUd6EbC/Vc0Wbag9SYpg=; b=FVZ5LdPJvnFU6b7ipLFmuhCHQBFWDDP3OX2MM3XpB782XthQCnZKMq1zYctfjR59Ns grFT9pyK2q7a3lfUJg/w589nEXsSY8v22Ahxbj/AZbk499+FCujBxYlURjfjpKXTjLTj ujFYRogZWVw+jl7d792oZdhYBuo8JYkmnKmq6nbx0iY2d9x7AtgZhEhh5wHPfwNJdehd b5wB3d25+9ra6EWvtm7B+tMO4X8Qeags14dkjWEiKHB7bpNPxLjqqN731JEBzdQbq4A8 fTmCg+M9eN374iFfWb5JieYHy8Rfx9HFTfPZYE5hjqEnx/Wm5yDV5VpBFhuee+K67rKa Ii3g== X-Gm-Message-State: ANhLgQ3JLcy5ZgI0wL/rZWsec0US+1W6TDVTK33eltwvC2rWdUaBw4Xk szw88tCTD1PGjWKDe1lAIzVMBfim9P4CTPmWD+M= X-Google-Smtp-Source: ADFU+vt5kPVl9u6OaruYN5d7hOA2DcV1zqQBcLNC7mShCONQNT/h+zeGlqvaX2xIkqy+h/7Q3WK/zJi4j5FZffncQbg= X-Received: by 2002:adf:b35d:: with SMTP id k29mr26677218wrd.239.1584924969531; Sun, 22 Mar 2020 17:56:09 -0700 (PDT) MIME-Version: 1.0 References: <49B58A7F-0DE2-4BEB-8A8C-D996962FDDE1@me.com> <8C721EA7-09EA-4154-AC29-273B3A881FA4@me.com> In-Reply-To: <8C721EA7-09EA-4154-AC29-273B3A881FA4@me.com> From: Andrey Fesenko Date: Mon, 23 Mar 2020 03:55:58 +0300 Message-ID: Subject: Re: EFI loader failure, after 20191114-r354699 Z87MX-D3H To: Toomas Soome Cc: freebsd-current , freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48lwtM0xbsz44P4 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=CqmLOJyb; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of f0andrey@gmail.com designates 2a00:1450:4864:20::444 as permitted sender) smtp.mailfrom=f0andrey@gmail.com X-Spamd-Result: default: False [-1.99 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(0.00)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(0.00)[gmail.com,none]; FREEMAIL_TO(0.00)[me.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (2.85), ipnet: 2a00:1450::/32(-2.39), asn: 15169(-0.62), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; R_DKIM_ALLOW(0.00)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE_FREEMAIL(0.00)[]; BAD_REP_POLICIES(0.10)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; URIBL_PBL(0.01)[bsdnir.info]; RCVD_IN_DNSWL_NONE(0.00)[4.4.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2020 00:56:11 -0000 On Thu, Nov 28, 2019 at 11:31 PM Toomas Soome wrote: > > > On 28. Nov 2019, at 22:20, Andrey Fesenko wrote: > > > > Fixed > > > > Thanks. And yea, that one is nasty. I have some guess but nothing too sol= id=E2=80=A6 it may take time to get figured out. > > Have you tested BIOS boot? > > rgds, > toomas > > > On Thu, Nov 28, 2019 at 11:18 PM Toomas Soome wrote: > >> > >> > >> > >> On 28. Nov 2019, at 22:16, Andrey Fesenko wrote: > >> > >> On Thu, Nov 28, 2019 at 3:03 PM Toomas Soome wrote: > >> > >> > >> hi! > >> > >> I did try to reach you, but mail did bounce back=E2=80=A6 > >> > >> unicast ping me:) > >> > >> rgds, > >> toomas > >> > >> On 28. Nov 2019, at 11:43, Andrey Fesenko wrote: > >> > >> Hello, > >> > >> Around starting 20191114 r354699 (memstick tested), my desktop not > >> boot normally. Boot only loader menu (black and white mode) after > >> start i'm see load modules, after this monitor gray, and 15-20s > >> disabled, system block not disable but run silently. system not boot. > >> > >> If i'm change efi (EFI/BOOT/bootx64.efi), 20191031-r354207 or 12.1 > >> release, system boot normally > >> > >> > >> > >> This video boot second version (Name: "loader.efi") 545 KB > >> https://bsdnir.info/files/efi_fail.mp4 > >> > >> > >> 403 Forbidden > >> > >> :=3D) > >> > >> rgds, > >> toomas > New news ;) r359151 i'm make memstick with custom refind /mnt/ `-- EFI |-- BOOT | |-- bootx64.efi - refind |-- freebsd | `-- loader.efi - freebsd not boot |-- freebsd_lua | `-- loader_lua.efi - not boot |-- freebsd_simple | `-- loader_simp.efi - boot fine From owner-freebsd-hackers@freebsd.org Mon Mar 23 02:22:50 2020 Return-Path: Delivered-To: freebsd-hackers@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 3D1BF27573B; Mon, 23 Mar 2020 02:22:50 +0000 (UTC) (envelope-from christoferpadilla@gmail.com) Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (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 48lypJ4kgsz3DFq; Mon, 23 Mar 2020 02:22:48 +0000 (UTC) (envelope-from christoferpadilla@gmail.com) Received: by mail-qt1-x834.google.com with SMTP id i3so6644809qtv.8; Sun, 22 Mar 2020 19:22:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:mime-version:to:cc:from:subject:date:importance :in-reply-to:references; bh=DI9cIQ6TAuW8v0hT7F3Rnjo1QfxaM0nN9Bp/pantIvU=; b=sPzXNYKYC8PyrSMlBQLKhGt9zw+X7uhv+ihXD8jmJxHWkx+9Apyq7mWFPtJJpW2WIw 0iJMBq9J1q+M1mmChSgG0GKuoh94aptK28QQra4XC3cZHqdI4s/Vp2gb4/pUYfRh8Qjr kwMAZ1AciygiNt6drU5/bCSsdJyL0tzsGxoI8fohHbD4qq0lcBUGUio+QCtOED4m1uWq rNt7iZ6BXiRy9fk9vZthRVPaucr9ghh042fpqTKxwr7MQ4eGgqdBOYIoVxOySW6SHngP c5JbJAU/0LdE0kWaqrPuX08E7Hn0qmAF/RTeLTTYBFavANrpNNeapiwcPWew/MRbVSWF o23A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version:to:cc:from:subject:date :importance:in-reply-to:references; bh=DI9cIQ6TAuW8v0hT7F3Rnjo1QfxaM0nN9Bp/pantIvU=; b=FQTWsswFwQ+V2MHAvWl7AK7GYhoP8Yz85HCVPZRIXXJu8OGyUG08uXhLlFIkR/TjEt 5Q6NzplEar6l/uLmjyQZ+EIMK6VQvs4Roa2Qhamh56uyJQozVj6hWC1z1TDPfweJdNf4 h2X2pEVOmrgL5D23NaatqXuCDAICeLyBYlMzoZ0lXFtXA4626H700o7V5UYWKdJm1Gpw w+3GZTPr6fF9VVlj0Jo2F64BYiHqXHb1+fUfvp59F2bJ0VrHE5Zgtj3LHLJAS8Li7nHE 5hcNnTzzwmWlWUptQQ2C0YaTNk6aS43GWbG2nd03xtLCQJJRvi6IpvDM26EUIGXxxRs5 kw7g== X-Gm-Message-State: ANhLgQ2MkmCru4WQpucseYwl1sExJZ0vu653/WKX5Jte7+t1/3E+oGgt IjPaSN5ClQ4TCfsdSIkA//YEVZm2EmY= X-Google-Smtp-Source: ADFU+vs7NfbWKrrkseT4N7q07ms+PqAsoNswy0uwSmLCzk7vKd1qf7YFIFgn4WlL6NapmXidhZnYzg== X-Received: by 2002:ac8:6f50:: with SMTP id n16mr19497732qtv.5.1584930167506; Sun, 22 Mar 2020 19:22:47 -0700 (PDT) Received: from ?IPv6:2603:9001:104:c423:61e8:ae9:f00c:7428? ([2603:9001:104:c423:61e8:ae9:f00c:7428]) by smtp.gmail.com with ESMTPSA id v17sm6390865qkf.83.2020.03.22.19.22.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Mar 2020 19:22:46 -0700 (PDT) Message-ID: <5e781d76.1c69fb81.42301.06cd@mx.google.com> MIME-Version: 1.0 To: Andrey Fesenko , Toomas Soome Cc: "freebsd-hackers@freebsd.org" , freebsd-current From: Christofer Padilla Subject: RE: EFI loader failure, after 20191114-r354699 Z87MX-D3H Date: Sun, 22 Mar 2020 22:22:45 -0400 Importance: normal X-Priority: 3 In-Reply-To: References: <49B58A7F-0DE2-4BEB-8A8C-D996962FDDE1@me.com> <8C721EA7-09EA-4154-AC29-273B3A881FA4@me.com> X-Rspamd-Queue-Id: 48lypJ4kgsz3DFq X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=sPzXNYKY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of christoferpadilla@gmail.com designates 2607:f8b0:4864:20::834 as permitted sender) smtp.mailfrom=christoferpadilla@gmail.com X-Spamd-Result: default: False [-0.98 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(0.00)[+ip6:2607:f8b0:4000::/36]; URI_COUNT_ODD(1.00)[5]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(0.00)[gmail.com,none]; HAS_X_PRIO_THREE(0.00)[3]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; IP_SCORE(0.00)[ip: (-9.30), ipnet: 2607:f8b0::/32(-0.49), asn: 15169(-0.61), country: US(-0.05)]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.994,0]; R_DKIM_ALLOW(0.00)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE_FREEMAIL(0.00)[]; BAD_REP_POLICIES(0.10)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; URIBL_PBL(0.01)[bsdnir.info]; RCVD_IN_DNSWL_NONE(0.00)[4.3.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_TLS_ALL(0.00)[] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2020 02:22:50 -0000 FULL =E2=9B=94=20 Sent from Mail for Windows 10 From: Andrey Fesenko Sent: Sunday, March 22, 2020 8:56 PM To: Toomas Soome Cc: freebsd-hackers@freebsd.org; freebsd-current Subject: Re: EFI loader failure, after 20191114-r354699 Z87MX-D3H On Thu, Nov 28, 2019 at 11:31 PM Toomas Soome wrote: > > > On 28. Nov 2019, at 22:20, Andrey Fesenko wrote: > > > > Fixed > > > > Thanks. And yea, that one is nasty. I have some guess but nothing too sol= id=E2=80=A6 it may take time to get figured out. > > Have you tested BIOS boot? > > rgds, > toomas > > > On Thu, Nov 28, 2019 at 11:18 PM Toomas Soome wrote: > >> > >> > >> > >> On 28. Nov 2019, at 22:16, Andrey Fesenko wrote: > >> > >> On Thu, Nov 28, 2019 at 3:03 PM Toomas Soome wrote: > >> > >> > >> hi! > >> > >> I did try to reach you, but mail did bounce back=E2=80=A6 > >> > >> unicast ping me:) > >> > >> rgds, > >> toomas > >> > >> On 28. Nov 2019, at 11:43, Andrey Fesenko wrote: > >> > >> Hello, > >> > >> Around starting 20191114 r354699 (memstick tested), my desktop not > >> boot normally. Boot only loader menu (black and white mode) after > >> start i'm see load modules, after this monitor gray, and 15-20s > >> disabled, system block not disable but run silently. system not boot. > >> > >> If i'm change efi (EFI/BOOT/bootx64.efi), 20191031-r354207 or 12.1 > >> release, system boot normally > >> > >> > >> > >> This video boot second version (Name: "loader.efi") 545 KB > >> https://bsdnir.info/files/efi_fail.mp4 > >> > >> > >> 403 Forbidden > >> > >> :=3D) > >> > >> rgds, > >> toomas > New news ;) r359151 i'm make memstick with custom refind /mnt/ `-- EFI |-- BOOT | |-- bootx64.efi - refind |-- freebsd | `-- loader.efi - freebsd not boot |-- freebsd_lua | `-- loader_lua.efi - not boot |-- freebsd_simple | `-- loader_simp.efi - boot fine _______________________________________________ freebsd-hackers@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@freebsd.org Mon Mar 23 17:52:47 2020 Return-Path: Delivered-To: freebsd-hackers@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 6009C269F68 for ; Mon, 23 Mar 2020 17:52:47 +0000 (UTC) (envelope-from royger@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48mMRL485zz4Sr3; Mon, 23 Mar 2020 17:52:46 +0000 (UTC) (envelope-from royger@freebsd.org) Received: from localhost (unknown [93.176.186.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: royger) by smtp.freebsd.org (Postfix) with ESMTPSA id 0E92A1F388; Mon, 23 Mar 2020 17:52:45 +0000 (UTC) (envelope-from royger@freebsd.org) Date: Mon, 23 Mar 2020 18:52:43 +0100 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: Ayush Dwivedi <21cencturyayush@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Introduction and GSoC Project Idea Discussion Message-ID: <20200323175243.GO24449@Air-de-Roger.citrite.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2020 17:52:47 -0000 On Fri, Mar 20, 2020 at 06:05:39PM +0530, Ayush Dwivedi wrote: > Hello everybody, > This is Ayush. I am currently pursuing B Tech in Computer Science and > Engineering. I am new to the FreeBSD community. I was going through the > main project idea list provided by the wikia and found a project related to > freebsd boot loader there(Add support for booting Xen domain 0 from EFI). I > have an interest in system and bare metal programming and have done some > experimentation with EFI application development( it was an attempt to make > my own EFI boot loader and analyzing working of UEFI and how it's > completely different from BIOS). I am familiar with QEMU and hardware > virtualization and have used it test modified kernels and minimal EFI > applications. I have programmed mostly in C(have written an UNIX shell > interpreter in it and some other projects) and experimented with x86_64 > assembly. I am familiar with Linux kernel code and currently use Arch Linux > as my OS. The project requires me to read the FreeBSD/EFI loader code but > how exactly should I setup my working environment and what should be my > first in freebsd development should it be building it from source and > testing in on QEMU(I have the freebsd-current source code in my Linux > currently and I am trying to get familiar with svn). Need help. Hello, Thanks for your interest on the project. Your first steps should be setting up a FreeBSD development environment. Initial development can be done in QEMU, but you will also likely need a physical box with EFI firmware and a serial port in order to test and debug if necessary. I think your starting points should be to setup a system running CURRENT from svn or git if you prefer, we have an official mirror at: https://github.com/freebsd/freebsd You should get familiar with building FreeBSD from source [0], and then I would also recommend that you look into how to build and install the loader without having to rebuild everything else. The loader is stand alone and small, so just building the loader should be quite fast, and that will be very helpful in order to test your code faster. Regards, Roger. [0] https://www.freebsd.org/doc/handbook/makeworld.html From owner-freebsd-hackers@freebsd.org Mon Mar 23 21:26:39 2020 Return-Path: Delivered-To: freebsd-hackers@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 2E8DF270033 for ; Mon, 23 Mar 2020 21:26:39 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-21.consmr.mail.gq1.yahoo.com (sonic310-21.consmr.mail.gq1.yahoo.com [98.137.69.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48mSB45LqYz4nr5 for ; Mon, 23 Mar 2020 21:26:36 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: Zzsxy4QVM1kUQikPqaQYLA_zk_bM238VGEwM_DOqa5rR9kts1lP8IQdTe6ZsVT8 nPur7sjusySi2fgyVPsdY1VyoBGmzAJ4LLQsqXJm.jSjqZKiqawfu9ApDLMbA5dK4wTIFIi90.bo LIFe3Qgv5Nmlb.dyitHftytjkP9w0fdyBCJR__0Mhi5nP.cGziPBzhf37IqON0itfnOWB6t0U5Uw vBOY0OUnQfBKab2Whg1ZgrmRzel_sh_lMhPA5DxHDrjWHnrbkE0w45lQ7GB3Vsnv_HnEBq2pCdlz par9x8ezjCpMd0sp5CIR1ZfZEKEqNczAWwFVWhCFXvo8FOSyEZri547ytcq_htbjh7qkVExPjRIP ICmtrHcF9wO9UOXF8hhS7G0bqX8XMKenfpb9kcn9d0kbNE1mRwqRwZ3deURtCzxobm0mZInZcSes xanmz4gKt.86l4z7sKmzB9R.0Sqiw1N.A6ZFyljAI8DL2GsqwvuzekJ8xZcOx5yBXpcJgy9VVm99 Ze72vxBi_nh2lsWMCC1d5vp0NXr4qtGBJyGySG0cQ8L4qO.1dDJnVrkl2g0qvR3KDyLyqp3CpiJB wmQUZ.M_jqeK5E4imlFcFg6Gghb2UNvwdgxNpDwbgdlPdCYob_alhBbPXhSCBcuj3DUqQ_J_5lqV KVszGvgzRDXCPgJH9hfLFhGYSPGkH6Lj7pk6ZBYmldcq8qgsRbAcoClsQlxnN_FDMvxBl1VamU2y Psq5SHtSt8ICaD1HpZAhS2_ibizavJXnfqUtzyhKQS4G4q9g6T.D3f.YdWYz7wnn700gJ3P17niT xkhKo6SILlYAoqoKuBFPSM6fdjXMPAtl49I.ENe_QCdGJBjFKPC24dznwapBxg_I9kKixGKVVnGB P0iGvk.HxEUzO5iLt4I4KWWx9iVKZBnY4fngbOGaZGxL5XzafRlDOgrlhTdCf77msEybeYONd494 V712hUOhsJqL9y9Y.4PVW.h4gzh25NK5HAYdbutYHjTQPgUqMmGLEbxP2jT2q53SSNCAF3CMKooO 73jTXs_dSwf9ldQT5o7lY6Zwlp.Y9oHB3sWOVYoU6m.YWIUxlaJGrx0DtEJDDQpH_JieXuTBMjwN QeNA9JgqN_rkJq8KU8.x6Om_O1UXWR2QJbW0K.TiA1YBtIKuPKShGTse8DjIh8vbWU0kwPbXPjKU KcsDOoOlLvwjjoH7zHFowowxFJde5d2eubMSmO_K525z1LuaN1.7NNmcaTHUow4a3gAJVsonAIBn DedZSzmqImGYmB7eyi4LnUcK3k3LjaAhGWKlvTZ38aI8a6zpGMyGUrn8vnZ5xu2IDWVdrJKWjMDz OV5vx6i9_vdLGLLieUQwMZ0pivK21NGGQYFZbRjXRPKCsEO21uONmNHb_p0XT0xKJmhpC8HMKuye jxEJ8iwpnURpG9Vfp9Rhppm8ARcZJ8Q-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Mon, 23 Mar 2020 21:26:33 +0000 Received: by smtp424.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID ef3749e4e6381ba8706626ddf7cbee4e; Mon, 23 Mar 2020 21:26:31 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: amd64->armv7 cross-build failure for security/ca_root_nss: It failed in memcpy () from /libexec/ld-elf.so.1 From: Mark Millard In-Reply-To: <1EC37157-CBA2-4334-92C1-E845F63DB5CA@yahoo.com> Date: Mon, 23 Mar 2020 14:26:30 -0700 Cc: FreeBSD ports Content-Transfer-Encoding: quoted-printable Message-Id: References: <1EC37157-CBA2-4334-92C1-E845F63DB5CA@yahoo.com> To: freebsd-arm , FreeBSD Hackers X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48mSB45LqYz4nr5 X-Spamd-Bar: + X-Spamd-Result: default: False [1.30 / 15.00]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (3.27), ipnet: 98.137.64.0/21(0.82), asn: 36647(0.65), country: US(-0.05)]; NEURAL_SPAM_MEDIUM(0.88)[0.885,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.91)[0.914,0]; RCVD_IN_DNSWL_NONE(0.00)[147.69.137.98.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[147.69.137.98.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2020 21:26:39 -0000 On 2020-Mar-16, at 21:48, Mark Millard wrote: > Context: head -r358966 attempting to update ports > to -r528535 . Also, 50+ ports built just fine > but the below has been repeatable in my context. >=20 > The original failure was under devel/poudriere-devel (with > nxb-bin/ materials used). But part of the below is from > exploring with various steps in a handier context. >=20 > The original error message was: >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D> Building for ca_root_nss-3.51 > ## Untrusted certificates omitted from this bundle: 2 > openssl x509 failed with exit code 11 at = /wrkdirs/usr/ports/security/ca_root_nss/work/MAca-bundle.pl line 78. > *** Error code 255 >=20 > The original source that reported the message was: >=20 > sub printcert_info($$) > { > my (undef, $certdata) =3D @_; > return unless $certdata; > open(OUT, "|openssl x509 -text -inform DER -fingerprint") > || die "could not pipe to openssl x509"; > print OUT $certdata; > close(OUT) or die "openssl x509 failed with exit code $?"; > } >=20 > The die produced: >=20 > -rw-r--r-- 1 root wheel 7909376 Mar 17 03:18:04 2020 = qemu_openssl.core >=20 > gdb reported for it: >=20 > Core was generated by `openssl'. > Program terminated with signal SIGSEGV, Segmentation fault. > #0 0xf501adb4 in memcpy () from /libexec/ld-elf.so.1 >=20 > and: >=20 > (gdb) info threads > Id Target Id Frame=20 > * 1 LWP 1592 "x509" 0xf501adb4 in memcpy () from = /libexec/ld-elf.so.1 >=20 > and: >=20 > gdb) bt > #0 0xf501adb4 in memcpy () from /libexec/ld-elf.so.1 > #1 0xf5004cd0 in do_copy_relocations () from /libexec/ld-elf.so.1 >=20 > and (from a disass): >=20 > =3D> 0xf501adb4 <+436>: strd r4, [r3], #8 >=20 > (It was not clear what code context to supply so > I stuck to showing the instruction with the register > used such that SIGSEGV could result from the use: r3 .) >=20 > Finally the registers were listed as holding: >=20 > (gdb) info reg > r0 0xf4f5d57c 4109751676 > r1 0x14 20 > r2 0x93000 602112 > r3 0x1 1 > r4 0x10 16 > r5 0x9fffdfa4 2684346276 > r6 0xf4fe2404 4110296068 > r7 0xf4fe2004 4110295044 > r8 0x93000 602112 > r9 0x93000 602112 > r10 0x9fffdfe0 2684346336 > r11 0x0 0 > r12 0x9fffdf80 2684346240 > sp 0x9fffdf80 0x9fffdf80 > lr 0xf5004cd0 4110437584 > pc 0xf501adb4 0xf501adb4 > cpsr 0x60000010 1610612752 >=20 > Yep: r3=3D=3D1 would do it. >=20 >=20 > Note: I've otherwise ignored here seeing lots of: >=20 > qemu: unsupported syscall: 574 (calling anyway) >=20 > notices while doing things for extracting > this information. >=20 >=20 > I'll note that I had no such SIGSEGV when > ca_root_nss 3.50 built back at OSVERSION=3D1300077 > on 2020-Feb-16: it built and worked fine back > then. >=20 >=20 >=20 > I'm not sure when I'll have time to do more with this > or if I will again just abandon qemu-user-static for > a time. (Insufficient time to allocate to do more?) > Hopefully the basic information is useful to someone > at some point. >=20 > I'm not claiming that I know qemu-user-static is the > problem, or openssl, or whatever. Just that the > combination is broken in my context. >=20 > Having security/ca_root_nss blocked, blocks > cross-building lots of other things, including > devel/llvm10 . Using: # poudriere bulk -j FBSDFSSDjailArmV7 -i -w ports-mgmt/portmaster to allow trying things from inside the poudriere build environment, I tried: # openssl=20 qemu: uncaught target signal 11 (Segmentation fault) - core dumped # file `which openssl` /usr/bin/openssl: ELF 32-bit LSB executable, ARM, EABI5 version 1 = (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for = FreeBSD 13.0 (1300084), FreeBSD-style, not stripped The backtrace was again memcpy and do_copy_relocations. (So "x509" had nothing to do with the inability to run the original failed command.) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-hackers@freebsd.org Thu Mar 26 18:36:53 2020 Return-Path: Delivered-To: freebsd-hackers@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 F3AE22A6612; Thu, 26 Mar 2020 18:36:52 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) (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 48pDGd15WMz4LK0; Thu, 26 Mar 2020 18:36:40 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: by mail-wm1-x344.google.com with SMTP id m3so8334657wmi.0; Thu, 26 Mar 2020 11:36:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=X1eOnV1cHXGZHIcY2UD6eBxdPH/F4X7TS8hpS0WktgI=; b=Qji7iDrNfK0b6yTrLvUs1jqQJTA16apLRM1oII2A1K5uRwGfFJWgUKzAz0DeOkhPuy dlEfBgFXgUQ/heDXRUmVJpYIl9jibtfsnVEGoevMaN4NMsVRnq5450O1ZJtkw6cxj8G2 qigdUo3jun5ZnG6+4ZmqU6QI+I28D/ODUXw27CGnmdM4/YfRltKXzF00Ng9KcrJmCNqH AjSBtwIKJG6dNyJV905ykDLrb1fabi7Ui7UFYp24cK1yvGnRoh2s2MvKAbgJSo0OYxXi ouywLbLItkUiR6hfnafeyMPML+n3sEOpQ07LNoVgHF5cVtLw2JpFhmB3IeATcQc5Fh+m sB8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=X1eOnV1cHXGZHIcY2UD6eBxdPH/F4X7TS8hpS0WktgI=; b=E2WmmcSRLsOVoCDFfTJFy7TcwAbqc2Z/rWhaTsdUKBW77ljMYnkehOJAxYqbrWJBEZ VCQ4Y0jA1ghNkafKp7VpimxC+NUsfuJ7xfxFvSit4N9GGnFUMWOc5YFyWbUHCFrDJWb6 D483y/z3MjUqlsOK7BV0jZ4UiAheoRkGtfTE4gCVs8R2cXhMOwJBZLfotJU1Dz68ZSVn OOPsvFxru6G5x7PdNbG8fM9SpdaBadJCxhfd5Yp8TLLuRTcspkNLgHYEsQ9V4L0tzhoJ /BzpI/GifmisR5IJiBQNzyFyCSTDWQhZXQI08Tjmji09nzLfd4Eb9RPM8y4tVlyaYKz4 p3rw== X-Gm-Message-State: ANhLgQ1nd5GiNxOigD4TDmp5QzVSFzmVgPYqJpfFdWNdunpDPylKczVG a239rt6bNOwFjJBKeARxopJgUDebP/hbis/9sx+Eiw== X-Google-Smtp-Source: ADFU+vuQI2BY2pHD4WTLpkLjRC+tck7psDia+Rh3gQAwuxsJ+pc/invlavZjkqURleuqXTfRDPa9JT9JvQd4qZJJ5bs= X-Received: by 2002:a7b:c091:: with SMTP id r17mr1282287wmh.178.1585247793667; Thu, 26 Mar 2020 11:36:33 -0700 (PDT) MIME-Version: 1.0 From: Rajesh Kumar Date: Fri, 27 Mar 2020 00:06:21 +0530 Message-ID: Subject: Does FreeBSD has a generic PHY library as in Linux? To: freebsd-drivers@freebsd.org, FreeBSD Hackers X-Rspamd-Queue-Id: 48pDGd15WMz4LK0 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Qji7iDrN; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rajfbsd@gmail.com designates 2a00:1450:4864:20::344 as permitted sender) smtp.mailfrom=rajfbsd@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (2.54), ipnet: 2a00:1450::/32(-2.38), asn: 15169(-0.48), country: US(-0.05)]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[4.4.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2020 18:36:54 -0000 Hi, I am porting a network driver from Linux to FreeBSD. The driver in Linux uses the PHY library (a generic wrapper) to access/config the PHY registers. Do we have anything equivalent in FreeBSD? PHY library routines in Linux: get_phy_device phy_device_register phy_attach_direct phy_start_aneg etc., FreeBSD being a stable OS for networking and Storage, I assume it should have something equivalent to this. Can anyone point to it? or any documentation related to this? Thanks, Rajesh. From owner-freebsd-hackers@freebsd.org Fri Mar 27 18:19:16 2020 Return-Path: Delivered-To: freebsd-hackers@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 9B4A227CD63; Fri, 27 Mar 2020 18:19:16 +0000 (UTC) (envelope-from oliver.pntr@gmail.com) Received: from mail-ua1-x943.google.com (mail-ua1-x943.google.com [IPv6:2607:f8b0:4864:20::943]) (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 48pqqt1x7Cz4R6D; Fri, 27 Mar 2020 18:19:05 +0000 (UTC) (envelope-from oliver.pntr@gmail.com) Received: by mail-ua1-x943.google.com with SMTP id f9so3856093uaq.8; Fri, 27 Mar 2020 11:19:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=D8ty1rPs8gG8K1p4AyCqMOWB2QDSV3icSCEtgZkoR6E=; b=NTD5TwmS3IiWphib1ANl93Jwss32wij1vJcFI0sdzcTxpnTQA8azaPb13NzTkOS9Cy 4Dm+t7ZqizOwLSHWHYLjc3oEWfQf5KrsAFue8IC45uJ8rSIC98gci2Yrap85YXzxxOyx QFARoy5dsgysm61+/FoWxZRXF/IVa0MbfCSIpVhgBV+sCY755LKknn8WMPTt3yvN3ymu otCByvp7KFqkZ6WaQzWmbgbvE4Ssc3ei/DpFpqfbuYfQ2ntxLVJuQblE7Ts149wI+qsT 9UNR3JUKchdIHpWRTjqCHs3HbccEV0pbkAEpatGOxWZ2w9EJ75QsD2y11cDv+dynoPDo WSww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=D8ty1rPs8gG8K1p4AyCqMOWB2QDSV3icSCEtgZkoR6E=; b=cEHkMn0GxAftXufQGKtKv83bJmhHvdRHdHghfGPGjpXJ63jWO3CaiwhUHMw0oRYy4n Kq7sPzM4DULK6HzUO8MYypEQi1K0HvZP2lUJHniOxo21fihHwAMcRX2A7hn8tZLQeanw qVkxuI6ODyMpnODXrvQyOh0ERKgw909Y2c0waoQ5K+aarKombBahkqyazEntKBN66J9a rUz7q9Ru527PA2qpfS33sjfrRkFEbNY1n/vitLfnbSAMY3CEBQMSpTsHm+/uhxrdLn6x slM+wW3biUPaluFJcx8f3HcQm8N0m5tVk9ydlDo39h67NcOgDMYFByiyhF2ByrIeahZm cvOA== X-Gm-Message-State: AGi0PuYeC2ZwzGlLM1Q9eI+byoUHKPF5T2ATuN9wXxp6gbDQVhtfTfXX vhg0hxKkbDRpFfvB2g+bGP0p8RBAODJcEq1+NkqtzQ== X-Google-Smtp-Source: ADFU+vtPVaFt/wY/opM5qhgDhhiNUrRrDpoiit6ZkeM9BdIZ477VNN5Mo0cN3MMGREWjaBotpXxSM3v15+SE5kHvMRI= X-Received: by 2002:a25:7c2:: with SMTP id 185mr90954ybh.44.1585332788979; Fri, 27 Mar 2020 11:13:08 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:a291:0:0:0:0:0 with HTTP; Fri, 27 Mar 2020 11:13:08 -0700 (PDT) In-Reply-To: References: From: Oliver Pinter Date: Fri, 27 Mar 2020 19:13:08 +0100 Message-ID: Subject: Re: Does FreeBSD has a generic PHY library as in Linux? To: Rajesh Kumar Cc: "freebsd-drivers@freebsd.org" , FreeBSD Hackers X-Rspamd-Queue-Id: 48pqqt1x7Cz4R6D X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=NTD5TwmS; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of oliverpntr@gmail.com designates 2607:f8b0:4864:20::943 as permitted sender) smtp.mailfrom=oliverpntr@gmail.com X-Spamd-Result: default: False [-0.98 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; URI_COUNT_ODD(1.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; 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(-0.98)[-0.980,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE(0.00)[ip: (1.16), ipnet: 2607:f8b0::/32(-0.37), asn: 15169(-0.47), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[3.4.9.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)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2020 18:19:17 -0000 On Thursday, March 26, 2020, Rajesh Kumar wrote: > Hi, > > I am porting a network driver from Linux to FreeBSD. The driver in Linux > uses the PHY library (a generic wrapper) to access/config the PHY > registers. Do we have anything equivalent in FreeBSD? > > PHY library routines in Linux: > > get_phy_device > phy_device_register > phy_attach_direct > phy_start_aneg > etc., > > FreeBSD being a stable OS for networking and Storage, I assume it should > have something equivalent to this. Can anyone point to it? or any > documentation related to this? I'm not 100% confident, there is an "iflib" in the kernel. > > Thanks, > Rajesh. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@freebsd.org Fri Mar 27 18:32:29 2020 Return-Path: Delivered-To: freebsd-hackers@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 7E54627D6F1 for ; Fri, 27 Mar 2020 18:32:29 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) (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 48pr7B577Nz4WcF for ; Fri, 27 Mar 2020 18:32:22 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x741.google.com with SMTP id v7so11931252qkc.0 for ; Fri, 27 Mar 2020 11:32:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PncNjIig3pdO9QqkN7QWW5pu+unC9/8O1VhwVphVW/o=; b=hZaX621lmvub61tuxpYA3mUV7XqYKNZR6ufaw6aj0Ua72GJqxRDj/KTXspoa0Cnm0X NuTKNB810EouME7uHCvlmJ6S8UEKvS36qcB4wTEKpnB++jCx/N1qB4XCUah5bE8frJ9F wvT4h7JrgqUN6s+NQKi7rng2ZlNo1qA/7Il6QJgZVSzyFaHys8DRVZ9OwryOqLmyNo4J Te/CfgocVVxJItTqeOSx7+0kmTEYyacKC8XPLdF3ds3vRfZ1KmeW5Diw9M3SM1gUrFbK XERR/Iq4sQBGidcRrlsPsNvi66n+k2Lb5XaPPtTgTojQ3ASxcEuvGdVVpSZ8eV3TsuSI mtNQ== 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=PncNjIig3pdO9QqkN7QWW5pu+unC9/8O1VhwVphVW/o=; b=Y1d9L7ggtc7iRvl2cOa0X06KdPptWzixjQs0gOec1F1P1s74KeKCf5QuKHbNI24qkb S9m0bvpLLMfS9opkLVfB4G1ZseDpi8Zg+d0FM3BxUdAetWwvgium3jZY4l37juWtu590 T1vZOI5l9MArInPvBsbgVjrQrr0Yl/r5UCPqQezwD1gVYtHq8n0cG3YnPEJ7UfyvEFh8 oFA0B4lO73xLAlZmvDKKFVHwkS+sazsXed1MAgRc/IccU7/Y8OifZztLjLC65c3+yS44 9aAe2W/rMy3ymOSmdSvIqt92gn1IqgMMWrF8rt6BVbCHU0D8Hj0E3AsNsCzqNEyDExJ2 IlbQ== X-Gm-Message-State: ANhLgQ1TgWOq4tU9C9bprftAOZLWC3/MDbamA6gM6WxAbW1G9En9Bc83 1yyy2ERW5AKYpOaekqZUD20DRC/kGcK5VHovbP/xRg== X-Google-Smtp-Source: ADFU+vt8KH9iJFzAhlAi30MD1+mHFld4mZWWwWlRcq3nd1czNr+cTP2rxBDAW/gjVPq4ZS/gLhWyjq9iBun7OPnDXKA= X-Received: by 2002:a05:620a:22ef:: with SMTP id p15mr638914qki.495.1585333935255; Fri, 27 Mar 2020 11:32:15 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Fri, 27 Mar 2020 12:32:03 -0600 Message-ID: Subject: Re: Does FreeBSD has a generic PHY library as in Linux? To: Rajesh Kumar Cc: freebsd-drivers@freebsd.org, FreeBSD Hackers X-Rspamd-Queue-Id: 48pr7B577Nz4WcF X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=hZaX621l; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::741) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-0.09 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.92)[-0.921,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; IP_SCORE(-0.17)[ip: (0.02), ipnet: 2607:f8b0::/32(-0.37), asn: 15169(-0.47), country: US(-0.05)]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; URI_COUNT_ODD(1.00)[3]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[1.4.7.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]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; FREEMAIL_TO(0.00)[gmail.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2020 18:32:29 -0000 On Thu, Mar 26, 2020, 12:38 PM Rajesh Kumar wrote: > Hi, > > I am porting a network driver from Linux to FreeBSD. The driver in Linux > uses the PHY library (a generic wrapper) to access/config the PHY > registers. Do we have anything equivalent in FreeBSD? > > PHY library routines in Linux: > > get_phy_device > phy_device_register > phy_attach_direct > phy_start_aneg > etc., > > FreeBSD being a stable OS for networking and Storage, I assume it should > have something equivalent to this. Can anyone point to it? or any > documentation related to this? > Miibus does all that for FreeBSD. Warner Thanks, > Rajesh. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@freebsd.org Fri Mar 27 18:48:02 2020 Return-Path: Delivered-To: freebsd-hackers@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 89E2B27DF82; Fri, 27 Mar 2020 18:48:02 +0000 (UTC) (envelope-from se@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48prTD42s1z4cpq; Fri, 27 Mar 2020 18:48:00 +0000 (UTC) (envelope-from se@freebsd.org) Received: from Stefans-MBP-449.fritz.box (p200300CD5F0504008CB8021D07A0880B.dip0.t-ipconnect.de [IPv6:2003:cd:5f05:400:8cb8:21d:7a0:880b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: se/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 2843952F9; Fri, 27 Mar 2020 18:47:52 +0000 (UTC) (envelope-from se@freebsd.org) Subject: Re: Does FreeBSD has a generic PHY library as in Linux? To: Rajesh Kumar , freebsd-drivers@freebsd.org, FreeBSD Hackers References: From: =?UTF-8?Q?Stefan_E=c3=9fer?= Message-ID: Date: Fri, 27 Mar 2020 19:47:49 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2020 18:48:02 -0000 Am 26.03.20 um 19:36 schrieb Rajesh Kumar: > Hi, > > I am porting a network driver from Linux to FreeBSD. The driver in Linux > uses the PHY library (a generic wrapper) to access/config the PHY > registers. Do we have anything equivalent in FreeBSD? > > PHY library routines in Linux: > > get_phy_device > phy_device_register > phy_attach_direct > phy_start_aneg > etc., > > FreeBSD being a stable OS for networking and Storage, I assume it should > have something equivalent to this. Can anyone point to it? or any > documentation related to this? See https://wiki.freebsd.org/MIIBUS for initial information about the miibus driver that covers most PHYs supported by FreeBSD Ethernet devices. The miibus(4) man-page contains a list of devices that use this interface and which might be useful as examples for its use: https://www.freebsd.org/cgi/man.cgi?miibus(4) Regards, STefan From owner-freebsd-hackers@freebsd.org Sat Mar 28 11:02:28 2020 Return-Path: Delivered-To: freebsd-hackers@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 C9996278045; Sat, 28 Mar 2020 11:02:28 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (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 48qG5c0TYJz4bBZ; Sat, 28 Mar 2020 11:02:27 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: by mail-wr1-x444.google.com with SMTP id h15so14807966wrx.9; Sat, 28 Mar 2020 04:02:27 -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=An3x10ookyGo6pKxX+/6xQXEd5JCzt7gaFKZxKboIEw=; b=ZyPv1ZvETJyGouYUcjJiWoCZCN7IXlV103iq6rYwzVMvTtXSZfdj4dTQ+oXGvaf3S8 IJeBKGxHFv7uE8R7LENd0dSTnAWxb3RVcUD8jiZrDCK8wJ4F7b+a8czEjO9zyXHjYx4/ ICzbNlrzs3igJokzrbn+97/xpbZKn4cZFSEOndvPhuxHvf1uJQVzllhHYNz7Bx/eI07u einafJI4R1J/vuRCswHx5bl8hoUmI/ENuFEeU2HTBq5HHa1y+7YQCpODZrSg0X9Utcfy tYbW2yD1mmHohHxocACVAMHJSwVsXErLQ+WhH2fh9bNMLZam6X/Ifc11AFIMtCKVDqrZ QssQ== 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=An3x10ookyGo6pKxX+/6xQXEd5JCzt7gaFKZxKboIEw=; b=BvxnQjqc06aO3hHAl/PFvG5I6hKBbTkzgR59GT7AP516ufL0A+HL3aze0DnHsvxPOf lZc8QRmmht2S2xS0i59dSbWltHk/fexFIZ4vP1xQnl0zRrhNRKSx5uPRcREajsMRBop5 4iyNh7DWQjOLfdKsY/xspSDdMQ0L8zB5eCYWtI/QpTrd5caYdHttBV52NlPOhC4GDeo7 PT+itX+NJyDD2CQLeNH6zzgcLIs3Bn+OtLaCG22NHNP9fqnI0gsi8XwLNe/MIWB3MpyX TCPtMQraQ3orhig1jki1aSR1rWzgfQszwiX3vmDOSIEi4osz+ZihI5VNb4aFMFH2yy/4 IrbQ== X-Gm-Message-State: ANhLgQ0rIAH7cbTmzhnre/q5nsa56AI3gvg9s5rjQCgZsKG19eiw3DBp QBeN/bPM3KKUZL94olhU/7RNyLgKfIWDPBbV2AQs5g== X-Google-Smtp-Source: ADFU+vuylKidjjZW3FbZ4IngKu2UE5HDWyrUBOwzPDL+e+8eLSjwupTE4XHwQ5ce0yR1zhH1G/zoXyP/AgjjodVJgLw= X-Received: by 2002:a05:6000:1c4:: with SMTP id t4mr4192123wrx.89.1585393337575; Sat, 28 Mar 2020 04:02:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Rajesh Kumar Date: Sat, 28 Mar 2020 16:32:06 +0530 Message-ID: Subject: Re: Does FreeBSD has a generic PHY library as in Linux? To: =?UTF-8?B?U3RlZmFuIEXDn2Vy?= Cc: freebsd-drivers@freebsd.org, FreeBSD Hackers X-Rspamd-Queue-Id: 48qG5c0TYJz4bBZ X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2020 11:02:29 -0000 Thank you all for the response . I will go through the MIIBUS stuff and come back if I have any questions. Thanks, Rajesh. On Sat, Mar 28, 2020 at 12:18 AM Stefan E=C3=9Fer wrote: > Am 26.03.20 um 19:36 schrieb Rajesh Kumar: > > Hi, > > > > I am porting a network driver from Linux to FreeBSD. The driver in Lin= ux > > uses the PHY library (a generic wrapper) to access/config the PHY > > registers. Do we have anything equivalent in FreeBSD? > > > > PHY library routines in Linux: > > > > get_phy_device > > phy_device_register > > phy_attach_direct > > phy_start_aneg > > etc., > > > > FreeBSD being a stable OS for networking and Storage, I assume it shoul= d > > have something equivalent to this. Can anyone point to it? or any > > documentation related to this? > > See > > https://wiki.freebsd.org/MIIBUS > > for initial information about the miibus driver that covers most > PHYs supported by FreeBSD Ethernet devices. > > The miibus(4) man-page contains a list of devices that use this > interface and which might be useful as examples for its use: > > https://www.freebsd.org/cgi/man.cgi?miibus(4) > > Regards, STefan > From owner-freebsd-hackers@freebsd.org Sat Mar 28 16:11:25 2020 Return-Path: Delivered-To: freebsd-hackers@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 499432A6831 for ; Sat, 28 Mar 2020 16:11:25 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48qNxx2lxYz41WQ for ; Sat, 28 Mar 2020 16:11:17 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id 02SGB8Mx083721 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 28 Mar 2020 17:11:08 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1585411868; bh=Ei5sHA4p7E2z/JK5yhIU0udsFYmbsaBa4QCxElwGUCM=; h=Date:From:To:Subject; b=G+H19KwLNaGNIUE+FeQflN3SiI/hTEQZ/YfiE52vSQbLV+P9DE6IKQz6/2A2n8OoO lNndDl/hwLvkTEa8ZHd4JLsalxMQZWTLevTyam/l2q70O7YAQSR62P57yU4pq7M6fO CArEbijdqzy4GUe0PCSfl29mntMyoM4AUPiFxeDQ= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id 02SGB8xU083718 for ; Sat, 28 Mar 2020 17:11:08 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Sat, 28 Mar 2020 17:11:08 +0100 (CET) From: Wojciech Puchar To: freebsd-hackers@freebsd.org Subject: FreeBSD 12, arp -s/-f cannot allocate memory Message-ID: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Rspamd-Queue-Id: 48qNxx2lxYz41WQ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=fail (rsa verify failed) header.d=puchar.net header.s=default header.b=G+H19KwL; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-3.86 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; R_DKIM_REJECT(1.00)[puchar.net:s=default]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[puchar.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[puchar.net:-]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; IP_SCORE(-2.56)[ip: (-6.78), ipnet: 194.1.144.0/24(-3.39), asn: 43476(-2.71), country: PL(0.06)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2020 16:11:25 -0000 arp in FreeBSD 12 cannot fill static entries for interface that is set to up by ifconfig but no cable plugged. it says "cannot allocate memory" when cable is plugged it works properly. why?