From owner-svn-src-head@freebsd.org Mon Apr 24 08:44:53 2017 Return-Path: Delivered-To: svn-src-head@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 1C403D4D2A4; Mon, 24 Apr 2017 08:44:53 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (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 E080C1674; Mon, 24 Apr 2017 08:44:52 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v3O8iqbY064934; Mon, 24 Apr 2017 08:44:52 GMT (envelope-from mav@FreeBSD.org) Received: (from mav@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v3O8iqBG064933; Mon, 24 Apr 2017 08:44:52 GMT (envelope-from mav@FreeBSD.org) Message-Id: <201704240844.v3O8iqBG064933@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mav set sender to mav@FreeBSD.org using -f From: Alexander Motin Date: Mon, 24 Apr 2017 08:44:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r317355 - head/sys/dev/cxgbe/cxgbei X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Apr 2017 08:44:53 -0000 Author: mav Date: Mon Apr 24 08:44:51 2017 New Revision: 317355 URL: https://svnweb.freebsd.org/changeset/base/317355 Log: Use proper alignment constant for uma_zcreate(). Previous code panicked on KASSERT with INVARIANTS enabled. MFC after: 2 weeks Modified: head/sys/dev/cxgbe/cxgbei/icl_cxgbei.c Modified: head/sys/dev/cxgbe/cxgbei/icl_cxgbei.c ============================================================================== --- head/sys/dev/cxgbe/cxgbei/icl_cxgbei.c Mon Apr 24 07:52:44 2017 (r317354) +++ head/sys/dev/cxgbe/cxgbei/icl_cxgbei.c Mon Apr 24 08:44:51 2017 (r317355) @@ -1070,7 +1070,7 @@ icl_cxgbei_mod_load(void) */ prsv_zone = uma_zcreate("Pagepod reservations", sizeof(struct ppod_reservation), NULL, NULL, NULL, NULL, - CACHE_LINE_SIZE, 0); + UMA_ALIGN_CACHE, 0); refcount_init(&icl_cxgbei_ncons, 0);