svn commit: r258554 - stable/10/sys/dev/nand

2013-11-25 Thread Grzegorz Bernacki
Author: gber Date: Mon Nov 25 15:34:57 2013 New Revision: 258554 URL: http://svnweb.freebsd.org/changeset/base/258554 Log: MFC: r258387,r258425 Split raw reading/programming into smaller chunks to avoid allocating too big chunk of kernel memory. Validate size of data. Add error handling to

Re: svn commit: r258387 - head/sys/dev/nand

2013-11-21 Thread Grzegorz Bernacki
Hi, Thanks for information. Fix has been committed. regards, grzesiek 2013/11/20 John-Mark Gurney > Grzegorz Bernacki wrote this message on Wed, Nov 20, 2013 at 11:10 +: > > Author: gber > > Date: Wed Nov 20 11:10:23 2013 > > New Revision: 258387 > > URL

svn commit: r258425 - head/sys/dev/nand

2013-11-21 Thread Grzegorz Bernacki
Author: gber Date: Thu Nov 21 09:19:14 2013 New Revision: 258425 URL: http://svnweb.freebsd.org/changeset/base/258425 Log: Unbreak compilation with GCC. Modified: head/sys/dev/nand/nand_cdev.c head/sys/dev/nand/nand_geom.c Modified: head/sys/dev/nand/nand_cdev.c ===

svn commit: r258387 - head/sys/dev/nand

2013-11-20 Thread Grzegorz Bernacki
Author: gber Date: Wed Nov 20 11:10:23 2013 New Revision: 258387 URL: http://svnweb.freebsd.org/changeset/base/258387 Log: Split raw reading/programming into smaller chunks to avoid allocating too big chunk of kernel memory. Validate size of data. Add error handling to avoid calling copyout(

svn commit: r252695 - head/sys/arm/arm

2013-07-04 Thread Grzegorz Bernacki
Author: gber Date: Thu Jul 4 10:40:24 2013 New Revision: 252695 URL: http://svnweb.freebsd.org/changeset/base/252695 Log: Remove redundant clearing of the PGA_WRITEABLE flag in pmap_remove_all() This flag should already be cleared by pmap_nuke_pv() Submitted by: Zbigniew Bodek

svn commit: r252694 - head/sys/arm/arm

2013-07-04 Thread Grzegorz Bernacki
Author: gber Date: Thu Jul 4 10:38:14 2013 New Revision: 252694 URL: http://svnweb.freebsd.org/changeset/base/252694 Log: Fix modified bit emulation for ARMv6/v7 When doing pmap_enter_locked(), enable write permission only when access type indicates attempt to write. Otherwise, leave the

svn commit: r251371 - head/sys/arm/mv

2013-06-04 Thread Grzegorz Bernacki
Author: gber Date: Tue Jun 4 09:33:03 2013 New Revision: 251371 URL: http://svnweb.freebsd.org/changeset/base/251371 Log: Fix the passing of time on Armada XP. In order to become independent of Coherency Fabric frequency, configure Timer and Watchdog to operate in 25MHz mode. Submit

svn commit: r251370 - head/sys/arm/arm

2013-06-04 Thread Grzegorz Bernacki
Author: gber Date: Tue Jun 4 09:21:18 2013 New Revision: 251370 URL: http://svnweb.freebsd.org/changeset/base/251370 Log: Implement pmap_copy() for ARMv6/v7. Copy the given range of mappings from the source map to the destination map, thereby reducing the number of VM faults on fork.

svn commit: r251022 - head/sys/dev/nand

2013-05-26 Thread Grzegorz Bernacki
Author: gber Date: Mon May 27 06:24:31 2013 New Revision: 251022 URL: http://svnweb.freebsd.org/changeset/base/251022 Log: Fix ONFI chip detection. Submitted by: Alexander Fedorov Modified: head/sys/dev/nand/nand.h head/sys/dev/nand/nandbus.c Modified: head/sys/dev/nand/nand.h ==

svn commit: r250931 - head/sys/arm/arm

