From owner-freebsd-amd64@freebsd.org Thu Nov 8 10:45:11 2018 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7D5BF1125127; Thu, 8 Nov 2018 10:45:11 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A782C7807D; Thu, 8 Nov 2018 10:45:10 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: by mail-wr1-x443.google.com with SMTP id z13-v6so18325161wrs.3; Thu, 08 Nov 2018 02:45:10 -0800 (PST) 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=HvOtueL2/aekfryQWtOeFMaiUjkcdRffrBb3uGnrHPc=; b=jGZw1l6mXMekxd21yZ7SbjxE64qGHe7gjPPw/myrRDTn3xES1r8H0g8SsuMTYRkzaZ fG1NiJN9KfaxjNSiVSw9m9jd1X6GmKp790wLAR4sTSrN92ulvkfymu+spOdHp9WE3nB0 YIzaxCZOAHgldxTNfUKZTXen5fQGew57pJQH4g2xAMFCRegLnzQLogLygZE8ZuYSFuzG OEvwWRZSGK8c8AwzRItIqCuaPhAK+1hTy4/wLyvG7b47T0jT8EB1Vva6fJAZI/cNFwh1 xhi/LrSl34PLzazO9rMRcGhxAVBlsdd+MUTvDHCBDWUKvK5SmZr1QLOXSVJl+h56kUxy TLZA== 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=HvOtueL2/aekfryQWtOeFMaiUjkcdRffrBb3uGnrHPc=; b=DeGCeqKTKItQkondLyV9jQ3s7LI1pR2VqmuGchl5q7NG62tIvmspGDu/r4ddnNDAsl rVxjYtpEmFf5NcuW12mufCenTb/o+xBwnzGf7B6EKznkSf98bbwpACzNGH3VGZJzuPyK DS3T0xm5uNBBu7/Sw2YRm+DAe8KPHe+pOTS/GmZPC632gApIDeNUxkOkoleafNqVuKDn FbsnmNDRU/fd6MD+eUdqhEkGnQHk/FVTIK6BR4tRs5XX2vtdQ38WJSciQqXKTPhmPOy0 BxE8i3H3Zx2VgZQ940Q3R8kMeni8GsTmk2XRFLyoc2lu/wohDkv2GSRVXFmMdEFVNjY8 N3gg== X-Gm-Message-State: AGRZ1gJkwCU/q0DIJFesTFmIdUYPHueMkFF+tnUwit9IYJs4kR41TBVM x9WZhsqygC3KlMd3ebpPadEDABDBnjHCFOikprDMyA== X-Google-Smtp-Source: AJdET5ezsVv+sHF5AEaP1U/2gBDNzGXTv9UcPk5n+CtV9LKAYIIMlfm12VwI4Ns6We28mnlw/6XRY3Iixaax9e8qgJg= X-Received: by 2002:adf:aa05:: with SMTP id p5-v6mr3930974wrd.56.1541673909279; Thu, 08 Nov 2018 02:45:09 -0800 (PST) MIME-Version: 1.0 From: Rajesh Kumar Date: Thu, 8 Nov 2018 16:14:57 +0530 Message-ID: Subject: Enabling a ACPI eMMC device is causing kernel reboots with FreeBSD 11.2 To: freebsd-amd64@freebsd.org, freebsd-acpi@freebsd.org, freebsd-hackers@freebsd.org X-Rspamd-Queue-Id: A782C7807D X-Spamd-Result: default: False [-4.53 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[gmail.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; 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_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(-0.73)[ipnet: 2a00:1450::/32(-2.02), asn: 15169(-1.55), country: US(-0.09)]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[3.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]; NEURAL_HAM_SHORT(-0.80)[-0.795,0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2018 10:45:11 -0000 Hi, I have amd64 board, which has a eMMC device on the ACPI bus. When I try booting FreeBSD 11.2 on this board, with eMMC device disabled in BIOS, it boots without any issues. But, when eMMC device is enabled in BIOS, FreeBSD 11.2 continuously reboots. When I have the following tunable set, FreeBSD 11.2 boots without any issues with eMMC enabled. hw.pci.mcfg=0 Observations : a) We have verified the ACPI device addresses (from DSDT table) doesn't conflict with the PCI address base (configured in MCFG table). b) The PCI address base from MCFG table is read correctly by kernel (Verbose boot prints that address). So, I don't think MCFG table pointer is corrupted and getting read properly. Questions : a) What does hw.pci.mcfg=0 actually do to get the reboot issue resolved? b) Why enabling a device on ACPI bus needs hw.pci.mcfg (PCI specific) to boot? Looks like the system reboots when the ACPI and PCI devices enumeration starts during the boot. So, seems ACPI (or) PCI devices aren't getting enough resources and so reboots. Thanks, Rajesh.