From owner-svn-src-all@freebsd.org Mon May 2 18:45:45 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4749FB2A2D5; Mon, 2 May 2016 18:45:45 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pa0-x244.google.com (mail-pa0-x244.google.com [IPv6:2607:f8b0:400e:c03::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 189091EFC; Mon, 2 May 2016 18:45:45 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-pa0-x244.google.com with SMTP id yl2so18286463pac.1; Mon, 02 May 2016 11:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=NZweoUYbZPj/saJpaEyhmbLlgokxTYr+ZXhcfxtouY0=; b=Nf3hirFS/25tL3968rSwR/KRJKQSASedvRl6i/1Dlog1zgHWHW4GmyJYBZ0Mi9Lx8m hgtMj4+mmlDDIrDBwMr2XHj8jOWrjMvtErNrw17SsqQbH/42MvHeIrZyltS06Ribgad8 dGbwf8L0YJIflK3I70YxUlfNpIBRsA3ugMmjIGmxOOySaTU7Z4ohtolNetiAKF+reNaB FIToPyx9sEPBNpIPhFN/LWHlfCGNHHxFpEvzPezSrekTvsRqZldkEwQTte72H7hpd9ir x+Czwop0YWozMxZK84rC9Ja/Si7furNi+hOjz+nvpSkIQ10GIJRQfw40OFSbH8DBH9F5 z+0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=NZweoUYbZPj/saJpaEyhmbLlgokxTYr+ZXhcfxtouY0=; b=RDlT6Kw4BSG7HFgr/hGaawVKzJGHH+va5tKWGfHMxihzYGVmZrDkbhMjT9bHsefau/ i2xsExkBFP/UVXnArk1kMPzzkwIsOpZCrEwVi0MCbqHGyrUAIdMK7RHW+AXg1z/JfA9r rJxqik7gjdpDTBrDgXl37jK4G5D08F2w5IsYAu9OIMj0hBQDRnUR7B2iUaG3Dm3CkQ2x q6Vavyh8AGwhLmPKQlKUkiG3gAfPCtYpBbLzQmdLMxacoajhr4bSr0/KsIVgWhffxfsa 23UhLmv0rPKYJCWZyNDUWV6UK0unL0Xg4c6Gruacl1nS/i9pgx0j4uwstZ283H28xbaT L+Qw== X-Gm-Message-State: AOPr4FU7LkkPmQozMRX72NOuVtMntcrwP3ur6vA9Z7hK8wse5hKUWo9iNDHR3EImifiFZw== X-Received: by 10.66.184.40 with SMTP id er8mr54629674pac.134.1462214744710; Mon, 02 May 2016 11:45:44 -0700 (PDT) Received: from [192.168.100.129] ([199.231.240.59]) by smtp.gmail.com with ESMTPSA id q26sm47168369pfi.57.2016.05.02.11.45.42 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 02 May 2016 11:45:43 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: svn commit: r298933 - in head: share/man/man9 sys/amd64/include sys/dev/acpica sys/dev/drm2 sys/dev/drm2/i915 sys/kern sys/sys sys/x86/acpica sys/x86/x86 From: "Ngie Cooper (yaneurabeya)" In-Reply-To: <201605021800.u42I0cjK084243@repo.freebsd.org> Date: Mon, 2 May 2016 11:45:41 -0700 Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <4F040E00-AB92-4D32-99F5-9BCB02578DC0@gmail.com> References: <201605021800.u42I0cjK084243@repo.freebsd.org> To: John Baldwin X-Mailer: Apple Mail (2.2104) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2016 18:45:45 -0000 > On May 2, 2016, at 11:00, John Baldwin wrote: >=20 > Author: jhb > Date: Mon May 2 18:00:38 2016 > New Revision: 298933 > URL: https://svnweb.freebsd.org/changeset/base/298933 >=20 > Log: > Add a new bus method to fetch device-specific CPU sets. >=20 > bus_get_cpus() returns a specified set of CPUs for a device. It = accepts > an enum for the second parameter that indicates the type of cpuset to > request. Currently two valus are supported: >=20 > - LOCAL_CPUS (on x86 this returns all the CPUs in the package = closest to > the device when DEVICE_NUMA is enabled) > - INTR_CPUS (like LOCAL_CPUS but only returns 1 SMT thread for each = core) >=20 > For systems that do not support NUMA (or if it is not enabled in the = kernel > config), LOCAL_CPUS fails with EINVAL. INTR_CPUS is mapped to = 'all_cpus' > by default. The idea is that INTR_CPUS should always return a valid = set. >=20 > Device drivers which want to use per-CPU interrupts should start = using > INTR_CPUS instead of simply assigning interrupts to all available = CPUs. > In the future we may wish to add tunables to control the policy of > INTR_CPUS (e.g. should it be local-only or global, should it ignore > SMT threads or not). >=20 > The x86 nexus driver exposes the internal set of interrupt CPUs from = the > the x86 interrupt code via INTR_CPUS. >=20 > The ACPI bus driver and PCI bridge drivers use _PXM to return a = suitable > LOCAL_CPUS set when _PXM exists and DEVICE_NUMA is enabled. They = also and > the global INTR_CPUS set from the nexus driver with the per-domain = set from > _PXM to generate a local INTR_CPUS set for child devices. >=20 > Reviewed by: wblock (manpage) > Differential Revision: https://reviews.freebsd.org/D5519 >=20 > Added: > head/share/man/man9/BUS_GET_CPUS.9 (contents, props changed) > Modified: > head/share/man/man9/Makefile > head/sys/amd64/include/intr_machdep.h > head/sys/dev/acpica/acpi.c > head/sys/dev/acpica/acpi_pci.c > head/sys/dev/acpica/acpi_pcib.c > head/sys/dev/acpica/acpi_pcib_acpi.c > head/sys/dev/acpica/acpi_pcib_pci.c > head/sys/dev/acpica/acpi_pcibvar.h > head/sys/dev/acpica/acpivar.h > head/sys/dev/drm2/drm_dp_iic_helper.c > head/sys/dev/drm2/i915/dvo.h > head/sys/kern/bus_if.m > head/sys/kern/subr_bus.c > head/sys/sys/bus.h > head/sys/x86/acpica/OsdEnvironment.c > head/sys/x86/x86/intr_machdep.c > head/sys/x86/x86/nexus.c This broke the build with gcc: = https://jenkins.freebsd.org/job/FreeBSD_HEAD_amd64_gcc/1211/=