2013-05-23 Thread Grzegorz Bernacki
Author: gber Date: Thu May 23 12:24:46 2013 New Revision: 250931 URL: http://svnweb.freebsd.org/changeset/base/250931 Log: Rework and organize pmap_enter_locked() function. pmap_enter_locked() implementation was very ambiguous and confusing. Rearrange it so that each part of the mapping c

svn commit: r250930 - in head/sys/arm: arm include

2013-05-23 Thread Grzegorz Bernacki
Author: gber Date: Thu May 23 12:23:18 2013 New Revision: 250930 URL: http://svnweb.freebsd.org/changeset/base/250930 Log: Stop using PVF_MOD, PVF_REF & PVF_EXEC flags in pv_entry, use PTE. Using PVF_MOD, PVF_REF and PVF_EXEC is redundant as we can get the proper info from PTE bits. Whe

svn commit: r250929 - in head/sys/arm: arm include

2013-05-23 Thread Grzegorz Bernacki
Author: gber Date: Thu May 23 12:15:23 2013 New Revision: 250929 URL: http://svnweb.freebsd.org/changeset/base/250929 Log: Improve, optimize and clean-up ARMv6/v7 memory management related code. Use pmap_find_pv if needed instead of multiplying its code throughout pmap-v6. Avoid poss

svn commit: r250928 - in head/sys/arm: arm include

2013-05-23 Thread Grzegorz Bernacki
Author: gber Date: Thu May 23 12:07:41 2013 New Revision: 250928 URL: http://svnweb.freebsd.org/changeset/base/250928 Log: Switch to AP[2:1] access permissions model. Store "referenced" bit in PTE. Enable Access Flag in CPU control. With AF enabled each valid mapping needs to have refer

svn commit: r250695 - head/sys/arm/arm

2013-05-16 Thread Grzegorz Bernacki
Author: gber Date: Thu May 16 09:43:04 2013 New Revision: 250695 URL: http://svnweb.freebsd.org/changeset/base/250695 Log: Fix L2 cache write-back invalidate for Sheeva core. Submitted by: Michal Dubiel Obtained from:Netasq, Semihalf Modified: head/sys/arm/arm/cpufunc_asm_sheev

svn commit: r250634 - in head/sys: arm/arm arm/include conf

2013-05-14 Thread Grzegorz Bernacki
Author: gber Date: Tue May 14 09:47:58 2013 New Revision: 250634 URL: http://svnweb.freebsd.org/changeset/base/250634 Log: Port the new PV entry allocator from amd64/i386/mips to armv6/v7. PV entries are now roughly half the size. Instead of using a shared UMA zone for 28 byte pv entries

svn commit: r250324 - head/sys/arm/mv

2013-05-06 Thread Grzegorz Bernacki
Author: gber Date: Tue May 7 06:42:07 2013 New Revision: 250324 URL: http://svnweb.freebsd.org/changeset/base/250324 Log: decode_win_sdram_fixup() function should be declared, defined and used only by Armada XP Obtained from:Semihalf Modified: head/sys/arm/mv/common.c Modifie

Re: svn commit: r250294 - head/sys/arm/arm

2013-05-06 Thread Grzegorz Bernacki
In my opinion this is the simplest way to do it, however if you think it should be done other way I can change it. grzesiek On 05/06/13 20:45, Adrian Chadd wrote: .. is this really the only way to do this reliably? adrian On 6 May 2013 07:27, Grzegorz Bernacki wrote: Author: gber Date

svn commit: r250299 - head/sys/arm/arm

2013-05-06 Thread Grzegorz Bernacki
Author: gber Date: Mon May 6 16:11:53 2013 New Revision: 250299 URL: http://svnweb.freebsd.org/changeset/base/250299 Log: Fix page reference emulation on ARMv6 and v7 Submitted by: Zbigniew Bodek Obtained from: Semihalf Modified: head/sys/arm/arm/pmap-v6.c Modified: head/sys/arm/arm/

svn commit: r250297 - in head/sys/arm: arm include

2013-05-06 Thread Grzegorz Bernacki
Author: gber Date: Mon May 6 15:30:34 2013 New Revision: 250297 URL: http://svnweb.freebsd.org/changeset/base/250297 Log: Fix L2 PTE access permissions management. Keep following access permissions: APX AP Kernel User 1 01 R N 1 10 R

