Date: Sun, 21 Jul 2019 03:48:03 +0000 (UTC) From: Laurie Jennings <laurie_jennings_1977@yahoo.com> To: "freebsd-current@freebsd.org" <freebsd-current@freebsd.org> Subject: mmap port from 9 not working Message-ID: <446145008.4396329.1563680883838@mail.yahoo.com> References: <446145008.4396329.1563680883838.ref@mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I have some custom stuff I'm porting from Freebsd 9.x using mmap. I get a p= ointer from the kernel via an ioctl and I map it into a shared buffer. char *kptr; =C2=A0 // mem ptr from kernel fd=3Dopen("/dev/kmem",O_RDWR);memp=3Dmmap(0,size,PROT_READ|PROT_WRITE,MAP_S= HARED,fd,(off_t) ptr); This worked perfectly in 9; memp I had a shared block of memory between the= kernel and user space. In 11.3 this returns an errno 22, which is pretty murky. I did notice that = off_t doesnt yield an actual offset; I've tried putting in the correct valu= e manuallybut it just fails and fails.I've tried read only also.=C2=A0 Please Help! Laurie From owner-freebsd-current@freebsd.org Sun Jul 21 13:53:59 2019 Return-Path: <owner-freebsd-current@freebsd.org> Delivered-To: freebsd-current@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 40A1BB42DE for <freebsd-current@mailman.nyi.freebsd.org>; Sun, 21 Jul 2019 13:53:59 +0000 (UTC) (envelope-from cpogolsha@gmail.com) Received: from mail-yw1-xc2b.google.com (mail-yw1-xc2b.google.com [IPv6:2607:f8b0:4864:20::c2b]) (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 1D95C818CC for <freebsd-current@freebsd.org>; Sun, 21 Jul 2019 13:53:58 +0000 (UTC) (envelope-from cpogolsha@gmail.com) Received: by mail-yw1-xc2b.google.com with SMTP id x67so13681958ywd.3 for <freebsd-current@freebsd.org>; Sun, 21 Jul 2019 06:53:58 -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:cc; bh=TNKpBpFHBtEsJF0iezknpZBxYhib4WBUelz3vC7pg5c=; b=Gz2h3TIpjMOnsZrvwiNOSkZbjdYMWzxC6eceqrSVHkASMGMw4fzpLCXShaLCGGta/Q llCiDiHcX1oodM6JYRh+AptuGB1FzYFgFvyAIc8HF8nxu+Xc9+fLET5Tg3nPZoHF+b6P 6ztfUkzGxkOW81zGz44OCqZArRwunBoUQObrsV4+glcaNR3PIgfIh2spuYl88vJZ+xUM yE487AshYak+ZFPylkhpqNVEmiGOJ1Nd3np6jMBU4MMHFk8nf5Jtd7hA5exZ/6j5xoDk WCOyhDsAWRDnPqf3PCs5JgpNB4/7mc61ht7/H41M3hNrYvr1ImKVwOdXLQRSRrW71QHY zFKw== 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:cc; bh=TNKpBpFHBtEsJF0iezknpZBxYhib4WBUelz3vC7pg5c=; b=LdGSDMOuMOQ2cZ+Kf0DXB7xQf4EWnbsEQF52LQQ3gFicp0CUD+e8zEGu4YXEebP5Nx qrpa/+mn98ghiUbMZPxT4ey9oT8XA92GjM+RInjRHr9vL8Ck3VvIy0CfUbVQphJ6wg4u nQA5njhtOk0pFts7yP/BKxlJN9k9FradUw6985HAMvnWbrvjltbzcWpnjxL7kbHNdu7E 6iW6zl1w2oCAEzsC/9HEnQuyHPv27DFfxD52Y8i6vUxuaXsTLHuVAVEmdblzEGAjeHkL FwKge7b9io5HHQJ18DjDhGL2+WhPyarvXwQpJZWMtaInFBzVwUe3XKn6mhcFdoaQGh88 aQuA== X-Gm-Message-State: APjAAAUZ1pLwXYoH94vWJTkVREtRjwq9X94otbYKYjH2t2kZnetsR/2s sOzeN+1KuWUpDWBhmu5jPdZQejHfsDZII9b6y+2b2w== X-Google-Smtp-Source: APXvYqwCbGYjBlUd3K4zaZo2wBQL0MfOQ+7g/QW/a60N3iQKQRIFSEY12kpYjyGMLEpsfwjsf+ip6VSlEYWr9QdXE0w= X-Received: by 2002:a81:5248:: with SMTP id g69mr39294786ywb.500.1563717237120; Sun, 21 Jul 2019 06:53:57 -0700 (PDT) MIME-Version: 1.0 From: Cristian Pogolsha <cpogolsha@gmail.com> Date: Sun, 21 Jul 2019 15:53:46 +0200 Message-ID: <CAG+4ykmb68AiiM9HLdtD-KxP2YktrD-Y9VJ_ADHboEa2qbf9Fw@mail.gmail.com> Subject: acpi issues on FreeBSD-current_r350103 on Thinkpad A485 To: contact@evilham.com Cc: freebsd-current@freebsd.org X-Rspamd-Queue-Id: 1D95C818CC X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Gz2h3TIp; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of cpogolsha@gmail.com designates 2607:f8b0:4864:20::c2b as permitted sender) smtp.mailfrom=cpogolsha@gmail.com X-Spamd-Result: default: False [-6.94 / 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)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[b.2.c.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]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_SHORT(-0.93)[-0.934,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-3.00)[ip: (-9.38), ipnet: 2607:f8b0::/32(-3.12), asn: 15169(-2.43), country: US(-0.05)]; 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-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current <freebsd-current.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>, <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/> List-Post: <mailto:freebsd-current@freebsd.org> List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>, <mailto:freebsd-current-request@freebsd.org?subject=subscribe> X-List-Received-Date: Sun, 21 Jul 2019 13:53:59 -0000 Hi, Thank you for the instructions. I have a question related to post-installation. My system doesn't boot after installing and rebooting the system. It just doesn't find the partition on the drive. I get a blank screen when selecting from the boot media list. What partitioning scheme did you use for your installation? Or is this problem addressable with step #2 in your instructions? Putting in the boot/loader.conf -> set.hw.pci.mcfg=0? Thank you very much, Cristian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?446145008.4396329.1563680883838>