search for: big_endian

Displaying 20 results from an estimated 57 matches for "big_endian".

2020 Oct 13
3
[PATCH] drm/nouveau/device: fix changing endianess code to work on older GPUs
...evice/base.c @@ -2924,17 +2924,34 @@ nvkm_device_del(struct nvkm_device **pdevice) } } +/* returns true if the GPU is in the CPU native byte order */ static inline bool nvkm_device_endianness(struct nvkm_device *device) { - u32 boot1 = nvkm_rd32(device, 0x000004) & 0x01000001; #ifdef __BIG_ENDIAN - if (!boot1) - return false; + const bool big_endian = true; #else - if (boot1) - return false; + const bool big_endian = false; #endif + + /* Read NV_PMC_BOOT_1, and assume non-functional endian switch if it + * doesn't contain the expected values. + */ + u32 pmc_boot_1 = nvkm_rd32(devi...
2012 Nov 06
0
[ablock84-btrfs:btrfs-far 19/20] fs/far/far-path.c:42:2: error: implicit declaration of function 'IS_ERR'
tree: git://github.com/ablock84/linux-btrfs.git btrfs-far head: f9a5bb450a8cc7aa5fd4f11d0306b3f48cf2771d commit: 29aefeaaf482ab396ff53c2bbf5c35ce237b91c0 [19/20] fs: add libfarstream support config: make ARCH=s390 allmodconfig All error/warnings: In file included from include/linux/byteorder/big_endian.h:4:0, from arch/s390/include/uapi/asm/byteorder.h:4, from include/asm-generic/bitops/le.h:5, from arch/s390/include/asm/bitops.h:829, from include/linux/bitops.h:22, from include/linux/kernel.h:10,...
2020 Oct 13
0
[PATCH] drm/nouveau/device: fix changing endianess code to work on older GPUs
...ruct nvkm_device **pdevice) > } > } > > +/* returns true if the GPU is in the CPU native byte order */ > static inline bool > nvkm_device_endianness(struct nvkm_device *device) > { > - u32 boot1 = nvkm_rd32(device, 0x000004) & 0x01000001; > #ifdef __BIG_ENDIAN > - if (!boot1) > - return false; > + const bool big_endian = true; > #else > - if (boot1) > - return false; > + const bool big_endian = false; > #endif > + > + /* Read NV_PMC_BOOT_1, and assume non-functional...
2020 Jul 16
0
[PATCH vhost next 08/10] vdpa/mlx5: Add support library for mlx5 VDPA implementation
...rces.c:52:44: error: empty scalar initializer 52 | u32 out[MLX5_ST_SZ_DW(create_uctx_out)] = {}; | ^ drivers/vdpa/mlx5/core/resources.c:52:44: note: (near initialization for 'out') In file included from include/linux/byteorder/big_endian.h:5, from arch/mips/include/uapi/asm/byteorder.h:13, from arch/mips/include/asm/bitops.h:20, from include/linux/bitops.h:29, from include/linux/kernel.h:12, from include/linux/mlx5/driver.h:36,...
2017 Apr 06
2
DRM_FORMAT_* byte order (was: Re: [PATCH] drm: virtio: fix virtio_gpu_cursor_formats)
On Thu, Apr 06, 2017 at 08:27:47PM +0300, Ville Syrj?l? wrote: > On Thu, Apr 06, 2017 at 10:29:43AM +0200, Gerd Hoffmann wrote: > > Hi, > > > > > > static const uint32_t virtio_gpu_cursor_formats[] = { > > > > +#ifdef __BIG_ENDIAN > > > > + DRM_FORMAT_BGRA8888, > > > > +#else > > > > DRM_FORMAT_ARGB8888, > > > > +#endif > > > > > > DRM formats are supposed to be little endian, so this isn't really > > > correct. > > > > Well, maybe...
2017 Apr 06
2
DRM_FORMAT_* byte order (was: Re: [PATCH] drm: virtio: fix virtio_gpu_cursor_formats)
On Thu, Apr 06, 2017 at 08:27:47PM +0300, Ville Syrj?l? wrote: > On Thu, Apr 06, 2017 at 10:29:43AM +0200, Gerd Hoffmann wrote: > > Hi, > > > > > > static const uint32_t virtio_gpu_cursor_formats[] = { > > > > +#ifdef __BIG_ENDIAN > > > > + DRM_FORMAT_BGRA8888, > > > > +#else > > > > DRM_FORMAT_ARGB8888, > > > > +#endif > > > > > > DRM formats are supposed to be little endian, so this isn't really > > > correct. > > > > Well, maybe...
2020 Jul 17
0
[PATCH] virtio_ring: use alloc_pages_node for NUMA-aware allocation
...72: include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(...
2014 Aug 25
0
[PATCH envytools] docs: Fix some spelling and remove some trailing spaces.
...s, as stored in CACHE, are tuples of: @@ -180,12 +180,12 @@ and engine-specific documentation. Pre-NV1A, PFIFO treats everything as little-endian. NV1A introduced big-endian mode, which affects pushbuffer/IB reads and semaphores. On NV1A:NV50 cards, -the endian can be selected per channel via big_endian flag. On NV50+ cards, +the endianness can be selected per channel via the big_endian flag. On NV50+ cards, PFIFO endianness is a global switch. .. todo:: look for NVC0 PFIFO endian switch The channel control area endianness is not affected by the big_endian flag or -NV50+ PFIFO endianness sw...
2009 Jul 15
2
ifultools on ppc debian
..., from /usr/include/stdlib.h:320, from /usr/local/lib/R/include/R.h:28, from ../inst/include/ut_type.h:18, from ../inst/include/fra_dim.h:9, from RS_fra_dim.c:20: /usr/include/bits/endian.h:27:4: error: #error Both BIG_ENDIAN and LITTLE_ENDIAN defined! make: *** [RS_fra_dim.o] Error 1 ERROR: compilation failed for package ?ifultools? * Removing ?/home/ssefick/ifultools.Rcheck/ifultools? -- Stephen Sefick Let's not spend our time and resources thinking about things that are so little or so large that all they real...
2001 Feb 27
1
Bad packet length in 2.5.1 with rijndael (fwd)
I think we are not detecting and setting endianness properly for rijndael.c. Can someone on a big endian machine do a "ssh -2 -oCiphers=rijndael128-cbc littleendianmachine" and vice versa? -d -- | Damien Miller <djm at mindrot.org> \ ``E-mail attachments are the poor man's | http://www.mindrot.org / distributed filesystem'' - Dan Geer ----------
2017 Apr 07
2
DRM_FORMAT_* byte order (was: Re: [PATCH] drm: virtio: fix virtio_gpu_cursor_formats)
On Fri, Apr 07, 2017 at 10:29:00AM +0200, Gerd Hoffmann wrote: > Hi, > > > Hmm. Maybe it's still possible to salvage something by redefining the > > BIG_ENDIAN format bit to mean the "the other endianness". Ugly but it > > might still result in something usable. > > Also at least for the virtual machine use case this doesn't buy us much. > The drm drivers (at least the ones used on both big and little endian > guests) supp...
2017 Apr 07
2
DRM_FORMAT_* byte order (was: Re: [PATCH] drm: virtio: fix virtio_gpu_cursor_formats)
On Fri, Apr 07, 2017 at 10:29:00AM +0200, Gerd Hoffmann wrote: > Hi, > > > Hmm. Maybe it's still possible to salvage something by redefining the > > BIG_ENDIAN format bit to mean the "the other endianness". Ugly but it > > might still result in something usable. > > Also at least for the virtual machine use case this doesn't buy us much. > The drm drivers (at least the ones used on both big and little endian > guests) supp...
2001 Jul 02
0
rijndael byteswapping
...un/OpenSSH/openssh/rijndael.c Mon Jun 25 18:00:24 2001 @@ -58,7 +58,8 @@ #define byte(x,n) ((u1byte)((x) >> (8 * n))) -#ifdef WORDS_BIGENDIAN +/* We can't trust WORDS_BIGENDIAN when building for multiple architectures at the same time */ +#if (defined(BYTE_ORDER) && defined(BIG_ENDIAN) && (BYTE_ORDER == BIG_ENDIAN)) || defined(WORDS_BIGENDIAN) #define BYTE_SWAP #endif
2014 Apr 17
1
[PATCH v9 05/19] qspinlock: Optimize for smaller NR_CPUS
On Thu, Apr 17, 2014 at 11:03:57AM -0400, Waiman Long wrote: > +#if !defined(__LITTLE_ENDIAN) && !defined(__BIG_ENDIAN) > +#error "Missing either LITTLE_ENDIAN or BIG_ENDIAN definition." > +#endif This seems entirely superfluous, I don't think a kernel build will go anywhere if either is missing.
2014 Apr 17
1
[PATCH v9 05/19] qspinlock: Optimize for smaller NR_CPUS
On Thu, Apr 17, 2014 at 11:03:57AM -0400, Waiman Long wrote: > +#if !defined(__LITTLE_ENDIAN) && !defined(__BIG_ENDIAN) > +#error "Missing either LITTLE_ENDIAN or BIG_ENDIAN definition." > +#endif This seems entirely superfluous, I don't think a kernel build will go anywhere if either is missing.
2002 Sep 13
1
[LLVMdev] Linux-x86 Compatability
...TDC_LIMIT_MACROS 1 >#include <inttypes.h> > >#ifdef __linux__ >#include <endian.h> >#endif > >#ifdef __sparc__ >#include <sys/types.h> >#ifdef _LITTLE_ENDIAN >#define LITTLE_ENDIAN 1 >#endif >#endif > > > #ifndef LITTLE_ENDIAN #ifndef BIG_ENDIAN #error Ooops. Fix include/llvm/Bytecode/Primitive.h for your endianness. #endif #endif >#endif /* LLVM_SUPPORT_DATATYPES_H */ > >-Chris > >http://llvm.cs.uiuc.edu/ >http://www.nondot.org/~sabre/Projects/ > > -- Casey Carter Casey at Carter.net ccarter at uiuc.edu AIM...
2002 Dec 30
1
R on the Zaurus link
...failed program was: #line 12340 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/param.h> #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } configure:12481: result: no ============================================================= Might be something to do with the /sys/ tacked on the front of the types.h and param.h includes? In any case if you just want it to compile then use something like t...
2020 Sep 22
0
[PATCH 3/8] vhost scsi: alloc cmds per vq instead of session
...): include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(...
2004 Sep 30
1
[don@donarmstrong.com: Bug#274301: libflac4 segfaults on corrupt flac files]
...source = (data_source_t *) 0x805aa60 decoder = (decoder_t *) 0x10000000 decoder_callbacks = {printf_error = 0x804d0d8 <decoder_buffered_error_callback>, printf_metadata = 0x804d255 <decoder_buffered_metadata_callback>} decoder_callbacks_arg = (void *) 0x407ed008 old_audio_fmt = {big_endian = 0, word_size = 0, signed_sample = 0, rate = 0, channels = 0} new_audio_fmt = {big_endian = 0, word_size = 2, signed_sample = 1, rate = 0, channels = 0} reopen_arg = (audio_reopen_arg_t *) 0x0 eof = 0 eos = 0 ret = 0 nthc = 0 ntimesc = 0 next_status = 0 status_interval = 0 #9 0x0804fd23...
2014 Aug 25
12
[PATCH envytools] demmio: Add decoding of some MEM_TIMINGS registers for NVC0.
--- rnndb/memory/nvc0_pbfb.xml | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/rnndb/memory/nvc0_pbfb.xml b/rnndb/memory/nvc0_pbfb.xml index 500cea9..e006dbe 100644 --- a/rnndb/memory/nvc0_pbfb.xml +++ b/rnndb/memory/nvc0_pbfb.xml @@ -49,23 +49,54 @@ Most bitfields are unknown. </doc> <bitfield high="7"