svn commit: r250296 - head/sys/arm/arm

2013-05-06 Thread Grzegorz Bernacki
Author: gber Date: Mon May 6 14:57:02 2013 New Revision: 250296 URL: http://svnweb.freebsd.org/changeset/base/250296 Log: Correct comment about initial VA=>PA mapping Modified: head/sys/arm/arm/locore.S Modified: head/sys/arm/arm/locore.S

svn commit: r250295 - head/sys/arm/mv

2013-05-06 Thread Grzegorz Bernacki
Author: gber Date: Mon May 6 14:54:17 2013 New Revision: 250295 URL: http://svnweb.freebsd.org/changeset/base/250295 Log: Disable decoding windows with no FDT entry. - On ARMADAXP B0 (GP development board) we are not able to use PCI due to whole 32-bit address space used by 4GB of RAM

svn commit: r250294 - head/sys/arm/arm

2013-05-06 Thread Grzegorz Bernacki
Author: gber Date: Mon May 6 14:27:46 2013 New Revision: 250294 URL: http://svnweb.freebsd.org/changeset/base/250294 Log: Avoid calling pcpu_init() simultaneously. pcpu_init() updates queue, so cannot be called by multiple cores at the same time Obtained from:Semihalf Modif

svn commit: r250293 - in head/sys/arm: arm mv mv/armadaxp

2013-05-06 Thread Grzegorz Bernacki
Author: gber Date: Mon May 6 14:12:36 2013 New Revision: 250293 URL: http://svnweb.freebsd.org/changeset/base/250293 Log: Properly initialize Armada XP MP subsystem. - correct setting of Auxiliary Control Register for MP mode - correct setting of Auxiliarty Debug registers - cleanup ma

svn commit: r250292 - in head/sys/arm/mv: . armadaxp

2013-05-06 Thread Grzegorz Bernacki
Author: gber Date: Mon May 6 13:52:49 2013 New Revision: 250292 URL: http://svnweb.freebsd.org/changeset/base/250292 Log: Initialize L2 cache for Armada XP. Obtained from:Semihalf Modified: head/sys/arm/mv/armadaxp/armadaxp.c head/sys/arm/mv/armadaxp/std.armadaxp head/sys/ar

svn commit: r250291 - in head/sys: arm/mv boot/fdt/dts dev/cesa

2013-05-06 Thread Grzegorz Bernacki
Author: gber Date: Mon May 6 13:34:36 2013 New Revision: 250291 URL: http://svnweb.freebsd.org/changeset/base/250291 Log: Move initialization of CESA decoding windows from common section to driver specific files. - window initialization is done during device attach - CESA TDMA decoding

svn commit: r246205 - head/sys/kern

2013-02-01 Thread Grzegorz Bernacki
Author: gber Date: Fri Feb 1 11:39:03 2013 New Revision: 246205 URL: http://svnweb.freebsd.org/changeset/base/246205 Log: Get time of next event from other cores only if SMP is already started. Reviewed by: mav Obtained from: Semihalf Modified: head/sys/kern/kern_clocksource.c Modifi

svn commit: r241157 - head/lib/libstand

2012-10-03 Thread Grzegorz Bernacki
Author: gber Date: Wed Oct 3 10:06:48 2012 New Revision: 241157 URL: http://svn.freebsd.org/changeset/base/241157 Log: Correct detection of a superblock. Obtained from:Smartcom Bulgaria AD Modified: head/lib/libstand/nandfs.c Modified: head/lib/libstand/nandfs.c ===

Re: svn commit: r240484 - head/sys/dev/fdt

2012-09-17 Thread Grzegorz Bernacki
On 09/16/12 01:27, Aleksandr Rybalko wrote: On Fri, 14 Sep 2012 18:41:13 +0200 Grzegorz Bernacki wrote: On 09/14/12 16:16, Aleksandr Rybalko wrote: On Fri, 14 Sep 2012 09:33:35 + (UTC) Grzegorz Bernacki wrote: Author: gber Date: Fri Sep 14 09:33:35 2012 New Revision: 240484 URL: http

Re: svn commit: r240484 - head/sys/dev/fdt

2012-09-14 Thread Grzegorz Bernacki
On 09/14/12 16:16, Aleksandr Rybalko wrote: On Fri, 14 Sep 2012 09:33:35 + (UTC) Grzegorz Bernacki wrote: Author: gber Date: Fri Sep 14 09:33:35 2012 New Revision: 240484 URL: http://svn.freebsd.org/changeset/base/240484 Log: Set busaddr and bussize to 0 when fdt_get_range() fails

svn commit: r240493 - head/sys/arm/mv

2012-09-14 Thread Grzegorz Bernacki
Author: gber Date: Fri Sep 14 10:06:56 2012 New Revision: 240493 URL: http://svn.freebsd.org/changeset/base/240493 Log: Implement MSI support. MSI are implemented via Inbound Shared Doorbell 1 interrupts. Interrupts are triggered by writing to Software Triggered Interrupt registeri (PCIe

svn commit: r240492 - in head/sys: arm/include arm/mv boot/fdt/dts

2012-09-14 Thread Grzegorz Bernacki
Author: gber Date: Fri Sep 14 10:05:01 2012 New Revision: 240492 URL: http://svn.freebsd.org/changeset/base/240492 Log: Add support for MSI in interrupt controlller. MSI are implemented via software interrupt. PCIe cards will write into software interrupt register which will cause inbound

svn commit: r240491 - head/sys/arm/mv

2012-09-14 Thread Grzegorz Bernacki
Author: gber Date: Fri Sep 14 10:01:52 2012 New Revision: 240491 URL: http://svn.freebsd.org/changeset/base/240491 Log: Remove unused structure fields Obtained from:Semihalf Modified: head/sys/arm/mv/mpic.c Modified: head/sys/arm/mv/mpic.c ===

svn commit: r240490 - in head/sys/arm: conf mv/armadaxp

2012-09-14 Thread Grzegorz Bernacki
Author: gber Date: Fri Sep 14 09:59:27 2012 New Revision: 240490 URL: http://svn.freebsd.org/changeset/base/240490 Log: Enable PCI for Armada XP Obtained from:Semihalf Modified: head/sys/arm/conf/ARMADAXP head/sys/arm/mv/armadaxp/armadaxp.c Modified: head/sys/arm/conf/ARMADAXP

svn commit: r240489 - head/sys/arm/mv

2012-09-14 Thread Grzegorz Bernacki
Author: gber Date: Fri Sep 14 09:57:41 2012 New Revision: 240489 URL: http://svn.freebsd.org/changeset/base/240489 Log: pci: Implement new memory and io space allocator for PCI. Cleanup code and move initializing bridge into separate function. Add checking of PCI mode (RC or endpoint).

svn commit: r240488 - in head/sys: arm/conf arm/include arm/mv arm/mv/armadaxp boot/fdt/dts

2012-09-14 Thread Grzegorz Bernacki
Author: gber Date: Fri Sep 14 09:55:19 2012 New Revision: 240488 URL: http://svn.freebsd.org/changeset/base/240488 Log: Add support for Armada XP A0. - Add functions to calculate clocks instead using hardcoded values - Update reset and timers functions - Update number of interrupts -

svn commit: r240487 - head/sys/dev/fdt

2012-09-14 Thread Grzegorz Bernacki
Author: gber Date: Fri Sep 14 09:45:13 2012 New Revision: 240487 URL: http://svn.freebsd.org/changeset/base/240487 Log: If virtual addresses are not set use one to one mapping. Do not map memory and IO space at address 0. Obtained from: Semihalf Modified: head/sys/dev/fdt/fdt_pci.c Mo

svn commit: r240486 - in head/sys/arm: arm include

2012-09-14 Thread Grzegorz Bernacki
Author: gber Date: Fri Sep 14 09:38:54 2012 New Revision: 240486 URL: http://svn.freebsd.org/changeset/base/240486 Log: Support identification of new PJ4B cores. Obtained from:Semihalf Modified: head/sys/arm/arm/cpufunc.c head/sys/arm/arm/identcpu.c head/sys/arm/include/armre

svn commit: r240485 - head/sys/dev/fdt

2012-09-14 Thread Grzegorz Bernacki
Author: gber Date: Fri Sep 14 09:36:35 2012 New Revision: 240485 URL: http://svn.freebsd.org/changeset/base/240485 Log: Add fdt_get_unit() function. Obtained from:Semihalf Modified: head/sys/dev/fdt/fdt_common.c head/sys/dev/fdt/fdt_common.h Modified: head/sys/dev/fdt/fdt_comm

svn commit: r240484 - head/sys/dev/fdt

2012-09-14 Thread Grzegorz Bernacki
Author: gber Date: Fri Sep 14 09:33:35 2012 New Revision: 240484 URL: http://svn.freebsd.org/changeset/base/240484 Log: Set busaddr and bussize to 0 when fdt_get_range() fails. Obtained from:Semihalf Modified: head/sys/dev/fdt/fdt_common.c Modified: head/sys/dev/fdt/fdt_common.c

Re: svn commit: r235537 - in head: etc/mtree include lib lib/libnandfs lib/libstand sbin sbin/nandfs sbin/newfs_nandfs share/man/man4 share/man/man5 share/mk sys/boot/arm/uboot sys/boot/i386/loader sy

2012-06-04 Thread Grzegorz Bernacki
On 06/02/12 20:43, Andriy Gapon wrote: on 17/05/2012 13:11 Grzegorz Bernacki said the following: Author: gber Date: Thu May 17 10:11:18 2012 New Revision: 235537 URL: http://svn.freebsd.org/changeset/base/235537 Log: Import work done under project/nand (@235533) into head. The NAND

svn commit: r236549 - head/sys/modules

2012-06-04 Thread Grzegorz Bernacki
Author: gber Date: Mon Jun 4 08:40:14 2012 New Revision: 236549 URL: http://svn.freebsd.org/changeset/base/236549 Log: Restore changes accidentally removed in r235537. Noticed by: avg Modified: head/sys/modules/Makefile Modified: head/sys/modules/Makefile

svn commit: r236308 - head/sys/arm/arm

2012-05-30 Thread Grzegorz Bernacki
Author: gber Date: Wed May 30 13:33:27 2012 New Revision: 236308 URL: http://svn.freebsd.org/changeset/base/236308 Log: Print userspace backtrace for current thread. Reviewed by: imp Obtained from:Semihalf Modified: head/sys/arm/arm/db_trace.c Modified: head/sys/arm/arm/db_tr

svn commit: r236307 - head/sys/arm/include

2012-05-30 Thread Grzegorz Bernacki
Author: gber Date: Wed May 30 13:31:08 2012 New Revision: 236307 URL: http://svn.freebsd.org/changeset/base/236307 Log: Flush D and I caches after setting a breakpoint. Reviewed by: imp Obtained from: Semihalf Modified: head/sys/arm/include/kdb.h Modified: head/sys/arm/include/kdb.h =

svn commit: r235975 - head/usr.bin/gprof

2012-05-24 Thread Grzegorz Bernacki
Author: gber Date: Fri May 25 06:48:42 2012 New Revision: 235975 URL: http://svn.freebsd.org/changeset/base/235975 Log: Fix resolving symbol names on ARM. On ARM, binutils are adding '$a' symbols in the symbol table for every function (in addition to normal symbol). When gprof(1) looks

svn commit: r235908 - head/sys/arm/arm

2012-05-24 Thread Grzegorz Bernacki
Author: gber Date: Thu May 24 12:41:57 2012 New Revision: 235908 URL: http://svn.freebsd.org/changeset/base/235908 Log: Return Supervisor SP and LR registers instead of User ones while in KDB thread. Obtained from: Semihalf Modified: head/sys/arm/arm/gdb_machdep.c Modified: head/sys/ar

svn commit: r235907 - head/sys/arm/arm

2012-05-24 Thread Grzegorz Bernacki
Author: gber Date: Thu May 24 12:38:24 2012 New Revision: 235907 URL: http://svn.freebsd.org/changeset/base/235907 Log: ARMs don't have motherboards. Obtained from:Semihalf Modified: head/sys/arm/arm/nexus.c Modified: head/sys/arm/arm/nexus.c

svn commit: r235779 - head/sys/boot/fdt/dts

2012-05-22 Thread Grzegorz Bernacki
Author: gber Date: Tue May 22 09:27:57 2012 New Revision: 235779 URL: http://svn.freebsd.org/changeset/base/235779 Log: Divide nand flash for DB6281 into two partitions. One for u-boot and second one for general use. Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Net

svn commit: r235778 - in head/sys: boot/fdt/dts conf dev/fdt geom sys

2012-05-22 Thread Grzegorz Bernacki
Author: gber Date: Tue May 22 08:33:14 2012 New Revision: 235778 URL: http://svn.freebsd.org/changeset/base/235778 Log: Add a new geom class which allows to divide NAND Flash chip into partitions. Partitions are created based on data in dts file which are extracted and interpreted by sl

svn commit: r235611 - head/sys/arm/mv

2012-05-18 Thread Grzegorz Bernacki
Author: gber Date: Fri May 18 15:25:43 2012 New Revision: 235611 URL: http://svn.freebsd.org/changeset/base/235611 Log: Add localbus driver for Marvell's platforms. Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks Added: head/sys/arm/mv/mv_localbus.c (conte

svn commit: r235609 - in head/sys: arm/conf arm/include arm/mv arm/mv/discovery boot/fdt/dts boot/uboot/lib

2012-05-18 Thread Grzegorz Bernacki
Author: gber Date: Fri May 18 14:41:14 2012 New Revision: 235609 URL: http://svn.freebsd.org/changeset/base/235609 Log: Add architecture dependent code to support NAND Framework on Marvell SoCs. Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks Added: head/sys

svn commit: r235607 - head/usr.sbin/nandsim

2012-05-18 Thread Grzegorz Bernacki
Author: gber Date: Fri May 18 14:12:17 2012 New Revision: 235607 URL: http://svn.freebsd.org/changeset/base/235607 Log: Add missing include. Modified: head/usr.sbin/nandsim/nandsim_cfgparse.c Modified: head/usr.sbin/nandsim/nandsim_cfgparse.c =

svn commit: r235545 - head/share/man/man4

2012-05-17 Thread Grzegorz Bernacki
== --- head/share/man/man4/nandsim.4 Thu May 17 11:50:12 2012 (r235544) +++ head/share/man/man4/nandsim.4 Thu May 17 11:53:38 2012 (r235545) @@ -90,95 +90,3 @@ kernel driver was developed by .An Grzegorz Bernacki . This manual page was written

svn commit: r235537 - in head: etc/mtree include lib lib/libnandfs lib/libstand sbin sbin/nandfs sbin/newfs_nandfs share/man/man4 share/man/man5 share/mk sys/boot/arm/uboot sys/boot/i386/loader sys...

2012-05-17 Thread Grzegorz Bernacki
Author: gber Date: Thu May 17 10:11:18 2012 New Revision: 235537 URL: http://svn.freebsd.org/changeset/base/235537 Log: Import work done under project/nand (@235533) into head. The NAND Flash environment consists of several distinct components: - NAND framework (drivers harness for NAND

svn commit: r235469 - head/sys/kern

2012-05-15 Thread Grzegorz Bernacki
Author: gber Date: Tue May 15 09:55:15 2012 New Revision: 235469 URL: http://svn.freebsd.org/changeset/base/235469 Log: Do not call bremfree for managed buffers. Calling bremfree for these buffers results in panic: "bremfree: buffer %p not on a queue." Approved by: kib Modified: h

svn commit: r223673 - head/sys/nfs

2011-06-29 Thread Grzegorz Bernacki
Author: gber Date: Wed Jun 29 15:17:29 2011 New Revision: 223673 URL: http://svn.freebsd.org/changeset/base/223673 Log: Set proper root device name when legacy NFS client is compiled into kernel. Approved by: cognet (mentor) Modified: head/sys/nfs/bootp_subr.c Modified: head/sys/nfs